org.mule.impl.internal.admin
Class AbstractNotificationLoggerAgent

java.lang.Object
  extended by org.mule.impl.internal.admin.AbstractNotificationLoggerAgent
All Implemented Interfaces:
Disposable, Initialisable, Lifecycle, Startable, Stoppable, UMOAgent
Direct Known Subclasses:
EndpointNotificationLoggerAgent, JmxServerNotificationAgent, Log4jNotificationLoggerAgent

public abstract class AbstractNotificationLoggerAgent
extends Object
implements UMOAgent

AbstractNotificationLoggerAgent Receives Mule server notifications and logs them and can optionally route them to an endpoint


Field Summary
protected  Log logger
          The logger used for this class
 
Constructor Summary
AbstractNotificationLoggerAgent()
           
 
Method Summary
 void dispose()
          A lifecycle method where implementor should free up any resources.
protected abstract  void doInitialise()
           
 String getName()
          Gets the name of this agent
 void initialise()
          Method used to perform any initialisation work.
 boolean isIgnoreAdminNotifications()
           
 boolean isIgnoreComponentNotifications()
           
 boolean isIgnoreConnectionNotifications()
           
 boolean isIgnoreCustomNotifications()
           
 boolean isIgnoreManagementNotifications()
           
 boolean isIgnoreManagerNotifications()
           
 boolean isIgnoreModelNotifications()
           
 boolean isIgnoreSecurityNotifications()
           
protected abstract  void logEvent(UMOServerNotification e)
           
 void registered()
           
 void setIgnoreAdminNotifications(boolean ignoreAdminNotifications)
           
 void setIgnoreComponentNotifications(boolean ignoreComponentNotifications)
           
 void setIgnoreConnectionNotifications(boolean ignoreConnectionNotifications)
           
 void setIgnoreCustomNotifications(boolean ignoreCustomNotifications)
           
 void setIgnoreManagementNotifications(boolean ignoreManagementNotifications)
           
 void setIgnoreManagerNotifications(boolean ignoreManagerNotifications)
           
 void setIgnoreModelNotifications(boolean ignoreModelNotifications)
           
 void setIgnoreSecurityNotifications(boolean ignoreSecurityNotifications)
           
 void setName(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 transient Log logger
The logger used for this class

Constructor Detail

AbstractNotificationLoggerAgent

public AbstractNotificationLoggerAgent()
Method Detail

getName

public String getName()
Gets the name of this agent

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

setName

public void setName(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 free 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

isIgnoreManagerNotifications

public boolean isIgnoreManagerNotifications()

setIgnoreManagerNotifications

public void setIgnoreManagerNotifications(boolean ignoreManagerNotifications)

isIgnoreModelNotifications

public boolean isIgnoreModelNotifications()

setIgnoreModelNotifications

public void setIgnoreModelNotifications(boolean ignoreModelNotifications)

isIgnoreComponentNotifications

public boolean isIgnoreComponentNotifications()

setIgnoreComponentNotifications

public void setIgnoreComponentNotifications(boolean ignoreComponentNotifications)

isIgnoreSecurityNotifications

public boolean isIgnoreSecurityNotifications()

setIgnoreSecurityNotifications

public void setIgnoreSecurityNotifications(boolean ignoreSecurityNotifications)

isIgnoreManagementNotifications

public boolean isIgnoreManagementNotifications()

setIgnoreManagementNotifications

public void setIgnoreManagementNotifications(boolean ignoreManagementNotifications)

isIgnoreCustomNotifications

public boolean isIgnoreCustomNotifications()

setIgnoreCustomNotifications

public void setIgnoreCustomNotifications(boolean ignoreCustomNotifications)

isIgnoreAdminNotifications

public boolean isIgnoreAdminNotifications()

setIgnoreAdminNotifications

public void setIgnoreAdminNotifications(boolean ignoreAdminNotifications)

isIgnoreConnectionNotifications

public boolean isIgnoreConnectionNotifications()

setIgnoreConnectionNotifications

public void setIgnoreConnectionNotifications(boolean ignoreConnectionNotifications)

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
RecoverableException - if an error occurs that can be recovered from

doInitialise

protected abstract void doInitialise()
                              throws InitialisationException
Throws:
InitialisationException

logEvent

protected abstract void logEvent(UMOServerNotification e)


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.