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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.cluster.ClusterStateTaskConfig
ClusterStateTaskConfig.BasicNested classes/interfaces inherited from interface org.elasticsearch.cluster.ClusterStateTaskExecutor
ClusterStateTaskExecutor.ClusterTasksResult<T>, ClusterStateTaskExecutor.TaskResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclusterStateProcessed(String source, ClusterState oldState, ClusterState newState)Called when the result of theClusterStateTaskExecutor.execute(ClusterState, List)have been processed properly by all listeners.execute(ClusterState currentState)Update the cluster state based on the current state.voidA callback for when task execution fails.Methods inherited from class org.elasticsearch.cluster.ClusterStateUpdateTask
clusterStatePublished, describeTasks, execute, priority, runOnlyOnMaster, timeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.cluster.ClusterStateTaskListener
onNoLongerMaster
-
Constructor Details
-
SystemIndexMetadataUpdateTask
public SystemIndexMetadataUpdateTask()
-
-
Method Details
-
execute
Description copied from class:ClusterStateUpdateTaskUpdate the cluster state based on the current state. Return the *same instance* if no state should be changed.- Specified by:
executein classClusterStateUpdateTask- Throws:
Exception
-
onFailure
Description copied from class:ClusterStateUpdateTaskA callback for when task execution fails. Implementations of this callback should not throw exceptions: an exception thrown here is logged by the master service atERRORlevel 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:
onFailurein interfaceClusterStateTaskListener- Specified by:
onFailurein classClusterStateUpdateTask
-
clusterStateProcessed
Description copied from interface:ClusterStateTaskListenerCalled when the result of theClusterStateTaskExecutor.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 atERRORlevel 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.
-