com.sun.mfwk.util.instrum
Class MfCpuTime
java.lang.Object
com.sun.mfwk.util.instrum.MfCpuTime
- public class MfCpuTime
- extends java.lang.Object
This classs takes care of loading the jdk 1.5
java.lang.management.ThreadMXBean methods we need if we're running
on jdk1.5. If we're not running on jdk1.5 so that
java.lang.management.ThreadMXBean is not available then it will use
our own implementation of the required methods:
isCurrentThreadCpuTimeSupported(),
getCurrentThreadCpuTimeMethod().
Constructor Summary |
MfCpuTime(java.util.logging.Logger loggerParam)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MfCpuTime
public MfCpuTime(java.util.logging.Logger loggerParam)
isCurrentThreadCpuTimeSupported
public boolean isCurrentThreadCpuTimeSupported()
isThreadCpuTimeEnabled
public boolean isThreadCpuTimeEnabled()
setThreadCpuTimeEnabled
public void setThreadCpuTimeEnabled(boolean newState)
getCurrentThreadCpuTime
public long getCurrentThreadCpuTime()