com.sun.mfwk.util.instrum
Class MfCpuTime

java.lang.Object
  extended bycom.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)
           
 
Method Summary
 long getCurrentThreadCpuTime()
           
 boolean isCurrentThreadCpuTimeSupported()
           
 boolean isThreadCpuTimeEnabled()
           
 void setThreadCpuTimeEnabled(boolean newState)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MfCpuTime

public MfCpuTime(java.util.logging.Logger loggerParam)
Method Detail

isCurrentThreadCpuTimeSupported

public boolean isCurrentThreadCpuTimeSupported()

isThreadCpuTimeEnabled

public boolean isThreadCpuTimeEnabled()

setThreadCpuTimeEnabled

public void setThreadCpuTimeEnabled(boolean newState)

getCurrentThreadCpuTime

public long getCurrentThreadCpuTime()