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
-
Method Summary
Modifier and TypeMethodDescriptionint
How often this producer should be called.getSystemParameters
(long gentime) return the next bunch of parameter values.static boolean
long
uptime()
-
Constructor Details
-
DiskstatsParameterProducer
- Throws:
IOException
-
-
Method Details
-
getSystemParameters
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 interfaceSystemParametersProducer
-
uptime
- 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 interfaceSystemParametersProducer
- Returns:
-
hasDisksStats
public static boolean hasDisksStats()
-