Class DiskUsageSampler

java.lang.Object
kieker.monitoring.sampler.oshi.samplers.AbstractOshiSampler
kieker.monitoring.sampler.oshi.samplers.DiskUsageSampler
All Implemented Interfaces:
ISampler

public final class DiskUsageSampler extends AbstractOshiSampler
Since:
1.14
Author:
Matteo Sassano
  • Constructor Details

    • DiskUsageSampler

      public DiskUsageSampler(oshi.hardware.HardwareAbstractionLayer hardwareAbstractionLayer)
      Constructs a new AbstractOshiSampler with given HardwareAbstractionLayer instance used to retrieve the sensor data. Users should use the factory method OshiSamplerFactory.createSensorDiskUsage() to acquire an instance rather than calling this constructor directly.
      Parameters:
      hardwareAbstractionLayer - The HardwareAbstractionLayer which will be used to retrieve the data.
  • Method Details

    • sample

      public void sample(IMonitoringController monitoringController)
      Triggers this ISampler to perform a measurement and to pass the data to the given IMonitoringController.
      Parameters:
      monitoringController - The controller to which the sampler should pass the data.