org.jboss.byteman.sample.helper
Class ThreadMonitorHelper

java.lang.Object
  extended by org.jboss.byteman.rule.helper.Helper
      extended by org.jboss.byteman.sample.helper.ThreadMonitorHelper

public class ThreadMonitorHelper
extends Helper

Helper class used by ThreadMonitorHelper script to trace thread operations


Field Summary
 
Fields inherited from class org.jboss.byteman.rule.helper.Helper
rule
 
Constructor Summary
protected ThreadMonitorHelper(Rule rule)
           
 
Method Summary
 void traceCreate(java.lang.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(java.lang.Thread thread, java.lang.Object key)
          trace creation of the supplied thread to the trace stream identified by key
 void traceExit(java.lang.Thread thread)
          trace exit of the supplied thread to System.out this should only be triggered from the call to java.lang.Thread.exit"
 void traceExit(java.lang.Thread thread, java.lang.Object key)
          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 traceRun(java.lang.Runnable runnable)
          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 traceRun(java.lang.Runnable runnable, java.lang.Object key)
          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(java.lang.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(java.lang.Thread thread, java.lang.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, closeTrace, countDown, createCountDown, createCounter, createCounter, createJoin, createRendezvous, createRendezvous, createTimer, deactivated, debug, decrementCounter, delay, deleteCounter, deleteRendezvous, deleteTimer, flag, flagged, formatStack, formatStack, formatStack, formatStack, formatStackBetween, formatStackBetween, formatStackBetween, formatStackBetween, formatStackBetween, formatStackBetween, formatStackBetweenMatches, formatStackBetweenMatches, formatStackBetweenMatches, formatStackBetweenMatches, formatStackBetweenMatches, formatStackBetweenMatches, formatStackMatching, formatStackMatching, formatStackMatching, formatStackMatching, formatStackMatching, formatStackMatching, formatStackRange, getCountDown, getElapsedTimeFromTimer, getRendezvous, getStack, incrementCounter, incrementCounter, installed, isCountDown, isJoin, isRendezvous, joinEnlist, joinWait, killJVM, killJVM, killThread, matchIndex, openTrace, openTrace, printFrame, printlnFrame, readCounter, readCounter, rendezvous, resetTimer, setTriggering, signalKill, signalKill, signalThrow, signalThrow, signalWake, signalWake, toString, trace, trace, 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, triggerIndex, uninstalled, waitFor, waitFor, waiting
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThreadMonitorHelper

protected ThreadMonitorHelper(Rule rule)
Method Detail

traceCreate

public void traceCreate(java.lang.Thread thread)
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

public void traceCreate(java.lang.Thread thread,
                        java.lang.Object key)
trace creation of the supplied thread to the trace stream identified by key

Parameters:
thread - the newly created thread
key - an object identifying the trace stream to which output should be generated

traceStart

public void traceStart(java.lang.Thread thread)
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

public void traceStart(java.lang.Thread thread,
                       java.lang.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"

Parameters:
thread - the newly starting thread
key - an object identifying the trace stream to which output should be generated

traceExit

public void traceExit(java.lang.Thread thread)
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

public void traceExit(java.lang.Thread thread,
                      java.lang.Object key)
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 thread
key - an object identifying the trace stream to which output should be generated

traceRun

public void traceRun(java.lang.Runnable runnable)
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

public void traceRun(java.lang.Runnable runnable,
                     java.lang.Object key)
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 run
key - an object identifying the trace stream to which output should be generated


Copyright © 2012. All Rights Reserved.