Class DiskstatsParameterProducer

java.lang.Object
org.yamcs.parameter.DiskstatsParameterProducer
All Implemented Interfaces:
SystemParametersProducer

public class DiskstatsParameterProducer extends Object implements SystemParametersProducer
Generates parameters containing information about the disk IO, similarly with what the command iostat provides.

Works only on Linux, reads all the info from /proc/diskstats.

  • Constructor Details

  • Method Details

    • getSystemParameters

      public Collection<ParameterValue> getSystemParameters(long gentime)
      Description copied from interface: SystemParametersProducer
      return the next bunch of parameter values.

      The gentime is the mission time when the parameter collection started. The returning parameters can use this time to allow all parameters in one collection interval to be timestamped with the same time.

      Specified by:
      getSystemParameters in interface SystemParametersProducer
    • uptime

      public long uptime() throws IOException
      Throws:
      IOException
    • getFrequency

      public int getFrequency()
      Description copied from interface: SystemParametersProducer
      How often this producer should be called. This is a multiplier for the base frequency which is 1 second.

      For example a value of 3 means call each 3 seconds)

      Specified by:
      getFrequency in interface SystemParametersProducer
      Returns:
    • hasDisksStats

      public static boolean hasDisksStats()