public class MQManagedObject
extends com.ibm.mq.jmqi.JmqiObject
MQQueueManager,
MQQueue,
MQProcess,
MQDistributionList| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
alternateUserId
Deprecated.
Accessing this field directly is not recommended. The
getAlternateUserId()
call should be used instead. |
int |
closeOptions
Deprecated.
Accessing this field directly is not recommended. The
setCloseOptions(int)
and getCloseOptions() calls should be used instead. |
MQQueueManager |
connectionReference
Deprecated.
Accessing this field directly is not recommended. The
getConnectionReference() call should be used instead. |
boolean |
isOpen
Deprecated.
Accessing this field directly is not recommended. The
isOpen() call should
be used instead. |
java.lang.String |
name
Deprecated.
Accessing this field directly is not recommended. The
getName() call
should be used instead. |
int |
openOptions
Deprecated.
Accessing this field directly is not recommended. The
getOpenOptions()
call should be used instead. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the object.
|
java.lang.String |
getAlternateUserId()
Gets the alternative user ID specified (if any) when this resource was opened.
|
java.lang.String |
getAttributeString(int aSelector,
int length)
Gets an attribute string.
|
int |
getCloseOptions()
Gets the options controlling the way the resource is closed.
|
MQQueueManager |
getConnectionReference()
Gets the connection queue manager associated with this resource.
|
java.lang.String |
getDescription()
Gets the description of this resource as held by the queue manager.
|
java.lang.String |
getName()
Gets the name of this resource.
|
int |
getOpenOptions()
Gets the set of open options used when opening the resource.
|
java.lang.String |
getResolvedObjectString() |
java.lang.String |
getResolvedQName() |
int |
getResolvedType() |
void |
inquire(int[] selectors,
int[] intAttrs,
byte[] charAttrs)
Queries requested attributes of the object.
|
void |
inquire(int[] selectors,
int[] intAttrs,
char[] charAttrs)
Queries requested attributes of the object.
|
boolean |
isOpen()
Indicates whether the resource is currently 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.
|
void |
setCloseOptions(int closeOptions)
Set this attribute to control the way the resource is closed.
|
public java.lang.String alternateUserId
getAlternateUserId()
call should be used instead.public java.lang.String name
getName() call
should be used instead.public int openOptions
getOpenOptions()
call should be used instead.public boolean isOpen
isOpen() call should
be used instead.public MQQueueManager connectionReference
getConnectionReference() call should be used instead.public int closeOptions
setCloseOptions(int)
and getCloseOptions() calls should be used instead.public void inquire(int[] selectors,
int[] intAttrs,
char[] 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 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 set call fails.public void close()
throws MQException
closeOptions.MQException - if the WebSphere MQ call fails.public 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 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.public java.lang.String getDescription()
throws MQException
MQINQ function.MQException - If this method is called after the resource has been closed, to indicate
that the resource is no longer available.public java.lang.String getAlternateUserId()
throws MQException
MQException - If the call fails.public java.lang.String getName()
throws MQException
MQException - If the call fails.public int getOpenOptions()
throws MQException
MQOO options. Upon opening an MQTopic resource these
options will map directly to the MQSO options. The property is not valid for the
MQSubscription sub class.MQException - If the call fails.public MQQueueManager getConnectionReference() throws MQException
MQException - If the call fails.public boolean isOpen()
MQSubscription sub class is created and implicitly opened during an
MQSUB function call, this property will always return true unless
explicitly closed by the user.true if the object is open.public int getCloseOptions()
throws MQException
MQException - If the call fails.setCloseOptions(int)public void setCloseOptions(int closeOptions)
throws MQException
CMQC.MQCO_NONE. The standard set of options can be used when closing an MQTopic
or MQQueue object.
The CMQC.MQCO_QUIESCE close option can only be honored when explicitly closing an
MQTopic or MQQueue object using the close() method. Upon object
destruction, this option is ignored and disabled.
Upon closing an MQTopic or MQSubscription object, the following additional
values are permissible:
CMQC.MQCO_DELETE - (Not MQSubscription) Delete the queue if there are no
messages remaining.
CMQC.MQCO_DELETE_PURGE - (Not MQSubscription) Delete the queue, purging any
messages remaining.
CMQC.MQCO_KEEP_SUB - (Only MQSubscription) The subscription made is kept.
This option is only valid if the original subscription was durable. This is the default value
if the resource is a durable MQTopic object.
CMQC.MQCO_REMOVE_SUB - (Only MQSubscription) The subscription is removed.
This is the default value if the resource is a non-durable, unmanaged MQTopic object.
closeOptions - the close optionsMQException - If the call fails.public int getResolvedType()
public java.lang.String getResolvedQName()
public java.lang.String getResolvedObjectString()