Methods

Close

public virtual void Close()
Throws MQException.

Closes the object. No further operations against this resource are permitted after this method has been called. To change the behavior of the Close method, set the closeOptions attribute.

Throws MQException if the WebSphere MQ call fails.

Inquire

public void Inquire(int[] selectors,
                    int[] intAttrs,
                    byte[] charAttrs)
Throws MQException.

Returns an array of integers and a set of character strings containing the attributes of an object (queue, process, or queue manager).

The attributes to be queried are specified in the selectors array. Refer to the WebSphere MQ Application Programming Reference for details of the permissible selectors.

Many of the more common attributes can be queried using the GetXXX() methods defined in MQManagedObject, MQQueue and MQQueueManager.

Parameters

selectors

Integer array identifying the attributes with values to be inquired on.

intAttrs

The array in which the integer attribute values are returned. Integer attribute values are returned in the same order as the integer attribute selectors in the selectors array.

charAttrs

The buffer in which the character attributes are returned, concatenated. Character attributes are returned in the same order as the character attribute selectors in the selectors array. The length of each attribute string is fixed for each attribute.

Throws MQException if the inquire fails.

Set

public void Set(int[] selectors,
                int[] intAttrs,
                byte[] charAttrs)
Throws MQException.

Sets the attributes defined in the selector's vector.

The attributes to be set are specified in the selectors array. Refer to the WebSphere MQ Application Programming Reference for details of the permissible selectors.

Parameters

selectors

Integer array identifying the attributes with values to be set.

intAttrs

The array of integer attribute values to be set. These values must be in the same order as the integer attribute selectors in the selectors array.

charAttrs

The buffer in which the character attributes to be set are concatenated. These values must be in the same order as the character attribute selectors in the selectors array. The length of each character attribute is fixed.

Throws MQException if the set fails.


csqzav0557