public class ClusterBlocks extends AbstractDiffable<ClusterBlocks>
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
ClusterBlocks.Builder |
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static ClusterBlocks |
EMPTY_CLUSTER_BLOCK |
static ClusterBlocks |
PROTO |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static ClusterBlocks.Builder |
builder() |
boolean |
disableStatePersistence()
Returns true if one of the global blocks as its disable state persistence flag set.
|
com.google.common.collect.ImmutableSet<ClusterBlock> |
global() |
com.google.common.collect.ImmutableSet<ClusterBlock> |
global(ClusterBlockLevel level) |
ClusterBlockException |
globalBlockedException(ClusterBlockLevel level) |
void |
globalBlockedRaiseException(ClusterBlockLevel level) |
boolean |
hasGlobalBlock(ClusterBlock block) |
boolean |
hasGlobalBlock(ClusterBlockLevel level) |
boolean |
hasGlobalBlock(int blockId) |
boolean |
hasGlobalBlock(RestStatus status)
Is there a global block with the provided status?
|
boolean |
hasIndexBlock(String index,
ClusterBlock block) |
boolean |
indexBlocked(ClusterBlockLevel level,
String index) |
ClusterBlockException |
indexBlockedException(ClusterBlockLevel level,
String index) |
void |
indexBlockedRaiseException(ClusterBlockLevel level,
String index) |
com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableSet<ClusterBlock>> |
indices() |
com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableSet<ClusterBlock>> |
indices(ClusterBlockLevel level) |
ClusterBlockException |
indicesBlockedException(ClusterBlockLevel level,
String[] indices) |
String |
prettyPrint() |
ClusterBlocks |
readFrom(StreamInput in)
Reads a copy of an object with the same type form the stream input
The caller object remains unchanged.
|
void |
writeTo(StreamOutput out)
Writes the current object into the output stream out
|
diff, get, readDiffFrom, readDiffFrompublic static final ClusterBlocks EMPTY_CLUSTER_BLOCK
public static final ClusterBlocks PROTO
public com.google.common.collect.ImmutableSet<ClusterBlock> global()
public com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableSet<ClusterBlock>> indices()
public com.google.common.collect.ImmutableSet<ClusterBlock> global(ClusterBlockLevel level)
public com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableSet<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(String index, ClusterBlock block)
public void globalBlockedRaiseException(ClusterBlockLevel level) throws ClusterBlockException
public ClusterBlockException globalBlockedException(ClusterBlockLevel level)
public void indexBlockedRaiseException(ClusterBlockLevel level, String index) throws ClusterBlockException
public ClusterBlockException indexBlockedException(ClusterBlockLevel level, String index)
public boolean indexBlocked(ClusterBlockLevel level, String index)
public ClusterBlockException indicesBlockedException(ClusterBlockLevel level, String[] indices)
public String prettyPrint()
public void writeTo(StreamOutput out) throws IOException
WriteableIOExceptionpublic ClusterBlocks readFrom(StreamInput in) throws IOException
StreamableReaderIOExceptionpublic static ClusterBlocks.Builder builder()
Copyright © 2009–2016. All rights reserved.