Class ThreadMonitorHelper

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

public class ThreadMonitorHelper extends Helper
Helper class used by ThreadMonitorHelper script to trace thread operations
  • Constructor Details

    • ThreadMonitorHelper

      protected ThreadMonitorHelper(Rule rule)
  • Method Details

    • traceCreate

      public void 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"
      Parameters:
      thread - the newly created thread
    • traceCreate

      public void traceCreate(Thread thread, 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(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(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"
      Parameters:
      thread - the newly starting thread
      key - an object identifying the trace stream to which output should be generated
    • traceExit

      public void traceExit(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(Thread thread, 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(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(Runnable runnable, 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