public class ClusterBlocks extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ClusterBlocks.Builder |
Modifier and Type | Field and Description |
---|---|
static ClusterBlocks |
EMPTY_CLUSTER_BLOCK |
Modifier and Type | Method and Description |
---|---|
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) |
public static final ClusterBlocks EMPTY_CLUSTER_BLOCK
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
ClusterBlockException
public ClusterBlockException globalBlockedException(ClusterBlockLevel level)
public void indexBlockedRaiseException(ClusterBlockLevel level, String index) throws ClusterBlockException
ClusterBlockException
public ClusterBlockException indexBlockedException(ClusterBlockLevel level, String index)
public boolean indexBlocked(ClusterBlockLevel level, String index)
public ClusterBlockException indicesBlockedException(ClusterBlockLevel level, String[] indices)
public static ClusterBlocks.Builder builder()
Copyright © 2009–2015. All rights reserved.