|
||||||||||
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. |
Set<ReplicatedIndexOperation> |
getIndexOperationsAfter(Date sinceTime)
Returns a set of IndexOperations that have happened since the time specified. |
Set<ReplicatedIndexOperation> |
getIndexOperationsAfter(String sourceNodeId,
Long id)
Returns a set of IndexOperations that have happened since the time specified. |
Long |
getLatestOperation(String sourceNodeId)
Returns The latest operation for this node |
ReplicatedIndexOperation |
getOperation(long id)
get an operation by id |
int |
purgeOldOperations(String sourceNodeId,
Date before)
|
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 purgeOldOperations(String sourceNodeId, Date before)
public Set<ReplicatedIndexOperation> getIndexOperationsAfter(String sourceNodeId, Long id)
sourceNodeId
- Node to get operations sent fromid
- Id of preceeding operation
ReplicatedIndexOperation
that have taken place on other nodes after a specified idpublic ReplicatedIndexOperation getOperation(long id)
public Long getLatestOperation(String sourceNodeId)
sourceNodeId
- source node of the operation
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 |