protected static class ESAllocationTestCase.MockAllocationService extends AllocationService
AllocationService allowing tests to override timeAllocationService.CommandsResultdeprecationLogger, 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, nodeNameapplyFailedShard, applyFailedShards, applyFailedShards, applyStartedShards, buildResultAndLogHealthChange, deassociateDeadNodes, reroute, reroute, reroute, setGatewayAllocatorpublic MockAllocationService(Settings settings, AllocationDeciders allocationDeciders, GatewayAllocator gatewayAllocator, ShardsAllocator shardsAllocator, ClusterInfoService clusterInfoService)
public void setNanoTimeOverride(long nanoTime)
protected long currentNanoTime()
currentNanoTime in class AllocationService