The T_APPQ class represents application queues. One or more application queues may exist in a single application queue space.
It is not possible to retrieve all instances of this class by leaving all key fields unset. Instead, sufficient key fields must be supplied to explicitly target a single application queue space. These required key fields are TA_APPQSPACENAME, TA_QMCONFIG, and TA_LMID, except when the application is unconfigured (i.e., the TUXCONFIG environment variable is not set), in which case TA_LMID must be omitted. For example, if the TA_APPQSPACENAME, TA_QMCONFIG, and TA_LMID attributes are set in a request using tpcall(3), then all T_APPQ objects within the specified queue space will be retrieved.
aAll attributes of class b cAll operations on d eSufficient key fields must be supplied in a T_APPQ are local attributes.
TA_LMID must be specified as a key field except when the application is unconfigured (i.e., the TUXCONFIG environment variable is not set).
T_APPQ objects-both GET and SET-silently open the associated queue space (i.e., implicitly set the state of the queue space to OPEn if it is not already OPEn or ACTive). This may be a time-consuming operation if the queue space is large.
TA_APPQORDER can not be modified after the application queue is created.
GET operation to explicitly target a single application queue space.
Attribute Semantics
TA_APPQNAME: string[1..15]
TA_APPQSPACENAME: string[1..15]
TA_QMCONFIG: string[1..78]
TA_LMID: string[1..30] (no comma)
TA_STATE:
GET: {VALid}
GET operation retrieves information about the selected application queues. The following list describes the meaning of the TA_STATE attribute returned in response to a GET request. States not listed will not be returned.
|
|
The specified queue exists. This state is |
SET: {NEW|INValid}
SET operation changes characteristics of the selected application queue or creates a new queue. The following list describes the meaning of the TA_STATE attribute returned by a SET request. States not listed can not be set.
TA_APPQORDER:
PRIO or TIME, followed by a comma, optionally followed by another occurrence of PRIO or TIME, followed by one of the values LIFO or FIFO. If neither FIFO nor LIFO is specified, FIFO is assumed. If nothing is specified when a queue is created, the default is FIFO. For example, these are some legal settings:
PRIO
PRIO,TIME,LIFO
TIME,PRIO,FIFO
TIME,FIFO
TA_CMD:shell-command-string[0..78]
TA_CMDHW, is reached. The command will be re-executed when the high water mark is reached again after the low water mark, TA_CMDLW, has been reached.
TA_CMDHW: 0 = num[Bbm%]
TA_CMDLW: 0 = num[Bbm%]
TA_CMD attribute. Each is an integer greater than or equal to zero optionally followed by one of the following keyletters. The keyletters must be consistent for TA_CMDHW and TA_CMDLW.
b
B
m
%
For example, if TA_CMDLW is 50m and TA_CMDHW is 100m, then the command specified in TA_CMD will be executed when 100 messages are on the queue, and it will not be executed again until the queue has been drained below 50 messages and has filled again to 100 messages.
TA_CURBLOCKS: 0 = num
TA_CURMSG: 0 = num
TA_MAXRETRIES: 0 = num
TA_OUTOFORDER: {MSGID|TOP|NONE}
NONE.
TA_RETRYDELAY: 0 = num