org.elasticsearch.cluster.block
Class ClusterBlocks
java.lang.Object
org.elasticsearch.cluster.block.ClusterBlocks
public class ClusterBlocks
- extends Object
Represents current cluster level blocks to block dirty operations done against the cluster.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_CLUSTER_BLOCK
public static final ClusterBlocks EMPTY_CLUSTER_BLOCK
global
public com.google.common.collect.ImmutableSet<ClusterBlock> global()
indices
public com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableSet<ClusterBlock>> indices()
global
public com.google.common.collect.ImmutableSet<ClusterBlock> global(ClusterBlockLevel level)
indices
public com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableSet<ClusterBlock>> indices(ClusterBlockLevel level)
disableStatePersistence
public boolean disableStatePersistence()
- Returns true if one of the global blocks as its disable state persistence flag set.
hasGlobalBlock
public boolean hasGlobalBlock(ClusterBlock block)
hasGlobalBlock
public boolean hasGlobalBlock(RestStatus status)
- Is there a global block with the provided status?
hasIndexBlock
public boolean hasIndexBlock(String index,
ClusterBlock block)
globalBlockedRaiseException
public void globalBlockedRaiseException(ClusterBlockLevel level)
throws ClusterBlockException
- Throws:
ClusterBlockException
globalBlockedException
public ClusterBlockException globalBlockedException(ClusterBlockLevel level)
indexBlockedRaiseException
public void indexBlockedRaiseException(ClusterBlockLevel level,
String index)
throws ClusterBlockException
- Throws:
ClusterBlockException
indexBlockedException
public ClusterBlockException indexBlockedException(ClusterBlockLevel level,
String index)
indexBlocked
public boolean indexBlocked(ClusterBlockLevel level,
String index)
indicesBlockedException
public ClusterBlockException indicesBlockedException(ClusterBlockLevel level,
String[] indices)
builder
public static ClusterBlocks.Builder builder()
Copyright © 2009-2012. All Rights Reserved.