Diffable<ClusterBlocks>, Writeablepublic class ClusterBlocks extends AbstractDiffable<ClusterBlocks>
| Modifier and Type | Class | Description |
|---|---|---|
static class |
ClusterBlocks.Builder |
Writeable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field | Description |
|---|---|---|
static ClusterBlocks |
EMPTY_CLUSTER_BLOCK |
| Constructor | Description |
|---|---|
ClusterBlocks(StreamInput in) |
diff, get, readDiffFrompublic static final ClusterBlocks EMPTY_CLUSTER_BLOCK
public ClusterBlocks(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic 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
ClusterBlockExceptionpublic ClusterBlockException globalBlockedException(ClusterBlockLevel level)
public void indexBlockedRaiseException(ClusterBlockLevel level, java.lang.String index) throws ClusterBlockException
ClusterBlockExceptionpublic 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.Objectpublic void writeTo(StreamOutput out) throws java.io.IOException
Writeablejava.io.IOExceptionpublic static Diff<ClusterBlocks> readDiffFrom(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic static ClusterBlocks.Builder builder()