org.hyperic.sigar
Class CpuTimer
java.lang.Object
   org.hyperic.sigar.CpuTimer
org.hyperic.sigar.CpuTimer
- All Implemented Interfaces: 
- org.hyperic.sigar.jmx.CpuTimerMBean
- public class CpuTimer 
- extends java.lang.Object- implements org.hyperic.sigar.jmx.CpuTimerMBean
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
CpuTimer
public CpuTimer()
CpuTimer
public CpuTimer(Sigar sigar)
clear
public void clear()
- 
 
- 
 
add
public void add(CpuTimer timer)
- 
 
- 
 
start
public void start()
- 
 
- 
 
start
public void start(Sigar sigar)
- 
 
- 
 
stop
public void stop()
- 
 
- 
 
stop
public void stop(Sigar sigar)
- 
 
- 
 
getDiff
public ThreadCpu getDiff()
- 
 
- 
 
getDiff
public ThreadCpu getDiff(Sigar sigar)
- 
 
- 
 
getTotalTime
public long getTotalTime()
- 
- Specified by:
- getTotalTimein interface- org.hyperic.sigar.jmx.CpuTimerMBean
 
- 
 
getCpuTotal
public long getCpuTotal()
- 
- Specified by:
- getCpuTotalin interface- org.hyperic.sigar.jmx.CpuTimerMBean
 
- 
 
getCpuUser
public long getCpuUser()
- 
- Specified by:
- getCpuUserin interface- org.hyperic.sigar.jmx.CpuTimerMBean
 
- 
 
getCpuSys
public long getCpuSys()
- 
- Specified by:
- getCpuSysin interface- org.hyperic.sigar.jmx.CpuTimerMBean
 
- 
 
getCpuUsage
public double getCpuUsage()
- 
- Specified by:
- getCpuUsagein interface- org.hyperic.sigar.jmx.CpuTimerMBean
 
- 
 
getLastSampleTime
public long getLastSampleTime()
- 
- Specified by:
- getLastSampleTimein interface- org.hyperic.sigar.jmx.CpuTimerMBean
 
- 
 
getInstance
public static CpuTimer getInstance(java.lang.String name)
- 
 
- 
 
format
public java.lang.String format(long elap)
- 
 
- 
 
list
public void list(java.io.PrintStream out)
- 
 
- 
 
Copyright ? 2004-2009 Hyperic. All Rights Reserved.