|
||||||||||
| 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.
| Field Summary | |
|---|---|
static Map |
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 |
| 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 | |
|---|---|
void |
dispose()
|
Map |
getConnectorServerProperties()
Getter for property 'connectorServerProperties'. |
String |
getConnectorServerUrl()
|
List |
getDependentAgents()
The JmxAgent needs a RmiRegistryAgent to be started before it can properly work. |
String |
getDescription()
|
JmxSupportFactory |
getJmxSupportFactory()
Getter for property 'jmxSupportFactory'. |
MBeanServer |
getMBeanServer()
|
void |
initialise()
|
boolean |
isCreateServer()
|
boolean |
isEnableStatistics()
|
boolean |
isLocateServer()
|
protected void |
registerConfigurationService()
|
protected void |
registerConnectorServices()
|
void |
registered()
|
protected void |
registerEndpointServices()
|
protected void |
registerModelServices()
|
protected void |
registerMuleService()
|
protected void |
registerServiceServices()
|
protected void |
registerStatisticsService()
|
protected void |
registerWrapperService()
Register a Java Service Wrapper agent. |
void |
setConnectorServerProperties(Map connectorServerProperties)
Setter for property 'connectorServerProperties'. |
void |
setConnectorServerUrl(String connectorServerUrl)
|
void |
setCreateServer(boolean createServer)
|
void |
setCredentials(Map newCredentials)
Setter for property 'credentials'. |
void |
setEnableStatistics(boolean enableStatistics)
|
void |
setJmxSupportFactory(JmxSupportFactory jmxSupportFactory)
Setter for property 'jmxSupportFactory'. |
void |
setLocateServer(boolean locateServer)
|
void |
setMBeanServer(MBeanServer mBeanServer)
|
void |
start()
(non-Javadoc) |
void |
stop()
|
void |
unregistered()
|
| Methods inherited from class org.mule.AbstractAgent |
|---|
getName, setMuleContext, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_REMOTING_URI
public static final Map DEFAULT_CONNECTOR_SERVER_PROPERTIES
public static final String DEFAULT_JMX_AUTHENTICATOR
protected static final Log logger
protected boolean locateServer
| Constructor Detail |
|---|
public JmxAgent()
| Method Detail |
|---|
public String getDescription()
getDescription in interface AgentgetDescription in class AbstractAgentAgent.getDescription()public List getDependentAgents()
getDependentAgents in interface AgentgetDependentAgents in class AbstractAgent
public void initialise()
throws InitialisationException
initialise in interface Initialisableinitialise in class AbstractAgentInitialisationException
public void start()
throws MuleException
MuleExceptionStartable.start()
public void stop()
throws MuleException
MuleExceptionpublic void dispose()
public void registered()
public void unregistered()
protected void registerWrapperService()
throws MuleException
MuleException - if registration failed
protected 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 registerEndpointServices()
throws NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
NotCompliantMBeanException
MBeanRegistrationException
InstanceAlreadyExistsException
MalformedObjectNameException
protected void registerConnectorServices()
throws MalformedObjectNameException,
NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException
MalformedObjectNameException
NotCompliantMBeanException
MBeanRegistrationException
InstanceAlreadyExistsExceptionpublic boolean isCreateServer()
public void setCreateServer(boolean createServer)
createServer - The createServer to set.public boolean isLocateServer()
public void setLocateServer(boolean locateServer)
locateServer - The locateServer to set.public String getConnectorServerUrl()
public void setConnectorServerUrl(String connectorServerUrl)
connectorServerUrl - The connectorServerUrl to set.public boolean isEnableStatistics()
public void setEnableStatistics(boolean enableStatistics)
enableStatistics - The enableStatistics to set.public MBeanServer getMBeanServer()
public void setMBeanServer(MBeanServer mBeanServer)
mBeanServer - The mBeanServer to set.public Map getConnectorServerProperties()
public void setConnectorServerProperties(Map 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)
jmxSupportFactory - Value to set for property 'jmxSupportFactory'.public void setCredentials(Map newCredentials)
newCredentials - Value to set for property 'credentials'.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||