public class OfBizReplicatedIndexOperationStore extends Object
Constructor and Description |
---|
OfBizReplicatedIndexOperationStore(OfBizDelegator ofBizDelegator) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(long id) |
ReplicatedIndexOperation |
createIndexOperation(Timestamp indexTime,
AffectedIndex affectedIndex,
SharedEntityType entityType,
ReplicatedIndexOperation.Operation operation,
Set<Long> affectedIds,
String backupFilename)
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) |
public OfBizReplicatedIndexOperationStore(OfBizDelegator ofBizDelegator)
@Nullable public ReplicatedIndexOperation createIndexOperation(@Nonnull Timestamp indexTime, @Nonnull AffectedIndex affectedIndex, @Nonnull SharedEntityType entityType, @Nonnull ReplicatedIndexOperation.Operation operation, @Nonnull Set<Long> affectedIds, @Nonnull String backupFilename)
indexTime
- time of indexing operationoperation
- the ReplicatedIndexOperation.Operation
that was performed on the underlying indexaffectedIds
- Set of issueids that participated in the index opertaionpublic Set<ReplicatedIndexOperation> getIndexOperationsAfter(Date sinceTime)
sinceTime
- ReplicatedIndexOperation
that have taken place on other nodes after a specified timepublic Set<ReplicatedIndexOperation> getIndexOperationsAfter(String sourceNodeId, Long id)
sourceNodeId
- Node to get operations sent fromid
- Id of preceeding operationReplicatedIndexOperation
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 operationpublic boolean contains(long id)
id
- the NodeIndexOperation id to checkCopyright © 2002-2021 Atlassian. All Rights Reserved.