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()
AllocationCommandname in interface AllocationCommandpublic ShardId shardId()
public String fromNode()
public String toNode()
public RerouteExplanation execute(RoutingAllocation allocation, boolean explain)
AllocationCommandRoutingAllocation setupexecute in interface AllocationCommandallocation - RoutingAllocation to modifyCopyright © 2009–2017. All rights reserved.