public abstract class BasedTracer extends Object implements OperationCallback
Modifier and Type | Field and Description |
---|---|
protected Stack<Trace> |
callingStacks |
protected LinkedList<Call> |
calls |
protected OperationType |
chain |
protected TracerFactory |
factory |
protected Call |
parent |
protected Boolean |
printable |
protected Trace |
trace |
Modifier | Constructor and Description |
---|---|
protected |
BasedTracer(TracerFactory factory,
Boolean printable) |
Modifier and Type | Method and Description |
---|---|
String |
getFormattedText() |
Trace |
getTrace() |
void |
onChain(OperationType chain) |
void |
onError(OperationException error) |
void |
onOutput(Object output) |
protected void |
popContext() |
protected void |
pushContext(OperationType newChain) |
protected void |
saveTrace(Trace popped) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onOperation
protected final TracerFactory factory
protected final LinkedList<Call> calls
protected Stack<Trace> callingStacks
protected OperationType chain
protected BasedTracer(TracerFactory factory, Boolean printable)
protected void pushContext(OperationType newChain)
protected void popContext()
public void onChain(OperationType chain)
onChain
in interface OperationCallback
public void onOutput(Object output)
onOutput
in interface OperationCallback
public void onError(OperationException error)
onError
in interface OperationCallback
public Trace getTrace()
getTrace
in interface OperationCallback
public String getFormattedText()
getFormattedText
in interface OperationCallback
Copyright © 2015 Nuxeo SA. All rights reserved.