public class CancelAllocationCommand extends Object implements AllocationCommand
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
CancelAllocationCommand.Factory
Factory creating
CancelAllocationCommands |
| コンストラクタと説明 |
|---|
CancelAllocationCommand(ShardId shardId,
String node,
boolean allowPrimary)
Creates a new
CancelAllocationCommand |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
allowPrimary() |
RerouteExplanation |
execute(RoutingAllocation allocation,
boolean explain)
Executes the command on a
RoutingAllocation setup |
String |
name()
Get the name of the command
|
String |
node()
Get the id of the node that manages the shard which allocation should be canceled
|
ShardId |
shardId()
Get the id of the shard which allocation should be canceled
|
public CancelAllocationCommand(ShardId shardId, String node, boolean allowPrimary)
CancelAllocationCommandshardId - id of the shard which allocation should be cancelednode - id of the node that manages the shard which allocation should be canceledpublic String name()
AllocationCommandname インタフェース内 AllocationCommandpublic ShardId shardId()
public String node()
public boolean allowPrimary()
public RerouteExplanation execute(RoutingAllocation allocation, boolean explain)
AllocationCommandRoutingAllocation setupexecute インタフェース内 AllocationCommandallocation - RoutingAllocation to modifyCopyright © 2009–2016. All rights reserved.