public abstract class AbstractJmxAgent extends AbstractAgent
AbstractJmxAgent registers Mule Jmx management beans with an MBean server.| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractJmxAgent.MuleContextStartedListener |
protected class |
AbstractJmxAgent.MuleContextStoppedListener |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
containerMode |
static Map<String,String> |
DEFAULT_CONNECTOR_SERVER_PROPERTIES |
static String |
DEFAULT_JMX_AUTHENTICATOR
Default JMX Authenticator to use for securing remote access.
|
static String |
DEFAULT_REMOTING_URI |
protected JmxSupport |
jmxSupport |
protected boolean |
locateServer
Should MBeanServer be discovered.
|
protected static org.slf4j.Logger |
logger
Logger used by this class
|
static String |
NAME |
muleContext, name| Constructor and Description |
|---|
AbstractJmxAgent() |
getName, setMuleContext, setName, unregisterMeQuietlypublic static final String NAME
public static final String DEFAULT_REMOTING_URI
public static final Map<String,String> DEFAULT_CONNECTOR_SERVER_PROPERTIES
public static final String DEFAULT_JMX_AUTHENTICATOR
protected static final org.slf4j.Logger logger
protected boolean locateServer
protected boolean containerMode
protected JmxSupport jmxSupport
public String getDescription()
getDescription in interface AgentgetDescription in class AbstractAgentpublic void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
org.mule.runtime.api.lifecycle.InitialisationExceptionpublic void start()
throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic void dispose()
protected void registerWrapperService()
throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleException - if registration failedprotected void registerStatisticsService()
throws NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
protected void registerMuleService()
throws NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
protected void registerConfigurationService()
throws NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
protected void registerFlowConstructServices()
throws NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
protected void registerApplicationServices()
throws NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
public boolean isCreateServer()
public void setCreateServer(boolean createServer)
public boolean isLocateServer()
public void setLocateServer(boolean locateServer)
public String getConnectorServerUrl()
public void setConnectorServerUrl(String connectorServerUrl)
public boolean isEnableStatistics()
public void setEnableStatistics(boolean enableStatistics)
public MBeanServer getMBeanServer()
public void setMBeanServer(MBeanServer mBeanServer)
public void setConnectorServerProperties(Map<String,Object> connectorServerProperties)
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.connectorServerProperties - Value to set for property 'connectorServerProperties'.public JmxSupportFactory getJmxSupportFactory()
public void setJmxSupportFactory(JmxSupportFactory jmxSupportFactory)
public void setCredentials(Map<String,String> newCredentials)
newCredentials - Value to set for property 'credentials'.protected void unregisterMBeansIfNecessary()
protected void unregisterMBeansIfNecessary(boolean containerMode)
containerMode - when true, MuleContext will still be exposed to enable the 'start' operationpublic Registry getRmiRegistry()
public void setRmiRegistry(Registry rmiRegistry)
public boolean isCreateRmiRegistry()
public void setCreateRmiRegistry(boolean createRmiRegistry)
protected abstract void registerServices()
throws org.mule.runtime.api.exception.MuleException,
NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
org.mule.runtime.api.exception.MuleExceptionNotCompliantMBeanExceptionMBeanRegistrationExceptionInstanceAlreadyExistsExceptionMalformedObjectNameExceptionpublic ConfigurableJMXAuthenticator getJmxAuthenticator()
public void setJmxAuthenticator(ConfigurableJMXAuthenticator jmxAuthenticator)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.