Class BytemanTestHelper


  • public class BytemanTestHelper
    extends Helper
    Helper class containing functions used by Byteman rules created by the dtest framework.
    Author:
    Jonathan Halliday (jonathan.halliday@redhat.com) 2010-05
    • Method Detail

      • 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:
        InstrumentedClass#trace