MQManagedObject

public class MQManagedObject
extends Object
java.lang.Object
   |
   +----com.ibm.mq.MQManagedObject
          

MQManagedObject is a superclass for MQDistributionList , MQProcess, MQQueue, MQQueueManager . It provides the ability to inquire and set attributes of these objects.

Fields

alternateUserId

public java.lang.String

The alternative user ID specified (if any) when this resource was opened. Setting this attribute has no effect.

closeOptions

public int

Controls the way the resource is closed. Permitted values are:

connectionReference

public com.ibm.mq.MQQueueManager

The queue manager to which this resource belongs. Setting this attribute has no effect.

isOpen

public boolean

Deprecated

use the isOpen() method instead.

Indicates whether this resource is currently open. Do not set this attribute.

name

public java.lang.String

The name of this resource. This is either the name supplied by the access method, or the name allocated by the queue manager for a dynamic queue. Setting this attribute has no effect.

openOptions

public int

The options specified when this resource was opened. Setting this attribute has no effect.

Methods

close

public void close() throws MQException;

Closes the object. No further operations on this object are permitted after it is closed. The behavior of the close method can be altered by setting closeOptions.

Exceptions

getAttributeString

public final String getAttributeString(int aSelector, int length) 
              throws MQException;

Gets an attribute string.

Parameters
Exceptions

getDescription

public String getDescription() throws MQException;

Gets the description of this resource as held at the queue manager.

Returns
Exceptions

inquire

public void inquire(int[] selectors, int[] intAttrs, byte[] charAttrs) 
              throws MQException;

Queries requested attributes of the object.

Many of the common attribute values can be queried using the getXXX() methods defined in MQManagedObject , MQQueue, MQQueueManager and MQProcess.

Parameters
Exceptions

isOpen

public boolean isOpen();

Indicates whether this object is open.

Returns

set

public void set(int[] selectors, int[] intAttrs, byte[] charAttrs) 
              throws MQException;

Sets requested attributes of the object.

Note that many of the more common attribute values can be set using the setXXX() methods defined in MQQueue .

Parameters
Exceptions

setAttributeString

public final void setAttributeString(int aSelector, String aValue, 
                                     int length) throws MQException;

Sets an attribute string.

Parameters
Exceptions