Class Tracer
- java.lang.Object
-
- org.nuxeo.ecm.automation.core.trace.Tracer
-
- All Implemented Interfaces:
OperationCallback
public class Tracer extends Object implements OperationCallback
Automation Abstract tracer recording all automation execution traces.- Since:
- 5.9.1
-
-
Field Summary
Fields Modifier and Type Field Description protected TracerFactory
factory
protected Stack<org.nuxeo.ecm.automation.core.trace.Tracer.Context>
stack
-
Constructor Summary
Constructors Modifier Constructor Description protected
Tracer(TracerFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onChainEnter(OperationType chain)
void
onChainExit()
void
onError(Exception error)
void
onOperationEnter(OperationContext context, OperationType type, InvokableMethod method, Map<String,Object> params)
void
onOperationExit(Object output)
protected void
popContext()
protected void
pushContext(OperationType chain)
-
-
-
Field Detail
-
factory
protected final TracerFactory factory
-
stack
protected Stack<org.nuxeo.ecm.automation.core.trace.Tracer.Context> stack
-
-
Constructor Detail
-
Tracer
protected Tracer(TracerFactory factory)
-
-
Method Detail
-
pushContext
protected void pushContext(OperationType chain)
-
popContext
protected void popContext()
-
onChainEnter
public void onChainEnter(OperationType chain)
- Specified by:
onChainEnter
in interfaceOperationCallback
-
onChainExit
public void onChainExit()
- Specified by:
onChainExit
in interfaceOperationCallback
-
onOperationEnter
public void onOperationEnter(OperationContext context, OperationType type, InvokableMethod method, Map<String,Object> params)
- Specified by:
onOperationEnter
in interfaceOperationCallback
-
onOperationExit
public void onOperationExit(Object output)
- Specified by:
onOperationExit
in interfaceOperationCallback
-
onError
public void onError(Exception error)
- Specified by:
onError
in interfaceOperationCallback
-
-