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

    • index

      protected String index
    • shard

      protected int shard
    • node

      protected String node
  • Constructor Details

    • Builder

      protected Builder()
  • Method Details

    • setIndex

      public void setIndex(String index)
    • setShard

      public void setShard(int shard)
    • setNode

      public void setNode(String node)
    • parse

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

      public abstract T build()
    • validate

      protected void validate()