public class MQProcess extends MQManagedObject
MQQueueManager.accessProcess() to create an
MQProcess object.alternateUserId, closeOptions, connectionReference, isOpen, name, openOptions| Constructor and Description |
|---|
MQProcess(MQQueueManager qMgr,
java.lang.String processName,
int openOptions)
Establishes access to a WebSphere MQ process on the specified queue manager in order to inquire
about the process attributes.
|
MQProcess(MQQueueManager qMgr,
java.lang.String processName,
int openOptionsP,
java.lang.String queueManagerName,
java.lang.String alternateUserId)
Establishes access to a WebSphere MQ process on the specified queue manager in order to inquire
about the process attributes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the process.
|
java.lang.String |
getApplicationId()
Gets the character string which identifies the application to be started.
|
int |
getApplicationType()
Identifies the nature of the process to be started in response to a trigger message.
|
java.lang.String |
getEnvironmentData()
Gets information on the environment of the application which is to be started.
|
java.lang.String |
getUserData()
Gets information pertaining to the application to be started.
|
getAlternateUserId, getAttributeString, getCloseOptions, getConnectionReference, getDescription, getName, getOpenOptions, getResolvedObjectString, getResolvedQName, getResolvedType, inquire, inquire, isOpen, set, setAttributeString, setCloseOptionspublic MQProcess(MQQueueManager qMgr, java.lang.String processName, int openOptions) throws MQException
qMgr - the queue manager that is running the process.processName - the name of process to open.openOptions - options that control the opening of the process. As inquire is automatically
added to the options specified there is no need to specify it explicitly. Valid
options are:
If more than one option is required, the values can be combined using either the '+'
or '|' operator.MQException - if the open fails.public MQProcess(MQQueueManager qMgr, java.lang.String processName, int openOptionsP, java.lang.String queueManagerName, java.lang.String alternateUserId) throws MQException
qMgr - the queue manager that is running the process.processName - the name of process to open.openOptionsP - options that control the opening of the process. As inquire is automatically
added to the options specified there is no need to specify it explicitly. Valid
options are:
If more than one option is required, the values can be combined using either the '+'
or '|' operator.queueManagerName - the name of queue manager qMgr.alternateUserId - if CMQC.MQOO_ALTERNATE_USER_AUTHORITY is specified in the openOptions parameter, this
parameter specifies the alternative user ID to be used to check the authorization for
the open. Otherwise this parameter can be blank or null.MQException - if the open fails.public void close()
throws MQException
close in class MQManagedObjectMQException - if the WebSphere MQ call fails.public java.lang.String getApplicationId()
throws MQException
MQException - if you call this method after you have closed the process, indicating
that the process is no longer accessible, or if the underlying
inquire() call fails.CMQC.MQCA_APPL_IDpublic int getApplicationType()
throws MQException
MQException - if the underlying inquire() call
fails.CMQC.MQIA_APPL_TYPEpublic java.lang.String getEnvironmentData()
throws MQException
MQException - if an internal error occurs.CMQC.MQCA_ENV_DATApublic java.lang.String getUserData()
throws MQException
MQException - if an internal error occurs.CMQC.MQCA_USER_DATA