Class AbstractOshiSampler
java.lang.Object
kieker.monitoring.sampler.oshi.samplers.AbstractOshiSampler
- All Implemented Interfaces:
ISampler
- Direct Known Subclasses:
CPUsCombinedPercSampler
,CPUsDetailedPercSampler
,DiskUsageSampler
,LoadAverageSampler
,MemSwapUsageSampler
,NetworkUtilizationSampler
public abstract class AbstractOshiSampler extends java.lang.Object implements ISampler
Eases the implementation of
ISampler
s which collect system-level
sensor data via the com.github.oshi
API and store this data as
IMonitoringRecord
s via
WriterController.newMonitoringRecord(kieker.common.record.IMonitoringRecord)
.- Since:
- 1.14
- Author:
- Matteo Sassano
-
Field Summary
Fields Modifier and Type Field Description protected oshi.hardware.HardwareAbstractionLayer
hardwareAbstractionLayer
TheHardwareAbstractionLayer
reference which will be used to retrieve the sensor data. -
Constructor Summary
Constructors Constructor Description AbstractOshiSampler(oshi.hardware.HardwareAbstractionLayer hardwareAbstractionLayer)
Constructs a newAbstractOshiSampler
with givenHardwareAbstractionLayer
instance used to retrieve the sensor data. -
Method Summary
-
Field Details
-
hardwareAbstractionLayer
protected final oshi.hardware.HardwareAbstractionLayer hardwareAbstractionLayerTheHardwareAbstractionLayer
reference which will be used to retrieve the sensor data.
-
-
Constructor Details
-
AbstractOshiSampler
public AbstractOshiSampler(oshi.hardware.HardwareAbstractionLayer hardwareAbstractionLayer)Constructs a newAbstractOshiSampler
with givenHardwareAbstractionLayer
instance used to retrieve the sensor data.- Parameters:
hardwareAbstractionLayer
- TheHardwareAbstractionLayer
reference which will be used to retrieve the data.
-