public interface AdvancedAdministeredObjectListener
User-written classes that extend this class are stating that they can receive notifications from the broker that contain more information than is provided by the basic AdministeredObjectListener interface.
Most user applications will not require the information provided by this advanced listener, and should implement the AdministeredObjectListener interface instead.
The extra information provided by this advanced interface is as follows:
In order to receive notifications, applications must first register their listener with each administered object for which they wish to receive notifications. Here is an example of how to do this:
BrokerConnectionParameters bcp = MQBrokerConnectionParameters("localhost", 1414, "QMGR"); BrokerProxy b = BrokerProxy.getInstance(bcp); Object obj = new Object(); AdvancedAdministeredObjectListener l = new MyAdvancedAdministeredObjectListener(); b.registerListener(l, true, obj);
Classes that implement both the AdministeredObjectListener interface and the AdvancedAdministeredObjectListener interface will always receive advanced notifications, regardless of the registerListener() variant that is called.
See the AdministeredObjectListener documentation for detailed information on object listeners.
interface
com.ibm.broker.config.proxy.AdvancedAdministeredObjectListener
|
|
Responsibilities | States that the extending class is able to receive notifications from the broker. |
Internal Collaborators | None |
Change Activity: ---------- ----------- ------------- ------------------------------- Reason: Date: Originator: Comments: ---------- ----------- ------------- ------------------------------- 25103.3 2004-06-30 HDMPL v6 Release 44739.7 2007-07-30 HDMPL v6.1 release: Methods now take genericized types where relevant 51619.8 2008-12-16 HDMPL v7 release: The changedAttributes parameter on processModify() can now include deleted properties.
Modifier and Type | Method and Description |
---|---|
void |
processActionResponse(AdministeredObject affectedObject,
CompletionCodeType ccType,
java.util.List<LogEntry> bipMessages,
java.util.Properties referenceProperties,
int batchCorrelationID,
boolean lastActionResponseInBatch)
States that the broker has processed a request
that previously originated from the current connection
to it.
|
void |
processDelete(AdministeredObject deletedObject,
long timeTillNextNotificationMs)
States that the supplied AdministeredObject
has been deleted on the broker.
|
void |
processModify(AdministeredObject affectedObject,
java.util.List<java.lang.String> changedAttributes,
java.util.List<java.lang.String> newChildren,
java.util.List<java.lang.String> removedChildren,
long timeTillNextNotificationMs)
States that the supplied AdministeredObject
has been modified by the current or another application.
|
void processActionResponse(AdministeredObject affectedObject, CompletionCodeType ccType, java.util.List<LogEntry> bipMessages, java.util.Properties referenceProperties, int batchCorrelationID, boolean lastActionResponseInBatch)
affectedObject
- The object on which a command was
attempted.ccType
- The overall completion code of the actionbipMessages
- The unmodifiable list of
LogEntry instances that contains
any localized BIP Messages associated with the action.referenceProperties
- Properties of the Request that
caused this action response. See the AttributeConstants
documentation for information regarding the set of
properties that may be supplied here.batchCorrelationID
- If this response refers to an element
from a batch of requests that was sent using
BrokerProxy.sendUpdates(), this is the value of the
correlation ID that was supplied to this method.lastActionResponseInBatch
- If this response refers
to an element from a batch of requests that was sent using
BrokerProxy.sendUpdates(), this flag is set
to true if and only if this is the last action response notification
with this correlation ID (assuming that correlation IDs
are unique). Note that the lastActionResponseInBatch flag
will never be set to true if the listener
is not registered with the last affected object in the
batch.void processDelete(AdministeredObject deletedObject, long timeTillNextNotificationMs)
deletedObject
- The AdministeredObject that has been
deleted.timeTillNextNotificationMs
- The estimated amount of time,
in milliseconds, till a delete or modify notification will next
be sent to a listener with the previously supplied correlation identifier.void processModify(AdministeredObject affectedObject, java.util.List<java.lang.String> changedAttributes, java.util.List<java.lang.String> newChildren, java.util.List<java.lang.String> removedChildren, long timeTillNextNotificationMs)
affectedObject
- The object which has changed. The
attributes of the object will already have been updated
to contain the new information.changedAttributes
- An unmodifiable list of Strings
containing the attribute key names that have changed.
See the AttributeConstants documentation for a
list of valid key names. As of WebSphere Message Broker V7,
this list can also include deleted properties; calling
getProperty() on such a property will return null.newChildren
- An unmodifiable list of Strings containing
the object's subcomponents that were added by the latest
change. To avoid the needless creation of expensive
AdministeredObject instances, each entry is a String
that describes one AdministeredObject. The String can
be converted into an AdministeredObject instance using
the affectedObject.getManagedSubcomponentFromStringRepresentation(String)
method.removedChildren
- An unmodifiable list of Strings containing
the object's subcomponents that were removed by the latest
change. To avoid the needless creation of expensive
AdministeredObject instances, each entry is a String
that describes one AdministeredObject. The String
cannot be converted into an AdministeredObject
instance using the
affectedObject.getManagedSubcomponentFromStringRepresentation(String)
method because the object has been deleted.timeTillNextNotificationMs
- The estimated amount of time,
in milliseconds, till a delete or modify notification will next
be sent to a listener with the previously supplied correlation identifier.