Sun Java System Message Queue 4.0 Developer's Guide for JMX Clients

Notifications

The cluster monitor MBean supports the notifications shown in Table 2–82. These notifications are instances of the Message Queue JMX classes ClusterNotification and BrokerNotification, and their names are defined as static constants in those classes.

Table 2–82 Cluster Monitor Notifications

Name 

Utility Constant 

Description 

mq.cluster.broker.join

ClusterNotification.CLUSTER_BROKER_JOIN

A broker has joined the cluster 

mq.cluster.broker.down

ClusterNotification.CLUSTER_BROKER_DOWN

A broker in the cluster has shut down or crashed 

Table 2–83 shows the methods defined in class ClusterNotification for obtaining details about a cluster monitor notification. See Table 2–6 for the corresponding methods of class BrokerNotification.

Table 2–83 Data Retrieval Methods for Cluster Monitor Notifications

Method 

Return Type 

Description 

getClusterID

String

Cluster identifier

getBrokerID

String

Broker identifier of affected broker

getBrokerAddress

String

Address of affected broker, in the form hostName:portNumber

Example: host1:3000

isMasterBroker

Boolean

Master broker affected?