protected static class ESAllocationTestCase.MockAllocationService
extends org.elasticsearch.cluster.routing.allocation.AllocationService
AllocationService allowing tests to override time| Constructor 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, applyStartedShards, applyStartedShards, buildResultAndLogHealthChange, buildResultAndLogHealthChange, cancelShard, reroute, reroute, reroutepublic 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)