Package org.bedework.util.jms
Class JmsNotificationsHandlerImpl
java.lang.Object
org.bedework.util.jms.NotificationsHandler
org.bedework.util.jms.JmsNotificationsHandlerImpl
- All Implemented Interfaces:
org.bedework.util.logging.Logged
public class JmsNotificationsHandlerImpl
extends NotificationsHandler
implements org.bedework.util.logging.Logged
This is the implementation of a notifications handler which sends jms
messages.
- Author:
- Mike Douglass douglm - rpi.edu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bedework.util.logging.BwLoggervoidCalled to notify container that an event occurred.voidregisterListener(SysEventListener l, boolean persistent) Register a listener.voidRemove a listener.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, trace, warn
-
Constructor Details
-
JmsNotificationsHandlerImpl
- Parameters:
queueName- our queuepr- jms properties- Throws:
NotificationException- on fatal error
-
-
Method Details
-
post
Description copied from class:NotificationsHandlerCalled to notify container that an event occurred.- Specified by:
postin classNotificationsHandler- Parameters:
ev- the event- Throws:
NotificationException- on fatal error
-
registerListener
Description copied from class:NotificationsHandlerRegister a listener.- Specified by:
registerListenerin classNotificationsHandler- Parameters:
l- the listenerpersistent- true if this listener is to be stored in the database and reregistered at each system startup.
-
removeListener
Description copied from class:NotificationsHandlerRemove a listener. If persistent it will be deleted from the database.- Specified by:
removeListenerin classNotificationsHandler- Parameters:
l- the listener
-
getLogger
public org.bedework.util.logging.BwLogger getLogger()- Specified by:
getLoggerin interfaceorg.bedework.util.logging.Logged
-