kieker.monitoring.probe.sigar.samplers
Class CPUsCombinedPercSampler
java.lang.Object
kieker.monitoring.probe.sigar.samplers.AbstractSigarSampler
kieker.monitoring.probe.sigar.samplers.CPUsCombinedPercSampler
- All Implemented Interfaces:
- ISampler
public class CPUsCombinedPercSampler
- extends AbstractSigarSampler
Logs the combined (i.e., User + Sys + Nice + Wait) cpu utilization for each
CPU in the system, retrieved via CpuPerc.getCombined()
, as ResourceUtilizationRecord
s via
WriterController#newMonitoringRecord(kieker.common.record.IMonitoringRecord)
.
- Author:
- Andre van Hoorn
Constructor Summary |
CPUsCombinedPercSampler(org.hyperic.sigar.SigarProxy sigar)
Constructs a new AbstractSigarSampler with given
SigarProxy instance used to retrieve the sensor data. |
Method Summary |
void |
sample(IMonitoringController samplingController)
Triggers this ISampler to perform a measurement and to pass the data
to the given IMonitoringController . |
CPUsCombinedPercSampler
public CPUsCombinedPercSampler(org.hyperic.sigar.SigarProxy sigar)
- Constructs a new
AbstractSigarSampler
with given
SigarProxy
instance used to retrieve the sensor data. Users
should use the factory method
SigarSamplerFactory#createSensorCPUsCombinedPerc()
to acquire an
instance rather than calling this constructor directly.
- Parameters:
sigar
-
sample
public void sample(IMonitoringController samplingController)
throws Exception
- Description copied from interface:
ISampler
- Triggers this
ISampler
to perform a measurement and to pass the data
to the given IMonitoringController
.
- Throws:
Exception
- thrown to indicate an error.
Copyright 2011 the Kieker Project, http://kieker.sourceforge.net>