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
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearTrace(OperationChain chain) voidclearTrace(OperationChain chain, int index) voidprotected static StringformatKey(OperationType chain, int index) booleangetTrace(OperationChain chain, int index) newCall(OperationType chain, OperationContext context, OperationType type, InvokableMethod method, Map<String, Object> params) If trace mode is enabled, instantiateCall.voidprotected voidrecordTrace(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:
clearTracesin interfaceTracerFactoryMBean
-
formatKey
-
onTrace
-
toggleRecording
public boolean toggleRecording()- Specified by:
toggleRecordingin interfaceTracerFactoryMBean
-
getRecordingState
public boolean getRecordingState()- Specified by:
getRecordingStatein interfaceTracerFactoryMBean
-
getPrintableTraces
- Specified by:
getPrintableTracesin interfaceTracerFactoryMBean
-
setPrintableTraces
- Specified by:
setPrintableTracesin interfaceTracerFactoryMBean
-
print
-