public class DefaultNodeReindexService extends Object implements NodeReindexService
Modifier and Type | Field and Description |
---|---|
static String |
ISSUE_ENTITY |
Constructor and Description |
---|
DefaultNodeReindexService(ClusterManager clusterManager,
NodeIndexCounterStore nodeIndexCounterStore,
OfBizReplicatedIndexOperationStore ofBizNodeIndexOperationStore,
IssueIndexManager indexManager,
SharedEntityIndexer sharedEntityIndexer,
ProjectManager projectManager,
ProjectReindexService projectReindexService,
IssueManager issueManager,
CommentManager commentManager,
WorklogManager worklogManager,
OfBizDelegator ofBizDelegator,
SharedEntityResolver sharedEntityResolver,
IndexCopyService indexCopyService,
IssueIndexingService indexingService,
IssueFactory issueFactory,
FailedReplicationOperationService failedReplicationOperationService) |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
boolean |
canIndexBeRebuilt()
Returns true if the index on the invoking node can be rebuilt from the information contained in the
ReplicatedIndexOperationStore.
|
void |
pause()
Pause the service.
|
Future<Long> |
replayLocalOperations()
This will replay any local operations that may have been lost when index changes did not make into a PERIODIC commit
or have been lost when an index is copied from another node in the cluster
|
void |
resetIndexCount()
Reset the index count to the last entry in the NodeIndexOperation table for each node.
|
void |
restart() |
void |
start() |
public static final String ISSUE_ENTITY
public DefaultNodeReindexService(ClusterManager clusterManager, NodeIndexCounterStore nodeIndexCounterStore, OfBizReplicatedIndexOperationStore ofBizNodeIndexOperationStore, IssueIndexManager indexManager, SharedEntityIndexer sharedEntityIndexer, ProjectManager projectManager, ProjectReindexService projectReindexService, IssueManager issueManager, CommentManager commentManager, WorklogManager worklogManager, OfBizDelegator ofBizDelegator, SharedEntityResolver sharedEntityResolver, IndexCopyService indexCopyService, IssueIndexingService indexingService, IssueFactory issueFactory, FailedReplicationOperationService failedReplicationOperationService)
public void cancel()
cancel
in interface NodeReindexService
public void start()
start
in interface NodeReindexService
public void pause()
NodeReindexService
pause
in interface NodeReindexService
public void restart()
restart
in interface NodeReindexService
public void resetIndexCount()
NodeReindexService
It would normally be done immediately following a pause() of the service.
resetIndexCount
in interface NodeReindexService
public boolean canIndexBeRebuilt()
NodeReindexService
canIndexBeRebuilt
in interface NodeReindexService
public Future<Long> replayLocalOperations()
NodeReindexService
replayLocalOperations
in interface NodeReindexService
Copyright © 2002-2019 Atlassian. All Rights Reserved.