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 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 Details

    • hardwareAbstractionLayer

      protected final oshi.hardware.HardwareAbstractionLayer hardwareAbstractionLayer
      The HardwareAbstractionLayer reference which will be used to retrieve the sensor data.
  • Constructor Details

    • AbstractOshiSampler

      public AbstractOshiSampler(oshi.hardware.HardwareAbstractionLayer hardwareAbstractionLayer)
      Constructs a new AbstractOshiSampler with given HardwareAbstractionLayer instance used to retrieve the sensor data.
      Parameters:
      hardwareAbstractionLayer - The HardwareAbstractionLayer reference which will be used to retrieve the data.