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