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,
ClusterState state)
ClusterState
public ClusterState(long version,
MetaData metaData,
RoutingTable routingTable,
DiscoveryNodes nodes,
ClusterBlocks blocks,
AllocationExplanation allocationExplanation)
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()
blocks
public ClusterBlocks blocks()
getBlocks
public ClusterBlocks getBlocks()
allocationExplanation
public AllocationExplanation allocationExplanation()
getAllocationExplanation
public AllocationExplanation getAllocationExplanation()
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
builder
public static ClusterState.Builder builder()
newClusterStateBuilder
public static ClusterState.Builder newClusterStateBuilder()