public class ReplicaAfterPrimaryActiveAllocationDecider extends AllocationDecider
deprecationLogger, logger, settings| Constructor | Description |
|---|---|
ReplicaAfterPrimaryActiveAllocationDecider(Settings settings) |
| Modifier and Type | Method | Description |
|---|---|---|
Decision |
canAllocate(ShardRouting shardRouting,
RoutingAllocation allocation) |
Returns a
Decision whether the given shard routing can be allocated at all at this state of the
RoutingAllocation. |
Decision |
canAllocate(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation) |
Returns a
Decision whether the given shard routing can be
allocated on the given node. |
logDeprecatedSetting, logRemovedSetting, nodeNamecanAllocate, canAllocate, canForceAllocatePrimary, canRebalance, canRebalance, canRemainpublic ReplicaAfterPrimaryActiveAllocationDecider(Settings settings)
public Decision canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)
AllocationDeciderDecision whether the given shard routing can be
allocated on the given node. The default is Decision.ALWAYS.canAllocate in class AllocationDeciderpublic Decision canAllocate(ShardRouting shardRouting, RoutingAllocation allocation)
AllocationDeciderDecision whether the given shard routing can be allocated at all at this state of the
RoutingAllocation. The default is Decision.ALWAYS.canAllocate in class AllocationDecider