public class Log4jAgent extends AbstractAgent
Log4jAgent
exposes the configuration of the Log4J instance running
in Mule for Jmx managementModifier and Type | Field and Description |
---|---|
static String |
JMX_OBJECT_NAME |
muleContext, name
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
Log4jAgent() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
void |
initialise()
Method used to perform any initialisation work.
|
void |
registered() |
void |
start() |
void |
stop() |
void |
unregistered() |
protected void |
unregisterMBeansIfNecessary()
Unregister all log4j MBeans if there are any left over the old deployment
|
getDependentAgents, getDescription, getName, setMuleContext, setName
public static final String JMX_OBJECT_NAME
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.initialise
in interface Initialisable
initialise
in class AbstractAgent
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered fromprotected void unregisterMBeansIfNecessary() throws MalformedObjectNameException, InstanceNotFoundException, MBeanRegistrationException
public void start() throws MuleException
MuleException
public void stop() throws MuleException
MuleException
public void dispose()
Disposable
public void registered()
public void unregistered()
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.