Module org.elasticsearch.server
Record Class LifecycleExecutionState
java.lang.Object
java.lang.Record
org.elasticsearch.cluster.metadata.LifecycleExecutionState
public record LifecycleExecutionState(String phase, String action, String step, String failedStep, Boolean isAutoRetryableError, Integer failedStepRetryCount, String stepInfo, String phaseDefinition, Long lifecycleDate, Long phaseTime, Long actionTime, Long stepTime, String snapshotRepository, String snapshotName, String shrinkIndexName, String snapshotIndexName, String rollupIndexName)
extends Record
Contains information about the execution of a lifecycle policy for a single
index, and serializes/deserializes this information to and from custom
index metadata.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLifecycleExecutionState(String phase, String action, String step, String failedStep, Boolean isAutoRetryableError, Integer failedStepRetryCount, String stepInfo, String phaseDefinition, Long lifecycleDate, Long phaseTime, Long actionTime, Long stepTime, String snapshotRepository, String snapshotName, String shrinkIndexName, String snapshotIndexName, String rollupIndexName) Creates an instance of aLifecycleExecutionStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.Returns the value of theactionTimerecord component.asMap()Converts this object to an immutable map representation for use withIndexMetadata.Builder.putCustom(String, Map).builder()builder(LifecycleExecutionState state) final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailedSteprecord component.Returns the value of thefailedStepRetryCountrecord component.static LifecycleExecutionStatefromCustomMetadata(Map<String, String> customData) final inthashCode()Returns a hash code value for this object.Returns the value of theisAutoRetryableErrorrecord component.Returns the value of thelifecycleDaterecord component.phase()Returns the value of thephaserecord component.Returns the value of thephaseDefinitionrecord component.Returns the value of thephaseTimerecord component.Returns the value of therollupIndexNamerecord component.Returns the value of theshrinkIndexNamerecord component.Returns the value of thesnapshotIndexNamerecord component.Returns the value of thesnapshotNamerecord component.Returns the value of thesnapshotRepositoryrecord component.step()Returns the value of thesteprecord component.stepInfo()Returns the value of thestepInforecord component.stepTime()Returns the value of thestepTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ILM_CUSTOM_METADATA_KEY
- See Also:
-
EMPTY_STATE
-
-
Constructor Details
-
LifecycleExecutionState
public LifecycleExecutionState(String phase, String action, String step, String failedStep, Boolean isAutoRetryableError, Integer failedStepRetryCount, String stepInfo, String phaseDefinition, Long lifecycleDate, Long phaseTime, Long actionTime, Long stepTime, String snapshotRepository, String snapshotName, String shrinkIndexName, String snapshotIndexName, String rollupIndexName) Creates an instance of aLifecycleExecutionStaterecord class.- Parameters:
phase- the value for thephaserecord componentaction- the value for theactionrecord componentstep- the value for thesteprecord componentfailedStep- the value for thefailedSteprecord componentisAutoRetryableError- the value for theisAutoRetryableErrorrecord componentfailedStepRetryCount- the value for thefailedStepRetryCountrecord componentstepInfo- the value for thestepInforecord componentphaseDefinition- the value for thephaseDefinitionrecord componentlifecycleDate- the value for thelifecycleDaterecord componentphaseTime- the value for thephaseTimerecord componentactionTime- the value for theactionTimerecord componentstepTime- the value for thestepTimerecord componentsnapshotRepository- the value for thesnapshotRepositoryrecord componentsnapshotName- the value for thesnapshotNamerecord componentshrinkIndexName- the value for theshrinkIndexNamerecord componentsnapshotIndexName- the value for thesnapshotIndexNamerecord componentrollupIndexName- the value for therollupIndexNamerecord component
-
-
Method Details
-
builder
-
builder
-
fromCustomMetadata
-
asMap
Converts this object to an immutable map representation for use withIndexMetadata.Builder.putCustom(String, Map).- Returns:
- An immutable Map representation of this execution state.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
phase
Returns the value of thephaserecord component.- Returns:
- the value of the
phaserecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
step
Returns the value of thesteprecord component.- Returns:
- the value of the
steprecord component
-
failedStep
Returns the value of thefailedSteprecord component.- Returns:
- the value of the
failedSteprecord component
-
isAutoRetryableError
Returns the value of theisAutoRetryableErrorrecord component.- Returns:
- the value of the
isAutoRetryableErrorrecord component
-
failedStepRetryCount
Returns the value of thefailedStepRetryCountrecord component.- Returns:
- the value of the
failedStepRetryCountrecord component
-
stepInfo
Returns the value of thestepInforecord component.- Returns:
- the value of the
stepInforecord component
-
phaseDefinition
Returns the value of thephaseDefinitionrecord component.- Returns:
- the value of the
phaseDefinitionrecord component
-
lifecycleDate
Returns the value of thelifecycleDaterecord component.- Returns:
- the value of the
lifecycleDaterecord component
-
phaseTime
Returns the value of thephaseTimerecord component.- Returns:
- the value of the
phaseTimerecord component
-
actionTime
Returns the value of theactionTimerecord component.- Returns:
- the value of the
actionTimerecord component
-
stepTime
Returns the value of thestepTimerecord component.- Returns:
- the value of the
stepTimerecord component
-
snapshotRepository
Returns the value of thesnapshotRepositoryrecord component.- Returns:
- the value of the
snapshotRepositoryrecord component
-
snapshotName
Returns the value of thesnapshotNamerecord component.- Returns:
- the value of the
snapshotNamerecord component
-
shrinkIndexName
Returns the value of theshrinkIndexNamerecord component.- Returns:
- the value of the
shrinkIndexNamerecord component
-
snapshotIndexName
Returns the value of thesnapshotIndexNamerecord component.- Returns:
- the value of the
snapshotIndexNamerecord component
-
rollupIndexName
Returns the value of therollupIndexNamerecord component.- Returns:
- the value of the
rollupIndexNamerecord component
-