Package org.apache.qpid.jms.tracing
Class JmsTracerFactory
java.lang.Object
org.apache.qpid.jms.tracing.JmsTracerFactory
- Direct Known Subclasses:
JmsNoOpTracerFactory,OpenTracingTracerFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JmsTracerCreates a JmsTracer using factory with the given name and any relevant configuration properties set on the given remote URI.abstract JmsTracercreateTracer(URI remoteURI, String name) static JmsTracerFactoryfindTracerFactory(String name) Searches for a JmsTracerFactory by using the given name.
-
Constructor Details
-
JmsTracerFactory
public JmsTracerFactory()
-
-
Method Details
-
createTracer
- Throws:
Exception
-
create
Creates a JmsTracer using factory with the given name and any relevant configuration properties set on the given remote URI.- Parameters:
remoteURI- The connection uri.name- The name that describes the desired tracer factory.- Returns:
- a tracer instance matching the name.
- Throws:
Exception- if an error occurs while creating the tracer.
-
findTracerFactory
Searches for a JmsTracerFactory by using the given name. The search first checks the local cache of factories before moving on to search in the class path.- Parameters:
name- The name that describes the desired tracer factory.- Returns:
- a tracer factory instance matching the name.
- Throws:
IOException- if an error occurs while locating the factory.
-