protected static class ESAllocationTestCase.MockAllocationService
extends org.elasticsearch.cluster.routing.allocation.AllocationService
AllocationService
allowing tests to override timeConstructor | 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 | Description |
---|---|---|
protected long |
currentNanoTime() |
|
void |
setNanoTimeOverride(long nanoTime) |
logDeprecatedSetting, logRemovedSetting, nodeName
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)