Module org.elasticsearch.xcore
Package org.elasticsearch.xpack.core.ilm
Class IndexLifecycleMetadata
java.lang.Object
org.elasticsearch.xpack.core.ilm.IndexLifecycleMetadata
- All Implemented Interfaces:
Diffable<Metadata.ProjectCustom>,Metadata.MetadataCustom<Metadata.ProjectCustom>,Metadata.ProjectCustom,NamedDiffable<Metadata.ProjectCustom>,NamedWriteable,VersionedNamedWriteable,Writeable,ChunkedToXContent
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IndexLifecycleMetadatastatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ConstructingObjectParser<IndexLifecycleMetadata, Void> static final org.elasticsearch.xcontent.ParseFieldstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionIndexLifecycleMetadata(Map<String, LifecyclePolicyMetadata> policies, OperationMode operationMode) -
Method Summary
Modifier and TypeMethodDescriptioncontext()diff(Metadata.ProjectCustom previousState) booleanDeprecated.inthashCode()toString()Iterator<? extends org.elasticsearch.xcontent.ToXContent> toXContentChunked(org.elasticsearch.xcontent.ToXContent.Params ignored) 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, toXContentChunked, toXContentChunkedV8Methods inherited from interface org.elasticsearch.cluster.metadata.Metadata.MetadataCustom
isRestorableMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
supportsVersion
-
Field Details
-
TYPE
- See Also:
-
OPERATION_MODE_FIELD
public static final org.elasticsearch.xcontent.ParseField OPERATION_MODE_FIELD -
POLICIES_FIELD
public static final org.elasticsearch.xcontent.ParseField POLICIES_FIELD -
EMPTY
-
PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<IndexLifecycleMetadata,Void> PARSER
-
-
Constructor Details
-
IndexLifecycleMetadata
public IndexLifecycleMetadata(Map<String, LifecyclePolicyMetadata> policies, OperationMode operationMode) -
IndexLifecycleMetadata
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getPolicyMetadatas
-
getOperationMode
Deprecated.useLifecycleOperationMetadata.getILMOperationMode()instead. This may be incorrect. -
getPolicies
-
diff
- Specified by:
diffin interfaceDiffable<Metadata.ProjectCustom>
-
toXContentChunked
public Iterator<? extends org.elasticsearch.xcontent.ToXContent> toXContentChunked(org.elasticsearch.xcontent.ToXContent.Params ignored) - Specified by:
toXContentChunkedin interfaceChunkedToXContent
-
getMinimalSupportedVersion
- Specified by:
getMinimalSupportedVersionin interfaceVersionedNamedWriteable
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable- Specified by:
getWriteableNamein interfaceVersionedNamedWriteable
-
context
- Specified by:
contextin interfaceMetadata.MetadataCustom<Metadata.ProjectCustom>
-
hashCode
public int hashCode() -
equals
-
toString
-
LifecycleOperationMetadata.getILMOperationMode()instead.