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 NodeReindexServicepublic void start()
start in interface NodeReindexServicepublic void pause()
NodeReindexServicepause in interface NodeReindexServicepublic void restart()
restart in interface NodeReindexServicepublic void resetIndexCount()
NodeReindexServiceIt would normally be done immediately following a pause() of the service.
resetIndexCount in interface NodeReindexServicepublic boolean canIndexBeRebuilt()
NodeReindexServicecanIndexBeRebuilt in interface NodeReindexServicepublic void replayLocalOperations()
NodeReindexServicereplayLocalOperations in interface NodeReindexServiceCopyright © 2002-2018 Atlassian. All Rights Reserved.