Class TracerFactory
java.lang.Object
org.nuxeo.ecm.automation.core.trace.TracerFactory
- All Implemented Interfaces:
TracerFactoryMBean
- Since:
- 5.7.3 The Automation tracer factory service.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearTrace
(OperationChain chain) void
clearTrace
(OperationChain chain, int index) void
protected static String
formatKey
(OperationType chain, int index) boolean
getTrace
(OperationChain chain, int index) newCall
(OperationType chain, OperationContext context, OperationType type, InvokableMethod method, Map<String, Object> params) If trace mode is enabled, instantiateCall
.void
protected void
recordTrace
(Trace trace) setPrintableTraces
(String option) boolean
-
Field Details
-
AUTOMATION_TRACE_PROPERTY
- See Also:
-
AUTOMATION_TRACE_PRINTABLE_PROPERTY
- See Also:
-
CACHE_CONCURRENCY_LEVEL
-
CACHE_MAXIMUM_SIZE
-
CACHE_TIMEOUT
-
printable
-
printableAssertor
-
tracesCache
-
recording
protected boolean recording -
lastError
-
-
Constructor Details
-
TracerFactory
public TracerFactory()
-
-
Method Details
-
newTracer
-
newCall
public Call newCall(OperationType chain, OperationContext context, OperationType type, InvokableMethod method, Map<String, Object> params) -
newTrace
-
recordTrace
-
getTrace
-
getTrace
- Parameters:
key
- The name of the chain.- Returns:
- The last trace of the given chain.
-
getTrace
-
getLastErrorTrace
-
clearTrace
-
clearTrace
-
clearTraces
public void clearTraces()- Specified by:
clearTraces
in interfaceTracerFactoryMBean
-
formatKey
-
onTrace
-
toggleRecording
public boolean toggleRecording()- Specified by:
toggleRecording
in interfaceTracerFactoryMBean
-
getRecordingState
public boolean getRecordingState()- Specified by:
getRecordingState
in interfaceTracerFactoryMBean
-
getPrintableTraces
- Specified by:
getPrintableTraces
in interfaceTracerFactoryMBean
-
setPrintableTraces
- Specified by:
setPrintableTraces
in interfaceTracerFactoryMBean
-
print
-