public class Mx4jAgent extends AbstractAgent
Mx4jAgent
configures an Mx4J Http Adaptor for Jmx management,
statistics and configuration viewing of a Mule instance.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, name
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_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()
A description of the agent that gets displayed in the splash
screen when the Mule Context starts up.
|
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 |
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() |
protected void |
unregisterMBeansIfNecessary()
Unregister all Mx4j MBeans if there are any left over the old deployment
|
getName, setMuleContext, setName, unregisterMeQuietly
public 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
Exception
public void initialise() throws InitialisationException
Initialisable
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 shutdownRecoverableException
- if an error occurs that can be recovered frompublic void start() throws MuleException
MuleException
public void stop() throws MuleException
MuleException
protected void unregisterMBeansIfNecessary() throws MalformedObjectNameException, InstanceNotFoundException, MBeanRegistrationException
public void dispose()
Disposable
public String getDescription()
Agent
getDescription
in interface Agent
getDescription
in class AbstractAgent
public String getJmxAdaptorUrl()
public void setJmxAdaptorUrl(String jmxAdaptorUrl)
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–2015 MuleSoft, Inc.. All rights reserved.