org.elasticsearch.cluster.block
Class ClusterBlocks.Builder
java.lang.Object
org.elasticsearch.cluster.block.ClusterBlocks.Builder
- Enclosing class:
- ClusterBlocks
public static class ClusterBlocks.Builder
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterBlocks.Builder
public ClusterBlocks.Builder()
blocks
public ClusterBlocks.Builder blocks(ClusterBlocks blocks)
addGlobalBlock
public ClusterBlocks.Builder addGlobalBlock(ClusterBlock block)
removeGlobalBlock
public ClusterBlocks.Builder removeGlobalBlock(ClusterBlock block)
addIndexBlock
public ClusterBlocks.Builder addIndexBlock(java.lang.String index,
ClusterBlock block)
removeIndexBlocks
public ClusterBlocks.Builder removeIndexBlocks(java.lang.String index)
removeIndexBlock
public ClusterBlocks.Builder removeIndexBlock(java.lang.String index,
ClusterBlock block)
build
public ClusterBlocks build()
readClusterBlocks
public static ClusterBlocks readClusterBlocks(StreamInput in)
throws java.io.IOException
- Throws:
java.io.IOException
writeClusterBlocks
public static void writeClusterBlocks(ClusterBlocks blocks,
StreamOutput out)
throws java.io.IOException
- Throws:
java.io.IOException