AllocationCommand, NamedWriteable, Writeable, ToXContent, ToXContentObjectAllocateEmptyPrimaryAllocationCommand, AllocateStalePrimaryAllocationCommandpublic abstract class BasePrimaryAllocationCommand extends AbstractAllocateAllocationCommand
| Modifier and Type | Class | Description |
|---|---|---|
protected static class |
BasePrimaryAllocationCommand.Builder<T extends BasePrimaryAllocationCommand> |
AllocationCommand.Parser<T extends AllocationCommand>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
acceptDataLoss |
index, node, shardIdEMPTY_PARAMS| Modifier | Constructor | Description |
|---|---|---|
protected |
BasePrimaryAllocationCommand(java.lang.String index,
int shardId,
java.lang.String node,
boolean acceptDataLoss) |
|
protected |
BasePrimaryAllocationCommand(StreamInput in) |
Read from a stream.
|
| Modifier and Type | Method | 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, toXContentexecute, getMessage, getWriteableName, nameclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisFragmentprotected 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