public class AdminQueueProxy extends AdministeredObject
The AdminQueueProxy represents the set of administration queue entries for the broker.
In order to use AdminQueueProxy objects, applications must first obtain handles to them. Here is an example of how to do this:
BrokerConnectionParameters bcp = new MQBrokerConnectionParameters("localhost", 1414, "QMGR"); BrokerProxy b = BrokerProxy.getInstance(bcp); AdminQueueProxy l = b.getAdminQueueProxy();
com.ibm.broker.config.proxy.AdminQueueProxy extends
com.ibm.broker.config.proxy.AdministeredObject
|
|
Responsibilities | Represents a collection of AdminQueueEntry objects. |
Internal Collaborators | com.ibm.broker.config.proxy.AdminQueueEntry |
Change Activity: -------- ----------- ------------- ------------------------------------ Reason: Date: Originator: Comments: -------- ----------- ------------- ------------------------------------ 51619.40 2009-05-26 HDCAB v7 Release
Modifier and Type | Method and Description |
---|---|
void |
cancel(AdminQueueEntry anAdminQueueEntry)
Removes the administration queue entry from the
administration queue.
|
void |
cancel(java.lang.String workIdentifier)
Removes the administration queue entry from the
administration queue that matches the work identifier.
|
java.util.Enumeration<AdminQueueEntry> |
elements()
Returns an Enumeration of all AdminQueueEntry objects
available to the user in the Administration Queue.
|
AdminQueueEntry |
getAdminQueueEntry(int position)
Returns the AdminQueueEntry at the supplied position in the
Administration Queue.
|
AdminQueueEntry |
getAdminQueueEntryByUUID(java.lang.String workIdentifier)
Returns the AdminQueueEntry with the specified work
identifier.
|
ConfigurationObjectType |
getConfigurationObjectType()
Returns the ConfigurationObjectType associated
with this AdministeredObject type.
|
ConfigurationObjectType |
getConfigurationObjectTypeOfParent()
Returns the ConfigurationObjectType associated
with the logical parent of this AdministeredObject type.
|
java.lang.String |
getName()
Returns the name of the object
|
int |
getSize()
Returns the number of available AdminQueueEntry objects.
|
void |
setLongDescription(java.lang.String desc)
This method overrides the base class
implementation, so that an exception is thrown if this method
is invoked against this class.
|
void |
setName(java.lang.String name)
This method overrides the base class
implementation, so that an exception is thrown if this method
is invoked against this class.
|
void |
setProperties(java.util.Properties suppliedProps)
This method overrides the base class
implementation, so that an exception is thrown if this method
is invoked against this class.
|
void |
setShortDescription(java.lang.String desc)
This method overrides the base class
implementation, so that an exception is thrown if this method
is invoked against this class.
|
java.lang.String |
toString()
Displays the name of the current object (or type and UUID
the name if it is available).
|
static java.util.Properties |
withName(java.lang.String name)
Returns a new Properties object that has the Name attribute
set to the supplied String, and the type attribute to be the
name of the subclass of AdministeredObject being used.
|
static java.util.Properties |
withUUID(java.lang.String uuid)
Returns a new Properties object that has the UUID attribute set
to the supplied String, and the type attribute to be the name of
the subclass of AdministeredObject being used.
|
deregisterListener, deregisterListener, elements, equals, getAdvancedProperties, getBasicProperties, getLastBIPMessages, getLastCompletionCode, getLastUpdateUser, getLongDescription, getManagedSubcomponent, getManagedSubcomponentFromStringRepresentation, getManagedSubcomponents, getManagedSubcomponents, getManagedSubcomponents, getManagedSubcomponents, getManagedSubcomponentsAsStrings, getManagedSubcomponentsAsStrings, getNumberOfSubcomponents, getParent, getProperties, getProperty, getProperty, getProperty, getProperty, getRepositoryTimestamp, getShortDescription, getTimeOfLastCompletionCode, getTimeOfLastUpdate, getType, getUUID, hasBeenPopulatedByBroker, hasBeenPopulatedByBroker, hasBeenRestrictedByBroker, hasBeenRestrictedByBroker, hasBeenRestrictedByConfigManager, hasBeenRestrictedByConfigManager, hasBeenUpdatedByConfigManager, hasBeenUpdatedByConfigManager, isAwaitingSubmissionForCreation, isAwaitingSubmissionForDeletion, isDeployed, isShared, refresh, registerListener, registerListener, registerListener, toVerboseString, unsubscribeFromConfigurationManagerUpdates
public int getSize() throws ConfigManagerProxyPropertyNotInitializedException
ConfigManagerProxyPropertyNotInitializedException
- if the size of the administration queue could not be
determined because the information was not supplied from the
broker before a timeout occurred.public AdminQueueEntry getAdminQueueEntry(int position) throws java.lang.ArrayIndexOutOfBoundsException, ConfigManagerProxyPropertyNotInitializedException
position
- Number of the AdminQueueEntry to return. The
minimum value is 1, the maximum value is determined by
getSize().java.lang.ArrayIndexOutOfBoundsException
- if the value
of the supplied position is less than one or greater
than the number of viewable entries.ConfigManagerProxyPropertyNotInitializedException
- if the value of the AdminQueueEntry could not be determined
because the information was not supplied from the broker
before a timeout occurred.public AdminQueueEntry getAdminQueueEntryByUUID(java.lang.String workIdentifier) throws ConfigManagerProxyPropertyNotInitializedException
workIdentifier
- The identifier of the AdminQueueEntryConfigManagerProxyPropertyNotInitializedException
- if the value of the AdminQueueEntry could not be determined
because the information was not supplied from the broker
before a timeout occurred.public java.util.Enumeration<AdminQueueEntry> elements() throws ConfigManagerProxyPropertyNotInitializedException
ConfigManagerProxyPropertyNotInitializedException
- if the administration queue elements could not be determined
because the information was not supplied from the broker
before a timeout occurred.public ConfigurationObjectType getConfigurationObjectType()
getConfigurationObjectType
in class AdministeredObject
public ConfigurationObjectType getConfigurationObjectTypeOfParent()
getConfigurationObjectTypeOfParent
in class AdministeredObject
public java.lang.String getName() throws ConfigManagerProxyPropertyNotInitializedException
getName
in class AdministeredObject
ConfigManagerProxyPropertyNotInitializedException
- if the name could not be determined because
the information was not supplied from the broker before a
timeout occurred.public java.lang.String toString()
toString
in class AdministeredObject
public void cancel(java.lang.String workIdentifier) throws ConfigManagerProxyLoggedException
ConfigManagerProxyLoggedException
- if the work
identifier is not valid. If an AdminQueueEntry cannot be
matched to the work identifier or the AdminQueueEntry has a
state such that it cannot be cancelled, the cancel request
will be ignored.public void cancel(AdminQueueEntry anAdminQueueEntry) throws ConfigManagerProxyLoggedException
ConfigManagerProxyLoggedException
- if the
AdminQueueEntry is null. If the AdminQueueEntry has a
state such that it cannot be cancelled, the cancel request
will be ignored.public void setName(java.lang.String name) throws ConfigManagerProxyLoggedException
setName
in class AdministeredObject
name
- (this is ignored)ConfigManagerProxyLoggedException
- to indicate this
method should not be called.public void setShortDescription(java.lang.String desc) throws ConfigManagerProxyLoggedException
setShortDescription
in class AdministeredObject
desc
- (this is ignored)ConfigManagerProxyLoggedException
- to indicate this
method should not be called.public void setLongDescription(java.lang.String desc) throws ConfigManagerProxyLoggedException
setLongDescription
in class AdministeredObject
desc
- (this is ignored)ConfigManagerProxyLoggedException
- to indicate this
method should not be called.public void setProperties(java.util.Properties suppliedProps) throws ConfigManagerProxyLoggedException
setProperties
in class AdministeredObject
suppliedProps
- (this is ignored)ConfigManagerProxyLoggedException
- to indicate this
method should not be called.public static java.util.Properties withUUID(java.lang.String uuid)
public static java.util.Properties withName(java.lang.String name)