org.elasticsearch.cluster
Class ClusterState.Builder
java.lang.Object
org.elasticsearch.cluster.ClusterState.Builder
- Enclosing class:
- ClusterState
public static class ClusterState.Builder
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterState.Builder
public ClusterState.Builder()
nodes
public ClusterState.Builder nodes(DiscoveryNodes.Builder nodesBuilder)
nodes
public ClusterState.Builder nodes(DiscoveryNodes nodes)
routingTable
public ClusterState.Builder routingTable(RoutingTable.Builder routingTable)
routingResult
public ClusterState.Builder routingResult(RoutingAllocation.Result routingResult)
routingTable
public ClusterState.Builder routingTable(RoutingTable routingTable)
metaData
public ClusterState.Builder metaData(MetaData.Builder metaDataBuilder)
metaData
public ClusterState.Builder metaData(MetaData metaData)
blocks
public ClusterState.Builder blocks(ClusterBlocks.Builder blocksBuilder)
blocks
public ClusterState.Builder blocks(ClusterBlocks block)
allocationExplanation
public ClusterState.Builder allocationExplanation(AllocationExplanation allocationExplanation)
version
public ClusterState.Builder version(long version)
getCustom
public ClusterState.Custom getCustom(String type)
putCustom
public ClusterState.Builder putCustom(String type,
ClusterState.Custom custom)
removeCustom
public ClusterState.Builder removeCustom(String type)
state
public ClusterState.Builder state(ClusterState state)
build
public ClusterState build()
toBytes
public static byte[] toBytes(ClusterState state)
throws IOException
- Throws:
IOException
fromBytes
public static ClusterState fromBytes(byte[] data,
DiscoveryNode localNode)
throws IOException
- Throws:
IOException
writeTo
public static void writeTo(ClusterState state,
StreamOutput out)
throws IOException
- Throws:
IOException
readFrom
public static ClusterState readFrom(StreamInput in,
@Nullable
DiscoveryNode localNode)
throws IOException
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.