org.elasticsearch.gateway.local
Class LocalGatewayStartedShards.Builder

java.lang.Object
  extended by org.elasticsearch.gateway.local.LocalGatewayStartedShards.Builder
Enclosing class:
LocalGatewayStartedShards

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


Constructor Summary
LocalGatewayStartedShards.Builder()
           
 
Method Summary
 LocalGatewayStartedShards build()
           
static LocalGatewayStartedShards fromXContent(XContentParser parser)
           
 boolean put(ShardId shardId, long version)
          Returns true if something really changed.
static LocalGatewayStartedShards readFrom(StreamInput in)
           
 boolean remove(ShardId shardId)
          Returns true if something really changed.
 LocalGatewayStartedShards.Builder state(LocalGatewayStartedShards state)
           
static void toXContent(LocalGatewayStartedShards state, XContentBuilder builder, ToXContent.Params params)
           
 LocalGatewayStartedShards.Builder version(long version)
           
static void writeTo(LocalGatewayStartedShards state, StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalGatewayStartedShards.Builder

public LocalGatewayStartedShards.Builder()
Method Detail

state

public LocalGatewayStartedShards.Builder state(LocalGatewayStartedShards state)

version

public LocalGatewayStartedShards.Builder version(long version)

remove

public boolean remove(ShardId shardId)
Returns true if something really changed.


put

public boolean put(ShardId shardId,
                   long version)
Returns true if something really changed.


build

public LocalGatewayStartedShards build()

toXContent

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

fromXContent

public static LocalGatewayStartedShards fromXContent(XContentParser parser)
                                              throws java.io.IOException
Throws:
java.io.IOException

readFrom

public static LocalGatewayStartedShards readFrom(StreamInput in)
                                          throws java.io.IOException
Throws:
java.io.IOException

writeTo

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