Class MemSwapUsageSampler
java.lang.Object
kieker.monitoring.sampler.oshi.samplers.AbstractOshiSampler
kieker.monitoring.sampler.oshi.samplers.MemSwapUsageSampler
- All Implemented Interfaces:
ISampler
public class MemSwapUsageSampler extends AbstractOshiSampler
Logs memory and swap statistics retrieved from
GlobalMemory
, as
MemSwapUsageRecord
s via
IWriterController.newMonitoringRecord(kieker.common.record.IMonitoringRecord)
.- Since:
- 1.3
- Author:
- Matteo Sassano
-
Field Summary
Fields inherited from class kieker.monitoring.sampler.oshi.samplers.AbstractOshiSampler
hardwareAbstractionLayer
-
Constructor Summary
Constructors Constructor Description MemSwapUsageSampler(oshi.hardware.HardwareAbstractionLayer hardwareAbstractionLayer)
Constructs a newAbstractOshiSampler
with givenHardwareAbstractionLayer
instance used to retrieve the sensor data. -
Method Summary
Modifier and Type Method Description void
sample(IMonitoringController monitoringCtr)
Triggers thisISampler
to perform a measurement and to pass the data to the givenIMonitoringController
.
-
Constructor Details
-
MemSwapUsageSampler
public MemSwapUsageSampler(oshi.hardware.HardwareAbstractionLayer hardwareAbstractionLayer)Constructs a newAbstractOshiSampler
with givenHardwareAbstractionLayer
instance used to retrieve the sensor data. Users should use the factory methodOshiSamplerFactory.createSensorMemSwapUsage()
to acquire an instance rather than calling this constructor directly.- Parameters:
hardwareAbstractionLayer
- TheHardwareAbstractionLayer
which will be used to retrieve the data.
-
-
Method Details
-
sample
Triggers thisISampler
to perform a measurement and to pass the data to the givenIMonitoringController
.- Parameters:
monitoringCtr
- The controller to which the sampler should pass the data.
-