Package org.elasticsearch.client.slm
Class SnapshotLifecycleStats.SnapshotPolicyStats
java.lang.Object
org.elasticsearch.client.slm.SnapshotLifecycleStats.SnapshotPolicyStats
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentFragment
- Enclosing class:
- SnapshotLifecycleStats
public static class SnapshotLifecycleStats.SnapshotPolicyStats
extends java.lang.Object
implements org.elasticsearch.common.xcontent.ToXContentFragment
-
Nested Class Summary
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.ParseField
POLICY_ID
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
Constructors Constructor Description SnapshotPolicyStats(java.lang.String policyId, long snapshotsTaken, long snapshotsFailed, long deleted, long failedDeletes)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getPolicyId()
long
getSnapshotDeleteFailures()
long
getSnapshotsDeleted()
long
getSnapshotsFailed()
long
getSnapshotsTaken()
int
hashCode()
static SnapshotLifecycleStats.SnapshotPolicyStats
parse(org.elasticsearch.common.xcontent.XContentParser parser, java.lang.String policyId)
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.ToXContentFragment
isFragment
-
Field Details
-
POLICY_ID
public static final org.elasticsearch.common.ParseField POLICY_ID
-
-
Constructor Details
-
SnapshotPolicyStats
public SnapshotPolicyStats(java.lang.String policyId, long snapshotsTaken, long snapshotsFailed, long deleted, long failedDeletes)
-
-
Method Details
-
parse
public static SnapshotLifecycleStats.SnapshotPolicyStats parse(org.elasticsearch.common.xcontent.XContentParser parser, java.lang.String policyId) -
getPolicyId
public java.lang.String getPolicyId() -
getSnapshotsTaken
public long getSnapshotsTaken() -
getSnapshotsFailed
public long getSnapshotsFailed() -
getSnapshotsDeleted
public long getSnapshotsDeleted() -
getSnapshotDeleteFailures
public long getSnapshotDeleteFailures() -
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
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
-