
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" |
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.
| static final boolean cern::cmw::mom::pubsub::NotificationHelper::isNotification | ( | String | topic | ) | [inline, static] |
Return true if the topic is a notification topic.
| topic | The topic to check. |
References T_NOTIFICATIONS_ROOT.
| static Notification cern::cmw::mom::pubsub::NotificationHelper::messageToNotification | ( | Message | m | ) | [inline, static] |
Convert a Message into a Notification.
| m | The Message to convert |
References cat, CONSUMER_ALIVE_NOTIFICATION, CONSUMER_CLOSE_NOTIFICATION, CONSUMER_OPEN_NOTIFICATION, NOTIFICATION, and NOTIFICATION_TYPE_PROPERTY.
final String [] cern::cmw::mom::pubsub::NotificationHelper::CarrierTopics [static] |
{
T_NOTIFICATIONS, T_CONSUMER_NOTIFICATIONS, T_OPEN_SUB_NOTIFICATIONS,
T_CLOSE_SUB_NOTIFICATIONS, T_KEEP_ALIVE_NOTIFICATIONS
}
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().
final int cern::cmw::mom::pubsub::NotificationHelper::CONSUMER_ALIVE_NOTIFICATION = 4 [static] |
Subscription keep-alive notification.
Referenced by messageToNotification().
final int cern::cmw::mom::pubsub::NotificationHelper::CONSUMER_CLOSE_NOTIFICATION = 3 [static] |
Subscriber close notification.
Referenced by messageToNotification().
final int cern::cmw::mom::pubsub::NotificationHelper::CONSUMER_NOTIFICATION = 1 [static] |
Subscription related notification.
final int cern::cmw::mom::pubsub::NotificationHelper::CONSUMER_OPEN_NOTIFICATION = 2 [static] |
Subscriber open notification.
Referenced by messageToNotification().
final int cern::cmw::mom::pubsub::NotificationHelper::NOTIFICATION = 0 [static] |
Generic notification.
Referenced by messageToNotification().
final String cern::cmw::mom::pubsub::NotificationHelper::NOTIFICATION_TYPE_PROPERTY = "NOTIFICATION_TYPE" [static] |
Message property name identifying the notification type.
Referenced by messageToNotification().
final String cern::cmw::mom::pubsub::NotificationHelper::SELECTOR_PROPERTY = "SELECTOR" [static] |
Message property name identifying the selector the notification is about.
final String cern::cmw::mom::pubsub::NotificationHelper::SUBSCRIPTION_ID_PROPERTY = "SUBSCRIPTION_ID" [static] |
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_CONSUMER_NOTIFICATIONS = T_NOTIFICATIONS_ROOT + ".CONSUMER.#" [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] |
final String cern::cmw::mom::pubsub::NotificationHelper::TOPIC_PROPERTY = "TOPIC" [static] |
Message property name identifying the topic the notification is about.
1.6.2