@Deprecated public class Tracer extends Object implements InterceptStrategy, Service
Constructor and Description |
---|
Tracer()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addTraceHandler(TraceEventHandler traceHandler)
Deprecated.
Add the given tracehandler
|
static Tracer |
createTracer(CamelContext context)
Deprecated.
Creates a new tracer.
|
DefaultTraceFormatter |
getDefaultTraceFormatter()
Deprecated.
|
Endpoint |
getDestination()
Deprecated.
|
String |
getDestinationUri()
Deprecated.
|
TraceFormatter |
getFormatter()
Deprecated.
|
String |
getJpaTraceEventMessageClassName()
Deprecated.
|
CamelLogProcessor |
getLogger(ExchangeFormatter formatter)
Deprecated.
Gets the logger to be used for tracers that can format and log a given exchange.
|
LoggingLevel |
getLogLevel()
Deprecated.
|
String |
getLogName()
Deprecated.
|
int |
getTraceBodySize()
Deprecated.
|
Predicate |
getTraceFilter()
Deprecated.
|
TraceEventHandler |
getTraceHandler()
Deprecated.
|
List<TraceEventHandler> |
getTraceHandlers()
Deprecated.
|
TraceInterceptorFactory |
getTraceInterceptorFactory()
Deprecated.
|
static Tracer |
getTracer(CamelContext context)
Deprecated.
A helper method to return the Tracer instance if one is enabled
|
boolean |
isEnabled()
Deprecated.
|
boolean |
isJmxTraceNotifications()
Deprecated.
|
boolean |
isLogStackTrace()
Deprecated.
|
boolean |
isTraceExceptions()
Deprecated.
|
boolean |
isTraceInterceptors()
Deprecated.
|
boolean |
isTraceOutExchanges()
Deprecated.
|
boolean |
isUseJpa()
Deprecated.
|
void |
removeTraceHandler(TraceEventHandler traceHandler)
Deprecated.
Remove the given tracehandler
|
void |
setDestination(Endpoint destination)
Deprecated.
|
void |
setDestinationUri(String destinationUri)
Deprecated.
Sets an optional destination to send the traced Exchange.
|
void |
setEnabled(boolean flag)
Deprecated.
|
void |
setFormatter(TraceFormatter formatter)
Deprecated.
|
void |
setJmxTraceNotifications(boolean jmxTraceNotifications)
Deprecated.
|
void |
setJpaTraceEventMessageClassName(String jpaTraceEventMessageClassName)
Deprecated.
Set the fully qualified name of the class to be used by the JPA event tracing.
|
void |
setLogLevel(LoggingLevel logLevel)
Deprecated.
Sets the logging level to output tracing.
|
void |
setLogName(String logName)
Deprecated.
Sets the logging name to use.
|
void |
setLogStackTrace(boolean logStackTrace)
Deprecated.
Sets whether thrown exception stacktrace should be traced, if disabled then only the exception message is logged
|
void |
setTraceBodySize(int traceBodySize)
Deprecated.
|
void |
setTraceExceptions(boolean traceExceptions)
Deprecated.
Sets whether thrown exceptions should be traced
|
void |
setTraceFilter(Predicate traceFilter)
Deprecated.
Sets a predicate to be used as filter when tracing
|
void |
setTraceHandler(TraceEventHandler traceHandler)
Deprecated.
|
void |
setTraceInterceptorFactory(TraceInterceptorFactory traceInterceptorFactory)
Deprecated.
Set the factory to be used to create the trace interceptor.
|
void |
setTraceInterceptors(boolean traceInterceptors)
Deprecated.
Sets whether interceptors should be traced or not
|
void |
setTraceOutExchanges(boolean traceOutExchanges)
Deprecated.
Sets whether exchanges coming out of processors should be traced
|
void |
setUseJpa(boolean useJpa)
Deprecated.
Sets whether we should use a JpaTraceEventMessage instead of
an ordinary
DefaultTraceEventMessage
Use this to allow persistence of trace events into a database using JPA. |
void |
start()
Deprecated.
Starts the service
|
void |
stop()
Deprecated.
Stops the service
|
String |
toString()
Deprecated.
|
Processor |
wrapProcessorInInterceptors(CamelContext context,
ProcessorDefinition<?> definition,
Processor target,
Processor nextTarget)
Deprecated.
This method is invoked by
ProcessorDefinition.wrapProcessor(RouteContext, Processor)
to give the implementor an opportunity to wrap the target processor
in a route. |
public Tracer()
public static Tracer createTracer(CamelContext context)
context
- Camel contextpublic static Tracer getTracer(CamelContext context)
public CamelLogProcessor getLogger(ExchangeFormatter formatter)
formatter
- the exchange formatterpublic Processor wrapProcessorInInterceptors(CamelContext context, ProcessorDefinition<?> definition, Processor target, Processor nextTarget) throws Exception
InterceptStrategy
ProcessorDefinition.wrapProcessor(RouteContext, Processor)
to give the implementor an opportunity to wrap the target processor
in a route.
Important: See the class javadoc for advice on letting interceptor be compatible with the
asynchronous routing engine.wrapProcessorInInterceptors
in interface InterceptStrategy
context
- Camel contextdefinition
- the model this interceptor representstarget
- the processor to be wrappednextTarget
- the next processor to be routed toException
- can be thrownpublic TraceFormatter getFormatter()
public DefaultTraceFormatter getDefaultTraceFormatter()
public void setFormatter(TraceFormatter formatter)
public void setEnabled(boolean flag)
public boolean isEnabled()
public boolean isTraceInterceptors()
public void setTraceInterceptors(boolean traceInterceptors)
public Predicate getTraceFilter()
public void setTraceFilter(Predicate traceFilter)
public LoggingLevel getLogLevel()
public void setLogLevel(LoggingLevel logLevel)
public boolean isTraceExceptions()
public void setTraceExceptions(boolean traceExceptions)
public boolean isLogStackTrace()
public void setLogStackTrace(boolean logStackTrace)
public String getLogName()
public void setLogName(String logName)
public void setTraceOutExchanges(boolean traceOutExchanges)
public boolean isTraceOutExchanges()
public String getDestinationUri()
public void setDestinationUri(String destinationUri)
public Endpoint getDestination()
public void setDestination(Endpoint destination)
public boolean isUseJpa()
public void setUseJpa(boolean useJpa)
DefaultTraceEventMessage
Use this to allow persistence of trace events into a database using JPA.
This requires camel-jpa in the classpath.public TraceInterceptorFactory getTraceInterceptorFactory()
public void setTraceInterceptorFactory(TraceInterceptorFactory traceInterceptorFactory)
@Deprecated public TraceEventHandler getTraceHandler()
public List<TraceEventHandler> getTraceHandlers()
@Deprecated public void setTraceHandler(TraceEventHandler traceHandler)
public void addTraceHandler(TraceEventHandler traceHandler)
public void removeTraceHandler(TraceEventHandler traceHandler)
public String getJpaTraceEventMessageClassName()
public void setJpaTraceEventMessageClassName(String jpaTraceEventMessageClassName)
public boolean isJmxTraceNotifications()
public void setJmxTraceNotifications(boolean jmxTraceNotifications)
public int getTraceBodySize()
public void setTraceBodySize(int traceBodySize)
public void start() throws Exception
Service
public void stop() throws Exception
Service
Apache Camel