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,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public class LifecyclePolicyMetadata
extends Object
implements SimpleDiffable<LifecyclePolicyMetadata>, org.elasticsearch.xcontent.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
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.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 org.elasticsearch.xcontent.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 LifecyclePolicyMetadataorg.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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
public static final org.elasticsearch.xcontent.ConstructingObjectParser<LifecyclePolicyMetadata,String> PARSER
-
-
Constructor Details
-
LifecyclePolicyMetadata
public LifecyclePolicyMetadata(LifecyclePolicy policy, Map<String, String> headers, long version, long modifiedDate) -
LifecyclePolicyMetadata
- Throws:
IOException
-
-
Method Details
-
parse
public static LifecyclePolicyMetadata parse(org.elasticsearch.xcontent.XContentParser parser, String name) -
getHeaders
-
getPolicy
-
getName
-
getVersion
public long getVersion() -
getModifiedDate
public long getModifiedDate() -
getModifiedDateString
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-