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,
IndexLifecycleManager indexLifecycleManager,
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 |
hasPendingReindexOperations()
Returns true is any other node has completed full reindex or project reindex and this node has not consumed this
replicated operation yet (i.e.
|
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, IndexLifecycleManager indexLifecycleManager, FailedReplicationOperationService failedReplicationOperationService, com.atlassian.event.api.EventPublisher eventPublisher)
public void shutDown()
NodeReindexService
shutDown
in interface NodeReindexService
public void start()
start
in interface NodeReindexService
public void pause()
NodeReindexService
NodeReindexService.start()
pause
in interface NodeReindexService
public boolean isPaused()
isPaused
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 boolean hasPendingReindexOperations()
NodeReindexService
hasPendingReindexOperations
in interface NodeReindexService
public Map totalStats()
totalStats
in interface NodeReindexService
Copyright © 2002-2023 Atlassian. All Rights Reserved.