org.mule.module.management.agent
Class Log4jAgent

java.lang.Object
  extended by org.mule.AbstractAgent
      extended by org.mule.module.management.agent.Log4jAgent
All Implemented Interfaces:
Agent, MuleContextAware, Disposable, Initialisable, Lifecycle, Startable, Stoppable, NameableObject, NamedObject

public class Log4jAgent
extends AbstractAgent

Log4jAgent exposes the configuration of the Log4J instance running in Mule for Jmx management


Field Summary
static String JMX_OBJECT_NAME
           
 
Fields inherited from class org.mule.AbstractAgent
muleContext, name
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Startable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Stoppable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Constructor Summary
Log4jAgent()
           
 
Method Summary
 void dispose()
           
 String getDescription()
           
 void initialise()
           
 void start()
           
 void stop()
           
protected  void unregisterMBeansIfNecessary()
          Unregister log4j MBeans if there are any left over the old deployment
 
Methods inherited from class org.mule.AbstractAgent
getName, setMuleContext, setName, unregisterMeQuietly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JMX_OBJECT_NAME

public static final String JMX_OBJECT_NAME
See Also:
Constant Field Values
Constructor Detail

Log4jAgent

public Log4jAgent()
Method Detail

getDescription

public String getDescription()
Specified by:
getDescription in interface Agent
Overrides:
getDescription in class AbstractAgent

initialise

public void initialise()
                throws InitialisationException
Throws:
InitialisationException

unregisterMBeansIfNecessary

protected void unregisterMBeansIfNecessary()
                                    throws MalformedObjectNameException,
                                           InstanceNotFoundException,
                                           MBeanRegistrationException
Unregister log4j MBeans if there are any left over the old deployment

Throws:
MalformedObjectNameException
InstanceNotFoundException
MBeanRegistrationException

start

public void start()
           throws MuleException
Throws:
MuleException

stop

public void stop()
          throws MuleException
Throws:
MuleException

dispose

public void dispose()


Copyright © 2003-2011 MuleSoft, Inc.. All Rights Reserved.