|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.index.ha.DefaultNodeReindexService
public class DefaultNodeReindexService
Runs periodically and reindexes issues that have been indexed in other nodes
Field Summary | |
---|---|
static String |
ISSUE_ENTITY
|
static String |
TASK_NAME
|
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)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ISSUE_ENTITY
public static final String TASK_NAME
Constructor Detail |
---|
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)
Method Detail |
---|
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
resetIndexCount
in interface NodeReindexService
public boolean canIndexBeRebuilt()
NodeReindexService
canIndexBeRebuilt
in interface NodeReindexService
public void replayLocalOperations()
NodeReindexService
replayLocalOperations
in interface NodeReindexService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |