Package org.elasticsearch.cluster
Class ClusterState.Builder
java.lang.Object
org.elasticsearch.cluster.ClusterState.Builder
- Enclosing class:
- ClusterState
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionblocks
(ClusterBlocks blocks) blocks
(ClusterBlocks.Builder blocksBuilder) build()
customs
(ImmutableOpenMap<String, ClusterState.Custom> customs) static ClusterState
fromBytes
(byte[] data, DiscoveryNode localNode, NamedWriteableRegistry registry) fromDiff
(boolean fromDiff) metadata
(Metadata.Builder metadataBuilder) minimumMasterNodesOnPublishingMaster
(int minimumMasterNodesOnPublishingMaster) nodes()
nodes
(DiscoveryNodes nodes) nodes
(DiscoveryNodes.Builder nodesBuilder) putCustom
(String type, ClusterState.Custom custom) removeCustom
(String type) routingTable
(RoutingTable routingTable) static byte[]
toBytes
(ClusterState state) version
(long version)
-
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
-
fromDiff
-
build
-
toBytes
- Throws:
IOException
-
fromBytes
public static ClusterState fromBytes(byte[] data, DiscoveryNode localNode, NamedWriteableRegistry registry) throws IOException - Parameters:
data
- input byteslocalNode
- used to set the local node in the cluster state.- Throws:
IOException
-