|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.management.CamelNamingStrategy
public class CamelNamingStrategy
Naming strategy used when registering MBeans.
Field Summary | |
---|---|
protected String |
domainName
|
protected String |
hostName
|
static String |
KEY_CONTEXT
|
static String |
KEY_GROUP
|
static String |
KEY_NAME
|
static String |
KEY_NODE_ID
|
static String |
KEY_ROUTE
|
static String |
KEY_TYPE
|
static String |
TYPE_CONSUMER
|
static String |
TYPE_CONTEXT
|
static String |
TYPE_ENDPOINT
|
static String |
TYPE_PROCESSOR
|
static String |
TYPE_ROUTE
|
static String |
VALUE_UNKNOWN
|
Constructor Summary | |
---|---|
CamelNamingStrategy()
|
|
CamelNamingStrategy(String domainName)
|
Method Summary | |
---|---|
protected ObjectName |
createObjectName(StringBuffer buffer)
Factory method to create an ObjectName escaping any required characters |
protected String |
getContextId(CamelContext context)
|
String |
getDomainName()
|
protected String |
getEndpointId(Endpoint ep)
|
String |
getHostName()
|
ObjectName |
getObjectName(CamelContext context)
Implements the naming strategy for a CamelContext . |
ObjectName |
getObjectName(CamelContext context,
ManagedService mbean)
Implements the naming strategy for a Service . |
ObjectName |
getObjectName(ManagedEndpoint mbean)
Implements the naming strategy for a ManagedEndpoint . |
ObjectName |
getObjectName(ManagedRoute mbean)
Implements the naming strategy for a ManagedRoute . |
ObjectName |
getObjectName(RouteContext routeContext,
ProcessorDefinition processor)
Implements the naming strategy for a ProcessorDefinition . |
void |
setDomainName(String domainName)
|
void |
setHostName(String hostName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String VALUE_UNKNOWN
public static final String KEY_NAME
public static final String KEY_TYPE
public static final String KEY_CONTEXT
public static final String KEY_GROUP
public static final String KEY_ROUTE
public static final String KEY_NODE_ID
public static final String TYPE_CONTEXT
public static final String TYPE_ENDPOINT
public static final String TYPE_PROCESSOR
public static final String TYPE_CONSUMER
public static final String TYPE_ROUTE
protected String domainName
protected String hostName
Constructor Detail |
---|
public CamelNamingStrategy()
public CamelNamingStrategy(String domainName)
Method Detail |
---|
public ObjectName getObjectName(CamelContext context) throws MalformedObjectNameException
CamelContext
.
The convention used for a CamelContext
ObjectName is:
<domain>:context=<context-name>,type=context,name=<context-name>
context
- the camel context
MalformedObjectNameException
- can be thrownpublic ObjectName getObjectName(ManagedEndpoint mbean) throws MalformedObjectNameException
ManagedEndpoint
.
The convention used for a ManagedEndpoint
ObjectName is:
<domain>:context=<context-name>,type=endpoint,component=<component-name>name=<endpoint-name>
MalformedObjectNameException
public ObjectName getObjectName(CamelContext context, ManagedService mbean) throws MalformedObjectNameException
Service
.
The convention used for a Service
ObjectName is
<domain>:context=<context-name>,type=service,name=<service-name>
MalformedObjectNameException
public ObjectName getObjectName(ManagedRoute mbean) throws MalformedObjectNameException
ManagedRoute
.
The convention used for a ManagedRoute
ObjectName is:
<domain>:context=<context-name>,route=<route-name>,type=route,name=<route-name>
MalformedObjectNameException
public ObjectName getObjectName(RouteContext routeContext, ProcessorDefinition processor) throws MalformedObjectNameException
ProcessorDefinition
.
The convention used for a ProcessorDefinition
ObjectName is:
<domain>:context=<context-name>,route=<route-name>,type=processor,name=<processor-name>,nodeid=<node-id>
MalformedObjectNameException
public String getDomainName()
public void setDomainName(String domainName)
public String getHostName()
public void setHostName(String hostName)
protected String getContextId(CamelContext context)
protected String getEndpointId(Endpoint ep)
protected ObjectName createObjectName(StringBuffer buffer) throws MalformedObjectNameException
MalformedObjectNameException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |