Package org.elasticsearch.client.slm
Class SnapshotLifecyclePolicyMetadata
java.lang.Object
org.elasticsearch.client.slm.SnapshotLifecyclePolicyMetadata
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentObject
public class SnapshotLifecyclePolicyMetadata
extends java.lang.Object
implements org.elasticsearch.common.xcontent.ToXContentObject
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SnapshotLifecyclePolicyMetadata.SnapshotInProgress
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
-
Field Summary
Fields Modifier and Type Field Description static org.elasticsearch.common.xcontent.ConstructingObjectParser<SnapshotLifecyclePolicyMetadata,java.lang.String>
PARSER
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
Constructors Constructor Description SnapshotLifecyclePolicyMetadata(SnapshotLifecyclePolicy policy, long version, long modifiedDate, SnapshotInvocationRecord lastSuccess, SnapshotInvocationRecord lastFailure, long nextExecution, SnapshotLifecyclePolicyMetadata.SnapshotInProgress snapshotInProgress, SnapshotLifecycleStats.SnapshotPolicyStats policyStats)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
SnapshotInvocationRecord
getLastFailure()
SnapshotInvocationRecord
getLastSuccess()
long
getModifiedDate()
java.lang.String
getName()
long
getNextExecution()
SnapshotLifecyclePolicy
getPolicy()
SnapshotLifecycleStats.SnapshotPolicyStats
getPolicyStats()
SnapshotLifecyclePolicyMetadata.SnapshotInProgress
getSnapshotInProgress()
long
getVersion()
int
hashCode()
static SnapshotLifecyclePolicyMetadata
parse(org.elasticsearch.common.xcontent.XContentParser parser, java.lang.String id)
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<SnapshotLifecyclePolicyMetadata,java.lang.String> PARSER
-
-
Constructor Details
-
SnapshotLifecyclePolicyMetadata
public SnapshotLifecyclePolicyMetadata(SnapshotLifecyclePolicy policy, long version, long modifiedDate, SnapshotInvocationRecord lastSuccess, SnapshotInvocationRecord lastFailure, long nextExecution, @Nullable SnapshotLifecyclePolicyMetadata.SnapshotInProgress snapshotInProgress, SnapshotLifecycleStats.SnapshotPolicyStats policyStats)
-
-
Method Details
-
parse
public static SnapshotLifecyclePolicyMetadata parse(org.elasticsearch.common.xcontent.XContentParser parser, java.lang.String id) -
getPolicy
-
getName
public java.lang.String getName() -
getVersion
public long getVersion() -
getModifiedDate
public long getModifiedDate() -
getLastSuccess
-
getLastFailure
-
getNextExecution
public long getNextExecution() -
getPolicyStats
-
getSnapshotInProgress
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
java.io.IOException
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-