public interface Tracer extends StaticService
Modifier and Type | Method and Description |
---|---|
ExchangeFormatter |
getExchangeFormatter()
To use a custom exchange formatter for formatting the output of the
Exchange in the trace logs. |
long |
getTraceCounter()
Number of traced messages
|
String |
getTracePattern()
Tracing pattern to match which node EIPs to trace.
|
boolean |
isEnabled()
Whether the tracer is enabled
|
boolean |
isTraceBeforeAndAfterRoute()
Whether to include tracing of before/after routes to trace the input and responses of routes.
|
void |
resetTraceCounter()
Reset trace counter
|
void |
setEnabled(boolean enabled)
Whether the tracer is enabled
|
void |
setExchangeFormatter(ExchangeFormatter exchangeFormatter)
To use a custom exchange formatter for formatting the output of the
Exchange in the trace logs. |
void |
setTraceBeforeAndAfterRoute(boolean traceBeforeAndAfterRoute)
Whether to include tracing of before/after routes to trace the input and responses of routes.
|
void |
setTracePattern(String tracePattern)
Tracing pattern to match which node EIPs to trace.
|
boolean |
shouldTrace(NamedNode definition)
Whether or not to trace the given processor definition.
|
void |
traceAfterNode(NamedNode node,
Exchange exchange)
Trace after the given node
|
void |
traceAfterRoute(Route route,
Exchange exchange)
Trace after the route (eg output from route)
|
void |
traceBeforeNode(NamedNode node,
Exchange exchange)
Trace before the given node
|
void |
traceBeforeRoute(NamedRoute route,
Exchange exchange)
Trace before the route (eg input to route)
|
boolean shouldTrace(NamedNode definition)
definition
- the processor definitionvoid traceBeforeRoute(NamedRoute route, Exchange exchange)
route
- the routeexchange
- the exchangevoid traceBeforeNode(NamedNode node, Exchange exchange)
node
- the node EIPexchange
- the exchangevoid traceAfterNode(NamedNode node, Exchange exchange)
node
- the node EIPexchange
- the exchangevoid traceAfterRoute(Route route, Exchange exchange)
route
- the routeexchange
- the exchangelong getTraceCounter()
void resetTraceCounter()
boolean isEnabled()
void setEnabled(boolean enabled)
String getTracePattern()
void setTracePattern(String tracePattern)
boolean isTraceBeforeAndAfterRoute()
void setTraceBeforeAndAfterRoute(boolean traceBeforeAndAfterRoute)
ExchangeFormatter getExchangeFormatter()
Exchange
in the trace logs.void setExchangeFormatter(ExchangeFormatter exchangeFormatter)
Exchange
in the trace logs.Apache Camel