Module org.elasticsearch.xcore
Package org.elasticsearch.xpack.core.ilm
Class AsyncRetryDuringSnapshotActionStep
java.lang.Object
org.elasticsearch.xpack.core.ilm.Step
org.elasticsearch.xpack.core.ilm.AsyncActionStep
org.elasticsearch.xpack.core.ilm.AsyncRetryDuringSnapshotActionStep
- Direct Known Subclasses:
CleanupShrinkIndexStep,CleanupSnapshotStep,CleanupTargetIndexStep,CreateSnapshotStep,DeleteStep,FreezeStep,MountSnapshotStep,ShrinkSetAliasStep
This is an abstract AsyncActionStep that wraps the performed action listener, checking to see
if the action fails due to a snapshot being in progress. If a snapshot is in progress, it
registers an observer and waits to try again when a snapshot is no longer running.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.core.ilm.Step
Step.StepKey -
Constructor Summary
ConstructorsConstructorDescriptionAsyncRetryDuringSnapshotActionStep(Step.StepKey key, Step.StepKey nextStepKey, Client client) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidperformAction(IndexMetadata indexMetadata, ClusterState currentClusterState, ClusterStateObserver observer, ActionListener<Void> listener) Methods inherited from class org.elasticsearch.xpack.core.ilm.AsyncActionStep
getClient, indexSurvivesMethods inherited from class org.elasticsearch.xpack.core.ilm.Step
equals, getCurrentStepKey, getKey, getNextStepKey, hashCode, isRetryable, toString
-
Constructor Details
-
AsyncRetryDuringSnapshotActionStep
public AsyncRetryDuringSnapshotActionStep(Step.StepKey key, Step.StepKey nextStepKey, Client client)
-
-
Method Details
-
performAction
public final void performAction(IndexMetadata indexMetadata, ClusterState currentClusterState, ClusterStateObserver observer, ActionListener<Void> listener) - Specified by:
performActionin classAsyncActionStep
-