org.mule.module.management.agent
Class JmxAgent
java.lang.Object
org.mule.AbstractAgent
org.mule.module.management.agent.JmxAgent
- All Implemented Interfaces:
- Agent, MuleContextAware, Disposable, Initialisable, Lifecycle, Startable, Stoppable, NameableObject, NamedObject
public class JmxAgent
- extends AbstractAgent
JmxAgent registers Mule Jmx management beans with an MBean server.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final String NAME
- See Also:
- Constant Field Values
DEFAULT_REMOTING_URI
public static final String DEFAULT_REMOTING_URI
- See Also:
- Constant Field Values
DEFAULT_CONNECTOR_SERVER_PROPERTIES
public static final Map<String,String> DEFAULT_CONNECTOR_SERVER_PROPERTIES
DEFAULT_JMX_AUTHENTICATOR
public static final String DEFAULT_JMX_AUTHENTICATOR
- Default JMX Authenticator to use for securing remote access.
logger
protected static final Log logger
- Logger used by this class
locateServer
protected boolean locateServer
- Should MBeanServer be discovered.
containerMode
protected boolean containerMode
JmxAgent
public JmxAgent()
getDescription
public String getDescription()
- Specified by:
getDescription in interface Agent- Overrides:
getDescription in class AbstractAgent
initialise
public void initialise()
throws InitialisationException
-
- Throws:
InitialisationException
initRMI
protected void initRMI()
throws Exception
- Throws:
Exception
start
public void start()
throws MuleException
- Throws:
MuleException
stop
public void stop()
throws MuleException
- Throws:
MuleException
dispose
public void dispose()
-
registerWrapperService
protected void registerWrapperService()
throws MuleException
- Register a Java Service Wrapper agent.
- Throws:
MuleException - if registration failed
registerStatisticsService
protected void registerStatisticsService()
throws NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
- Throws:
NotCompliantMBeanException
MBeanRegistrationException
InstanceAlreadyExistsException
MalformedObjectNameException
registerModelServices
protected void registerModelServices()
throws NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
- Throws:
NotCompliantMBeanException
MBeanRegistrationException
InstanceAlreadyExistsException
MalformedObjectNameException
registerMuleService
protected void registerMuleService()
throws NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
- Throws:
NotCompliantMBeanException
MBeanRegistrationException
InstanceAlreadyExistsException
MalformedObjectNameException
registerConfigurationService
protected void registerConfigurationService()
throws NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
- Throws:
NotCompliantMBeanException
MBeanRegistrationException
InstanceAlreadyExistsException
MalformedObjectNameException
registerServiceServices
protected void registerServiceServices()
throws NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
- Throws:
NotCompliantMBeanException
MBeanRegistrationException
InstanceAlreadyExistsException
MalformedObjectNameException
registerFlowConstructServices
protected void registerFlowConstructServices()
throws NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
- Throws:
NotCompliantMBeanException
MBeanRegistrationException
InstanceAlreadyExistsException
MalformedObjectNameException
registerApplicationServices
protected void registerApplicationServices()
throws NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
- Throws:
NotCompliantMBeanException
MBeanRegistrationException
InstanceAlreadyExistsException
MalformedObjectNameException
registerEndpointServices
protected void registerEndpointServices()
throws NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
- Throws:
NotCompliantMBeanException
MBeanRegistrationException
InstanceAlreadyExistsException
MalformedObjectNameException
buildFullyQualifiedEndpointName
protected String buildFullyQualifiedEndpointName(EndpointServiceMBean mBean,
Connector connector)
registerConnectorServices
protected void registerConnectorServices()
throws MalformedObjectNameException,
NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException
- Throws:
MalformedObjectNameException
NotCompliantMBeanException
MBeanRegistrationException
InstanceAlreadyExistsException
isCreateServer
public boolean isCreateServer()
setCreateServer
public void setCreateServer(boolean createServer)
isLocateServer
public boolean isLocateServer()
setLocateServer
public void setLocateServer(boolean locateServer)
getConnectorServerUrl
public String getConnectorServerUrl()
setConnectorServerUrl
public void setConnectorServerUrl(String connectorServerUrl)
isEnableStatistics
public boolean isEnableStatistics()
setEnableStatistics
public void setEnableStatistics(boolean enableStatistics)
getMBeanServer
public MBeanServer getMBeanServer()
setMBeanServer
public void setMBeanServer(MBeanServer mBeanServer)
getConnectorServerProperties
public Map<String,Object> getConnectorServerProperties()
setConnectorServerProperties
public void setConnectorServerProperties(Map<String,Object> connectorServerProperties)
- Setter for property 'connectorServerProperties'. Set to
null to use defaults (DEFAULT_CONNECTOR_SERVER_PROPERTIES). Pass in an empty map to use no parameters.
Passing a non-empty map will replace defaults.
- Parameters:
connectorServerProperties - Value to set for property 'connectorServerProperties'.
getJmxSupportFactory
public JmxSupportFactory getJmxSupportFactory()
setJmxSupportFactory
public void setJmxSupportFactory(JmxSupportFactory jmxSupportFactory)
setCredentials
public void setCredentials(Map<String,String> newCredentials)
- Setter for property 'credentials'.
- Parameters:
newCredentials - Value to set for property 'credentials'.
unregisterMBeansIfNecessary
protected void unregisterMBeansIfNecessary()
unregisterMBeansIfNecessary
protected void unregisterMBeansIfNecessary(boolean containerMode)
- Parameters:
containerMode - when true, MuleContext will still be exposed to enable the 'start' operation
getRmiRegistry
public Registry getRmiRegistry()
setRmiRegistry
public void setRmiRegistry(Registry rmiRegistry)
isCreateRmiRegistry
public boolean isCreateRmiRegistry()
setCreateRmiRegistry
public void setCreateRmiRegistry(boolean createRmiRegistry)
getJmxAuthenticator
public ConfigurableJMXAuthenticator getJmxAuthenticator()
setJmxAuthenticator
public void setJmxAuthenticator(ConfigurableJMXAuthenticator jmxAuthenticator)
Copyright © 2003-2011 MuleSoft, Inc.. All Rights Reserved.