kieker.monitoring.probe.sigar.samplers
Class MemSwapUsageSampler
java.lang.Object
kieker.monitoring.probe.sigar.samplers.AbstractSigarSampler
kieker.monitoring.probe.sigar.samplers.MemSwapUsageSampler
- All Implemented Interfaces:
- ISampler
public class MemSwapUsageSampler
- extends AbstractSigarSampler
Logs memory and swap statistics retrieved from Mem and Swap,
as MemSwapUsageRecords via IWriterController.newMonitoringRecord(kieker.common.record.IMonitoringRecord) .
- Author:
- Andre van Hoorn
|
Constructor Summary |
MemSwapUsageSampler(org.hyperic.sigar.SigarProxy sigar)
Constructs a new AbstractSigarSampler with given SigarProxy instance used to retrieve the sensor data. |
|
Method Summary |
void |
sample(IMonitoringController monitoringController)
Triggers this ISampler to perform a measurement and to pass the data
to the given IMonitoringController. |
MemSwapUsageSampler
public MemSwapUsageSampler(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.createSensorMemSwapUsage() to acquire an
instance rather than calling this constructor directly.
- Parameters:
sigar -
sample
public void sample(IMonitoringController monitoringController)
throws org.hyperic.sigar.SigarException
- Description copied from interface:
ISampler
- Triggers this
ISampler to perform a measurement and to pass the data
to the given IMonitoringController.
- Throws:
org.hyperic.sigar.SigarException
Copyright 2011 the Kieker Project, http://kieker.sourceforge.net>