org.elasticsearch.cluster
Class ClusterState.Builder
java.lang.Object
org.elasticsearch.cluster.ClusterState.Builder
- Enclosing class:
- ClusterState
public static class ClusterState.Builder
- extends java.lang.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)
state
public ClusterState.Builder state(ClusterState state)
build
public ClusterState build()
toBytes
public static byte[] toBytes(ClusterState state)
throws java.io.IOException
- Throws:
java.io.IOException
fromBytes
public static ClusterState fromBytes(byte[] data,
Settings globalSettings,
DiscoveryNode localNode)
throws java.io.IOException
- Throws:
java.io.IOException
writeTo
public static void writeTo(ClusterState state,
StreamOutput out)
throws java.io.IOException
- Throws:
java.io.IOException
readFrom
public static ClusterState readFrom(StreamInput in,
@Nullable
Settings globalSettings,
@Nullable
DiscoveryNode localNode)
throws java.io.IOException
- Throws:
java.io.IOException