com.atlassian.jira.index.ha
Interface NodeReindexService

All Known Implementing Classes:
DefaultNodeReindexService

public interface NodeReindexService

Reindex service that runs to check if other nodes have made index changes

Since:
v6.1

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()
           
 

Method Detail

cancel

void cancel()

start

void start()

pause

void pause()
Pause the service. This will wait for any current execution of the service polling to finish.


restart

void restart()

canIndexBeRebuilt

boolean canIndexBeRebuilt()
Returns 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.

Returns:
true if the index can be rebuilt

resetIndexCount

void resetIndexCount()
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.


replayLocalOperations

void replayLocalOperations()
This will replay any local operations that may have been lost when a index is copied from another node in the cluster



Copyright © 2002-2014 Atlassian. All Rights Reserved.