cern::cmw::mom::pubsub::NotificationHelper Class Reference

Collaboration diagram for cern::cmw::mom::pubsub::NotificationHelper:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static final boolean isNotification (String topic)
static Notification messageToNotification (Message m)

Static Public Attributes

static final String[] CarrierTopics
static final int NOTIFICATION = 0
static final int CONSUMER_NOTIFICATION = 1
static final int CONSUMER_OPEN_NOTIFICATION = 2
static final int CONSUMER_CLOSE_NOTIFICATION = 3
static final int CONSUMER_ALIVE_NOTIFICATION = 4
static final String NOTIFICATION_TYPE_PROPERTY = "NOTIFICATION_TYPE"
static final String TOPIC_PROPERTY = "TOPIC"
static final String SELECTOR_PROPERTY = "SELECTOR"
static final String SUBSCRIPTION_ID_PROPERTY = "SUBSCRIPTION_ID"

Static Package Attributes

static Category cat = Category.getInstance(NotificationHelper.class.getName())

Static Private Attributes

static final String T_NOTIFICATIONS_ROOT = "CMW.ADMIN.NOTIFICATIONS"
static final String T_NOTIFICATIONS = "CMW.ADMIN.NOTIFICATIONS.#"
static final String T_CONSUMER_NOTIFICATIONS = T_NOTIFICATIONS_ROOT + ".CONSUMER.#"
static final String T_OPEN_SUB_NOTIFICATIONS = T_NOTIFICATIONS_ROOT + ".CONSUMER.OPEN_SUBSCRIPTION"
static final String T_CLOSE_SUB_NOTIFICATIONS = T_NOTIFICATIONS_ROOT + ".CONSUMER.CLOSE_SUBSCRIPTION"
static final String T_KEEP_ALIVE_NOTIFICATIONS = T_NOTIFICATIONS_ROOT + ".CONSUMER.KEEP_ALIVE_SUBSCRIPTION"

Detailed Description

Public class. Helper class for notification handling. Several mission-critical applications require a capability to be notified about special events such as the creation/destruction of a subscription. Some client might also be interested in knowing if a specific topic is beeing subscribed. A notification class hierarchy corrensponds to the different type of notifications published by the system on specific administrative topics. The helper class offers fields and static methods to deal with Notifications.

Version:
1.0 23 Jan 2001
Author:
Controls Middleware Project
See also:
Notification

Member Function Documentation

static final boolean cern::cmw::mom::pubsub::NotificationHelper::isNotification ( String  topic  )  [inline, static]

Return true if the topic is a notification topic.

Parameters:
topic The topic to check.
Returns:
boolean

References T_NOTIFICATIONS_ROOT.

static Notification cern::cmw::mom::pubsub::NotificationHelper::messageToNotification ( Message  m  )  [inline, static]

Convert a Message into a Notification.

Parameters:
m The Message to convert
Returns:
Notification The Notification instance

References cat, CONSUMER_ALIVE_NOTIFICATION, CONSUMER_CLOSE_NOTIFICATION, CONSUMER_OPEN_NOTIFICATION, NOTIFICATION, and NOTIFICATION_TYPE_PROPERTY.


Member Data Documentation

Initial value:

Array containing the topics used for distributing notifications.

Category cern::cmw::mom::pubsub::NotificationHelper::cat = Category.getInstance(NotificationHelper.class.getName()) [static, package]

Referenced by messageToNotification().

Subscription keep-alive notification.

Referenced by messageToNotification().

Subscriber close notification.

Referenced by messageToNotification().

Subscription related notification.

Subscriber open notification.

Referenced by messageToNotification().

Generic notification.

Referenced by messageToNotification().

Message property name identifying the notification type.

Referenced by messageToNotification().

Message property name identifying the selector the notification is about.

Message property name identifying the subscription the notification is about.

final String cern::cmw::mom::pubsub::NotificationHelper::T_CLOSE_SUB_NOTIFICATIONS = T_NOTIFICATIONS_ROOT + ".CONSUMER.CLOSE_SUBSCRIPTION" [static, private]
final String cern::cmw::mom::pubsub::NotificationHelper::T_KEEP_ALIVE_NOTIFICATIONS = T_NOTIFICATIONS_ROOT + ".CONSUMER.KEEP_ALIVE_SUBSCRIPTION" [static, private]
final String cern::cmw::mom::pubsub::NotificationHelper::T_NOTIFICATIONS = "CMW.ADMIN.NOTIFICATIONS.#" [static, private]
final String cern::cmw::mom::pubsub::NotificationHelper::T_NOTIFICATIONS_ROOT = "CMW.ADMIN.NOTIFICATIONS" [static, private]

Referenced by isNotification().

final String cern::cmw::mom::pubsub::NotificationHelper::T_OPEN_SUB_NOTIFICATIONS = T_NOTIFICATIONS_ROOT + ".CONSUMER.OPEN_SUBSCRIPTION" [static, private]

Message property name identifying the topic the notification is about.


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2