Package org.elasticsearch.cluster
Class ESAllocationTestCase.MockAllocationService
java.lang.Object
org.elasticsearch.cluster.routing.allocation.AllocationService
org.elasticsearch.cluster.ESAllocationTestCase.MockAllocationService
- Enclosing class:
- ESAllocationTestCase
A lock
AllocationService
allowing tests to override time-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.cluster.routing.allocation.AllocationService
AllocationService.CommandsResult, AllocationService.RerouteStrategy
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMockAllocationService
(AllocationDeciders allocationDeciders, GatewayAllocator gatewayAllocator, ShardsAllocator shardsAllocator, ClusterInfoService clusterInfoService, SnapshotsInfoService snapshotsInfoService) -
Method Summary
Methods inherited from class org.elasticsearch.cluster.routing.allocation.AllocationService
adaptAutoExpandReplicas, applyFailedShards, applyStartedShards, cleanCaches, disassociateDeadNodes, executeWithRoutingAllocation, explainShardAllocation, firstListElementsToCommaDelimitedString, getAllocationDeciders, getHealthStatus, getNumberOfInFlightFetches, getShardRoutingRoleStrategy, reroute, reroute, setExistingShardsAllocators
-
Field Details
-
gatewayAllocator
-
shardsAllocator
-
-
Constructor Details
-
MockAllocationService
public MockAllocationService(AllocationDeciders allocationDeciders, GatewayAllocator gatewayAllocator, ShardsAllocator shardsAllocator, ClusterInfoService clusterInfoService, SnapshotsInfoService snapshotsInfoService)
-
-
Method Details
-
setNanoTimeOverride
public void setNanoTimeOverride(long nanoTime) -
currentNanoTime
protected long currentNanoTime()- Overrides:
currentNanoTime
in classAllocationService
-