|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
MQQueueManager
,
MQQueue
,
MQProcess
,
MQDistributionList
Field Summary | |
java.lang.String |
alternateUserId
The alternative user ID specified (if any) when this resource was opened. |
int |
closeOptions
Controls the way the resource is closed. |
MQQueueManager |
connectionReference
The queue manager to which this resource belongs. |
boolean |
isOpen
Deprecated. use the isOpen() method instead. |
java.lang.String |
name
The name of this resource. |
int |
openOptions
The options specified when this resource was opened. |
Method Summary | |
void |
close()
Closes the object. |
java.lang.String |
getAttributeString(int aSelector,
int length)
Gets an attribute string. |
java.lang.String |
getDescription()
Gets the description of this resource as held by the queue manager. |
void |
inquire(int[] selectors,
int[] intAttrs,
byte[] charAttrs)
Queries requested attributes of the object. |
boolean |
isOpen()
Indicates whether this object is open. |
void |
set(int[] selectors,
int[] intAttrs,
byte[] charAttrs)
Sets requested attributes of the object. |
void |
setAttributeString(int aSelector,
java.lang.String aValue,
int length)
Sets an attribute string. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.lang.String alternateUserId
public java.lang.String name
public int openOptions
public boolean isOpen
isOpen()
method instead.
public MQQueueManager connectionReference
public int closeOptions
MQC.MQCO_NONE
- the default value
MQC.MQCO_DELETE
- permanent dynamic queues only
MQC.MQCO_DELETE_PURGE
- permanent dynamic queues only
Method Detail |
public boolean isOpen()
public java.lang.String getDescription() throws MQException
MQException
- if this method is called after the resource has been closed,
to indicate that the resource is no longer available.public void inquire(int[] selectors, int[] intAttrs, byte[] charAttrs) throws MQException
Many of the common attribute values can be queried using the getXXX() methods defined in MQManagedObject, MQQueue, MQQueueManager and MQProcess.
selectors
- indicates which attributes are being queried.
Suitable selectors for character attributes are shown in MQCA_*
Suitable selectors for integer attributes are shown in MQIA_*
.intAttrs
- the requested attribute values in the same order as in selectors
.charAttrs
- the requested character attributes, concatenated together and in the same
order as in selectors
.
MQException
- if the inquire fails.public void set(int[] selectors, int[] intAttrs, byte[] charAttrs) throws MQException
Note that many of the more common attribute values can be set using the setXXX() methods defined in MQQueue.
selectors
- indicates which attributes are being set.
Suitable selectors for character attributes are shown in MQCA_*
Suitable selectors for integer attributes are shown in MQIA_*
.intAttrs
- the requested attribute values in the same order as in selectors
.charAttrs
- the requested character attributes, concatenated together and in the same
order as in selectors
.
MQException
- if the inquire fails.public void close() throws MQException
closeOptions
.
MQException
- if the WebSphere MQ call fails.public final java.lang.String getAttributeString(int aSelector, int length) throws MQException
aSelector
- indicates which attribute is being queried.
Suitable selectors for character attributes are shown in MQCA_*
length
- the length of string required.
MQException
- if the call fails.public final void setAttributeString(int aSelector, java.lang.String aValue, int length) throws MQException
aSelector
- an integer that indicates which attribute is being set.
Suitable selectors for character attributes are shown in MQCA_*
together with the string lengths.
Please refer to WebSphere MQ Application Programming Reference for further details.aValue
- the value of the attribute.length
- the number of characters of aValue to set.
MQException
- if the call fails.
|
(c) Copyright IBM Corp. 2005. All Rights Reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |