public abstract class BasePrimaryAllocationCommand extends AbstractAllocateAllocationCommand
Modifier and Type | Class and Description |
---|---|
protected static class |
BasePrimaryAllocationCommand.Builder<T extends BasePrimaryAllocationCommand> |
AllocationCommand.Parser<T extends AllocationCommand>
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
protected boolean |
acceptDataLoss |
index, node, shardId
EMPTY_PARAMS
Modifier | Constructor and Description |
---|---|
protected |
BasePrimaryAllocationCommand(StreamInput in)
Read from a stream.
|
protected |
BasePrimaryAllocationCommand(java.lang.String index,
int shardId,
java.lang.String node,
boolean acceptDataLoss) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptDataLoss()
The operation only executes if the user explicitly agrees to possible data loss
|
protected static <T extends BasePrimaryAllocationCommand.Builder<?>> |
createAllocatePrimaryParser(java.lang.String command) |
boolean |
equals(java.lang.Object obj) |
protected void |
extraXContent(XContentBuilder builder) |
int |
hashCode() |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
createAllocateParser, explainOrThrowMissingRoutingNode, explainOrThrowRejectedCommand, explainOrThrowRejectedCommand, index, initializeUnassignedShard, initializeUnassignedShard, node, shardId, toXContent
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
execute, getWriteableName, name
isFragment
protected BasePrimaryAllocationCommand(java.lang.String index, int shardId, java.lang.String node, boolean acceptDataLoss)
protected BasePrimaryAllocationCommand(StreamInput in) throws java.io.IOException
java.io.IOException
protected static <T extends BasePrimaryAllocationCommand.Builder<?>> ObjectParser<T,java.lang.Void> createAllocatePrimaryParser(java.lang.String command)
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
writeTo
in interface Writeable
writeTo
in class AbstractAllocateAllocationCommand
java.io.IOException
public boolean acceptDataLoss()
protected void extraXContent(XContentBuilder builder) throws java.io.IOException
extraXContent
in class AbstractAllocateAllocationCommand
java.io.IOException
public boolean equals(java.lang.Object obj)
equals
in class AbstractAllocateAllocationCommand
public int hashCode()
hashCode
in class AbstractAllocateAllocationCommand