public class MoveAllocationCommand extends Object implements AllocationCommand
ShardRoutingState.STARTED
in order to be moved.Modifier and Type | Class and Description |
---|---|
static class |
MoveAllocationCommand.Factory |
Constructor and Description |
---|
MoveAllocationCommand(ShardId shardId,
String fromNode,
String toNode) |
Modifier and Type | Method and Description |
---|---|
RerouteExplanation |
execute(RoutingAllocation allocation,
boolean explain)
Executes the command on a
RoutingAllocation setup |
String |
fromNode() |
String |
name()
Get the name of the command
|
ShardId |
shardId() |
String |
toNode() |
public static final String NAME
public String name()
AllocationCommand
name
in interface AllocationCommand
public ShardId shardId()
public String fromNode()
public String toNode()
public RerouteExplanation execute(RoutingAllocation allocation, boolean explain)
AllocationCommand
RoutingAllocation
setupexecute
in interface AllocationCommand
allocation
- RoutingAllocation
to modifyCopyright © 2009–2016. All rights reserved.