public class SnapshotInProgressAllocationDecider extends AllocationDecider
AllocationDecider prevents shards that
are currently been snapshotted to be moved to other nodes.| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
NAME |
deprecationLogger, logger, settings| Constructor | Description |
|---|---|
SnapshotInProgressAllocationDecider(Settings settings) |
Creates a new
SnapshotInProgressAllocationDecider instance from
given settings |
| Modifier and Type | Method | Description |
|---|---|---|
Decision |
canAllocate(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation) |
Returns a
Decision whether the given shard routing can be
allocated on the given node. |
Decision |
canRebalance(ShardRouting shardRouting,
RoutingAllocation allocation) |
Returns a
Decision whether the given shard routing can be
re-balanced to the given allocation. |
logDeprecatedSetting, logRemovedSetting, nodeNamecanAllocate, canAllocate, canAllocate, canForceAllocatePrimary, canRebalance, canRemainpublic static final java.lang.String NAME
public SnapshotInProgressAllocationDecider(Settings settings)
SnapshotInProgressAllocationDecider instance from
given settingssettings - Settings to usepublic Decision canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)
Decision whether the given shard routing can be
re-balanced to the given allocation. The default is
Decision.ALWAYS.canRebalance in class AllocationDeciderpublic Decision canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)
Decision whether the given shard routing can be
allocated on the given node. The default is Decision.ALWAYS.canAllocate in class AllocationDecider