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.HardwareAbstractionLayer hardwareAbstractionLayer
    The HardwareAbstractionLayer reference which will be used to retrieve the sensor data.
  • Constructor Summary

    Constructors 
    Constructor Description
    AbstractOshiSampler​(oshi.hardware.HardwareAbstractionLayer hardwareAbstractionLayer)
    Constructs a new AbstractOshiSampler with given HardwareAbstractionLayer instance used to retrieve the sensor data.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface kieker.monitoring.core.sampler.ISampler

    sample
  • 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.