Package org.glassfish.pfl.basic.logex
Class OperationTracer
java.lang.Object
org.glassfish.pfl.basic.logex.OperationTracer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
(package private) static interface
private static class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static boolean
private static boolean
private static ThreadLocal
<List<OperationTracer.Element>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Initialize operation tracing on the caller's thread.static void
clear()
static String
convertToString
(Object arg) static void
disable()
static void
enable()
private static void
end()
static void
static void
Pop the record of the current value that was just read.static void
static void
exit()
static void
finish()
Terminate operation tracing on the caller's thread.static void
freeze()
static String
Return the current contents of the OperationTracer state for the current thread.static void
readingField
(String fieldName) Update the current Value record to indicate the field currently being read.static void
readingIndex
(int index) static void
startReadArray
(String name, int size) static void
startReadValue
(String name) Push a record into the trace of the start of reading a value of the given type name.
-
Field Details
-
enabled
private static boolean enabled -
frozen
private static boolean frozen -
state
-
-
Constructor Details
-
OperationTracer
private OperationTracer()
-
-
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() -
end
private static void end() -
clear
public static void clear() -
exit
public static void exit()
-