Module org.elasticsearch.xcore
Package org.elasticsearch.xpack.core.ilm
Class WaitForRolloverReadyStep
java.lang.Object
org.elasticsearch.xpack.core.ilm.Step
org.elasticsearch.xpack.core.ilm.AsyncWaitStep
org.elasticsearch.xpack.core.ilm.WaitForRolloverReadyStep
Waits for at least one rollover condition to be satisfied, using the Rollover API's dry_run option.
-
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
ConstructorsConstructorDescriptionWaitForRolloverReadyStep(Step.StepKey key, Step.StepKey nextStepKey, Client client, RolloverConditions conditions) WaitForRolloverReadyStep(Step.StepKey key, Step.StepKey nextStepKey, Client client, ByteSizeValue maxSize, ByteSizeValue maxPrimaryShardSize, org.elasticsearch.core.TimeValue maxAge, Long maxDocs, Long maxPrimaryShardDocs, ByteSizeValue minSize, ByteSizeValue minPrimaryShardSize, org.elasticsearch.core.TimeValue minAge, Long minDocs, Long minPrimaryShardDocs) -
Method Summary
Modifier and TypeMethodDescriptionstatic RolloverConditionsapplyDefaultConditions(RolloverConditions conditions, boolean rolloverOnlyIfHasDocuments) Apply default conditions to the set of user-defined conditions.booleanvoidevaluateCondition(Metadata metadata, Index index, AsyncWaitStep.Listener listener, org.elasticsearch.core.TimeValue masterTimeout) inthashCode()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
getCurrentStepKey, getKey, getNextStepKey, toString
-
Field Details
-
NAME
- See Also:
-
MAX_PRIMARY_SHARD_DOCS
public static final long MAX_PRIMARY_SHARD_DOCS- See Also:
-
-
Constructor Details
-
WaitForRolloverReadyStep
public WaitForRolloverReadyStep(Step.StepKey key, Step.StepKey nextStepKey, Client client, ByteSizeValue maxSize, ByteSizeValue maxPrimaryShardSize, org.elasticsearch.core.TimeValue maxAge, Long maxDocs, Long maxPrimaryShardDocs, ByteSizeValue minSize, ByteSizeValue minPrimaryShardSize, org.elasticsearch.core.TimeValue minAge, Long minDocs, Long minPrimaryShardDocs) -
WaitForRolloverReadyStep
public WaitForRolloverReadyStep(Step.StepKey key, Step.StepKey nextStepKey, Client client, RolloverConditions conditions)
-
-
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, Index index, AsyncWaitStep.Listener listener, org.elasticsearch.core.TimeValue masterTimeout) - Specified by:
evaluateConditionin classAsyncWaitStep
-
applyDefaultConditions
public static RolloverConditions applyDefaultConditions(RolloverConditions conditions, boolean rolloverOnlyIfHasDocuments) Apply default conditions to the set of user-defined conditions.- Parameters:
conditions- the existing conditionsrolloverOnlyIfHasDocuments- whether to inject a min_docs 1 condition if there is not already a min_docs (or min_primary_shard_docs) condition- Returns:
- the rollover conditions with the default conditions applied.
-
getConditions
-
hashCode
public int hashCode() -
equals
-