Module org.elasticsearch.xcore
Package org.elasticsearch.xpack.core.slm
Class SnapshotInvocationRecord
java.lang.Object
org.elasticsearch.xpack.core.slm.SnapshotInvocationRecord
- All Implemented Interfaces:
Diffable<SnapshotInvocationRecord>,SimpleDiffable<SnapshotInvocationRecord>,Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public class SnapshotInvocationRecord
extends Object
implements SimpleDiffable<SnapshotInvocationRecord>, Writeable, org.elasticsearch.xcontent.ToXContentObject
Holds information about Snapshots kicked off by Snapshot Lifecycle Management in the cluster state, so that this information can be
presented to the user. This class is used for both successes and failures as the structure of the data is very similar.
-
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<SnapshotInvocationRecord, String> Fields inherited from interface org.elasticsearch.cluster.SimpleDiffable
EMPTYFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotInvocationRecord(String snapshotName, Long snapshotStartTimestamp, long snapshotFinishTimestamp, String details) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonginthashCode()static SnapshotInvocationRecordorg.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<SnapshotInvocationRecord,String> PARSER
-
-
Constructor Details
-
SnapshotInvocationRecord
-
SnapshotInvocationRecord
- Throws:
IOException
-
-
Method Details
-
parse
public static SnapshotInvocationRecord parse(org.elasticsearch.xcontent.XContentParser parser, String name) -
getSnapshotName
-
getSnapshotStartTimestamp
-
getSnapshotFinishTimestamp
public long getSnapshotFinishTimestamp() -
getDetails
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
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
-
equals
-
hashCode
public int hashCode()
-