Module org.elasticsearch.xcore
Package org.elasticsearch.xpack.core.ilm
Class WaitUntilReplicateForTimePassesStep
java.lang.Object
org.elasticsearch.xpack.core.ilm.Step
org.elasticsearch.xpack.core.ilm.AsyncWaitStep
org.elasticsearch.xpack.core.ilm.WaitUntilReplicateForTimePassesStep
This
Step waits until the `replicate_for` time of a searchable_snapshot action to pass.
It's an AsyncWaitStep rather than a ClusterStateWaitStep because we aren't guaranteed to
receive a new cluster state in timely fashion when the waiting finishes -- by extending AsyncWaitStep
we are guaranteed to check the condition on each ILM execution.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.core.ilm.AsyncWaitStep
AsyncWaitStep.ListenerNested classes/interfaces inherited from class org.elasticsearch.xpack.core.ilm.Step
Step.StepKey -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidevaluateCondition(Metadata metadata, IndexMetadata indexMetadata, AsyncWaitStep.Listener listener, org.elasticsearch.core.TimeValue masterTimeout) org.elasticsearch.core.TimeValueinthashCode()booleanIndicates if the step can be automatically retried when it encounters an execution error.Methods inherited from class org.elasticsearch.xpack.core.ilm.AsyncWaitStep
getClientMethods inherited from class org.elasticsearch.xpack.core.ilm.Step
getCurrentStepKey, getKey, getNextStepKey, toString
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
getReplicateFor
public org.elasticsearch.core.TimeValue getReplicateFor() -
hashCode
public int hashCode() -
equals
-
evaluateCondition
public void evaluateCondition(Metadata metadata, IndexMetadata indexMetadata, AsyncWaitStep.Listener listener, org.elasticsearch.core.TimeValue masterTimeout) - Specified by:
evaluateConditionin classAsyncWaitStep
-
isRetryable
public boolean isRetryable()Description copied from class:StepIndicates if the step can be automatically retried when it encounters an execution error.- Specified by:
isRetryablein classStep
-