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 |
printable |
protected Function<String,Boolean> |
printableAssertor |
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) |
Call |
newCall(OperationType chain,
OperationContext context,
OperationType type,
InvokableMethod method,
Map<String,Object> params)
If trace mode is enabled, instantiate
Call . |
Trace |
newTrace(Call parent,
OperationType typeof,
List<Call> calls,
Object output,
OperationException error) |
OperationCallback |
newTracer() |
void |
onTrace(Trace trace) |
String |
print(Trace trace) |
protected void |
recordTrace(Trace trace) |
String |
setPrintableTraces(String option) |
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 Function<String,Boolean> printableAssertor
protected com.google.common.cache.Cache<String,TracerFactory.ChainTraces> tracesCache
protected boolean recording
public TracerFactory()
public OperationCallback newTracer()
public Call newCall(OperationType chain, OperationContext context, OperationType type, InvokableMethod method, Map<String,Object> params)
public Trace newTrace(Call parent, OperationType typeof, List<Call> calls, Object output, OperationException error)
protected void 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 option)
setPrintableTraces
in interface TracerFactoryMBean
Copyright © 2018 Nuxeo. All rights reserved.