org.hyperic.sigar
Class ProcTime

java.lang.Object
  extended by org.hyperic.sigar.ProcTime
All Implemented Interfaces:
java.io.Serializable

public class ProcTime
extends java.lang.Object
implements java.io.Serializable

ProcTime sigar class.

See Also:
Serialized Form

Constructor Summary
ProcTime()
           
 
Method Summary
 void gather(Sigar sigar, long pid)
           
 long getStartTime()
          Get the Time process was started in seconds.
 long getSys()
          Get the Process cpu kernel time.
 long getTotal()
          Get the Process cpu time (sum of User and Sys).
 long getUser()
          Get the Process cpu user time.
 java.util.Map toMap()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcTime

public ProcTime()
Method Detail

gather

public void gather(Sigar sigar,
                   long pid)
            throws SigarException
Throws:
SigarException

getStartTime

public long getStartTime()
Get the Time process was started in seconds.

Supported Platforms: All.

System equivalent commands:

Returns:
Time process was started in seconds

getUser

public long getUser()
Get the Process cpu user time.

Supported Platforms: All.

System equivalent commands:

Returns:
Process cpu user time

getSys

public long getSys()
Get the Process cpu kernel time.

Supported Platforms: All.

System equivalent commands:

Returns:
Process cpu kernel time

getTotal

public long getTotal()
Get the Process cpu time (sum of User and Sys).

Supported Platforms: All.

System equivalent commands:

Returns:
Process cpu time (sum of User and Sys)

toMap

public java.util.Map toMap()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2008 Hyperic. All Rights Reserved.