Package org.elasticsearch.cluster
Class ESAllocationTestCase.DelayedShardsMockGatewayAllocator
- java.lang.Object
-
- org.elasticsearch.gateway.GatewayAllocator
-
- org.elasticsearch.cluster.ESAllocationTestCase.DelayedShardsMockGatewayAllocator
-
- Enclosing class:
- ESAllocationTestCase
protected static class ESAllocationTestCase.DelayedShardsMockGatewayAllocator extends GatewayAllocator
Mocks behavior in ReplicaShardAllocator to remove delayed shards from list of unassigned shards so they don't get reassigned yet.
-
-
Constructor Summary
Constructors Constructor Description DelayedShardsMockGatewayAllocator()
-
Method Summary
Modifier and Type Method Description voidallocateUnassigned(RoutingAllocation allocation)voidapplyFailedShards(RoutingAllocation allocation, java.util.List<FailedShard> failedShards)voidapplyStartedShards(RoutingAllocation allocation, java.util.List<ShardRouting> startedShards)-
Methods inherited from class org.elasticsearch.gateway.GatewayAllocator
decideUnassignedShardAllocation, getNumberOfInFlightFetch, innerAllocatedUnassigned
-
-
-
-
Method Detail
-
applyStartedShards
public void applyStartedShards(RoutingAllocation allocation, java.util.List<ShardRouting> startedShards)
- Overrides:
applyStartedShardsin classGatewayAllocator
-
applyFailedShards
public void applyFailedShards(RoutingAllocation allocation, java.util.List<FailedShard> failedShards)
- Overrides:
applyFailedShardsin classGatewayAllocator
-
allocateUnassigned
public void allocateUnassigned(RoutingAllocation allocation)
- Overrides:
allocateUnassignedin classGatewayAllocator
-
-