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,ToXContent,ToXContentFragment
- Enclosing class:
SnapshotLifecycleStats
public static class SnapshotLifecycleStats.SnapshotPolicyStats
extends Object
implements Writeable, ToXContentFragment
-
Nested Class Summary
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 ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final 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()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.xcontent.ToXContentFragment
isFragment
-
Field Details
-
POLICY_ID
-
SNAPSHOTS_TAKEN
-
SNAPSHOTS_FAILED
-
SNAPSHOTS_DELETED
-
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 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-