org.mule.module.management.agent
Class DefaultJmxSupportAgent
java.lang.Object
org.mule.AbstractAgent
org.mule.module.management.agent.DefaultJmxSupportAgent
- All Implemented Interfaces:
- Agent, MuleContextAware, Disposable, Initialisable, Lifecycle, Startable, Stoppable, NameableObject, NamedObject
public class DefaultJmxSupportAgent
- extends AbstractAgent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_HOST
public static final String DEFAULT_HOST
- See Also:
- Constant Field Values
DEFAULT_PORT
public static final String DEFAULT_PORT
- See Also:
- Constant Field Values
DefaultJmxSupportAgent
public DefaultJmxSupportAgent()
getDescription
public String getDescription()
- Should be a 1 line description of the agent
- Specified by:
getDescription
in interface Agent
- Overrides:
getDescription
in class AbstractAgent
- Returns:
- agent description
start
public void start()
throws MuleException
-
- Throws:
MuleException
stop
public void stop()
throws MuleException
-
- Throws:
MuleException
dispose
public 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.
initialise
public void initialise()
throws InitialisationException
- 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.
- Throws:
InitialisationException
- if a fatal error occurs
causing the Mule instance to shutdown
RecoverableException
- if an error occurs that can be recovered from
createJmxAgent
public JmxAgent createJmxAgent()
createLog4jAgent
protected Log4jAgent createLog4jAgent()
createRmiAgent
protected RmiRegistryAgent createRmiAgent()
createJmxNotificationAgent
protected JmxServerNotificationAgent createJmxNotificationAgent()
createMx4jAgent
protected Mx4jAgent createMx4jAgent()
createJdmkAgent
protected JdmkAgent createJdmkAgent()
createProfilerAgent
protected YourKitProfilerAgent createProfilerAgent()
isAgentRegistered
protected boolean isAgentRegistered(Agent agent)
isLoadLog4jAgent
public boolean isLoadLog4jAgent()
setLoadLog4jAgent
public void setLoadLog4jAgent(boolean loadLog4jAgent)
isLoadJdmkAgent
public boolean isLoadJdmkAgent()
setLoadJdmkAgent
public void setLoadJdmkAgent(boolean loadJdmkAgent)
isLoadMx4jAgent
public boolean isLoadMx4jAgent()
setLoadMx4jAgent
public void setLoadMx4jAgent(boolean loadMx4jAgent)
isLoadProfilerAgent
public boolean isLoadProfilerAgent()
setLoadProfilerAgent
public void setLoadProfilerAgent(boolean loadProfilerAgent)
getPort
public String getPort()
setPort
public void setPort(String port)
getHost
public String getHost()
setHost
public void setHost(String host)
setCredentials
public void setCredentials(Map<String,String> credentials)
getJmxAuthenticator
public ConfigurableJMXAuthenticator getJmxAuthenticator()
setJmxAuthenticator
public void setJmxAuthenticator(ConfigurableJMXAuthenticator jmxAuthenticator)
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.