org.elasticsearch.cluster.metadata
Class MetaData.Builder

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

public static class MetaData.Builder
extends java.lang.Object


Constructor Summary
MetaData.Builder()
           
 
Method Summary
 MetaData build()
           
static MetaData fromXContent(XContentParser parser, Settings globalSettings)
           
 IndexMetaData get(java.lang.String index)
           
 MetaData.Builder markAsRecoveredFromGateway()
          Indicates that this cluster state has been recovered from the gateawy.
 MetaData.Builder metaData(MetaData metaData)
           
 MetaData.Builder put(IndexMetaData.Builder indexMetaDataBuilder)
           
 MetaData.Builder put(IndexMetaData indexMetaData)
           
static MetaData readFrom(StreamInput in, Settings globalSettings)
           
 MetaData.Builder remove(java.lang.String index)
           
static java.lang.String toXContent(MetaData metaData)
           
static void toXContent(MetaData metaData, XContentBuilder builder, ToXContent.Params params)
           
 MetaData.Builder updateNumberOfReplicas(int numberOfReplicas, java.lang.String... indices)
           
static void writeTo(MetaData metaData, StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaData.Builder

public MetaData.Builder()
Method Detail

put

public MetaData.Builder put(IndexMetaData.Builder indexMetaDataBuilder)

put

public MetaData.Builder put(IndexMetaData indexMetaData)

get

public IndexMetaData get(java.lang.String index)

remove

public MetaData.Builder remove(java.lang.String index)

metaData

public MetaData.Builder metaData(MetaData metaData)

updateNumberOfReplicas

public MetaData.Builder updateNumberOfReplicas(int numberOfReplicas,
                                               java.lang.String... indices)

markAsRecoveredFromGateway

public MetaData.Builder markAsRecoveredFromGateway()
Indicates that this cluster state has been recovered from the gateawy.


build

public MetaData build()

toXContent

public static java.lang.String toXContent(MetaData metaData)
                                   throws java.io.IOException
Throws:
java.io.IOException

toXContent

public static void toXContent(MetaData metaData,
                              XContentBuilder builder,
                              ToXContent.Params params)
                       throws java.io.IOException
Throws:
java.io.IOException

fromXContent

public static MetaData fromXContent(XContentParser parser,
                                    @Nullable
                                    Settings globalSettings)
                             throws java.io.IOException
Throws:
java.io.IOException

readFrom

public static MetaData readFrom(StreamInput in,
                                @Nullable
                                Settings globalSettings)
                         throws java.io.IOException
Throws:
java.io.IOException

writeTo

public static void writeTo(MetaData metaData,
                           StreamOutput out)
                    throws java.io.IOException
Throws:
java.io.IOException