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, waitonOperationprotected 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 OperationCallbackpublic void onOutput(Object output)
onOutput in interface OperationCallbackpublic void onError(OperationException error)
onError in interface OperationCallbackpublic Trace getTrace()
getTrace in interface OperationCallbackpublic String getFormattedText()
getFormattedText in interface OperationCallbackCopyright © 2016 Nuxeo SA. All rights reserved.