|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mule.management.agents.JmxAgent
JmxAgent registers MUle Jmx management beans with an MBean
server.
| Field Summary | |
protected boolean |
locateServer
Should MBeanServer be discovered. |
protected static Log |
logger
Logger used by this class. |
| Constructor Summary | |
JmxAgent()
|
|
| Method Summary | |
void |
dispose()
A lifecycle method where implementor should free up any resources. If an exception is thrown it should just be logged and processing should continue. This method should not throw Runtime exceptions. (non-Javadoc) |
Map |
getConnectorServerProperties()
Getter for property 'connectorServerProperties'. |
String |
getConnectorServerUrl()
|
String |
getDescription()
Should be a 1 line description of the agent |
JmxSupportFactory |
getJmxSupportFactory()
Getter for property 'jmxSupportFactory'. |
MBeanServer |
getMBeanServer()
|
String |
getName()
Gets the name of this agent |
void |
initialise()
Method used to perform any initialisation work. If a fatal error occurs during initialisation an 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.
(non-Javadoc) |
boolean |
isCreateServer()
|
boolean |
isEnableStatistics()
|
boolean |
isLocateServer()
|
protected void |
registerComponentServices()
|
protected void |
registerConfigurationService()
|
protected void |
registerConnectorServices()
|
void |
registered()
(non-Javadoc) |
protected void |
registerEndpointServices()
|
protected void |
registerModelService()
|
protected void |
registerMuleService()
|
protected void |
registerStatisticsService()
|
void |
setConnectorServerProperties(Map connectorServerProperties)
Setter for property 'connectorServerProperties'. |
void |
setConnectorServerUrl(String connectorServerUrl)
|
void |
setCreateServer(boolean createServer)
|
void |
setEnableStatistics(boolean enableStatistics)
|
void |
setJmxSupportFactory(JmxSupportFactory jmxSupportFactory)
Setter for property 'jmxSupportFactory'. |
void |
setLocateServer(boolean locateServer)
|
void |
setMBeanServer(MBeanServer mBeanServer)
|
void |
setName(String name)
Sets the name of this agent |
void |
start()
(non-Javadoc) |
void |
stop()
(non-Javadoc) |
void |
unregistered()
(non-Javadoc) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static Log logger
protected boolean locateServer
| Constructor Detail |
public JmxAgent()
| Method Detail |
public String getName()
getName in interface UMOAgentUMOAgent.getName()public void setName(String name)
setName in interface UMOAgentname - the name of the agentUMOAgent.setName(java.lang.String)public String getDescription()
getDescription in interface UMOAgentUMOAgent.getDescription()
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.
(non-Javadoc)
initialise in interface InitialisableInitialisationException - if a fatal error occurs causing the Mule
instance to shutdownInitialisable.initialise()
public void start()
throws UMOException
start in interface StartableUMOExceptionStartable.start()
public void stop()
throws UMOException
stop in interface StoppableUMOExceptionStoppable.stop()public void dispose()
dispose in interface DisposableDisposable.dispose()public void registered()
registered in interface UMOAgentUMOAgent.registered()public void unregistered()
unregistered in interface UMOAgentUMOAgent.unregistered()
protected void registerStatisticsService()
throws NotCompliantMBeanException,
MBeanRegistrationException,
InstanceAlreadyExistsException,
MalformedObjectNameException
NotCompliantMBeanException
MBeanRegistrationException
InstanceAlreadyExistsException
MalformedObjectNameException
protected void registerModelService()
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 registerComponentServices()
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)
connectorServerProperties - Value to set for property 'connectorServerProperties'.public JmxSupportFactory getJmxSupportFactory()
public void setJmxSupportFactory(JmxSupportFactory jmxSupportFactory)
jmxSupportFactory - Value to set for property 'jmxSupportFactory'.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||