public class LoadMonitorTaskRunner.SamplingStep extends Object
Modifier and Type | Field and Description |
---|---|
LoadMonitorTaskRunner.NextSamplingStep |
nextSamplingStep |
Duration |
sleepDuration |
SamplingUtils.MetricsWindow |
targetWindow |
Constructor and Description |
---|
SamplingStep(LoadMonitorTaskRunner.NextSamplingStep nextSamplingStep,
LoadMonitorTaskRunner.WindowSamplingInstruction wis,
Duration sleepDuration) |
public final Duration sleepDuration
public final LoadMonitorTaskRunner.NextSamplingStep nextSamplingStep
public final SamplingUtils.MetricsWindow targetWindow
public SamplingStep(LoadMonitorTaskRunner.NextSamplingStep nextSamplingStep, LoadMonitorTaskRunner.WindowSamplingInstruction wis, Duration sleepDuration)
wis
- the window sampling instruction on what the sampler should do next, denoting which window should be sampled and whether it can be sampled now.sleepDuration
- the actual duration that the sampler should sleep.