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 Constructor Description JmsNotificationsHandlerImpl(String queueName, Properties pr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bedework.util.logging.BwLoggergetLogger()voidpost(SysEvent ev)Called to notify container that an event occurred.voidregisterListener(SysEventListener l, boolean persistent)Register a listener.voidremoveListener(SysEventListener l)Remove a listener.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, warn
-
-
-
-
Constructor Detail
-
JmsNotificationsHandlerImpl
public JmsNotificationsHandlerImpl(String queueName, Properties pr) throws NotificationException
- Parameters:
queueName- our queuepr- jms properties- Throws:
NotificationException- on fatal error
-
-
Method Detail
-
post
public void post(SysEvent ev) throws NotificationException
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
public void registerListener(SysEventListener l, boolean persistent)
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
public void removeListener(SysEventListener l)
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
-
-