public 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 and Description |
---|---|
void |
calibrate(ResourceCalculatorPlugin monitor,
long totalCpuUsage)
Allows the core to calibrate itself.
|
void |
compute()
Performs some computation to use up some CPU.
|
void compute()
void calibrate(ResourceCalculatorPlugin monitor, long totalCpuUsage)
Copyright © 2013 Apache Software Foundation. All rights reserved.