org.elasticsearch.cluster.routing.allocation.decider
Class ReplicaAfterPrimaryActiveAllocationDecider
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.cluster.routing.allocation.decider.AllocationDecider
org.elasticsearch.cluster.routing.allocation.decider.ReplicaAfterPrimaryActiveAllocationDecider
public class ReplicaAfterPrimaryActiveAllocationDecider
- extends AllocationDecider
An allocation strategy that only allows for a replica to be allocated when the primary is active.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReplicaAfterPrimaryActiveAllocationDecider
@Inject
public ReplicaAfterPrimaryActiveAllocationDecider(Settings settings)
canAllocate
public AllocationDecider.Decision canAllocate(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation)
- Overrides:
canAllocate
in class AllocationDecider
Copyright © 2009-2012. All Rights Reserved.