Module org.elasticsearch.xcore
Package org.elasticsearch.xpack.core.ilm
Class GenerateUniqueIndexNameStep
java.lang.Object
org.elasticsearch.xpack.core.ilm.Step
org.elasticsearch.xpack.core.ilm.ClusterStateActionStep
org.elasticsearch.xpack.core.ilm.GenerateUniqueIndexNameStep
Generates a unique index name prefixing the original index name with the configured
prefix, concatenated with a random UUID. The generated index name will be stored in the lifecycle
execution state in the field designated by the configured setter method
lifecycleStateSetter
The generated name will be in the format {prefix-randomUUID-indexName}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.core.ilm.Step
Step.StepKey -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGenerateUniqueIndexNameStep(Step.StepKey key, Step.StepKey nextStepKey, String prefix, BiFunction<String, LifecycleExecutionState.Builder, LifecycleExecutionState.Builder> lifecycleStateSetter) -
Method Summary
Modifier and TypeMethodDescriptionbooleangenerateIndexName(String prefix, String indexName) inthashCode()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.ClusterStateActionStep
indexForAsyncInvocationMethods inherited from class org.elasticsearch.xpack.core.ilm.Step
getCurrentStepKey, getKey, getNextStepKey, toString
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
GenerateUniqueIndexNameStep
public GenerateUniqueIndexNameStep(Step.StepKey key, Step.StepKey nextStepKey, String prefix, BiFunction<String, LifecycleExecutionState.Builder, LifecycleExecutionState.Builder> lifecycleStateSetter)
-
-
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
-
performAction
- Specified by:
performActionin classClusterStateActionStep
-
equals
-
hashCode
public int hashCode() -
generateIndexName
-