protected static class ESAllocationTestCase.MockAllocationService
extends org.elasticsearch.cluster.routing.allocation.AllocationService
AllocationService
allowing tests to override timeConstructor and Description |
---|
MockAllocationService(org.elasticsearch.common.settings.Settings settings,
org.elasticsearch.cluster.routing.allocation.decider.AllocationDeciders allocationDeciders,
org.elasticsearch.gateway.GatewayAllocator gatewayAllocator,
org.elasticsearch.cluster.routing.allocation.allocator.ShardsAllocator shardsAllocator,
org.elasticsearch.cluster.ClusterInfoService clusterInfoService) |
Modifier and Type | Method and Description |
---|---|
protected long |
currentNanoTime() |
void |
setNanoTimeOverride(long nanoTime) |
applyFailedShard, applyFailedShards, applyFailedShards, applyStartedShards, buildResultAndLogHealthChange, deassociateDeadNodes, reroute, reroute, reroute
public MockAllocationService(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.cluster.routing.allocation.decider.AllocationDeciders allocationDeciders, org.elasticsearch.gateway.GatewayAllocator gatewayAllocator, org.elasticsearch.cluster.routing.allocation.allocator.ShardsAllocator shardsAllocator, org.elasticsearch.cluster.ClusterInfoService clusterInfoService)