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.
  • Field Details

  • Constructor Details

    • SnapshotInvocationRecord

      public SnapshotInvocationRecord(String snapshotName, Long snapshotStartTimestamp, long snapshotFinishTimestamp, @Nullable String details)
    • SnapshotInvocationRecord

      public SnapshotInvocationRecord(StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details

    • parse

      public static SnapshotInvocationRecord parse(org.elasticsearch.xcontent.XContentParser parser, String name)
    • getSnapshotName

      public String getSnapshotName()
    • getSnapshotStartTimestamp

      @Nullable public Long getSnapshotStartTimestamp()
    • getSnapshotFinishTimestamp

      public long getSnapshotFinishTimestamp()
    • getDetails

      public String getDetails()
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object