Class CPUsCombinedPercSampler
java.lang.Object
kieker.monitoring.sampler.oshi.samplers.AbstractOshiSampler
kieker.monitoring.sampler.oshi.samplers.CPUsCombinedPercSampler
- All Implemented Interfaces:
ISampler
public class CPUsCombinedPercSampler extends AbstractOshiSampler
Logs the combined (i.e., User + Sys + Nice + Wait) cpu utilization for each
CPU in the system, retrieved via
HardwareAbstractionLayer, as
ResourceUtilizationRecords via
IWriterController.newMonitoringRecord(kieker.common.record.IMonitoringRecord)
.- Since:
- 1.14
- Author:
- Matteo Sassano
-
Field Summary
Fields inherited from class kieker.monitoring.sampler.oshi.samplers.AbstractOshiSampler
hardwareAbstractionLayer -
Constructor Summary
Constructors Constructor Description CPUsCombinedPercSampler(oshi.hardware.HardwareAbstractionLayer hardwareAbstractionLayer)Constructs a newAbstractOshiSamplerwith givenSystemInfoinstance used to retrieve the sensor data. -
Method Summary
Modifier and Type Method Description voidsample(IMonitoringController monitoringController)Triggers thisISamplerto perform a measurement and to pass the data to the givenIMonitoringController.
-
Constructor Details
-
CPUsCombinedPercSampler
public CPUsCombinedPercSampler(oshi.hardware.HardwareAbstractionLayer hardwareAbstractionLayer)Constructs a newAbstractOshiSamplerwith givenSystemInfoinstance used to retrieve the sensor data. Users should use the factory methodOshiSamplerFactory.createSensorCPUsCombinedPerc()to acquire an instance rather than calling this constructor directly.- Parameters:
hardwareAbstractionLayer- The hardwareAbstractionLayer which will be used to retrieve the data.
-
-
Method Details
-
sample
Triggers thisISamplerto perform a measurement and to pass the data to the givenIMonitoringController.- Parameters:
monitoringController- The controller to which the sampler should pass the data.
-