bb.util
Class ThreadMonitor.UnitTest.ThreadMeasurerTest
java.lang.Object
bb.util.ThreadMeasurer
bb.util.ThreadMonitor.UnitTest.ThreadMeasurerTest
- Enclosing class:
- ThreadMonitor.UnitTest
private static class ThreadMonitor.UnitTest.ThreadMeasurerTest
- extends ThreadMeasurer
Extends ThreadMeasurer to deliberately throw a RuntimeException when makeFail
called.
Field Summary |
private boolean |
fail
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fail
private boolean fail
ThreadMonitor.UnitTest.ThreadMeasurerTest
private ThreadMonitor.UnitTest.ThreadMeasurerTest()
getThreadState
public String getThreadState()
throws RuntimeException
- Description copied from class:
ThreadMeasurer
- Returns a String description of the thread state of the monitored JVM.
Contract: the result is never null.
- Overrides:
getThreadState
in class ThreadMeasurer
- Throws:
UnsupportedOperationException
- if ThreadMeasurer.reportThreadTimes
was set to true in the constructor
but some other class called ThreadMeasurer.threadMXBean
.setThreadCpuTimeEnabled
(false)
.
RuntimeException
makeFail
private void makeFail()