Package org.glassfish.pfl.basic.logex
Class OperationTracer
java.lang.Object
org.glassfish.pfl.basic.logex.OperationTracer
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidInitialize operation tracing on the caller's thread.static voidclear()static StringconvertToString(Object arg) static voiddisable()static voidenable()static voidstatic voidPop the record of the current value that was just read.static voidstatic voidexit()static voidfinish()Terminate operation tracing on the caller's thread.static voidfreeze()static StringReturn the current contents of the OperationTracer state for the current thread.static voidreadingField(String fieldName) Update the current Value record to indicate the field currently being read.static voidreadingIndex(int index) static voidstartReadArray(String name, int size) static voidstartReadValue(String name) Push a record into the trace of the start of reading a value of the given type name.
-
Method Details
-
convertToString
-
freeze
public static void freeze() -
enable
public static void enable() -
disable
public static void disable() -
getAsString
Return the current contents of the OperationTracer state for the current thread.- Returns:
- The string.
-
enter
-
begin
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
Push a record into the trace of the start of reading a value of the given type name. -
readingField
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
-
readingIndex
public static void readingIndex(int index) -
endReadArray
public static void endReadArray() -
clear
public static void clear() -
exit
public static void exit()
-