Module org.elasticsearch.xcore
Package org.elasticsearch.xpack.core.slm
Class SnapshotLifecycleStats.SnapshotPolicyStats
java.lang.Object
org.elasticsearch.xpack.core.slm.SnapshotLifecycleStats.SnapshotPolicyStats
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentFragment
- Enclosing class:
SnapshotLifecycleStats
-
Nested Class Summary
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.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotPolicyStats(String slmPolicy) SnapshotPolicyStats(String policyId, long snapshotsTaken, long snapshotsFailed, long deleted, long failedDeletes) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonglonginthashCode()org.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.xcontent.ToXContentFragment
isFragment
-
Field Details
-
POLICY_ID
public static final org.elasticsearch.xcontent.ParseField POLICY_ID -
SNAPSHOTS_TAKEN
public static final org.elasticsearch.xcontent.ParseField SNAPSHOTS_TAKEN -
SNAPSHOTS_FAILED
public static final org.elasticsearch.xcontent.ParseField SNAPSHOTS_FAILED -
SNAPSHOTS_DELETED
public static final org.elasticsearch.xcontent.ParseField SNAPSHOTS_DELETED -
SNAPSHOT_DELETION_FAILURES
public static final org.elasticsearch.xcontent.ParseField SNAPSHOT_DELETION_FAILURES
-
-
Constructor Details
-
SnapshotPolicyStats
-
SnapshotPolicyStats
public SnapshotPolicyStats(String policyId, long snapshotsTaken, long snapshotsFailed, long deleted, long failedDeletes) -
SnapshotPolicyStats
- Throws:
IOException
-
-
Method Details
-
merge
public SnapshotLifecycleStats.SnapshotPolicyStats merge(SnapshotLifecycleStats.SnapshotPolicyStats other) -
getPolicyId
-
getSnapshotTakenCount
public long getSnapshotTakenCount() -
getSnapshotFailedCount
public long getSnapshotFailedCount() -
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
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
-