Package 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
-
Constructor Summary
Constructors Constructor Description Builder(ClusterName clusterName)
Builder(ClusterState state)
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
-
Builder
-
-
Method Details
-
nodes
-
nodes
-
nodes
-
routingTable
-
metadata
-
metadata
-
blocks
-
blocks
-
version
-
incrementVersion
-
stateUUID
-
minimumMasterNodesOnPublishingMaster
public ClusterState.Builder minimumMasterNodesOnPublishingMaster(int minimumMasterNodesOnPublishingMaster) -
putCustom
-
removeCustom
-
customs
public ClusterState.Builder customs(ImmutableOpenMap<java.lang.String,ClusterState.Custom> customs) -
fromDiff
-
build
-
toBytes
- Throws:
java.io.IOException
-
fromBytes
public static ClusterState fromBytes(byte[] data, DiscoveryNode localNode, NamedWriteableRegistry registry) throws java.io.IOException- Parameters:
data
- input byteslocalNode
- used to set the local node in the cluster state.- Throws:
java.io.IOException
-