com.atlassian.jira.index.ha
Class DefaultNodeReindexService
java.lang.Object
com.atlassian.jira.index.ha.DefaultNodeReindexService
- All Implemented Interfaces:
- NodeReindexService
public class DefaultNodeReindexService
- extends Object
- implements NodeReindexService
Runs periodically and reindexes issues that have been indexed in other nodes
- Since:
- v6.1
Constructor Summary |
DefaultNodeReindexService(ClusterManager clusterManager,
OfBizNodeIndexCounterStore ofBizNodeIndexCounterStore,
OfBizReplicatedIndexOperationStore ofBizNodeIndexOperationStore,
IssueIndexManager indexManager,
SharedEntityIndexer sharedEntityIndexer,
ProjectManager projectManager,
ProjectReindexService projectReindexService,
IssueManager issueManager,
CommentManager commentManager,
OfBizDelegator ofBizDelegator,
SharedEntityResolver sharedEntityResolver,
TaskManager taskManager,
I18nHelper i18nHelper)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ISSUE_ENTITY
public static final String ISSUE_ENTITY
- See Also:
- Constant Field Values
TASK_NAME
public static final String TASK_NAME
- See Also:
- Constant Field Values
DefaultNodeReindexService
public DefaultNodeReindexService(ClusterManager clusterManager,
OfBizNodeIndexCounterStore ofBizNodeIndexCounterStore,
OfBizReplicatedIndexOperationStore ofBizNodeIndexOperationStore,
IssueIndexManager indexManager,
SharedEntityIndexer sharedEntityIndexer,
ProjectManager projectManager,
ProjectReindexService projectReindexService,
IssueManager issueManager,
CommentManager commentManager,
OfBizDelegator ofBizDelegator,
SharedEntityResolver sharedEntityResolver,
TaskManager taskManager,
I18nHelper i18nHelper)
cancel
public void cancel()
- Specified by:
cancel
in interface NodeReindexService
start
public void start()
- Specified by:
start
in interface NodeReindexService
pause
public void pause()
- Description copied from interface:
NodeReindexService
- Pause the service.
This will wait for any current execution of the service polling to finish.
- Specified by:
pause
in interface NodeReindexService
restart
public void restart()
- Specified by:
restart
in interface NodeReindexService
resetIndexCount
public void resetIndexCount()
- Description copied from interface:
NodeReindexService
- Reset the index count to the last entry in the NodeIndexOperation table for each node.
This is done to mark the current state before getting a new index copy or performing a full reindex.
It would normally be done immediately following a pause() of the service.
- Specified by:
resetIndexCount
in interface NodeReindexService
canIndexBeRebuilt
public boolean canIndexBeRebuilt()
- Specified by:
canIndexBeRebuilt
in interface NodeReindexService
replayLocalOperations
public void replayLocalOperations()
- Description copied from interface:
NodeReindexService
- This will replay any local operations that may have been lost when a index is copied from another node in the cluster
- Specified by:
replayLocalOperations
in interface NodeReindexService
Copyright © 2002-2014 Atlassian. All Rights Reserved.