|
Message Queue, v4.5.1 API Specification | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
javax.management.Notification
com.sun.messaging.jms.management.server.MQNotification
com.sun.messaging.jms.management.server.BrokerNotification
public class BrokerNotification
Class containing information on broker related notifications. This notification is broadcasted from the relevant MBeans in a broker that is either:
Field Summary | |
---|---|
static String |
BROKER_QUIESCE_COMPLETE
A broker has finished quiescing. |
static String |
BROKER_QUIESCE_START
A broker has started to quiesce. |
static String |
BROKER_RESOURCE_STATE_CHANGE
A broker's memory level/state has changed |
static String |
BROKER_SHUTDOWN_START
A broker has started the process of shutting down. |
static String |
BROKER_TAKEOVER_COMPLETE
A broker has completed the takeover of another broker. |
static String |
BROKER_TAKEOVER_FAIL
A broker has failed in the attempt to takeover another broker. |
static String |
BROKER_TAKEOVER_START
A broker has started to takeover another broker. |
Fields inherited from class com.sun.messaging.jms.management.server.MQNotification |
---|
PREFIX |
Fields inherited from class javax.management.Notification |
---|
source |
Constructor Summary | |
---|---|
BrokerNotification(String type,
Object source,
long sequenceNumber)
Creates a BrokerNotification object. |
Method Summary | |
---|---|
String |
getBrokerAddress()
Returns the broker address. |
String |
getBrokerID()
Returns the broker ID. |
String |
getFailedBrokerID()
Returns the ID of the broker in the cluster that failed and is in the process of being taken over. |
MemoryUsage |
getHeapMemoryUsage()
|
String |
getNewResourceState()
|
String |
getOldResourceState()
|
void |
setBrokerAddress(String brokerAddress)
Sets the broker address. |
void |
setBrokerID(String brokerID)
Sets the broker ID. |
void |
setFailedBrokerID(String failedBrokerID)
Sets the ID of the broker in the cluster that failed and is in the process of being taken over. |
void |
setHeapMemoryUsage(MemoryUsage heapMemoryUsage)
|
void |
setNewResourceState(String newResourceState)
|
void |
setOldResourceState(String oldResourceState)
|
Methods inherited from class javax.management.Notification |
---|
getMessage, getSequenceNumber, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData, toString |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String BROKER_RESOURCE_STATE_CHANGE
public static final String BROKER_QUIESCE_COMPLETE
public static final String BROKER_QUIESCE_START
public static final String BROKER_SHUTDOWN_START
public static final String BROKER_TAKEOVER_COMPLETE
public static final String BROKER_TAKEOVER_FAIL
public static final String BROKER_TAKEOVER_START
Constructor Detail |
---|
public BrokerNotification(String type, Object source, long sequenceNumber)
type
- The notification type.source
- The notification source.sequenceNumber
- The notification sequence number within the source object.Method Detail |
---|
public void setBrokerID(String brokerID)
brokerID
- The broker ID.public String getBrokerID()
public void setBrokerAddress(String brokerAddress)
brokerAddress
- The broker address.public String getBrokerAddress()
public void setFailedBrokerID(String failedBrokerID)
failedBrokerID
- Sets the ID of the broker in the cluster
that failed and is in the process of being
taken over.public String getFailedBrokerID()
public void setOldResourceState(String oldResourceState)
public String getOldResourceState()
public void setNewResourceState(String newResourceState)
public String getNewResourceState()
public void setHeapMemoryUsage(MemoryUsage heapMemoryUsage)
public MemoryUsage getHeapMemoryUsage()
|
Message Queue, v4.5.1 API Specification | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |