public class DefaultNodeReindexService extends Object implements NodeReindexService
Modifier and Type | Field and Description |
---|---|
static String |
ISSUE_ENTITY |
Constructor and Description |
---|
DefaultNodeReindexService(ClusterManager clusterManager,
OfBizNodeIndexCounterStore ofBizNodeIndexCounterStore,
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) |
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.
|
void |
replayLocalOperations()
This will replay any local operations that may have been lost when a 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, OfBizNodeIndexCounterStore ofBizNodeIndexCounterStore, 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)
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 void replayLocalOperations()
NodeReindexService
replayLocalOperations
in interface NodeReindexService
Copyright © 2002-2018 Atlassian. All Rights Reserved.