Package org.elasticsearch.test.gateway
Class NoopGatewayAllocator
- java.lang.Object
-
- org.elasticsearch.gateway.GatewayAllocator
-
- org.elasticsearch.test.gateway.NoopGatewayAllocator
-
public class NoopGatewayAllocator extends GatewayAllocator
An allocator used for tests that doesn't do anything
-
-
Field Summary
Fields Modifier and Type Field Description static NoopGatewayAllocatorINSTANCE
-
Constructor Summary
Constructors Constructor Description NoopGatewayAllocator()
-
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
-
-
-
-
Field Detail
-
INSTANCE
public static final NoopGatewayAllocator INSTANCE
-
-
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
-
-