Module org.elasticsearch.xcore
Package org.elasticsearch.xpack.core.ilm
Class WaitUntilTimeSeriesEndTimePassesStep
java.lang.Object
org.elasticsearch.xpack.core.ilm.Step
org.elasticsearch.xpack.core.ilm.AsyncWaitStep
org.elasticsearch.xpack.core.ilm.WaitUntilTimeSeriesEndTimePassesStep
This
Step waits until the IndexSettings.TIME_SERIES_END_TIME passes for time series indices.
For regular indices this step doesn't wait at all and the condition is evaluated to true immediately.
Note that this step doesn't execute an async/transport action and is able to evaluate its condition based on the local information
available however, we want this step to be executed periodically using the `AsyncWaitStep` infrastructure.
The condition will be evaluated every LifecycleSettings.LIFECYCLE_POLL_INTERVAL.
-
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 -
Constructor Summary
ConstructorsConstructorDescriptionWaitUntilTimeSeriesEndTimePassesStep(Step.StepKey key, Step.StepKey nextStepKey, Supplier<Instant> nowSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoidevaluateCondition(Metadata metadata, IndexMetadata indexMetadata, AsyncWaitStep.Listener listener, org.elasticsearch.core.TimeValue masterTimeout) 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
equals, getCurrentStepKey, getKey, getNextStepKey, hashCode, toString
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
WaitUntilTimeSeriesEndTimePassesStep
public WaitUntilTimeSeriesEndTimePassesStep(Step.StepKey key, Step.StepKey nextStepKey, Supplier<Instant> nowSupplier)
-
-
Method Details
-
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
-
evaluateCondition
public void evaluateCondition(Metadata metadata, IndexMetadata indexMetadata, AsyncWaitStep.Listener listener, org.elasticsearch.core.TimeValue masterTimeout) - Specified by:
evaluateConditionin classAsyncWaitStep
-