Class ClusterBlock

java.lang.Object
org.elasticsearch.cluster.block.ClusterBlock
All Implemented Interfaces:
Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment

public class ClusterBlock extends Object implements Writeable, org.elasticsearch.common.xcontent.ToXContentFragment
  • Constructor Details

  • Method Details

    • id

      public int id()
    • uuid

      @Nullable public String uuid()
    • description

      public String description()
    • status

      public RestStatus status()
    • levels

      public EnumSet<ClusterBlockLevel> levels()
    • contains

      public boolean contains(ClusterBlockLevel level)
    • retryable

      public boolean retryable()
      Should operations get into retry state if this block is present.
    • disableStatePersistence

      public boolean disableStatePersistence()
      Should global state persistence be disabled when this block is present. Note, only relevant for global blocks.
    • toXContent

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

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isAllowReleaseResources

      public boolean isAllowReleaseResources()