Module org.elasticsearch.xcore
Package org.elasticsearch.xpack.core.slm
Class SnapshotLifecycleMetadata
java.lang.Object
org.elasticsearch.xpack.core.slm.SnapshotLifecycleMetadata
- All Implemented Interfaces:
Diffable<Metadata.Custom>,Metadata.Custom,NamedDiffable<Metadata.Custom>,NamedWriteable,VersionedNamedWriteable,Writeable,ChunkedToXContent
Custom cluster state metadata that stores all the snapshot lifecycle
policies and their associated metadata
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SnapshotLifecycleMetadatastatic final org.elasticsearch.xcontent.ConstructingObjectParser<SnapshotLifecycleMetadata, Void> static final String -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotLifecycleMetadata(Map<String, SnapshotLifecyclePolicyMetadata> snapshotConfigurations, OperationMode operationMode, SnapshotLifecycleStats slmStats) -
Method Summary
Modifier and TypeMethodDescriptioncontext()diff(Metadata.Custom previousState) booleanDeprecated.getStats()inthashCode()toString()Iterator<? extends org.elasticsearch.xcontent.ToXContent> toXContentChunked(org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
isFragment, toXContentChunkedV7Methods inherited from interface org.elasticsearch.cluster.metadata.Metadata.Custom
isRestorable
-
Field Details
-
TYPE
- See Also:
-
EMPTY
-
PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<SnapshotLifecycleMetadata,Void> PARSER
-
-
Constructor Details
-
SnapshotLifecycleMetadata
public SnapshotLifecycleMetadata(Map<String, SnapshotLifecyclePolicyMetadata> snapshotConfigurations, OperationMode operationMode, SnapshotLifecycleStats slmStats) -
SnapshotLifecycleMetadata
- Throws:
IOException
-
-
Method Details
-
getSnapshotConfigurations
-
getOperationMode
Deprecated.useLifecycleOperationMetadata.getSLMOperationMode()instead. This may be incorrect. -
getStats
-
context
- Specified by:
contextin interfaceMetadata.Custom
-
diff
- Specified by:
diffin interfaceDiffable<Metadata.Custom>
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable- Specified by:
getWriteableNamein interfaceVersionedNamedWriteable
-
getMinimalSupportedVersion
- Specified by:
getMinimalSupportedVersionin interfaceVersionedNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContentChunked
public Iterator<? extends org.elasticsearch.xcontent.ToXContent> toXContentChunked(org.elasticsearch.xcontent.ToXContent.Params params) - Specified by:
toXContentChunkedin interfaceChunkedToXContent
-
toString
-
hashCode
public int hashCode() -
equals
-
LifecycleOperationMetadata.getSLMOperationMode()instead.