org.mule.management.agents
Class Log4jAgent

java.lang.Object
  extended byorg.mule.management.agents.Log4jAgent
All Implemented Interfaces:
Disposable, Initialisable, Lifecycle, Startable, Stoppable, UMOAgent

public class Log4jAgent
extends java.lang.Object
implements UMOAgent

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

Version:
$Revision: 1.5 $
Author:
Guillaume Nodet

Constructor Summary
Log4jAgent()
           
 
Method Summary
 void dispose()
          A lifecycle method where implementor should fee up any resources If an exception is thrown it should just be logged and processing should continue.
 java.lang.String getDescription()
          Should be a 1 line description of the agent
 java.lang.String getName()
          Gets the name of this agent
 void initialise()
          Method used to perform any initialisation work.
 void registered()
           
 void setName(java.lang.String name)
          Sets the name of this agent
 void start()
           
 void stop()
           
 void unregistered()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4jAgent

public Log4jAgent()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: UMOAgent
Gets the name of this agent

Specified by:
getName in interface UMOAgent
Returns:
the agent name

setName

public void setName(java.lang.String name)
Description copied from interface: UMOAgent
Sets the name of this agent

Specified by:
setName in interface UMOAgent
Parameters:
name - the name of the agent

getDescription

public java.lang.String getDescription()
Description copied from interface: UMOAgent
Should be a 1 line description of the agent

Specified by:
getDescription in interface UMOAgent
Returns:

initialise

public void initialise()
                throws InitialisationException
Description copied from interface: Initialisable
Method used to perform any initialisation work. If a fatal error occurs during initialisation an 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.

Specified by:
initialise in interface Initialisable
Throws:
InitialisationException - if a fatal error occurs causing the Mule instance to shutdown

start

public void start()
           throws UMOException
Specified by:
start in interface Startable
Throws:
UMOException

stop

public void stop()
          throws UMOException
Specified by:
stop in interface Stoppable
Throws:
UMOException

dispose

public void dispose()
Description copied from interface: Disposable
A lifecycle method where implementor should fee up any resources If an exception is thrown it should just be logged and processing should continue. This method should not throw Runtime exceptions

Specified by:
dispose in interface Disposable

registered

public void registered()
Specified by:
registered in interface UMOAgent

unregistered

public void unregistered()
Specified by:
unregistered in interface UMOAgent


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.