org.bootchart.parser.linux
クラス ProcDiskStatParser

java.lang.Object
  上位を拡張 org.bootchart.parser.linux.ProcDiskStatParser

public class ProcDiskStatParser
extends Object

ProcDiskStatParser parses log files produced by logging the output of /proc/diskstats. The samples contain information about disk IO activity.


コンストラクタの概要
ProcDiskStatParser()
           
 
メソッドの概要
static double getMaxDiskTPut(List ioSampleList)
          Returns the maximum throughput seen in the iostat sample list.
static Stats parseLog(InputStream is, int numCpu)
          Parses the proc_diskstats.log file.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ProcDiskStatParser

public ProcDiskStatParser()
メソッドの詳細

parseLog

public static Stats parseLog(InputStream is,
                             int numCpu)
                      throws IOException
Parses the proc_diskstats.log file. The output from /proc/diskstat is used to collect the disk statistics.

パラメータ:
is - the input stream to read from
numCpu - number of processors
戻り値:
disk statistics (DiskUtilSample and DiskTPutSample samples)
例外:
IOException - if an I/O error occurs

getMaxDiskTPut

public static double getMaxDiskTPut(List ioSampleList)
Returns the maximum throughput seen in the iostat sample list.

パラメータ:
ioSampleList - iostat sample list
戻り値:
maximum throughput