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 boolean |
locateServer
Should MBeanServer be discovered.
|
protected static org.apache.commons.logging.Log |
logger
Logger used by this class
|
static String |
NAME |
muleContext, namePHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_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.apache.commons.logging.Log logger
protected boolean locateServer
protected boolean containerMode
public String getDescription()
getDescription in interface AgentgetDescription in class AbstractAgentpublic void initialise()
throws InitialisationException
InitialisationExceptionpublic void start()
throws MuleException
MuleExceptionpublic void stop()
throws MuleException
MuleExceptionpublic void dispose()
protected void registerWrapperService()
throws MuleException
MuleException - if registration failedprotected void registerStatisticsService()
throws NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
protected void registerModelServices()
throws NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
protected void registerMuleService()
throws NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
protected void registerConfigurationService()
throws NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
protected void registerServiceServices()
throws NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
protected void registerFlowConstructServices()
throws NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
protected void registerApplicationServices()
throws NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
protected void registerEndpointServices()
throws NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
protected String buildFullyQualifiedEndpointName(EndpointServiceMBean mBean, Connector connector)
protected void registerConnectorServices()
throws MalformedObjectNameException,
NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException
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 MuleException,
NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
public ConfigurableJMXAuthenticator getJmxAuthenticator()
public void setJmxAuthenticator(ConfigurableJMXAuthenticator jmxAuthenticator)
Copyright © 2003–2021 MuleSoft, Inc.. All rights reserved.