public class ProcDiskStatParser
extends java.lang.Object
/proc/diskstats
. The samples contain information about disk
IO activity.Constructor and Description |
---|
ProcDiskStatParser() |
Modifier and Type | Method and Description |
---|---|
static double |
getMaxDiskTPut(java.util.List ioSampleList)
Returns the maximum throughput seen in the iostat sample list.
|
static Stats |
parseLog(java.io.InputStream is,
int numCpu)
Parses the
proc_diskstats.log file. |
public static Stats parseLog(java.io.InputStream is, int numCpu) throws java.io.IOException
proc_diskstats.log
file. The output from
/proc/diskstat
is used to collect the disk statistics.is
- the input stream to read fromnumCpu
- number of processorsDiskUtilSample
and
DiskTPutSample
samples)java.io.IOException
- if an I/O error occurspublic static double getMaxDiskTPut(java.util.List ioSampleList)
ioSampleList
- iostat sample list