public class AllocationDeciders extends AllocationDecider
AllocationDecider combining the "decision" of multiple
AllocationDecider implementations into a single allocation decision.deprecationLogger, logger, settings| Constructor and Description |
|---|
AllocationDeciders(Settings settings,
AllocationDecider[] allocations) |
AllocationDeciders(Settings settings,
Set<AllocationDecider> allocations) |
| Modifier and Type | Method and Description |
|---|---|
Decision |
canAllocate(IndexMetaData indexMetaData,
RoutingNode node,
RoutingAllocation allocation)
Returns a
Decision whether the given shard routing can be allocated at all at this state of the
RoutingAllocation. |
Decision |
canAllocate(RoutingNode node,
RoutingAllocation allocation)
Returns a
Decision whether the given node can allow any allocation at all at this state of the
RoutingAllocation. |
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. |
Decision |
canRebalance(RoutingAllocation allocation)
Returns a
Decision whether the cluster can execute
re-balanced operations at all. |
Decision |
canRebalance(ShardRouting shardRouting,
RoutingAllocation allocation)
Returns a
Decision whether the given shard routing can be
re-balanced to the given allocation. |
Decision |
canRemain(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation)
Returns a
Decision whether the given shard routing can be remain
on the given node. |
logDeprecatedSetting, logRemovedSetting, nodeNamepublic AllocationDeciders(Settings settings, AllocationDecider[] allocations)
@Inject public AllocationDeciders(Settings settings, Set<AllocationDecider> allocations)
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 AllocationDeciderpublic 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 canRemain(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)
AllocationDeciderDecision whether the given shard routing can be remain
on the given node. The default is Decision.ALWAYS.canRemain in class AllocationDeciderpublic Decision canAllocate(IndexMetaData indexMetaData, RoutingNode node, 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 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 AllocationDeciderpublic Decision canAllocate(RoutingNode node, RoutingAllocation allocation)
AllocationDeciderDecision whether the given node can allow any allocation at all at this state of the
RoutingAllocation. The default is Decision.ALWAYS.canAllocate in class AllocationDeciderpublic Decision canRebalance(RoutingAllocation allocation)
AllocationDeciderDecision whether the cluster can execute
re-balanced operations at all.
Decision.ALWAYS.canRebalance in class AllocationDeciderCopyright © 2009–2017. All rights reserved.