Module org.elasticsearch.xcore
Package org.elasticsearch.xpack.core.ilm
Class LifecyclePolicyMetadata
java.lang.Object
org.elasticsearch.xpack.core.ilm.LifecyclePolicyMetadata
- All Implemented Interfaces:
Diffable<LifecyclePolicyMetadata>,SimpleDiffable<LifecyclePolicyMetadata>,Writeable,ToXContent,ToXContentObject
public class LifecyclePolicyMetadata
extends Object
implements SimpleDiffable<LifecyclePolicyMetadata>, ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.cluster.SimpleDiffable
SimpleDiffable.CompleteDiff<T extends Diffable<T>>Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConstructingObjectParser<LifecyclePolicyMetadata, String> Fields inherited from interface org.elasticsearch.cluster.SimpleDiffable
EMPTYFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionLifecyclePolicyMetadata(LifecyclePolicy policy, Map<String, String> headers, long version, long modifiedDate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetName()longinthashCode()static LifecyclePolicyMetadataparse(XContentParser parser, String name) toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.cluster.SimpleDiffable
diffMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
PARSER
-
-
Constructor Details
-
LifecyclePolicyMetadata
public LifecyclePolicyMetadata(LifecyclePolicy policy, Map<String, String> headers, long version, long modifiedDate) -
LifecyclePolicyMetadata
- Throws:
IOException
-
-
Method Details
-
parse
-
getHeaders
-
getPolicy
-
getName
-
getVersion
public long getVersion() -
getModifiedDate
public long getModifiedDate() -
getModifiedDateString
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-