public class Log4jAgent extends AbstractAgent
Log4jAgent exposes the configuration of the Log4J instance running
in Mule for Jmx management| Modifier and Type | Field and Description |
|---|---|
static String |
JMX_OBJECT_NAME |
muleContext, namePHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_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, setNamepublic static final String JMX_OBJECT_NAME
public 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 fromprotected void unregisterMBeansIfNecessary()
throws javax.management.MalformedObjectNameException,
javax.management.InstanceNotFoundException,
javax.management.MBeanRegistrationException
javax.management.MalformedObjectNameExceptionjavax.management.InstanceNotFoundExceptionjavax.management.MBeanRegistrationExceptionpublic void start()
throws MuleException
MuleExceptionpublic void stop()
throws MuleException
MuleExceptionpublic void dispose()
Disposablepublic void registered()
public void unregistered()
Copyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.