public class Cpu
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Cpu() |
Modifier and Type | Method and Description |
---|---|
void |
gather(Sigar sigar) |
long |
getIdle()
Get the Total system cpu idle time.
|
long |
getIrq()
Get the Total system cpu time servicing interrupts.
|
long |
getNice()
Get the Total system cpu nice time.
|
long |
getSoftIrq()
Get the Total system cpu time servicing softirqs.
|
long |
getStolen()
Get the Total system cpu involuntary wait time.
|
long |
getSys()
Get the Total system cpu kernel time.
|
long |
getTotal()
Get the Total system cpu time.
|
long |
getUser()
Get the Total system cpu user time.
|
long |
getWait()
Get the Total system cpu io wait time.
|
java.util.Map |
toMap() |
java.lang.String |
toString() |
public void gather(Sigar sigar) throws SigarException
SigarException
public long getUser()
Supported Platforms: All.
System equivalent commands:
top
top
top
top
top
top
taskman
public long getSys()
Supported Platforms: All.
System equivalent commands:
top
top
top
top
top
top
taskman
public long getNice()
Supported Platforms: Darwin, FreeBSD, HPUX, Linux.
System equivalent commands:
top
top
top
top
top
top
taskman
public long getIdle()
Supported Platforms: All.
System equivalent commands:
top
top
top
top
top
top
taskman
public long getWait()
Supported Platforms: AIX, Linux, HPUX, Solaris.
System equivalent commands:
top
top
top
top
top
top
taskman
public long getIrq()
Supported Platforms: FreeBSD, Linux, HPUX, Win32.
System equivalent commands:
top
top
top
top
top
top
taskman
public long getSoftIrq()
Supported Platforms: Linux.
System equivalent commands:
top
top
top
top
top
top
taskman
public long getStolen()
Supported Platforms: Linux.
System equivalent commands:
top
top
top
top
top
top
taskman
public long getTotal()
Supported Platforms: All.
System equivalent commands:
top
top
top
top
top
top
taskman
public java.util.Map toMap()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright ? 2004-2011 Hyperic. All Rights Reserved.