Package org.junit.internal.management
Class ReflectiveThreadMXBean
- java.lang.Object
-
- org.junit.internal.management.ReflectiveThreadMXBean
-
- All Implemented Interfaces:
ThreadMXBean
final class ReflectiveThreadMXBean extends java.lang.Object implements ThreadMXBean
Implementation ofThreadMXBean
using the JVM reflectively.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ReflectiveThreadMXBean.Holder
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object
threadMxBean
-
Constructor Summary
Constructors Constructor Description ReflectiveThreadMXBean(java.lang.Object threadMxBean)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getThreadCpuTime(long id)
boolean
isThreadCpuTimeSupported()
-
-
-
Method Detail
-
getThreadCpuTime
public long getThreadCpuTime(long id)
- Specified by:
getThreadCpuTime
in interfaceThreadMXBean
- See Also:
ThreadMXBean.getThreadCpuTime(long)
-
isThreadCpuTimeSupported
public boolean isThreadCpuTimeSupported()
- Specified by:
isThreadCpuTimeSupported
in interfaceThreadMXBean
- See Also:
ThreadMXBean.isThreadCpuTimeSupported()
-
-