Interface NodeReindexService

All Known Implementing Classes:
DefaultNodeReindexService, NoOpNodeReindexService, ZDUAwareNodeReindexService

public interface NodeReindexService
Reindex service that runs to check if other nodes have made index changes
Since:
v6.1
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the index on the invoking node can be rebuilt from the information contained in the ReplicatedIndexOperationStore.
    boolean
    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.
    boolean
     
    void
    Pause the service.
    void
    Reset the index count to the last entry in the NodeIndexOperation table for each node.
    void
    shuts down this service - this must be the last operation performed on this service;
    void
     
     
  • Method Details

    • start

      void start()
    • pause

      void pause()
      Pause the service. This will wait for any current execution of the service polling to finish. Can be restarted with start()
    • isPaused

      boolean isPaused()
    • 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
    • hasPendingReindexOperations

      boolean hasPendingReindexOperations()
      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).
      Returns:
      true if there's a pending reindex operation to be consumed
    • 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. 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.

    • shutDown

      void shutDown()
      shuts down this service - this must be the last operation performed on this service;
    • totalStats

      Map totalStats()