Class NoOpNodeReindexService

java.lang.Object
com.atlassian.jira.index.ha.NoOpNodeReindexService
All Implemented Interfaces:
NodeReindexService

public class NoOpNodeReindexService extends Object implements NodeReindexService
  • Constructor Details

    • NoOpNodeReindexService

      public NoOpNodeReindexService()
  • Method Details

    • 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. Can be restarted with NodeReindexService.start()
      Specified by:
      pause in interface NodeReindexService
    • isPaused

      public boolean isPaused()
      Specified by:
      isPaused in interface NodeReindexService
    • canIndexBeRebuilt

      public boolean canIndexBeRebuilt()
      Description copied from interface: NodeReindexService
      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.
      Specified by:
      canIndexBeRebuilt in interface NodeReindexService
      Returns:
      true if the index can be rebuilt
    • hasPendingReindexOperations

      public boolean hasPendingReindexOperations()
      Description copied from interface: NodeReindexService
      Returns 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:
      hasPendingReindexOperations in interface NodeReindexService
      Returns:
      true if there's a pending reindex operation to be consumed
    • 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. 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:
      resetIndexCount in interface NodeReindexService
    • shutDown

      public void shutDown()
      Description copied from interface: NodeReindexService
      shuts down this service - this must be the last operation performed on this service;
      Specified by:
      shutDown in interface NodeReindexService
    • totalStats

      public Map totalStats()
      Specified by:
      totalStats in interface NodeReindexService