|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.AbstractAgent
org.mule.module.management.agent.JmxAgent
public class JmxAgent
JmxAgent
registers Mule Jmx management beans with an MBean server.
Nested Class Summary | |
---|---|
protected class |
JmxAgent.MuleContextStartedListener
|
protected class |
JmxAgent.MuleContextStoppedListener
|
Field Summary | |
---|---|
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 Log |
logger
Logger used by this class |
static String |
NAME
|
Fields inherited from class org.mule.AbstractAgent |
---|
muleContext, name |
Fields inherited from interface org.mule.api.lifecycle.Initialisable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Startable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Stoppable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Disposable |
---|
PHASE_NAME |
Constructor Summary | |
---|---|
JmxAgent()
|
Method Summary | |
---|---|
protected String |
buildFullyQualifiedEndpointName(EndpointServiceMBean mBean,
Connector connector)
|
void |
dispose()
A lifecycle method where implementor should free up any resources. |
Map<String,Object> |
getConnectorServerProperties()
|
String |
getConnectorServerUrl()
|
String |
getDescription()
A description of the agent that gets displayed in the splash screen when the Mule Context starts up. |
ConfigurableJMXAuthenticator |
getJmxAuthenticator()
|
JmxSupportFactory |
getJmxSupportFactory()
|
MBeanServer |
getMBeanServer()
|
Registry |
getRmiRegistry()
|
void |
initialise()
Method used to perform any initialisation work. |
protected void |
initRMI()
|
boolean |
isCreateRmiRegistry()
|
boolean |
isCreateServer()
|
boolean |
isEnableStatistics()
|
boolean |
isLocateServer()
|
protected void |
registerApplicationServices()
|
protected void |
registerConfigurationService()
|
protected void |
registerConnectorServices()
|
protected void |
registerEndpointServices()
|
protected void |
registerFlowConstructServices()
|
protected void |
registerModelServices()
|
protected void |
registerMuleService()
|
protected void |
registerServiceServices()
|
protected void |
registerStatisticsService()
|
protected void |
registerWrapperService()
Register a Java Service Wrapper agent. |
void |
setConnectorServerProperties(Map<String,Object> connectorServerProperties)
Setter for property 'connectorServerProperties'. |
void |
setConnectorServerUrl(String connectorServerUrl)
|
void |
setCreateRmiRegistry(boolean createRmiRegistry)
|
void |
setCreateServer(boolean createServer)
|
void |
setCredentials(Map<String,String> newCredentials)
Setter for property 'credentials'. |
void |
setEnableStatistics(boolean enableStatistics)
|
void |
setJmxAuthenticator(ConfigurableJMXAuthenticator jmxAuthenticator)
|
void |
setJmxSupportFactory(JmxSupportFactory jmxSupportFactory)
|
void |
setLocateServer(boolean locateServer)
|
void |
setMBeanServer(MBeanServer mBeanServer)
|
void |
setRmiRegistry(Registry rmiRegistry)
|
void |
start()
|
void |
stop()
|
protected void |
unregisterMBeansIfNecessary()
|
protected void |
unregisterMBeansIfNecessary(boolean containerMode)
|
Methods inherited from class org.mule.AbstractAgent |
---|
getName, setMuleContext, setName, unregisterMeQuietly |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public 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 Log logger
protected boolean locateServer
protected boolean containerMode
Constructor Detail |
---|
public JmxAgent()
Method Detail |
---|
public String getDescription()
Agent
getDescription
in interface Agent
getDescription
in class AbstractAgent
public void initialise() throws InitialisationException
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdown
RecoverableException
- if an error occurs that can be recovered fromprotected void initRMI() throws Exception
Exception
public void start() throws MuleException
MuleException
public void stop() throws MuleException
MuleException
public void dispose()
protected void registerWrapperService() throws MuleException
MuleException
- if registration failedprotected void registerStatisticsService() throws NotCompliantMBeanException, MBeanRegistrationException, InstanceAlreadyExistsException, MalformedObjectNameException
NotCompliantMBeanException
MBeanRegistrationException
InstanceAlreadyExistsException
MalformedObjectNameException
protected void registerModelServices() throws NotCompliantMBeanException, MBeanRegistrationException, InstanceAlreadyExistsException, MalformedObjectNameException
NotCompliantMBeanException
MBeanRegistrationException
InstanceAlreadyExistsException
MalformedObjectNameException
protected void registerMuleService() throws NotCompliantMBeanException, MBeanRegistrationException, InstanceAlreadyExistsException, MalformedObjectNameException
NotCompliantMBeanException
MBeanRegistrationException
InstanceAlreadyExistsException
MalformedObjectNameException
protected void registerConfigurationService() throws NotCompliantMBeanException, MBeanRegistrationException, InstanceAlreadyExistsException, MalformedObjectNameException
NotCompliantMBeanException
MBeanRegistrationException
InstanceAlreadyExistsException
MalformedObjectNameException
protected void registerServiceServices() throws NotCompliantMBeanException, MBeanRegistrationException, InstanceAlreadyExistsException, MalformedObjectNameException
NotCompliantMBeanException
MBeanRegistrationException
InstanceAlreadyExistsException
MalformedObjectNameException
protected void registerFlowConstructServices() throws NotCompliantMBeanException, MBeanRegistrationException, InstanceAlreadyExistsException, MalformedObjectNameException
NotCompliantMBeanException
MBeanRegistrationException
InstanceAlreadyExistsException
MalformedObjectNameException
protected void registerApplicationServices() throws NotCompliantMBeanException, MBeanRegistrationException, InstanceAlreadyExistsException, MalformedObjectNameException
NotCompliantMBeanException
MBeanRegistrationException
InstanceAlreadyExistsException
MalformedObjectNameException
protected void registerEndpointServices() throws NotCompliantMBeanException, MBeanRegistrationException, InstanceAlreadyExistsException, MalformedObjectNameException
NotCompliantMBeanException
MBeanRegistrationException
InstanceAlreadyExistsException
MalformedObjectNameException
protected String buildFullyQualifiedEndpointName(EndpointServiceMBean mBean, Connector connector)
protected void registerConnectorServices() throws MalformedObjectNameException, NotCompliantMBeanException, MBeanRegistrationException, InstanceAlreadyExistsException
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 Map<String,Object> getConnectorServerProperties()
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)
public ConfigurableJMXAuthenticator getJmxAuthenticator()
public void setJmxAuthenticator(ConfigurableJMXAuthenticator jmxAuthenticator)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |