Class AbstractAllocateAllocationCommand.Builder<T extends AbstractAllocateAllocationCommand>

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
Works around ObjectParser not supporting constructor arguments.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected
     
    protected
     
    protected int
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract T
     
    parse​(org.elasticsearch.common.xcontent.XContentParser parser)
     
    void
     index)
     
    void
     node)
     
    void
    setShard​(int shard)
     
    protected void
     

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • Field Details

    • index

      protected  index
    • shard

      protected int shard
    • node

      protected  node
  • Constructor Details

    • Builder

      protected Builder()
  • Method Details

    • setIndex

      public void setIndex( index)
    • setShard

      public void setShard(int shard)
    • setNode

      public void setNode( node)
    • parse

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

      public abstract T build()
    • validate

      protected void validate()