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
ISamplers which collect system-level
sensor data via the com.github.oshi API and store this data as
IMonitoringRecords via
WriterController.newMonitoringRecord(kieker.common.record.IMonitoringRecord)
.- Since:
- 1.14
- Author:
- Matteo Sassano
-
Field Summary
Fields Modifier and Type Field Description protected oshi.hardware.HardwareAbstractionLayerhardwareAbstractionLayerTheHardwareAbstractionLayerreference which will be used to retrieve the sensor data. -
Constructor Summary
Constructors Constructor Description AbstractOshiSampler(oshi.hardware.HardwareAbstractionLayer hardwareAbstractionLayer)Constructs a newAbstractOshiSamplerwith givenHardwareAbstractionLayerinstance used to retrieve the sensor data. -
Method Summary
-
Field Details
-
hardwareAbstractionLayer
protected final oshi.hardware.HardwareAbstractionLayer hardwareAbstractionLayerTheHardwareAbstractionLayerreference which will be used to retrieve the sensor data.
-
-
Constructor Details
-
AbstractOshiSampler
public AbstractOshiSampler(oshi.hardware.HardwareAbstractionLayer hardwareAbstractionLayer)Constructs a newAbstractOshiSamplerwith givenHardwareAbstractionLayerinstance used to retrieve the sensor data.- Parameters:
hardwareAbstractionLayer- TheHardwareAbstractionLayerreference which will be used to retrieve the data.
-