Class RestoreInProgress

java.lang.Object
org.elasticsearch.cluster.AbstractNamedDiffable<ClusterState.Custom>
org.elasticsearch.cluster.RestoreInProgress
All Implemented Interfaces:
java.lang.Iterable<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 ClusterState.Custom, java.lang.Iterable<RestoreInProgress.Entry>
Meta data about restore processes that are currently executing
  • Field Details

    • BWC_UUID

      public static final java.lang.String 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 java.lang.String TYPE
      See Also:
      Constant Field Values
    • EMPTY

      public static final RestoreInProgress EMPTY
  • Constructor Details

    • RestoreInProgress

      public RestoreInProgress​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • get

      public RestoreInProgress.Entry get​(java.lang.String restoreUUID)
    • isEmpty

      public boolean isEmpty()
    • iterator

      public java.util.Iterator<RestoreInProgress.Entry> iterator()
      Specified by:
      iterator in interface java.lang.Iterable<RestoreInProgress.Entry>
    • getWriteableName

      public java.lang.String 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 java.io.IOException
      Throws:
      java.io.IOException
    • writeTo

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

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

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