|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.index.ha.OfBizReplicatedIndexOperationStore
public class OfBizReplicatedIndexOperationStore
Stores index operation events
Constructor Summary | |
---|---|
OfBizReplicatedIndexOperationStore(OfBizDelegator ofBizDelegator)
|
Method Summary | |
---|---|
boolean |
contains(long id)
|
ReplicatedIndexOperation |
createIndexOperation(Timestamp indexTime,
ReplicatedIndexOperation.AffectedIndex affectedIndex,
ReplicatedIndexOperation.SharedEntityType entityType,
ReplicatedIndexOperation.Operation operation,
Set<Long> affectedIds)
Creates and stores the index operation in the underlying database, only if the node is in a cluster. |
int |
deleteOperationsBefore(Date before)
|
Set<ReplicatedIndexOperation> |
getIndexOperationsAfter(Date sinceTime)
Returns a set of IndexOperations that have happened since the time specified. |
Set<ReplicatedIndexOperation> |
getIndexOperationsAfter(Long id)
Returns a set of IndexOperations that have happened since the time specified. |
long |
largestIdForNode(Long nodeId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OfBizReplicatedIndexOperationStore(OfBizDelegator ofBizDelegator)
Method Detail |
---|
@Nullable public ReplicatedIndexOperation createIndexOperation(@Nonnull Timestamp indexTime, @Nonnull ReplicatedIndexOperation.AffectedIndex affectedIndex, @Nonnull ReplicatedIndexOperation.SharedEntityType entityType, @Nonnull ReplicatedIndexOperation.Operation operation, @Nonnull Set<Long> affectedIds)
indexTime
- time of indexing operationoperation
- the ReplicatedIndexOperation.Operation
that was performed on the underlying indexaffectedIds
- Set of issueids that participated in the index opertaion
public Set<ReplicatedIndexOperation> getIndexOperationsAfter(Date sinceTime)
sinceTime
-
ReplicatedIndexOperation
that have taken place on other nodes after a specified timepublic int deleteOperationsBefore(Date before)
public Set<ReplicatedIndexOperation> getIndexOperationsAfter(Long id)
id
-
ReplicatedIndexOperation
that have taken place on other nodes after a specified idpublic long largestIdForNode(Long nodeId)
nodeId
- The nodeId to check
public boolean contains(long id)
id
- the NodeIndexOperation id to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |