public class MoveAllocationCommand extends java.lang.Object implements AllocationCommand
ShardRoutingState.STARTED
in order to be moved.Modifier and Type | Class and Description |
---|---|
static class |
MoveAllocationCommand.Factory |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Constructor and Description |
---|
MoveAllocationCommand(java.lang.String index,
int shardId,
java.lang.String fromNode,
java.lang.String toNode) |
Modifier and Type | Method and Description |
---|---|
RerouteExplanation |
execute(RoutingAllocation allocation,
boolean explain)
Executes the command on a
RoutingAllocation setup |
java.lang.String |
fromNode() |
java.lang.String |
index() |
java.lang.String |
name()
Get the name of the command
|
int |
shardId() |
java.lang.String |
toNode() |
public static final java.lang.String NAME
public MoveAllocationCommand(java.lang.String index, int shardId, java.lang.String fromNode, java.lang.String toNode)
public java.lang.String name()
AllocationCommand
name
in interface AllocationCommand
public java.lang.String index()
public int shardId()
public java.lang.String fromNode()
public java.lang.String toNode()
public RerouteExplanation execute(RoutingAllocation allocation, boolean explain)
AllocationCommand
RoutingAllocation
setupexecute
in interface AllocationCommand
allocation
- RoutingAllocation
to modify