The T_APPQMSG class represents messages stored in application queues. A message is not created by an administrator; instead, it comes into existence as a result of a call to tpenqueue(3). A message can be destroyed either by a call to tpdequeue(3) or by an administrator. In addition, certain attributes of a message can be modified by an administrator. For example, an administrator can move a message from one queue to another queue within the same queue space or change its priority.
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_APPQMSG objects in all queues of the specified queue space will be retrieved.
a All attributes of class b c All operations on d Sufficient key fields must be supplied in a T_APPQMSG 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_APPQMSG 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.
GET operation to explicitly target a single application queue space.
Attribute Semantics
TA_APPQMSGID: string[1..32]
GET or SET operations. No significance should be placed on this value beyond using it for equality comparisons.
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 messages. 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 message exists. This state is |
SET: {INValid}
SET operation changes characteristics of the selected message. The following list describes the meaning of the TA_STATE attribute returned by a SET request. States not listed can not be set.
TA_CURRETRIES: 0 = num
TA_CORRID: string[0..32]
TA_LOWPRIORITY: 1 = num = 100 TA_HIGHPRIORITY: 1 = num = 100
T_APPQMSG objects. These attributes may only be used as key fields with GET operations and are valid only for PRIO-based queues.
TA_MSGSTARTTIME: TA_MSGENDTIME:
T_APPQMSG objects. The range is inclusive. See TA_TIME for the format. These attributes may only be used as key fields with GET operations and are valid only for TIME-based queues.
TA_NEWAPPQNAME: string[1..15]
VALid for this operation to succeed. This attribute is not returned by a GET operation.
TA_PRIORITY: 1 = num = 100
PRIO-based queues. The value -1 is returned by a GET operation if the queue is not PRIO-based.
TA_TIME:
TIME-based queues. The empty string is returned by a GET operation if the queue is not TIME-based. The format is one of the following:
+seconds
seconds in the future. The value zero specifies that the message should be processed immediately.
YY[MM[DD[hh[mm[ss]]]]]
9506 is equivalent to 950601000000. The years 00 through 37 are treated as 2000 through 20037, 70 through 99 are treated as 1970 through 1999, and 38 through 69 are invalid.
TA_MSGSIZE: 0 = num