java.lang.Object
org.elasticsearch.xpack.core.ilm.Step
org.elasticsearch.xpack.core.ilm.AsyncActionStep
org.elasticsearch.xpack.core.ilm.ReadOnlyStep
Marks an index as read-only, by setting a
IndexMetadata.APIBlock.WRITE block on the index.-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.core.ilm.Step
Step.StepKey -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReadOnlyStep(Step.StepKey key, Step.StepKey nextStepKey, Client client, boolean markVerified) -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates if the step can be automatically retried when it encounters an execution error.voidperformAction(IndexMetadata indexMetadata, ClusterState 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
equals, getCurrentStepKey, getKey, getNextStepKey, hashCode, toString
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
ReadOnlyStep
public ReadOnlyStep(Step.StepKey key, Step.StepKey nextStepKey, Client client, boolean markVerified) - Parameters:
markVerified- whether the index should be marked verified after becoming read-only, ensuring that N-2 is supported without manual intervention. Should be set to true when the read-only block is not temporary.
-
-
Method Details
-
performAction
public void performAction(IndexMetadata indexMetadata, ClusterState currentState, ClusterStateObserver observer, ActionListener<Void> listener) - Specified by:
performActionin classAsyncActionStep
-
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
-