NamedWriteable
, ToXContent
, ToXContentObject
, Writeable
AbstractAllocateAllocationCommand
, AllocateEmptyPrimaryAllocationCommand
, AllocateReplicaAllocationCommand
, AllocateStalePrimaryAllocationCommand
, BasePrimaryAllocationCommand
, CancelAllocationCommand
, MoveAllocationCommand
public interface AllocationCommand extends NamedWriteable, ToXContentObject
NetworkModule
.Modifier and Type | Interface | Description |
---|---|---|
static interface |
AllocationCommand.Parser<T extends AllocationCommand> |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.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
|
toXContent
isFragment
java.lang.String name()
RerouteExplanation execute(RoutingAllocation allocation, boolean explain)
RoutingAllocation
setupallocation
- RoutingAllocation
to modifyElasticsearchException
- if something happens during reconfigurationdefault java.lang.String getWriteableName()
NamedWriteable
getWriteableName
in interface NamedWriteable
default java.util.Optional<java.lang.String> getMessage()