public class DefaultNodeReindexService extends Object implements NodeReindexService
| Modifier and Type | Field and Description |
|---|---|
static int |
PERIOD_SEC |
static String |
PREFIX |
| Constructor and Description |
|---|
DefaultNodeReindexService(ClusterManager clusterManager,
NodeIndexCounterStore nodeIndexCounterStore,
OfBizReplicatedIndexOperationStore ofBizNodeIndexOperationStore,
IssueIndexManager indexManager,
SharedEntityIndexer sharedEntityIndexer,
ProjectManager projectManager,
ProjectReindexService projectReindexService,
IssueManager issueManager,
CommentManager commentManager,
WorklogManager worklogManager,
SharedEntityResolver sharedEntityResolver,
IndexCopyService indexCopyService,
IssueIndexingService indexingService,
InternalIndexingService internalIndexingService,
FailedReplicationOperationService failedReplicationOperationService,
com.atlassian.event.api.EventPublisher eventPublisher) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canIndexBeRebuilt()
Returns true if the index on the invoking node can be rebuilt from the information contained in the
ReplicatedIndexOperationStore.
|
boolean |
isPaused() |
void |
pause()
Pause the service.
|
void |
resetIndexCount()
Reset the index count to the last entry in the NodeIndexOperation table for each node.
|
void |
shutDown()
shuts down this service - this must be the last operation performed on this service;
|
void |
start() |
Map |
totalStats() |
public static final String PREFIX
public static final int PERIOD_SEC
public DefaultNodeReindexService(ClusterManager clusterManager, NodeIndexCounterStore nodeIndexCounterStore, OfBizReplicatedIndexOperationStore ofBizNodeIndexOperationStore, IssueIndexManager indexManager, SharedEntityIndexer sharedEntityIndexer, ProjectManager projectManager, ProjectReindexService projectReindexService, IssueManager issueManager, CommentManager commentManager, WorklogManager worklogManager, SharedEntityResolver sharedEntityResolver, IndexCopyService indexCopyService, IssueIndexingService indexingService, InternalIndexingService internalIndexingService, FailedReplicationOperationService failedReplicationOperationService, com.atlassian.event.api.EventPublisher eventPublisher)
public void shutDown()
NodeReindexServiceshutDown in interface NodeReindexServicepublic void start()
start in interface NodeReindexServicepublic void pause()
NodeReindexServiceNodeReindexService.start()pause in interface NodeReindexServicepublic boolean isPaused()
isPaused 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 Map totalStats()
totalStats in interface NodeReindexServiceCopyright © 2002-2022 Atlassian. All Rights Reserved.