public class RebalanceOnlyWhenActiveAllocationDecider extends AllocationDecider
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
deprecationLogger, logger, settings| Constructor and Description |
|---|
RebalanceOnlyWhenActiveAllocationDecider(Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
Decision |
canRebalance(ShardRouting shardRouting,
RoutingAllocation allocation)
Returns a
Decision whether the given shard routing can be
re-balanced to the given allocation. |
canAllocate, canAllocate, canAllocate, canAllocate, canForceAllocatePrimary, canRebalance, canRemainlogDeprecatedSetting, logRemovedSetting, nodeNamepublic 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