Class OperationTracer

java.lang.Object
org.glassfish.pfl.basic.logex.OperationTracer

public class OperationTracer extends Object
  • Field Details

  • Constructor Details

    • OperationTracer

      private OperationTracer()
  • Method Details

    • convertToString

      public static String convertToString(Object arg)
    • freeze

      public static void freeze()
    • enable

      public static void enable()
    • disable

      public static void disable()
    • getAsString

      public static String getAsString()
      Return the current contents of the OperationTracer state for the current thread.
      Returns:
      The string.
    • enter

      public static void enter(String name, Object... args)
    • begin

      public static void begin(String label)
      Initialize operation tracing on the caller's thread. The OperationTracer is initially empty.
    • finish

      public static void finish()
      Terminate operation tracing on the caller's thread. After this call, toString will return the empty string.
    • startReadValue

      public static void startReadValue(String name)
      Push a record into the trace of the start of reading a value of the given type name.
    • readingField

      public static void readingField(String fieldName)
      Update the current Value record to indicate the field currently being read.
    • endReadValue

      public static void endReadValue()
      Pop the record of the current value that was just read.
    • startReadArray

      public static void startReadArray(String name, int size)
    • readingIndex

      public static void readingIndex(int index)
    • endReadArray

      public static void endReadArray()
    • end

      private static void end()
    • clear

      public static void clear()
    • exit

      public static void exit()