com.sun.messaging.jms.management.server
public class BrokerNotification extends MQNotification
Modifier and Type | Field and Description |
---|---|
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.
|
PREFIX
source
Constructor and Description |
---|
BrokerNotification(String type,
Object source,
long sequenceNumber)
Creates a BrokerNotification object.
|
Modifier and Type | Method and Description |
---|---|
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) |
getMessage, getSequenceNumber, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData, toString
getSource
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
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()
Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.