public interface ManagementAgent extends Service
| Modifier and Type | Method and Description |
|---|---|
Integer |
getConnectorPort()
Gets the port clients must use to connect
|
Boolean |
getCreateConnector()
Whether connector is created, allowing clients to connect remotely
|
Boolean |
getIncludeHostName()
Gets whether host name is included in MBean names.
|
Boolean |
getMask()
Whether to remove detected sensitive information (such as passwords) from MBean names and attributes.
|
String |
getMBeanObjectDomainName()
Get domain name for Camel MBeans.
|
MBeanServer |
getMBeanServer()
Get the MBeanServer which hosts managed objects.
|
String |
getMBeanServerDefaultDomain()
Gets the default domain on the MBean server
|
Boolean |
getOnlyRegisterProcessorWithCustomId()
Whether to only register processors which has a custom id assigned.
|
Boolean |
getRegisterAlways()
Whether to always register mbeans.
|
Boolean |
getRegisterNewRoutes()
Whether to register mbeans when starting a new route
This option is default true.
|
Integer |
getRegistryPort()
Gets the port used by
LocateRegistry. |
String |
getServiceUrlPath()
Gets the service url
|
Boolean |
getUsePlatformMBeanServer()
Whether to use the platform MBean Server.
|
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 port)
Sets the port clients must use to connect
|
void |
setCreateConnector(Boolean createConnector)
Whether connector should be created, allowing clients to connect remotely
|
void |
setIncludeHostName(Boolean includeHostName)
Sets whether to include host name in the
ManagementNamingStrategy. |
void |
setMask(Boolean sanitize)
Whether to remove detected sensitive information (such as passwords) from MBean names and attributes.
|
void |
setMBeanObjectDomainName(String domainName)
Sets the object domain name
|
void |
setMBeanServer(MBeanServer mbeanServer)
Sets a custom mbean server to use
|
void |
setMBeanServerDefaultDomain(String domain)
Sets the default domain on the MBean server
|
void |
setOnlyRegisterProcessorWithCustomId(Boolean onlyRegisterProcessorWithCustomId)
Whether to only register processors which has a custom id assigned.
|
void |
setRegisterAlways(Boolean registerAlways)
Whether to always register mbeans.
|
void |
setRegisterNewRoutes(Boolean registerNewRoutes)
Whether to register mbeans when starting a new route
This option is default true.
|
void |
setRegistryPort(Integer port)
Sets the port used by
LocateRegistry. |
void |
setServiceUrlPath(String url)
Sets the service url
|
void |
setUsePlatformMBeanServer(Boolean usePlatformMBeanServer)
Whether to use the platform MBean Server.
|
void |
unregister(ObjectName name)
Unregisters object based upon registered name
|
void register(Object obj, ObjectName name) throws JMException
obj - the object to registername - the nameJMException - is thrown if the registration failedvoid register(Object obj, ObjectName name, boolean forceRegistration) throws JMException
obj - 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 failedvoid unregister(ObjectName name) throws JMException
name - the nameJMException - is thrown if the unregistration failedboolean isRegistered(ObjectName name)
name - the nameMBeanServer getMBeanServer()
void setMBeanServer(MBeanServer mbeanServer)
mbeanServer - the custom mbean serverString getMBeanObjectDomainName()
void setRegistryPort(Integer port)
LocateRegistry.port - the portInteger getRegistryPort()
LocateRegistry.void setConnectorPort(Integer port)
port - the portInteger getConnectorPort()
void setMBeanServerDefaultDomain(String domain)
domain - the domainString getMBeanServerDefaultDomain()
void setMBeanObjectDomainName(String domainName)
domainName - the object domain namevoid setServiceUrlPath(String url)
url - the service urlString getServiceUrlPath()
void setCreateConnector(Boolean createConnector)
createConnector - true to create connectorBoolean getCreateConnector()
void setUsePlatformMBeanServer(Boolean usePlatformMBeanServer)
usePlatformMBeanServer - true to use platform MBean serverBoolean getUsePlatformMBeanServer()
Boolean getOnlyRegisterProcessorWithCustomId()
void setOnlyRegisterProcessorWithCustomId(Boolean onlyRegisterProcessorWithCustomId)
onlyRegisterProcessorWithCustomId - true to only register if custom id has been assignedBoolean getRegisterAlways()
void setRegisterAlways(Boolean registerAlways)
registerAlways - true to always registerBoolean getRegisterNewRoutes()
void setRegisterNewRoutes(Boolean registerNewRoutes)
registerNewRoutes - true to register when starting a new routeBoolean getMask()
void setMask(Boolean sanitize)
Boolean getIncludeHostName()
void setIncludeHostName(Boolean includeHostName)
ManagementNamingStrategy.
By default this is turned off from Camel 2.13 onwards, but this option
can be set to true to include the hostname as Camel 2.12 or
older releases does.includeHostName - true to include host name in the MBean names.Apache Camel