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, nodeName
canAllocate, canAllocate, canAllocate, canAllocate, canForceAllocatePrimary, canRebalance, canRemain
public static final java.lang.String NAME
public RebalanceOnlyWhenActiveAllocationDecider(Settings settings)
public Decision canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)
AllocationDecider
Decision
whether the given shard routing can be
re-balanced to the given allocation. The default is
Decision.ALWAYS
.canRebalance
in class AllocationDecider