|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.ServiceSupport
org.apache.camel.management.DefaultManagementAgent
public class DefaultManagementAgent
Default implementation of the Camel JMX service agent
| Field Summary | |
|---|---|
static int |
DEFAULT_CONNECTION_PORT
|
static String |
DEFAULT_DOMAIN
|
static String |
DEFAULT_HOST
|
static int |
DEFAULT_REGISTRY_PORT
|
static String |
DEFAULT_SERVICE_URL_PATH
|
| Constructor Summary | |
|---|---|
DefaultManagementAgent()
|
|
| Method Summary | |
|---|---|
protected void |
createJmxConnector(String host)
|
protected void |
createMBeanServer()
|
protected void |
doStart()
|
protected void |
doStop()
|
protected void |
finalizeSettings()
|
protected MBeanServer |
findOrCreateMBeanServer()
|
Integer |
getConnectorPort()
|
Boolean |
getCreateConnector()
|
ExecutorService |
getExecutorService()
|
String |
getMBeanObjectDomainName()
Get domain name for Camel MBeans. |
MBeanServer |
getMBeanServer()
Get the MBeanServer which hosts managed objects. |
String |
getMBeanServerDefaultDomain()
|
Boolean |
getOnlyRegisterProcessorWithCustomId()
|
Integer |
getRegistryPort()
|
String |
getServiceUrlPath()
|
Boolean |
getUsePlatformMBeanServer()
|
boolean |
isRegistered(ObjectName name)
Is the given object registered |
void |
register(Object obj,
ObjectName name)
Registers object with management infrastructure with a specific name. |
void |
register(Object obj,
ObjectName name,
boolean forceRegistration)
Registers object with management infrastructure with a specific name. |
void |
setConnectorPort(Integer value)
|
void |
setCreateConnector(Boolean flag)
|
void |
setExecutorService(ExecutorService executorService)
|
void |
setMBeanObjectDomainName(String value)
|
void |
setMBeanServer(MBeanServer mbeanServer)
Sets a custom mbean server to use |
void |
setMBeanServerDefaultDomain(String value)
|
void |
setOnlyRegisterProcessorWithCustomId(Boolean onlyRegisterProcessorWithCustomId)
|
void |
setRegistryPort(Integer value)
|
void |
setServiceUrlPath(String value)
|
void |
setUsePlatformMBeanServer(Boolean flag)
|
void |
unregister(ObjectName name)
Unregisters object based upon registered name |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
|---|
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.camel.Service |
|---|
start, stop |
| Field Detail |
|---|
public static final String DEFAULT_DOMAIN
public static final String DEFAULT_HOST
public static final int DEFAULT_REGISTRY_PORT
public static final int DEFAULT_CONNECTION_PORT
public static final String DEFAULT_SERVICE_URL_PATH
| Constructor Detail |
|---|
public DefaultManagementAgent()
| Method Detail |
|---|
protected void finalizeSettings()
public void setRegistryPort(Integer value)
public Integer getRegistryPort()
public void setConnectorPort(Integer value)
public Integer getConnectorPort()
public void setMBeanServerDefaultDomain(String value)
public String getMBeanServerDefaultDomain()
public void setMBeanObjectDomainName(String value)
public String getMBeanObjectDomainName()
ManagementAgent
getMBeanObjectDomainName in interface ManagementAgentpublic void setServiceUrlPath(String value)
public String getServiceUrlPath()
public void setCreateConnector(Boolean flag)
public Boolean getCreateConnector()
public void setUsePlatformMBeanServer(Boolean flag)
public Boolean getUsePlatformMBeanServer()
public Boolean getOnlyRegisterProcessorWithCustomId()
public void setOnlyRegisterProcessorWithCustomId(Boolean onlyRegisterProcessorWithCustomId)
public void setMBeanServer(MBeanServer mbeanServer)
ManagementAgent
setMBeanServer in interface ManagementAgentmbeanServer - the custom mbean serverpublic MBeanServer getMBeanServer()
ManagementAgent
getMBeanServer in interface ManagementAgentpublic ExecutorService getExecutorService()
public void setExecutorService(ExecutorService executorService)
public void register(Object obj,
ObjectName name)
throws JMException
ManagementAgent
register in interface ManagementAgentobj - the object to registername - the name
JMException - is thrown if the registration failed
public void register(Object obj,
ObjectName name,
boolean forceRegistration)
throws JMException
ManagementAgent
register in interface ManagementAgentobj - the object to registername - the nameforceRegistration - if set to true, then object will be registered despite
existing object is already registered with the name.
JMException - is thrown if the registration failed
public void unregister(ObjectName name)
throws JMException
ManagementAgent
unregister in interface ManagementAgentname - the name
JMException - is thrown if the unregistration failedpublic boolean isRegistered(ObjectName name)
ManagementAgent
isRegistered in interface ManagementAgentname - the name
protected void doStart()
throws Exception
doStart in class ServiceSupportException
protected void doStop()
throws Exception
doStop in class ServiceSupportExceptionprotected void createMBeanServer()
protected MBeanServer findOrCreateMBeanServer()
protected void createJmxConnector(String host)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||