Package org.yamcs.parameter
Class DiskstatsParameterProducer
java.lang.Object
org.yamcs.parameter.DiskstatsParameterProducer
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintHow often this producer should be called.getSystemParameters(long gentime) return the next bunch of parameter values.static booleanlonguptime()
-
Constructor Details
-
DiskstatsParameterProducer
- Throws:
IOException
-
-
Method Details
-
getSystemParameters
Description copied from interface:SystemParametersProducerreturn 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:
getSystemParametersin interfaceSystemParametersProducer
-
uptime
- Throws:
IOException
-
getFrequency
public int getFrequency()Description copied from interface:SystemParametersProducerHow 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:
getFrequencyin interfaceSystemParametersProducer- Returns:
-
hasDisksStats
public static boolean hasDisksStats()
-