java.lang.Object
org.elasticsearch.cluster.ClusterState.Builder
- Enclosing class:
- ClusterState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblocks
(ClusterBlocks blocks) blocks
(ClusterBlocks.Builder blocksBuilder) build()
customs
(Map<String, ClusterState.Custom> customs) static ClusterState
fromBytes
(byte[] data, DiscoveryNode localNode, NamedWriteableRegistry registry) metadata
(Metadata.Builder metadataBuilder) nodes()
nodes
(DiscoveryNodes nodes) nodes
(DiscoveryNodes.Builder nodesBuilder) putCustom
(String type, ClusterState.Custom custom) removeCustom
(String type) routingTable
(RoutingTable routingTable) routingTable
(RoutingTable.Builder routingTableBuilder) static byte[]
toBytes
(ClusterState state) version
(long version)
-
Constructor Details
-
Builder
-
Builder
-
-
Method Details
-
nodes
-
nodes
-
nodes
-
routingTable
-
routingTable
-
metadata
-
metadata
-
blocks
-
blocks
-
version
-
incrementVersion
-
stateUUID
-
putCustom
-
removeCustom
-
customs
-
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
-