public class TracerFactory extends Object implements TracerFactoryMBean
Modifier and Type | Class and Description |
---|---|
protected static class |
TracerFactory.ChainTraces |
Modifier and Type | Field and Description |
---|---|
static String |
AUTOMATION_TRACE_PRINTABLE_PROPERTY |
static String |
AUTOMATION_TRACE_PROPERTY |
protected static Integer |
CACHE_CONCURRENCY_LEVEL |
protected static Integer |
CACHE_MAXIMUM_SIZE |
protected static Integer |
CACHE_TIMEOUT |
protected Trace |
lastError |
protected String |
printableTraces |
protected boolean |
recording |
protected com.google.common.cache.Cache<String,TracerFactory.ChainTraces> |
tracesCache |
Constructor and Description |
---|
TracerFactory() |
Modifier and Type | Method and Description |
---|---|
void |
clearTrace(OperationChain chain) |
void |
clearTrace(OperationChain chain,
int index) |
void |
clearTraces() |
protected static String |
formatKey(OperationType chain,
int index) |
Trace |
getLastErrorTrace() |
String |
getPrintableTraces() |
boolean |
getRecordingState() |
Trace |
getTrace(OperationChain chain,
int index) |
Trace |
getTrace(String key) |
Trace |
getTrace(String key,
int index) |
OperationCallback |
newTracer(String operationTypeId)
If trace mode is enabled, instantiate
Tracer . |
void |
onTrace(Trace popped) |
protected Boolean |
printable(String operationTypeId) |
String |
recordTrace(Trace trace) |
String |
setPrintableTraces(String printableTraces) |
boolean |
toggleRecording() |
public static final String AUTOMATION_TRACE_PROPERTY
public static final String AUTOMATION_TRACE_PRINTABLE_PROPERTY
protected static final Integer CACHE_CONCURRENCY_LEVEL
protected static final Integer CACHE_MAXIMUM_SIZE
protected static final Integer CACHE_TIMEOUT
protected String printableTraces
protected com.google.common.cache.Cache<String,TracerFactory.ChainTraces> tracesCache
protected boolean recording
public TracerFactory()
public OperationCallback newTracer(String operationTypeId)
Tracer
. If not, instantiate TracerLite
.public String recordTrace(Trace trace)
public Trace getTrace(OperationChain chain, int index)
public Trace getTrace(String key)
key
- The name of the chain.public Trace getLastErrorTrace()
public void clearTrace(OperationChain chain, int index)
public void clearTrace(OperationChain chain)
public void clearTraces()
clearTraces
in interface TracerFactoryMBean
protected static String formatKey(OperationType chain, int index)
public boolean toggleRecording()
toggleRecording
in interface TracerFactoryMBean
public boolean getRecordingState()
getRecordingState
in interface TracerFactoryMBean
public String getPrintableTraces()
getPrintableTraces
in interface TracerFactoryMBean
public String setPrintableTraces(String printableTraces)
setPrintableTraces
in interface TracerFactoryMBean
Copyright © 2015 Nuxeo SA. All rights reserved.