org.elasticsearch.cluster
Class ClusterState

java.lang.Object
  extended by org.elasticsearch.cluster.ClusterState

public class ClusterState
extends java.lang.Object


Nested Class Summary
static class ClusterState.Builder
           
 
Constructor Summary
ClusterState(long version, ClusterState state)
           
ClusterState(long version, MetaData metaData, RoutingTable routingTable, DiscoveryNodes nodes, ClusterBlocks blocks, AllocationExplanation allocationExplanation)
           
 
Method Summary
 AllocationExplanation allocationExplanation()
           
 ClusterBlocks blocks()
           
static ClusterState.Builder builder()
           
 AllocationExplanation getAllocationExplanation()
           
 ClusterBlocks getBlocks()
           
 MetaData getMetaData()
           
 DiscoveryNodes getNodes()
           
 RoutingNodes getRoutingNodes()
           
 RoutingTable getRoutingTable()
           
 long getVersion()
           
 MetaData metaData()
           
static ClusterState.Builder newClusterStateBuilder()
           
 DiscoveryNodes nodes()
           
 RoutingNodes readOnlyRoutingNodes()
          Returns a built (on demand) routing nodes view of the routing table.
 RoutingNodes routingNodes()
           
 RoutingTable routingTable()
           
 long version()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterState

public ClusterState(long version,
                    ClusterState state)

ClusterState

public ClusterState(long version,
                    MetaData metaData,
                    RoutingTable routingTable,
                    DiscoveryNodes nodes,
                    ClusterBlocks blocks,
                    AllocationExplanation allocationExplanation)
Method Detail

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()