public interface

NodeReindexService

com.atlassian.jira.index.ha.NodeReindexService
Known Indirect Subclasses

Class Overview

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

Summary

Public Methods
boolean canIndexBeRebuilt()
Returns true if the index on the invoking node can be rebuilt from the information contained in the ReplicatedIndexOperationStore.
void cancel()
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()

Public Methods

public 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

public void cancel ()

public void pause ()

Pause the service. This will wait for any current execution of the service polling to finish.

public void replayLocalOperations ()

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

public 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.

public void restart ()

public void start ()