public class Mx4jAgent extends AbstractAgent
Mx4jAgent configures an Mx4J Http Adaptor for Jmx management,
statistics and configuration viewing of a Mule instance.
TODO MULE-1353| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_HOSTNAME |
static String |
DEFAULT_JMX_ADAPTOR_URL |
protected static String |
DEFAULT_PATH_IN_JAR |
static int |
DEFAULT_PORT |
static String |
HTTP_ADAPTER_OBJECT_NAME |
muleContext, namePHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
Mx4jAgent() |
| Modifier and Type | Method and Description |
|---|---|
protected mx4j.tools.adaptor.http.HttpAdaptor |
createAdaptor() |
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
String |
getAuthenticationMethod() |
String |
getDescription()
Should be a 1 line description of the agent
|
String |
getHost() |
String |
getJmxAdaptorUrl() |
String |
getLogin() |
String |
getPassword() |
String |
getPathInJar() |
String |
getPort() |
Map |
getSocketFactoryProperties() |
String |
getXslFilePath() |
void |
initialise()
Method used to perform any initialisation work.
|
boolean |
isCacheXsl() |
void |
registered() |
void |
setAuthenticationMethod(String authenticationMethod) |
void |
setCacheXsl(boolean cacheXsl) |
void |
setHost(String host) |
void |
setJmxAdaptorUrl(String jmxAdaptorUrl) |
void |
setLogin(String login) |
void |
setPassword(String password) |
void |
setPathInJar(String pathInJar) |
void |
setPort(String port) |
void |
setSocketFactoryProperties(Map socketFactoryProperties) |
void |
setXslFilePath(String xslFilePath) |
void |
start() |
void |
stop() |
void |
unregistered() |
protected void |
unregisterMBeansIfNecessary()
Unregister all Mx4j MBeans if there are any left over the old deployment
|
getDependentAgents, getName, setMuleContext, setNamepublic static final String HTTP_ADAPTER_OBJECT_NAME
protected static final String DEFAULT_PATH_IN_JAR
public static final String DEFAULT_HOSTNAME
public static final int DEFAULT_PORT
public static final String DEFAULT_JMX_ADAPTOR_URL
protected mx4j.tools.adaptor.http.HttpAdaptor createAdaptor()
throws Exception
Exceptionpublic void initialise()
throws InitialisationException
InitialisableInitialisationException 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.initialise in interface Initialisableinitialise in class AbstractAgentInitialisationException - if a fatal error occurs causing the Mule instance to shutdownRecoverableException - if an error occurs that can be recovered frompublic void start()
throws MuleException
MuleExceptionpublic void stop()
throws MuleException
MuleExceptionprotected void unregisterMBeansIfNecessary()
throws javax.management.MalformedObjectNameException,
javax.management.InstanceNotFoundException,
javax.management.MBeanRegistrationException
javax.management.MalformedObjectNameExceptionjavax.management.InstanceNotFoundExceptionjavax.management.MBeanRegistrationExceptionpublic void dispose()
Disposablepublic void registered()
public void unregistered()
public String getDescription()
AgentgetDescription in interface AgentgetDescription in class AbstractAgentpublic String getJmxAdaptorUrl()
public void setJmxAdaptorUrl(String jmxAdaptorUrl)
jmxAdaptorUrl - The jmxAdaptorUrl to set.public Map getSocketFactoryProperties()
public void setSocketFactoryProperties(Map socketFactoryProperties)
public String getLogin()
public void setLogin(String login)
public String getPassword()
public void setPassword(String password)
public String getAuthenticationMethod()
public void setAuthenticationMethod(String authenticationMethod)
public String getXslFilePath()
public void setXslFilePath(String xslFilePath)
public String getPathInJar()
public void setPathInJar(String pathInJar)
public boolean isCacheXsl()
public void setCacheXsl(boolean cacheXsl)
public String getHost()
public void setHost(String host)
public String getPort()
public void setPort(String port)
Copyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.