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.Modifier and Type | Field and Description |
---|---|
protected Log |
logger
The logger used for this class
|
muleContext, name
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
Modifier | Constructor and Description |
---|---|
protected |
AbstractNotificationLoggerAgent(String name) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
protected abstract void |
doInitialise() |
void |
initialise()
Method used to perform any initialisation work.
|
boolean |
isIgnoreAdminNotifications() |
boolean |
isIgnoreComponentMessageNotifications() |
boolean |
isIgnoreComponentNotifications() |
boolean |
isIgnoreConnectionNotifications() |
boolean |
isIgnoreCustomNotifications() |
boolean |
isIgnoreEndpointMessageNotifications() |
boolean |
isIgnoreManagementNotifications() |
boolean |
isIgnoreManagerNotifications() |
boolean |
isIgnoreMessageNotifications() |
boolean |
isIgnoreMessageProcessorNotifications() |
boolean |
isIgnoreModelNotifications() |
boolean |
isIgnoreSecurityNotifications() |
protected abstract void |
logEvent(ServerNotification e) |
void |
setIgnoreAdminNotifications(boolean ignoreAdminNotifications) |
void |
setIgnoreComponentMessageNotifications(boolean ignoreComponentMessageNotifications) |
void |
setIgnoreComponentNotifications(boolean ignoreComponentNotifications) |
void |
setIgnoreConnectionNotifications(boolean ignoreConnectionNotifications) |
void |
setIgnoreCustomNotifications(boolean ignoreCustomNotifications) |
void |
setIgnoreEndpointMessageNotifications(boolean ignoreEndpointMessageNotifications) |
void |
setIgnoreManagementNotifications(boolean ignoreManagementNotifications) |
void |
setIgnoreManagerNotifications(boolean ignoreManagerNotifications) |
void |
setIgnoreMessageNotifications(boolean ignoreMessageNotifications) |
void |
setIgnoreMessageProcessorNotifications(boolean ignoreMessageProcessorNotifications) |
void |
setIgnoreModelNotifications(boolean ignoreModelNotifications) |
void |
setIgnoreSecurityNotifications(boolean ignoreSecurityNotifications) |
void |
start() |
void |
stop() |
getDescription, getName, setMuleContext, setName, unregisterMeQuietly
protected transient Log logger
protected AbstractNotificationLoggerAgent(String name)
public void start() throws MuleException
MuleException
public void stop() throws MuleException
MuleException
public void dispose()
Disposable
public boolean isIgnoreManagerNotifications()
public void setIgnoreManagerNotifications(boolean ignoreManagerNotifications)
public boolean isIgnoreMessageNotifications()
public void setIgnoreMessageNotifications(boolean ignoreMessageNotifications)
public boolean isIgnoreModelNotifications()
public void setIgnoreModelNotifications(boolean ignoreModelNotifications)
public boolean isIgnoreComponentNotifications()
public void setIgnoreComponentNotifications(boolean ignoreComponentNotifications)
public boolean isIgnoreSecurityNotifications()
public void setIgnoreSecurityNotifications(boolean ignoreSecurityNotifications)
public boolean isIgnoreManagementNotifications()
public void setIgnoreManagementNotifications(boolean ignoreManagementNotifications)
public boolean isIgnoreCustomNotifications()
public void setIgnoreCustomNotifications(boolean ignoreCustomNotifications)
public boolean isIgnoreAdminNotifications()
public void setIgnoreAdminNotifications(boolean ignoreAdminNotifications)
public boolean isIgnoreConnectionNotifications()
public void setIgnoreConnectionNotifications(boolean ignoreConnectionNotifications)
public boolean isIgnoreComponentMessageNotifications()
public void setIgnoreComponentMessageNotifications(boolean ignoreComponentMessageNotifications)
public boolean isIgnoreEndpointMessageNotifications()
public void setIgnoreEndpointMessageNotifications(boolean ignoreEndpointMessageNotifications)
public boolean isIgnoreMessageProcessorNotifications()
public void setIgnoreMessageProcessorNotifications(boolean ignoreMessageProcessorNotifications)
public final void initialise() throws InitialisationException
Initialisable
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.InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered fromprotected abstract void doInitialise() throws InitialisationException
InitialisationException
protected abstract void logEvent(ServerNotification e)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.