org.elasticsearch.cluster.block
Class ClusterBlocks.Builder

java.lang.Object
  extended by org.elasticsearch.cluster.block.ClusterBlocks.Builder
Enclosing class:
ClusterBlocks

public static class ClusterBlocks.Builder
extends Object


Constructor Summary
ClusterBlocks.Builder()
           
 
Method Summary
 ClusterBlocks.Builder addBlocks(IndexMetaData indexMetaData)
           
 ClusterBlocks.Builder addGlobalBlock(ClusterBlock block)
           
 ClusterBlocks.Builder addIndexBlock(String index, ClusterBlock block)
           
 ClusterBlocks.Builder blocks(ClusterBlocks blocks)
           
 ClusterBlocks build()
           
static ClusterBlocks readClusterBlocks(StreamInput in)
           
 ClusterBlocks.Builder removeGlobalBlock(ClusterBlock block)
           
 ClusterBlocks.Builder removeIndexBlock(String index, ClusterBlock block)
           
 ClusterBlocks.Builder removeIndexBlocks(String index)
           
static void writeClusterBlocks(ClusterBlocks blocks, StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterBlocks.Builder

public ClusterBlocks.Builder()
Method Detail

blocks

public ClusterBlocks.Builder blocks(ClusterBlocks blocks)

addBlocks

public ClusterBlocks.Builder addBlocks(IndexMetaData indexMetaData)

addGlobalBlock

public ClusterBlocks.Builder addGlobalBlock(ClusterBlock block)

removeGlobalBlock

public ClusterBlocks.Builder removeGlobalBlock(ClusterBlock block)

addIndexBlock

public ClusterBlocks.Builder addIndexBlock(String index,
                                           ClusterBlock block)

removeIndexBlocks

public ClusterBlocks.Builder removeIndexBlocks(String index)

removeIndexBlock

public ClusterBlocks.Builder removeIndexBlock(String index,
                                              ClusterBlock block)

build

public ClusterBlocks build()

readClusterBlocks

public static ClusterBlocks readClusterBlocks(StreamInput in)
                                       throws IOException
Throws:
IOException

writeClusterBlocks

public static void writeClusterBlocks(ClusterBlocks blocks,
                                      StreamOutput out)
                               throws IOException
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.