Package org.jboss.byteman.sample.helper
Class ThreadMonitorHelper
java.lang.Object
org.jboss.byteman.rule.helper.Helper
org.jboss.byteman.sample.helper.ThreadMonitorHelper
Helper class used by ThreadMonitorHelper script to trace thread operations
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
traceCreate
(Thread thread) trace creation of the supplied thread to System.out this should only be triggered from the constructor for class java.lang.Thread"void
traceCreate
(Thread thread, Object key) trace creation of the supplied thread to the trace stream identified by keyvoid
trace exit of the supplied thread to System.out this should only be triggered from the call to java.lang.Thread.exit"void
trace exit of the supplied thread to the trace stream identified by key this should only be triggered from the call to java.lang.Thread.exit"void
trace run of the supplied Runnable to System.out this should only be triggered from a call to an implementation of java.lang.Runnable.run"void
trace start of the supplied thread to the trace stream identified by key this should only be triggered from the call an implementation of java.lang.Runnable.run"void
traceStart
(Thread thread) trace start of the supplied thread to System.out this should only be triggered from the call to java.lang.Thread.start"void
traceStart
(Thread thread, Object key) trace start of the supplied thread to the trace stream identified by key this should only be triggered from the call to java.lang.Thread.start"Methods inherited from class org.jboss.byteman.rule.helper.Helper
activated, addCountDown, callerCheck, callerEquals, callerEquals, callerEquals, callerEquals, callerEquals, callerEquals, callerEquals, callerEquals, callerEquals, callerMatches, callerMatches, callerMatches, callerMatches, callerMatches, callerMatches, callerMatches, callerMatches, callerMatches, clear, clearLinks, clearLinks, closeTrace, countDown, createCountDown, createCounter, createCounter, createJoin, createLinkMap, createRendezvous, createRendezvous, createTimer, deactivated, debug, decrementCounter, delay, deleteCounter, deleteLinkMap, deleteRendezvous, deleteTimer, err, errTraceException, flag, flagged, formatAllStacks, formatAllStacks, formatAllStacks, formatAllStacks, formatStack, formatStack, formatStack, formatStack, formatStackBetween, formatStackBetween, formatStackBetween, formatStackBetween, formatStackBetween, formatStackBetween, formatStackBetweenMatches, formatStackBetweenMatches, formatStackBetweenMatches, formatStackBetweenMatches, formatStackBetweenMatches, formatStackBetweenMatches, formatStackMatching, formatStackMatching, formatStackMatching, formatStackMatching, formatStackMatching, formatStackMatching, formatStackRange, formatThreadStack, formatThreadStack, formatThreadStack, formatThreadStack, getCountDown, getElapsedTimeFromTimer, getObjectSize, getRendezvous, getStack, incrementCounter, incrementCounter, installed, isCountDown, isJoin, isRendezvous, joinEnlist, joinWait, joinWait, killJVM, killJVM, killThread, link, link, linked, linked, linkNames, linkNames, linkValues, linkValues, matchIndex, noisy, noisyTraceException, openTrace, openTrace, out, outTraceException, printFrame, printlnFrame, readCounter, readCounter, rendezvous, rendezvous, resetTimer, setTriggering, signalKill, signalKill, signalThrow, signalThrow, signalWake, signalWake, toString, trace, trace, traceAllStacks, traceAllStacks, traceAllStacks, traceAllStacks, traceAllStacks, traceAllStacks, traceClose, traceln, traceln, traceOpen, traceOpen, traceStack, traceStack, traceStack, traceStack, traceStack, traceStack, traceStackBetween, traceStackBetween, traceStackBetween, traceStackBetween, traceStackBetween, traceStackBetween, traceStackBetween, traceStackBetween, traceStackBetween, traceStackBetweenMatches, traceStackBetweenMatches, traceStackBetweenMatches, traceStackBetweenMatches, traceStackBetweenMatches, traceStackBetweenMatches, traceStackBetweenMatches, traceStackBetweenMatches, traceStackBetweenMatches, traceStackMatching, traceStackMatching, traceStackMatching, traceStackMatching, traceStackMatching, traceStackMatching, traceStackMatching, traceStackMatching, traceStackMatching, traceStackRange, traceThreadStack, traceThreadStack, traceThreadStack, traceThreadStack, traceThreadStack, traceThreadStack, triggerIndex, uninstalled, unlink, unlink, verbose, verboseTraceException, waitFor, waitFor, waiting
-
Constructor Details
-
ThreadMonitorHelper
-
-
Method Details
-
traceCreate
trace creation of the supplied thread to System.out this should only be triggered from the constructor for class java.lang.Thread"- Parameters:
thread
- the newly created thread
-
traceCreate
trace creation of the supplied thread to the trace stream identified by key- Parameters:
thread
- the newly created threadkey
- an object identifying the trace stream to which output should be generated
-
traceStart
trace start of the supplied thread to System.out this should only be triggered from the call to java.lang.Thread.start"- Parameters:
thread
- the newly starting thread
-
traceStart
trace start of the supplied thread to the trace stream identified by key this should only be triggered from the call to java.lang.Thread.start"- Parameters:
thread
- the newly starting threadkey
- an object identifying the trace stream to which output should be generated
-
traceExit
trace exit of the supplied thread to System.out this should only be triggered from the call to java.lang.Thread.exit"- Parameters:
thread
- the exiting thread
-
traceExit
trace exit of the supplied thread to the trace stream identified by key this should only be triggered from the call to java.lang.Thread.exit"- Parameters:
thread
- the exiting threadkey
- an object identifying the trace stream to which output should be generated
-
traceRun
trace run of the supplied Runnable to System.out this should only be triggered from a call to an implementation of java.lang.Runnable.run"- Parameters:
runnable
- the runnable being run
-
traceRun
trace start of the supplied thread to the trace stream identified by key this should only be triggered from the call an implementation of java.lang.Runnable.run"- Parameters:
runnable
- the runnable being runkey
- an object identifying the trace stream to which output should be generated
-