Class BytemanTestHelper

java.lang.Object
org.jboss.byteman.rule.helper.Helper
org.jboss.byteman.contrib.dtest.BytemanTestHelper

public class BytemanTestHelper extends Helper
Helper class containing functions used by Byteman rules created by the dtest framework.
  • Field Details

  • Constructor Details

  • Method Details

    • debug

      public boolean debug(String text, Object object0)
      Print a message during rule execution. n.b. this always returns true which means it can be invoked during condition execution
      Parameters:
      text - the message to be printed as trace output
      object0 - an object, typically the rule target, whose String representation will be added to the output.
      Returns:
      true
    • remoteTrace

      public void remoteTrace(String className, String methodName, Object[] dollarStar) throws Exception
      Send trace information to a remote listener. A Rule will normally be installed to invoke this on entry to each method of interest.
      Parameters:
      className - the name of the instrumented, i.e. traced, class
      methodName - the name of the traced method.
      dollarStar - the method args starting with this
      Throws:
      Exception - if the info cannot be sent
      See Also:
    • convertForRemoting

      private Object[] convertForRemoting(Object[] input)
      Convert Objects to their String representation for transmission over RMI.
      Parameters:
      input - An Array of Objects, possibly including nulls.
      Returns:
      An Array of length equivalent to the input, containing corresponding nulls or the String representation of the input.