public class ProcCpu
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ProcCpu() |
Modifier and Type | Method and Description |
---|---|
void |
gather(Sigar sigar,
long pid) |
long |
getLastTime()
Get the last_time.
|
double |
getPercent()
Get the Process cpu usage.
|
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() |
public void gather(Sigar sigar, long pid) throws SigarException
SigarException
public double getPercent()
Supported Platforms: All.
public long getLastTime()
Supported Platforms: All.
public long getStartTime()
Supported Platforms: All.
public long getUser()
Supported Platforms: All.
public long getSys()
Supported Platforms: All.
public long getTotal()
Supported Platforms: All.
public java.util.Map toMap()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright ? 2004-2011 Hyperic. All Rights Reserved.