public class RebalanceOnlyWhenActiveAllocationDecider extends AllocationDecider
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
NAME |
deprecationLogger, logger, settings| Constructor | Description |
|---|---|
RebalanceOnlyWhenActiveAllocationDecider(Settings settings) |
| Modifier and Type | Method | Description |
|---|---|---|
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, canAllocate, canForceAllocatePrimary, canRebalance, canRemainpublic static final java.lang.String NAME
public RebalanceOnlyWhenActiveAllocationDecider(Settings settings)
public Decision canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)
AllocationDeciderDecision whether the given shard routing can be
re-balanced to the given allocation. The default is
Decision.ALWAYS.canRebalance in class AllocationDecider