java.lang.Object
org.elasticsearch.xpack.core.ilm.Step
org.elasticsearch.xpack.core.ilm.AsyncActionStep
org.elasticsearch.xpack.core.ilm.ResizeIndexStep
Resizes an index with the specified settings, using the name that was generated in a previous
GenerateUniqueIndexNameStep step.-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.core.ilm.Step
Step.StepKey -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResizeIndexStep(Step.StepKey key, Step.StepKey nextStepKey, Client client, ResizeType resizeType, BiFunction<String, LifecycleExecutionState, String> targetIndexNameSupplier, Function<IndexMetadata, Settings> targetIndexSettingsSupplier, ByteSizeValue maxPrimaryShardSize) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanIndicates if the step can be automatically retried when it encounters an execution error.voidperformAction(IndexMetadata indexMetadata, ProjectState currentState, 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
getCurrentStepKey, getKey, getNextStepKey, toString
-
Field Details
-
SHRINK
- See Also:
-
CLONE
- See Also:
-
-
Constructor Details
-
ResizeIndexStep
public ResizeIndexStep(Step.StepKey key, Step.StepKey nextStepKey, Client client, ResizeType resizeType, BiFunction<String, LifecycleExecutionState, String> targetIndexNameSupplier, Function<IndexMetadata, Settings> targetIndexSettingsSupplier, @Nullable ByteSizeValue maxPrimaryShardSize)
-
-
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
public void performAction(IndexMetadata indexMetadata, ProjectState currentState, ClusterStateObserver observer, ActionListener<Void> listener) - Specified by:
performActionin classAsyncActionStep
-
getResizeType
-
getTargetIndexNameSupplier
-
getTargetIndexSettingsSupplier
-
getMaxPrimaryShardSize
-
hashCode
public int hashCode() -
equals
-