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, shardIdEMPTY_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, toXContentclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitexecute, getWriteableName, nameisFragmentprotected BasePrimaryAllocationCommand(java.lang.String index,
int shardId,
java.lang.String node,
boolean acceptDataLoss)
protected BasePrimaryAllocationCommand(StreamInput in) throws java.io.IOException
java.io.IOExceptionprotected static <T extends BasePrimaryAllocationCommand.Builder<?>> ObjectParser<T,java.lang.Void> createAllocatePrimaryParser(java.lang.String command)
public void writeTo(StreamOutput out) throws java.io.IOException
WriteablewriteTo in interface WriteablewriteTo in class AbstractAllocateAllocationCommandjava.io.IOExceptionpublic boolean acceptDataLoss()
protected void extraXContent(XContentBuilder builder) throws java.io.IOException
extraXContent in class AbstractAllocateAllocationCommandjava.io.IOExceptionpublic boolean equals(java.lang.Object obj)
equals in class AbstractAllocateAllocationCommandpublic int hashCode()
hashCode in class AbstractAllocateAllocationCommand