NamedWriteable, ToXContent, ToXContentObject, WriteableAbstractAllocateAllocationCommand, AllocateEmptyPrimaryAllocationCommand, AllocateReplicaAllocationCommand, AllocateStalePrimaryAllocationCommand, BasePrimaryAllocationCommand, CancelAllocationCommand, MoveAllocationCommandpublic interface AllocationCommand extends NamedWriteable, ToXContentObject
NetworkModule.| Modifier and Type | Interface | Description |
|---|---|---|
static interface |
AllocationCommand.Parser<T extends AllocationCommand> |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>EMPTY_PARAMS| Modifier and Type | Method | Description |
|---|---|---|
RerouteExplanation |
execute(RoutingAllocation allocation,
boolean explain) |
Executes the command on a
RoutingAllocation setup |
default java.util.Optional<java.lang.String> |
getMessage() |
Returns any feedback the command wants to provide for logging.
|
default java.lang.String |
getWriteableName() |
Returns the name of the writeable object
|
java.lang.String |
name() |
Get the name of the command
|
toXContentisFragmentjava.lang.String name()
RerouteExplanation execute(RoutingAllocation allocation, boolean explain)
RoutingAllocation setupallocation - RoutingAllocation to modifyElasticsearchException - if something happens during reconfigurationdefault java.lang.String getWriteableName()
NamedWriteablegetWriteableName in interface NamedWriteabledefault java.util.Optional<java.lang.String> getMessage()