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 Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
index
-
shard
protected int shard -
node
-
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
setIndex
-
setShard
public void setShard(int shard) -
setNode
-
parse
public abstract AbstractAllocateAllocationCommand.Builder<T> parse(org.elasticsearch.common.xcontent.XContentParser parser) throws IOException- Throws:
IOException
-
build
-
validate
protected void validate()
-