org.apache.camel.management
Class DefaultManagementNamingStrategy
java.lang.Object
org.apache.camel.management.DefaultManagementNamingStrategy
- All Implemented Interfaces:
- ManagementNamingStrategy
public class DefaultManagementNamingStrategy
- extends Object
- implements ManagementNamingStrategy
Naming strategy used when registering MBeans.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VALUE_UNKNOWN
public static final String VALUE_UNKNOWN
- See Also:
- Constant Field Values
KEY_NAME
public static final String KEY_NAME
- See Also:
- Constant Field Values
KEY_TYPE
public static final String KEY_TYPE
- See Also:
- Constant Field Values
KEY_CONTEXT
public static final String KEY_CONTEXT
- See Also:
- Constant Field Values
TYPE_CONTEXT
public static final String TYPE_CONTEXT
- See Also:
- Constant Field Values
TYPE_ENDPOINT
public static final String TYPE_ENDPOINT
- See Also:
- Constant Field Values
TYPE_PROCESSOR
public static final String TYPE_PROCESSOR
- See Also:
- Constant Field Values
TYPE_CONSUMER
public static final String TYPE_CONSUMER
- See Also:
- Constant Field Values
TYPE_PRODUCER
public static final String TYPE_PRODUCER
- See Also:
- Constant Field Values
TYPE_ROUTE
public static final String TYPE_ROUTE
- See Also:
- Constant Field Values
TYPE_COMPONENT
public static final String TYPE_COMPONENT
- See Also:
- Constant Field Values
TYPE_TRACER
public static final String TYPE_TRACER
- See Also:
- Constant Field Values
TYPE_ERRORHANDLER
public static final String TYPE_ERRORHANDLER
- See Also:
- Constant Field Values
TYPE_SERVICE
public static final String TYPE_SERVICE
- See Also:
- Constant Field Values
domainName
protected String domainName
hostName
protected String hostName
DefaultManagementNamingStrategy
public DefaultManagementNamingStrategy()
DefaultManagementNamingStrategy
public DefaultManagementNamingStrategy(String domainName)
getObjectNameForCamelContext
public ObjectName getObjectNameForCamelContext(CamelContext context)
throws MalformedObjectNameException
- Specified by:
getObjectNameForCamelContext
in interface ManagementNamingStrategy
- Throws:
MalformedObjectNameException
getObjectNameForEndpoint
public ObjectName getObjectNameForEndpoint(Endpoint endpoint)
throws MalformedObjectNameException
- Specified by:
getObjectNameForEndpoint
in interface ManagementNamingStrategy
- Throws:
MalformedObjectNameException
getObjectNameForComponent
public ObjectName getObjectNameForComponent(Component component,
String name)
throws MalformedObjectNameException
- Specified by:
getObjectNameForComponent
in interface ManagementNamingStrategy
- Throws:
MalformedObjectNameException
getObjectNameForProcessor
public ObjectName getObjectNameForProcessor(CamelContext context,
Processor processor,
ProcessorDefinition<?> definition)
throws MalformedObjectNameException
- Specified by:
getObjectNameForProcessor
in interface ManagementNamingStrategy
- Throws:
MalformedObjectNameException
getObjectNameForErrorHandler
public ObjectName getObjectNameForErrorHandler(RouteContext routeContext,
Processor errorHandler,
ErrorHandlerBuilder builder)
throws MalformedObjectNameException
- Specified by:
getObjectNameForErrorHandler
in interface ManagementNamingStrategy
- Throws:
MalformedObjectNameException
getObjectNameForConsumer
public ObjectName getObjectNameForConsumer(CamelContext context,
Consumer consumer)
throws MalformedObjectNameException
- Specified by:
getObjectNameForConsumer
in interface ManagementNamingStrategy
- Throws:
MalformedObjectNameException
getObjectNameForProducer
public ObjectName getObjectNameForProducer(CamelContext context,
Producer producer)
throws MalformedObjectNameException
- Specified by:
getObjectNameForProducer
in interface ManagementNamingStrategy
- Throws:
MalformedObjectNameException
getObjectNameForTracer
public ObjectName getObjectNameForTracer(CamelContext context,
InterceptStrategy tracer)
throws MalformedObjectNameException
- Specified by:
getObjectNameForTracer
in interface ManagementNamingStrategy
- Throws:
MalformedObjectNameException
getObjectNameForRoute
public ObjectName getObjectNameForRoute(Route route)
throws MalformedObjectNameException
- Specified by:
getObjectNameForRoute
in interface ManagementNamingStrategy
- Throws:
MalformedObjectNameException
getObjectNameForService
public ObjectName getObjectNameForService(CamelContext context,
Service service)
throws MalformedObjectNameException
- Specified by:
getObjectNameForService
in interface ManagementNamingStrategy
- Throws:
MalformedObjectNameException
getDomainName
public String getDomainName()
setDomainName
public void setDomainName(String domainName)
getHostName
public String getHostName()
setHostName
public void setHostName(String hostName)
getContextId
protected String getContextId(CamelContext context)
getEndpointId
protected String getEndpointId(Endpoint ep)
createObjectName
protected ObjectName createObjectName(StringBuffer buffer)
throws MalformedObjectNameException
- Factory method to create an ObjectName escaping any required characters
- Throws:
MalformedObjectNameException
Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.