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.
-
-
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()
-
-
-
Method Detail
-
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(XContentParser parser) throws java.io.IOException
- Throws:
java.io.IOException
-
build
public abstract T build()
-
validate
protected void validate()
-
-