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 previousStepInfo, String phaseDefinition, Long lifecycleDate, Long phaseTime, Long actionTime, Long stepTime, String snapshotRepository, String snapshotName, String shrinkIndexName, String snapshotIndexName, String downsampleIndexName)
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 previousStepInfo, String phaseDefinition, Long lifecycleDate, Long phaseTime, Long actionTime, Long stepTime, String snapshotRepository, String snapshotName, String shrinkIndexName, String snapshotIndexName, String downsampleIndexName) Creates an instance of aLifecycleExecutionState
record class. -
Method Summary
Modifier and TypeMethodDescriptionaction()
Returns the value of theaction
record component.Returns the value of theactionTime
record component.asMap()
Converts this object to an immutable map representation for use withIndexMetadata.Builder.putCustom(String, Map)
.builder()
builder
(LifecycleExecutionState state) Returns the value of thedownsampleIndexName
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefailedStep
record component.Returns the value of thefailedStepRetryCount
record component.static LifecycleExecutionState
fromCustomMetadata
(Map<String, String> customData) final int
hashCode()
Returns a hash code value for this object.Returns the value of theisAutoRetryableError
record component.Returns the value of thelifecycleDate
record component.phase()
Returns the value of thephase
record component.Returns the value of thephaseDefinition
record component.Returns the value of thephaseTime
record component.Returns the value of thepreviousStepInfo
record component.Returns the value of theshrinkIndexName
record component.Returns the value of thesnapshotIndexName
record component.Returns the value of thesnapshotName
record component.Returns the value of thesnapshotRepository
record component.step()
Returns the value of thestep
record component.stepInfo()
Returns the value of thestepInfo
record component.stepTime()
Returns the value of thestepTime
record component.final String
toString()
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 previousStepInfo, String phaseDefinition, Long lifecycleDate, Long phaseTime, Long actionTime, Long stepTime, String snapshotRepository, String snapshotName, String shrinkIndexName, String snapshotIndexName, String downsampleIndexName) Creates an instance of aLifecycleExecutionState
record class.- Parameters:
phase
- the value for thephase
record componentaction
- the value for theaction
record componentstep
- the value for thestep
record componentfailedStep
- the value for thefailedStep
record componentisAutoRetryableError
- the value for theisAutoRetryableError
record componentfailedStepRetryCount
- the value for thefailedStepRetryCount
record componentstepInfo
- the value for thestepInfo
record componentpreviousStepInfo
- the value for thepreviousStepInfo
record componentphaseDefinition
- the value for thephaseDefinition
record componentlifecycleDate
- the value for thelifecycleDate
record componentphaseTime
- the value for thephaseTime
record componentactionTime
- the value for theactionTime
record componentstepTime
- the value for thestepTime
record componentsnapshotRepository
- the value for thesnapshotRepository
record componentsnapshotName
- the value for thesnapshotName
record componentshrinkIndexName
- the value for theshrinkIndexName
record componentsnapshotIndexName
- the value for thesnapshotIndexName
record componentdownsampleIndexName
- the value for thedownsampleIndexName
record 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 thephase
record component.- Returns:
- the value of the
phase
record component
-
action
Returns the value of theaction
record component.- Returns:
- the value of the
action
record component
-
step
Returns the value of thestep
record component.- Returns:
- the value of the
step
record component
-
failedStep
Returns the value of thefailedStep
record component.- Returns:
- the value of the
failedStep
record component
-
isAutoRetryableError
Returns the value of theisAutoRetryableError
record component.- Returns:
- the value of the
isAutoRetryableError
record component
-
failedStepRetryCount
Returns the value of thefailedStepRetryCount
record component.- Returns:
- the value of the
failedStepRetryCount
record component
-
stepInfo
Returns the value of thestepInfo
record component.- Returns:
- the value of the
stepInfo
record component
-
previousStepInfo
Returns the value of thepreviousStepInfo
record component.- Returns:
- the value of the
previousStepInfo
record component
-
phaseDefinition
Returns the value of thephaseDefinition
record component.- Returns:
- the value of the
phaseDefinition
record component
-
lifecycleDate
Returns the value of thelifecycleDate
record component.- Returns:
- the value of the
lifecycleDate
record component
-
phaseTime
Returns the value of thephaseTime
record component.- Returns:
- the value of the
phaseTime
record component
-
actionTime
Returns the value of theactionTime
record component.- Returns:
- the value of the
actionTime
record component
-
stepTime
Returns the value of thestepTime
record component.- Returns:
- the value of the
stepTime
record component
-
snapshotRepository
Returns the value of thesnapshotRepository
record component.- Returns:
- the value of the
snapshotRepository
record component
-
snapshotName
Returns the value of thesnapshotName
record component.- Returns:
- the value of the
snapshotName
record component
-
shrinkIndexName
Returns the value of theshrinkIndexName
record component.- Returns:
- the value of the
shrinkIndexName
record component
-
snapshotIndexName
Returns the value of thesnapshotIndexName
record component.- Returns:
- the value of the
snapshotIndexName
record component
-
downsampleIndexName
Returns the value of thedownsampleIndexName
record component.- Returns:
- the value of the
downsampleIndexName
record component
-