protected static class ESAllocationTestCase.MockAllocationService extends AllocationService
AllocationService
allowing tests to override timeAllocationService.CommandsResult
deprecationLogger, logger, settings
Constructor and Description |
---|
MockAllocationService(Settings settings,
AllocationDeciders allocationDeciders,
GatewayAllocator gatewayAllocator,
ShardsAllocator shardsAllocator,
ClusterInfoService clusterInfoService) |
Modifier and Type | Method and Description |
---|---|
protected long |
currentNanoTime() |
void |
setNanoTimeOverride(long nanoTime) |
applyFailedShard, applyFailedShards, applyFailedShards, applyStartedShards, buildResultAndLogHealthChange, deassociateDeadNodes, reroute, reroute, reroute
logDeprecatedSetting, logRemovedSetting, nodeName
public MockAllocationService(Settings settings, AllocationDeciders allocationDeciders, GatewayAllocator gatewayAllocator, ShardsAllocator shardsAllocator, ClusterInfoService clusterInfoService)
public void setNanoTimeOverride(long nanoTime)
protected long currentNanoTime()
currentNanoTime
in class AllocationService