CumulativeCpuUsageEmulatorPlugin.DefaultCpuUsageEmulatorpublic static interface CumulativeCpuUsageEmulatorPlugin.CpuUsageEmulatorCore
compute() should help the
plugin emulate the desired level of CPU usage. This core engine can be
calibrated using the calibrate(ResourceCalculatorPlugin, long)
API to suit the underlying hardware better. It also can be used to optimize
the emulation cycle.| Modifier and Type | Method | Description |
|---|---|---|
void |
calibrate(org.apache.hadoop.yarn.util.ResourceCalculatorPlugin monitor,
long totalCpuUsage) |
Allows the core to calibrate itself.
|
void |
compute() |
Performs some computation to use up some CPU.
|
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.