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​(org.elasticsearch.common.xcontent.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
  • Field Details

    • index

      protected java.lang.String index
    • shard

      protected int shard
    • node

      protected java.lang.String node
  • Constructor Details

    • Builder

      protected Builder()
  • Method Details

    • setIndex

      public void setIndex​(java.lang.String index)
    • setShard

      public void setShard​(int shard)
    • setNode

      public void setNode​(java.lang.String node)
    • parse

      public abstract AbstractAllocateAllocationCommand.Builder<T> parse​(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException
      Throws:
      java.io.IOException
    • build

      public abstract T build()
    • validate

      protected void validate()