Package org.hyperic.sigar

Examples of org.hyperic.sigar.ProcDiskIO


    super(name);
  }
 
 
    private void traceDiskIO(Sigar sigar, long pid) throws Exception {
        ProcDiskIO procDiskIO;

        try {
            procDiskIO = sigar.getProcDiskIO(pid);
        } catch (SigarException e) {
            traceln("pid " + pid + ": " + e.getMessage());
            // throw e;
            return;
        }

        long bytesRead = procDiskIO.getBytesRead();
        long bytesWritten = procDiskIO.getBytesWritten();
        long bytesTotal = procDiskIO.getBytesTotal();
       
        traceln("Pid=" + pid);
        traceln("Bytes Read=" + Sigar.formatSize(bytesRead));
        traceln("Bytes Written=" + Sigar.formatSize(bytesWritten));
        traceln("Bytes Total=" + Sigar.formatSize(bytesTotal));
View Full Code Here

TOP

Related Classes of org.hyperic.sigar.ProcDiskIO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.