org.elasticsearch.cluster.block
Class ClusterBlocks

java.lang.Object
  extended by org.elasticsearch.cluster.block.ClusterBlocks

public class ClusterBlocks
extends Object

Represents current cluster level blocks to block dirty operations done against the cluster.


Nested Class Summary
static class ClusterBlocks.Builder
           
 
Field Summary
static ClusterBlocks EMPTY_CLUSTER_BLOCK
           
 
Method Summary
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(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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_CLUSTER_BLOCK

public static final ClusterBlocks EMPTY_CLUSTER_BLOCK
Method Detail

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.