Module org.elasticsearch.xcore
Package org.elasticsearch.xpack.core.ilm
Class CopyExecutionStateStep
java.lang.Object
org.elasticsearch.xpack.core.ilm.Step
org.elasticsearch.xpack.core.ilm.ClusterStateActionStep
org.elasticsearch.xpack.core.ilm.CopyExecutionStateStep
Copies the execution state data from one index to another, typically after a
new index has been created. As part of the execution state copy it will set the target index
"current step" to the provided target next step
Step.StepKey.
Useful for actions such as shrink.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.core.ilm.Step
Step.StepKey -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCopyExecutionStateStep(Step.StepKey key, Step.StepKey nextStepKey, BiFunction<String, LifecycleExecutionState, String> targetIndexNameSupplier, Step.StepKey targetNextStepKey) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()org.elasticsearch.core.Tuple<String, Step.StepKey> Returns a tuple of index name to step key for an index *other* than the index ILM is currently processing.booleanIndicates if the step can be automatically retried when it encounters an execution error.performAction(Index index, ProjectState projectState) Methods inherited from class org.elasticsearch.xpack.core.ilm.Step
getCurrentStepKey, getKey, getNextStepKey, toString
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
CopyExecutionStateStep
public CopyExecutionStateStep(Step.StepKey key, Step.StepKey nextStepKey, BiFunction<String, LifecycleExecutionState, String> targetIndexNameSupplier, Step.StepKey targetNextStepKey)
-
-
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
-
indexForAsyncInvocation
Description copied from class:ClusterStateActionStepReturns a tuple of index name to step key for an index *other* than the index ILM is currently processing. This is used when a new index is spawned by ILM and its initial action needs to be to invoked in the event that it is anAsyncActionStep.- Overrides:
indexForAsyncInvocationin classClusterStateActionStep
-
performAction
- Specified by:
performActionin classClusterStateActionStep
-
equals
-
hashCode
public int hashCode()
-