Class RepositoryCleanupInProgress

java.lang.Object
org.opensearch.cluster.AbstractNamedDiffable<ClusterState.Custom>
org.opensearch.cluster.RepositoryCleanupInProgress
All Implemented Interfaces:
ClusterState.Custom, ClusterState.FeatureAware, Diffable<ClusterState.Custom>, NamedDiffable<ClusterState.Custom>, org.opensearch.core.common.io.stream.NamedWriteable, org.opensearch.core.common.io.stream.VersionedNamedWriteable, org.opensearch.core.common.io.stream.Writeable, org.opensearch.core.xcontent.ToXContent, org.opensearch.core.xcontent.ToXContentFragment

public final class RepositoryCleanupInProgress extends AbstractNamedDiffable<ClusterState.Custom> implements ClusterState.Custom
Information passed during repository cleanup
Opensearch.internal:
  • Field Details

  • Constructor Details

  • Method Details

    • readDiffFrom

      public static NamedDiff<ClusterState.Custom> readDiffFrom(org.opensearch.core.common.io.stream.StreamInput in) throws IOException
      Throws:
      IOException
    • startedEntry

      public static RepositoryCleanupInProgress.Entry startedEntry(String repository, long repositoryStateId)
    • hasCleanupInProgress

      public boolean hasCleanupInProgress()
    • entries

    • getWriteableName

      public String getWriteableName()
      Specified by:
      getWriteableName in interface org.opensearch.core.common.io.stream.NamedWriteable
      Specified by:
      getWriteableName in interface org.opensearch.core.common.io.stream.VersionedNamedWriteable
    • writeTo

      public void writeTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      writeTo in interface org.opensearch.core.common.io.stream.Writeable
      Throws:
      IOException
    • toXContent

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

      public String toString()
      Overrides:
      toString in class Object
    • getMinimalSupportedVersion

      public org.opensearch.Version getMinimalSupportedVersion()
      Specified by:
      getMinimalSupportedVersion in interface org.opensearch.core.common.io.stream.VersionedNamedWriteable