org.elasticsearch.cluster
Class ClusterState
java.lang.Object
org.elasticsearch.cluster.ClusterState
public class ClusterState
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterState
public ClusterState(long version,
MetaData metaData,
RoutingTable routingTable,
DiscoveryNodes nodes)
version
public long version()
getVersion
public long getVersion()
nodes
public DiscoveryNodes nodes()
getNodes
public DiscoveryNodes getNodes()
metaData
public MetaData metaData()
getMetaData
public MetaData getMetaData()
routingTable
public RoutingTable routingTable()
getRoutingTable
public RoutingTable getRoutingTable()
routingNodes
public RoutingNodes routingNodes()
getRoutingNodes
public RoutingNodes getRoutingNodes()
readOnlyRoutingNodes
public RoutingNodes readOnlyRoutingNodes()
- Returns a built (on demand) routing nodes view of the routing table. NOTE, the routing nodes
are mutable, use them just for read operations
newClusterStateBuilder
public static ClusterState.Builder newClusterStateBuilder()