Class AbstractAllocateAllocationCommand.Builder<T extends AbstractAllocateAllocationCommand>

java.lang.Object
org.elasticsearch.cluster.routing.allocation.command.AbstractAllocateAllocationCommand.Builder<T>
Direct Known Subclasses:
AllocateReplicaAllocationCommand.Builder, BasePrimaryAllocationCommand.Builder
Enclosing class:
AbstractAllocateAllocationCommand

protected abstract static class AbstractAllocateAllocationCommand.Builder<T extends AbstractAllocateAllocationCommand>
extends java.lang.Object
Works around ObjectParser not supporting constructor arguments.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.lang.String index  
    protected java.lang.String node  
    protected int shard  
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected Builder()  
  • Method Summary

    Modifier and Type Method Description
    abstract T build()  
    abstract AbstractAllocateAllocationCommand.Builder<T> parse​(XContentParser parser)  
    void setIndex​(java.lang.String index)  
    void setNode​(java.lang.String node)  
    void setShard​(int shard)  
    protected void validate()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait