org.mule.agent
Class AbstractNotificationLoggerAgent
java.lang.Object
org.mule.AbstractAgent
org.mule.agent.AbstractNotificationLoggerAgent
- All Implemented Interfaces:
- Agent, MuleContextAware, Disposable, Initialisable, Lifecycle, Startable, Stoppable, NameableObject, NamedObject
- Direct Known Subclasses:
- EndpointNotificationLoggerAgent, JmxServerNotificationAgent, Log4jNotificationLoggerAgent
public abstract class AbstractNotificationLoggerAgent
- extends AbstractAgent
AbstractNotificationLoggerAgent
Receives Mule server notifications
and logs them and can optionally route them to an endpoint. This agent will only
receive notifications for notification events that are enabled. The notifications
that are enabled are determined by the MuleContextBuilder
that is used or
configuration mechanisms that may override these values.
Field Summary |
protected Log |
logger
The logger used for this class |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected transient Log logger
- The logger used for this class
AbstractNotificationLoggerAgent
protected AbstractNotificationLoggerAgent(String name)
start
public void start()
throws MuleException
- Throws:
MuleException
stop
public void stop()
throws MuleException
- Throws:
MuleException
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.
isIgnoreManagerNotifications
public boolean isIgnoreManagerNotifications()
setIgnoreManagerNotifications
public void setIgnoreManagerNotifications(boolean ignoreManagerNotifications)
isIgnoreMessageNotifications
public boolean isIgnoreMessageNotifications()
setIgnoreMessageNotifications
public void setIgnoreMessageNotifications(boolean ignoreMessageNotifications)
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)
isIgnoreComponentMessageNotifications
public boolean isIgnoreComponentMessageNotifications()
setIgnoreComponentMessageNotifications
public void setIgnoreComponentMessageNotifications(boolean ignoreComponentMessageNotifications)
isIgnoreEndpointMessageNotifications
public boolean isIgnoreEndpointMessageNotifications()
setIgnoreEndpointMessageNotifications
public void setIgnoreEndpointMessageNotifications(boolean ignoreEndpointMessageNotifications)
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.
- 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(ServerNotification e)
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.