org.apache.camel.management
Class CamelNamingStrategy

java.lang.Object
  extended by org.apache.camel.management.CamelNamingStrategy

public class CamelNamingStrategy
extends Object


Field Summary
protected  String domainName
           
protected  String hostName
           
static String KEY_CONTEXT
           
static String KEY_ENDPOINT
           
static String KEY_NAME
           
static String KEY_ROUTE
           
static String KEY_TYPE
           
static String TYPE_ENDPOINTS
           
static String TYPE_ROUTES
           
static String TYPE_SERVICES
           
static String VALUE_UNKNOWN
           
 
Constructor Summary
CamelNamingStrategy(String domainName)
           
 
Method Summary
protected  String getContextId(CamelContext context)
           
protected  String getEndpointId(Endpoint ep)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALUE_UNKNOWN

public static final String VALUE_UNKNOWN
See Also:
Constant Field Values

KEY_CONTEXT

public static final String KEY_CONTEXT
See Also:
Constant Field Values

KEY_ENDPOINT

public static final String KEY_ENDPOINT
See Also:
Constant Field Values

KEY_ROUTE

public static final String KEY_ROUTE
See Also:
Constant Field Values

KEY_TYPE

public static final String KEY_TYPE
See Also:
Constant Field Values

KEY_NAME

public static final String KEY_NAME
See Also:
Constant Field Values

TYPE_ENDPOINTS

public static final String TYPE_ENDPOINTS
See Also:
Constant Field Values

TYPE_SERVICES

public static final String TYPE_SERVICES
See Also:
Constant Field Values

TYPE_ROUTES

public static final String TYPE_ROUTES
See Also:
Constant Field Values

domainName

protected String domainName

hostName

protected String hostName
Constructor Detail

CamelNamingStrategy

public CamelNamingStrategy(String domainName)
Method Detail

getObjectName

public ObjectName getObjectName(CamelContext context)
                         throws MalformedObjectNameException
Implements the naming strategy for a CamelContext. The convention used for a CamelContext ObjectName is ":context=,name=camel".

Parameters:
mbean -
Returns:
generated ObjectName
Throws:
MalformedObjectNameException

getObjectName

public ObjectName getObjectName(ManagedEndpoint mbean)
                         throws MalformedObjectNameException
Implements the naming strategy for a ManagedEndpoint. The convention used for a ManagedEndpoint ObjectName is ":context=,type=Endpoints,endpoint=[urlPrefix]localPart".

Parameters:
mbean -
Returns:
generated ObjectName
Throws:
MalformedObjectNameException

getObjectName

public ObjectName getObjectName(CamelContext context,
                                ManagedService mbean)
                         throws MalformedObjectNameException
Implements the naming strategy for a Service. The convention used for a Service ObjectName is ":context=,type=Services,endpoint=[urlPrefix]localPart".

Parameters:
mbean -
Returns:
generated ObjectName
Throws:
MalformedObjectNameException

getObjectName

public ObjectName getObjectName(ManagedRoute mbean)
                         throws MalformedObjectNameException
Implements the naming strategy for a ManagedRoute. The convention used for a ManagedEndpoint ObjectName is ":context=,type=Routes,endpoint=[urlPrefix]localPart".

Parameters:
mbean -
Returns:
generated ObjectName
Throws:
MalformedObjectNameException

getContextId

protected String getContextId(CamelContext context)

getEndpointId

protected String getEndpointId(Endpoint ep)


Copyright © 2007 Apache Software Foundation. All Rights Reserved.