org.elasticsearch.cluster
Class ClusterState.Builder

java.lang.Object
  extended by org.elasticsearch.cluster.ClusterState.Builder
Enclosing class:
ClusterState

public static class ClusterState.Builder
extends Object


Constructor Summary
ClusterState.Builder()
           
 
Method Summary
 ClusterState.Builder allocationExplanation(AllocationExplanation allocationExplanation)
           
 ClusterState.Builder blocks(ClusterBlocks.Builder blocksBuilder)
           
 ClusterState.Builder blocks(ClusterBlocks block)
           
 ClusterState build()
           
static ClusterState fromBytes(byte[] data, DiscoveryNode localNode)
           
 ClusterState.Custom getCustom(String type)
           
 ClusterState.Builder metaData(MetaData.Builder metaDataBuilder)
           
 ClusterState.Builder metaData(MetaData metaData)
           
 ClusterState.Builder nodes(DiscoveryNodes.Builder nodesBuilder)
           
 ClusterState.Builder nodes(DiscoveryNodes nodes)
           
 ClusterState.Builder putCustom(String type, ClusterState.Custom custom)
           
static ClusterState readFrom(StreamInput in, DiscoveryNode localNode)
           
 ClusterState.Builder removeCustom(String type)
           
 ClusterState.Builder routingResult(RoutingAllocation.Result routingResult)
           
 ClusterState.Builder routingTable(RoutingTable.Builder routingTable)
           
 ClusterState.Builder routingTable(RoutingTable routingTable)
           
 ClusterState.Builder state(ClusterState state)
           
static byte[] toBytes(ClusterState state)
           
 ClusterState.Builder version(long version)
           
static void writeTo(ClusterState state, StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterState.Builder

public ClusterState.Builder()
Method Detail

nodes

public ClusterState.Builder nodes(DiscoveryNodes.Builder nodesBuilder)

nodes

public ClusterState.Builder nodes(DiscoveryNodes nodes)

routingTable

public ClusterState.Builder routingTable(RoutingTable.Builder routingTable)

routingResult

public ClusterState.Builder routingResult(RoutingAllocation.Result routingResult)

routingTable

public ClusterState.Builder routingTable(RoutingTable routingTable)

metaData

public ClusterState.Builder metaData(MetaData.Builder metaDataBuilder)

metaData

public ClusterState.Builder metaData(MetaData metaData)

blocks

public ClusterState.Builder blocks(ClusterBlocks.Builder blocksBuilder)

blocks

public ClusterState.Builder blocks(ClusterBlocks block)

allocationExplanation

public ClusterState.Builder allocationExplanation(AllocationExplanation allocationExplanation)

version

public ClusterState.Builder version(long version)

getCustom

public ClusterState.Custom getCustom(String type)

putCustom

public ClusterState.Builder putCustom(String type,
                                      ClusterState.Custom custom)

removeCustom

public ClusterState.Builder removeCustom(String type)

state

public ClusterState.Builder state(ClusterState state)

build

public ClusterState build()

toBytes

public static byte[] toBytes(ClusterState state)
                      throws IOException
Throws:
IOException

fromBytes

public static ClusterState fromBytes(byte[] data,
                                     DiscoveryNode localNode)
                              throws IOException
Throws:
IOException

writeTo

public static void writeTo(ClusterState state,
                           StreamOutput out)
                    throws IOException
Throws:
IOException

readFrom

public static ClusterState readFrom(StreamInput in,
                                    @Nullable
                                    DiscoveryNode localNode)
                             throws IOException
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.