Class SystemIndexMetadataUpgradeService.SystemIndexMetadataUpdateTask

java.lang.Object
org.elasticsearch.cluster.ClusterStateUpdateTask
org.elasticsearch.cluster.metadata.SystemIndexMetadataUpgradeService.SystemIndexMetadataUpdateTask
All Implemented Interfaces:
ClusterStateTaskConfig, ClusterStateTaskExecutor<ClusterStateUpdateTask>, ClusterStateTaskListener
Enclosing class:
SystemIndexMetadataUpgradeService

public class SystemIndexMetadataUpgradeService.SystemIndexMetadataUpdateTask extends ClusterStateUpdateTask
  • Constructor Details

    • SystemIndexMetadataUpdateTask

      public SystemIndexMetadataUpdateTask()
  • Method Details

    • execute

      public ClusterState execute(ClusterState currentState) throws Exception
      Description copied from class: ClusterStateUpdateTask
      Update the cluster state based on the current state. Return the *same instance* if no state should be changed.
      Specified by:
      execute in class ClusterStateUpdateTask
      Throws:
      Exception
    • onFailure

      public void onFailure(String source, Exception e)
      Description copied from class: ClusterStateUpdateTask
      A callback for when task execution fails. Implementations of this callback should not throw exceptions: an exception thrown here is logged by the master service at ERROR level and otherwise ignored. If log-and-ignore is the right behaviour then implementations should do so themselves, typically using a more specific logger and at a less dramatic log level.
      Specified by:
      onFailure in interface ClusterStateTaskListener
      Specified by:
      onFailure in class ClusterStateUpdateTask
    • clusterStateProcessed

      public void clusterStateProcessed(String source, ClusterState oldState, ClusterState newState)
      Description copied from interface: ClusterStateTaskListener
      Called when the result of the ClusterStateTaskExecutor.execute(ClusterState, List) have been processed properly by all listeners. Implementations of this callback should not throw exceptions: an exception thrown here is logged by the master service at ERROR level and otherwise ignored. If log-and-ignore is the right behaviour then implementations should do so themselves, typically using a more specific logger and at a less dramatic log level.