org.mule.impl.internal.admin
Class AbstractEventLoggerAgent

java.lang.Object
  extended byorg.mule.impl.internal.admin.AbstractEventLoggerAgent
All Implemented Interfaces:
Disposable, Initialisable, Lifecycle, Startable, Stoppable, UMOAgent
Direct Known Subclasses:
EndpointAbstractEventLoggerAgent, Log4jAbstractEventLoggerAgent

public abstract class AbstractEventLoggerAgent
extends java.lang.Object
implements UMOAgent

AbstractEventLoggerAgent Receives Mule server events and logs them and can optionally route them to an endpoint

Version:
$Revision: 1.5 $
Author:
Ross Mason

Field Summary
protected static Log eventLogger
           
protected static Log logger
          logger used by this class
 
Constructor Summary
AbstractEventLoggerAgent()
           
 
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.
protected abstract  void doInitialise()
           
 java.lang.String getName()
          Gets the name of this agent
 void initialise()
          Method used to perform any initialisation work.
 boolean isIgnoreAdminEvents()
           
 boolean isIgnoreComponentEvents()
           
 boolean isIgnoreCustomEvents()
           
 boolean isIgnoreManagementEvents()
           
 boolean isIgnoreManagerEvents()
           
 boolean isIgnoreModelEvents()
           
 boolean isIgnoreSecurityEvents()
           
protected abstract  void logEvent(UMOServerEvent e)
           
 void registered()
           
 void setIgnoreAdminEvents(boolean ignoreAdminEvents)
           
 void setIgnoreComponentEvents(boolean ignoreComponentEvents)
           
 void setIgnoreCustomEvents(boolean ignoreCustomEvents)
           
 void setIgnoreManagementEvents(boolean ignoreManagementEvents)
           
 void setIgnoreManagerEvents(boolean ignoreManagerEvents)
           
 void setIgnoreModelEvents(boolean ignoreModelEvents)
           
 void setIgnoreSecurityEvents(boolean ignoreSecurityEvents)
           
 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
 
Methods inherited from interface org.mule.umo.manager.UMOAgent
getDescription
 

Field Detail

logger

protected static transient Log logger
logger used by this class


eventLogger

protected static transient Log eventLogger
Constructor Detail

AbstractEventLoggerAgent

public AbstractEventLoggerAgent()
Method Detail

getName

public java.lang.String getName()
Gets the name of this agent

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

setName

public void setName(java.lang.String name)
Sets the name of this agent

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

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

isIgnoreManagerEvents

public boolean isIgnoreManagerEvents()

setIgnoreManagerEvents

public void setIgnoreManagerEvents(boolean ignoreManagerEvents)

isIgnoreModelEvents

public boolean isIgnoreModelEvents()

setIgnoreModelEvents

public void setIgnoreModelEvents(boolean ignoreModelEvents)

isIgnoreComponentEvents

public boolean isIgnoreComponentEvents()

setIgnoreComponentEvents

public void setIgnoreComponentEvents(boolean ignoreComponentEvents)

isIgnoreSecurityEvents

public boolean isIgnoreSecurityEvents()

setIgnoreSecurityEvents

public void setIgnoreSecurityEvents(boolean ignoreSecurityEvents)

isIgnoreManagementEvents

public boolean isIgnoreManagementEvents()

setIgnoreManagementEvents

public void setIgnoreManagementEvents(boolean ignoreManagementEvents)

isIgnoreCustomEvents

public boolean isIgnoreCustomEvents()

setIgnoreCustomEvents

public void setIgnoreCustomEvents(boolean ignoreCustomEvents)

isIgnoreAdminEvents

public boolean isIgnoreAdminEvents()

setIgnoreAdminEvents

public void setIgnoreAdminEvents(boolean ignoreAdminEvents)

initialise

public final 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

doInitialise

protected abstract void doInitialise()
                              throws InitialisationException
Throws:
InitialisationException

logEvent

protected abstract void logEvent(UMOServerEvent e)


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