Class RestoreInProgress

org.elasticsearch.cluster.AbstractNamedDiffable<ClusterState.Custom>
org.elasticsearch.cluster.RestoreInProgress
All Implemented Interfaces:
<RestoreInProgress.Entry>, ClusterState.Custom, ClusterState.FeatureAware, Diffable<ClusterState.Custom>, NamedDiffable<ClusterState.Custom>, NamedWriteable, VersionedNamedWriteable, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment

public class RestoreInProgress extends AbstractNamedDiffable<ClusterState.Custom> implements <RestoreInProgress.Entry>
Meta data about restore processes that are currently executing
  • Field Details

    • BWC_UUID

      public static final  BWC_UUID
      Fallback UUID used for restore operations that were started before v6.6 and don't have a uuid in the cluster state.
    • TYPE

      public static final  TYPE
      See Also:
      Constant Field Values
    • EMPTY

      public static final RestoreInProgress EMPTY
  • Constructor Details

    • RestoreInProgress

      public RestoreInProgress(StreamInput in) throws
      Throws:
  • Method Details

    • equals

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

      public int hashCode()
      Overrides:
       in class 
    • toString

      public  toString()
      Overrides:
       in class 
    • get

      public  restoreUUID)
    • isEmpty

      public boolean isEmpty()
    • iterator

      public <RestoreInProgress.Entry> iterator()
      Specified by:
       in interface <RestoreInProgress.Entry>
    • getWriteableName

      public  getWriteableName()
      Returns the name of the writeable object
      Specified by:
      getWriteableName in interface NamedWriteable
      Specified by:
      getWriteableName in interface VersionedNamedWriteable
    • getMinimalSupportedVersion

      public Version getMinimalSupportedVersion()
      Description copied from interface: VersionedNamedWriteable
      The minimal version of the recipient this object can be sent to
      Specified by:
      getMinimalSupportedVersion in interface VersionedNamedWriteable
    • readDiffFrom

      public static NamedDiff<ClusterState.Custom> readDiffFrom(StreamInput in) throws
      Throws:
    • writeTo

      public void writeTo(StreamOutput out) throws
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
    • toXContent

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

      public void toXContent(RestoreInProgress.Entry entry, org.elasticsearch.common.xcontent.XContentBuilder builder) throws
      Serializes single restore operation
      Parameters:
      entry - restore operation metadata
      builder - XContent builder
      Throws: