Package com.atlassian.jira.index.ha
Class NoOpNodeReindexService
java.lang.Object
com.atlassian.jira.index.ha.NoOpNodeReindexService
- All Implemented Interfaces:
NodeReindexService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the index on the invoking node can be rebuilt from the information contained in the ReplicatedIndexOperationStore.booleanReturns true is any other node has completed full reindex or project reindex and this node has not consumed this replicated operation yet (i.e.booleanisPaused()voidpause()Pause the service.voidReset the index count to the last entry in the NodeIndexOperation table for each node.voidshutDown()shuts down this service - this must be the last operation performed on this service;voidstart()
-
Constructor Details
-
NoOpNodeReindexService
public NoOpNodeReindexService()
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceNodeReindexService
-
pause
public void pause()Description copied from interface:NodeReindexServicePause the service. This will wait for any current execution of the service polling to finish. Can be restarted withNodeReindexService.start()- Specified by:
pausein interfaceNodeReindexService
-
isPaused
public boolean isPaused()- Specified by:
isPausedin interfaceNodeReindexService
-
canIndexBeRebuilt
public boolean canIndexBeRebuilt()Description copied from interface:NodeReindexServiceReturns true if the index on the invoking node can be rebuilt from the information contained in the ReplicatedIndexOperationStore. If the ReplicatedIndexOperationStore is empty then it is assumed the index can be rebuilt.- Specified by:
canIndexBeRebuiltin interfaceNodeReindexService- Returns:
- true if the index can be rebuilt
-
hasPendingReindexOperations
public boolean hasPendingReindexOperations()Description copied from interface:NodeReindexServiceReturns true is any other node has completed full reindex or project reindex and this node has not consumed this replicated operation yet (i.e. has not loaded the new index snapshot).- Specified by:
hasPendingReindexOperationsin interfaceNodeReindexService- Returns:
- true if there's a pending reindex operation to be consumed
-
resetIndexCount
public void resetIndexCount()Description copied from interface:NodeReindexServiceReset 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. In effect changes performed on other nodes but not yet replicated to this node will be skipped and not replicated to this node.It would normally be done immediately following a pause() of the service.
- Specified by:
resetIndexCountin interfaceNodeReindexService
-
shutDown
public void shutDown()Description copied from interface:NodeReindexServiceshuts down this service - this must be the last operation performed on this service;- Specified by:
shutDownin interfaceNodeReindexService
-
totalStats
- Specified by:
totalStatsin interfaceNodeReindexService
-