public class ClusterBlocks extends AbstractDiffable<ClusterBlocks>
Modifier and Type | Class and Description |
---|---|
static class |
ClusterBlocks.Builder |
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Field and Description |
---|---|
static ClusterBlocks |
EMPTY_CLUSTER_BLOCK |
Constructor and Description |
---|
ClusterBlocks(StreamInput in) |
diff, get, readDiffFrom
public static final ClusterBlocks EMPTY_CLUSTER_BLOCK
public ClusterBlocks(StreamInput in) throws java.io.IOException
java.io.IOException
public java.util.Set<ClusterBlock> global()
public ImmutableOpenMap<java.lang.String,java.util.Set<ClusterBlock>> indices()
public java.util.Set<ClusterBlock> global(ClusterBlockLevel level)
public ImmutableOpenMap<java.lang.String,java.util.Set<ClusterBlock>> indices(ClusterBlockLevel level)
public boolean disableStatePersistence()
public boolean hasGlobalBlock(ClusterBlock block)
public boolean hasGlobalBlock(int blockId)
public boolean hasGlobalBlock(ClusterBlockLevel level)
public boolean hasGlobalBlock(RestStatus status)
public boolean hasIndexBlock(java.lang.String index, ClusterBlock block)
public void globalBlockedRaiseException(ClusterBlockLevel level) throws ClusterBlockException
ClusterBlockException
public ClusterBlockException globalBlockedException(ClusterBlockLevel level)
public void indexBlockedRaiseException(ClusterBlockLevel level, java.lang.String index) throws ClusterBlockException
ClusterBlockException
public ClusterBlockException indexBlockedException(ClusterBlockLevel level, java.lang.String index)
public boolean indexBlocked(ClusterBlockLevel level, java.lang.String index)
public ClusterBlockException indicesBlockedException(ClusterBlockLevel level, java.lang.String[] indices)
public ClusterBlockException indicesAllowReleaseResources(java.lang.String[] indices)
true
iff non of the given have a ClusterBlockLevel.METADATA_WRITE
in place where the
ClusterBlock.isAllowReleaseResources()
returns false
. This is used in places where resources will be released
like the deletion of an index to free up resources on nodes.indices
- the indices to checkpublic java.lang.String toString()
toString
in class java.lang.Object
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
java.io.IOException
public static Diff<ClusterBlocks> readDiffFrom(StreamInput in) throws java.io.IOException
java.io.IOException
public static ClusterBlocks.Builder builder()