Change Triggered Cache Manager Acknowledgment Target Description (QzhtChgTCMAckTargetDesc) API

Important: Information for this topic supports the latest PTF levels for HTTP Server for i5/OS . It is recommended that you install the latest PTFs to upgrade to the latest level of the HTTP Server for i5/OS. Some of the topics documented here are not available prior to this update. See http://www.ibm.com/servers/eserver/iseries/software/http/services/service.htm Link outside Information Center for more information.
Required Parameter Group:
1 request variable Input Char(*)
2 length of request variable Input Binary(4)
3 request variable format Input Char(8)
4 server name Input Char(32)
5 description name Input Char(32)
6 error code I/O Char(*)
Library Name/Service Program: QTCM/QZHTINCONF
Threadsafe: Yes

Use the QzhtChgTCMAckTargetDesc API to change acknowledgment target descriptions associated with triggered cache manager servers. Changes made to acknowledgment target descriptions are utilized by all trigger handler descriptions referencing them (the next time the servers are started). The API is a callable service implemented as an ILE entry point within the QZHTINCONF *SRVPGM in the QTCM *LIB.

The QTCM/H(QZHTINCONF) header file includes ILE C prototypes for this API.

Authorities and locks

Required parameter group

request variable
INPUT: CHAR(*) The variable used to pass the information used to change an acknowledgment target description.
length of request variable
INPUT: BINARY(4)

The number of bytes that the calling program provides for request variable.

request variable format
INPUT: CHAR(8)

The format name of the Request variable data. The following values must be used:

  • ATDP0100: Basic information format for an acknowledgment target description.
  • ATDP0200: Detailed information format for an *HTTP1 type acknowledgment target description.
  • ATDP0210: Detailed information format for an *HTTP2 type acknowledgment target description.
server name
INPUT: CHAR(32)

The name used to identify the triggered cache manager server for which the description is changed (left justified and padded with blanks if necessary).

description name
INPUT: CHAR(32)

The name used to identify the changed acknowledgment target description (left justified and padded with blanks if necessary).

error code
I/O: CHAR(*)

The structure in which to return error information.

ATDP0100 format

Offset Type Field
Dec Hex
0 0 Char(32) Server name
32 20 Char(32) Acknowledgement target description name
64 40 Char(10) Acknowledgement target type
74 4A Char(2) Reserved
76 4C Binary(4) Default property
80 50 Binary(4) Number of threads
84 54 Binary(4) Initial state

ATDP0100 format field descriptions

Note: Acknowledgment target descriptions are added using default values for all unspecified values according to the type specified by Acknowledgment target type). See other acknowledgment target description formats for details regarding these default values.
Acknowledgement target description name
The name used by the new acknowledgment target description (left justified and padded with blanks if necessary). The value must be a description name, or be one of the special values described below.

Special values and their meanings are as follows:

*SAME
QZHT_NO_CHANGE_CHAR: The current name is not changed.
Note: Acknowledgment target description names must be unique for each triggered cache manager server.
Acknowledgement target type
The added acknowledgment target description type (left justified and padded with blanks if necessary). The value must be one of the special values described below.

Special values and their meanings are as follows:

*SAME
QZHT_NO_CHANGE_CHAR: The description is not changed to a different type.
*HTTP1
QZHT_HTTP_TYPE1: An *HTTP1 type is added.
*HTTP2
QZHT_HTTP_TYPE2: An *HTTP2 type is added.
Note: If a type is specified, that is different than the current type, certain information is discarded if it cannot be mapped to values for the new description type. See other acknowledgment target description formats for details.
Default property
Specifies if the new description is the default acknowledgment target description for the triggered cache manager server specified in Server name. The value must equal one of the special values described below. The default value is 0 (QZHT_NO).

Special values and their meanings are as follows:

1 QZHT_YES, QZHT_TRUE, QZHT_ENABLED: The description is the default cache target description for this server.
0 QZHT_NO, QZHT_FALSE, QZHT_DISABLED: The description is not the default cache target description.
-1 QZHT_DEFAULT: The default value is used.
-2 QZHT_NO_CHANGE: The current value is be changed.
Note: Multiple default acknowledgment target descriptions are allowed. Trigger handler descriptions, added or changed using the *DEFAULT special value, reference all acknowledgment target descriptions designated as default at the time the trigger handler descriptions are added or changed.
Initial state
Specifies the state that the triggered cache manager server request processor, for this acknowledgment target, is in at server startup. The value must equal one of the special values described below. The default value is 1 (QZHT_ENABLED).
1 QZHT_YES, QZHT_TRUE, QZHT_ENABLED: The request processor is enabled at server startup.
0 QZHT_NO, QZHT_FALSE, QZHT_DISABLED: The request processor is disabled at server startup.
-1 QZHT_DEFAULT: The default value is used.
-2 QZHT_NO_CHANGE: The current value is not changed.
Note: The state of a acknowledgment target request processor can be changed while the triggered cache manager server is active by using the -chack command in a trigger message.
Number of threads
The number of concurrent threads the triggered cache manager server spawns when processing requests sent to this acknowledgment target. The value must be greater that 0 and less than 231 (or 2.147x109), or equal to one of the special values described below. The default value is 5.

Special values and their meanings are as follows:

-1 QZHT_DEFAULT: The default value is used.
-2 QZHT_NO_CHANGE: The current value is not changed.
Server name
The name used to identify the triggered cache manager server for which the description is associated (left justified and padded with blanks if necessary). The value must be a server name, or one of the special values described below. If a server name is specified, that is different than the one with which the description is currently associated, it is removed from its current association and added for the new server.

Special values and their meanings are as follows:

*SAME
QZHT_NO_CHANGE_CHAR: The current server association is not changed.
Note: An escape message is sent if the description is removed from its current association (while being referenced by other descriptions).

ATDP0200 format

Offset Type Field
Dec Hex
0 0 Char(256) Everything from ATDP0100 format
88 58 Binary(4) HTTP IP interface
344 158 Binary(4) HTTP TCP port
348 15C Binary(4) Offset to HTTP URI root
352 160 Binary(4) Length of HTTP URI root
356 164 Binary(4) HTTP keepalive
360 168 Binary(4) Timeout
    Char(*) HTTP URI root

ATDP0200 format field descriptions

Note: If the current description type is not *HTTP1, all information currently stored for the description, that is not mapped to one the following entries, is discarded.
HTTP IP interface
The IP host name or address of the system hosting an HTTP server that accepts completion messages (left justified and padded with blanks if necessary). The value must be a host name (for example, server.mycompany.com), dotted address (for example, 192.168.3.57), or one of the special values described below. If a host name is specified, it must use proper naming conventions as defined by RFC 1034, Domain Names - Concepts and Facilities. If a dotted address is specified, it must use proper IP version 4 address conventions as defined by RFC 791, Internet Protocol. The default value is 127.0.0.1, the local system loopback interface.

Special values and their meanings are as follows:

*DEFAULT
QZHT_DEFAULT_CHAR: The default value is used.
*SAME
QZHT_NO_CHANGE_CHAR: The following rules are used to map current description values for reuse:
If the current type is:   Details
*HTTP1 use current HTTP IP interface value No change is made.
*HTTP2 use IP interface value from the host description currently referenced by HTTP host An exception occurs if the referenced description does not exist. Refers to ATDP0210 format.
HTTP keepalive
Specifies if connections to HTTP Server are kept open for reuse after data is transferred. The value must equal one of the special values described below. The default value is 0 (QZHT_DISABLED).

Special values and their meanings are as follows:

1 QZHT_YES, QZHT_TRUE, QZHT_ENABLED: The connection is kept open after messages are sent.
0 QZHT_NO, QZHT_FALSE, QZHT_DISABLED: The connection is closed after messages are sent.
-1 QZHT_DEFAULT: The default value is used.
-2 QZHT_NO_CHANGE: The current value is not changed.
Note: HTTP Server must support keepalive for this option to work properly.
HTTP TCP port
The TCP port number upon which HTTP Server listens for incoming requests. The value must be greater than 0 and less than 65536, or equal to one of the special values described below. The default value is 80.

Special values and their meanings are as follows:

-1 QZHT_DEFAULT: The default value is used.
-2 QZHT_NO_CHANGE: The current value is not changed.
Note: The TCP port number is used in combination with the IP host name or address in HTTP IP interface to establish communication with HTTP Server acknowledgment target.
HTTP URI root
The path of HTTP Server URI that is the root of this acknowledgment target (left justified and padded with blanks if necessary). The value must be a path acceptable to HTTP Server. The default path is / .

If Offset to HTTP URI root equals -2 (QZHT_NO_CHANGE), the current path is not changed.

Note: All completion message requests sent to the acknowledgment target are prepended with this path. If the value is null, Offset to HTTP URI root must equal 0 (QZHT_NONE), -1 (QZHT_DEFAULT), or -2 (QZHT_NO_CHANGE). See Offset to HTTP URI root for more details.
Length of HTTP URI root
The length of the information for the HTTP URI root entry.
Note: If Offset to HTTP URI root equals 0 (QZHT_NONE), -1 (QZHT_DEFAULT), or -2 (QZHT_NO_CHANGE), this value must equal 0. If Offset to HTTP URI root equals 0 (QZHT_NONE), -1 (QZHT_DEFAULT), or -2 (QZHT_NO_CHANGE), this value must equal 0.
Offset to HTTP URI root
The offset from the beginning of the request variable to the HTTP URI root data, in bytes. The value must be greater than 0, or equal to one of the special values defined below.

Special values and their meanings are as follows:

0 QZHT_NONE: Same as -1 (QZHT_DEFAULT).
-1 QZHT_DEFAULT: The default value is used for HTTP URI root.
-2 QZHT_NO_CHANGE: The current path for HTTP URI root is not changed.
Timeout
The number of seconds the triggered cache manager server waits before canceling a read operation on sockets and ending transactions, with the HTTP host, in error. The value must be greater than 0 and less than 231 (or 2.147x109), or equal to one of the special values described below. The default value is 0 (QZHT_DISABLED).

Special values and their meanings are as follows:

0 QZHT_NO, QZHT_FALSE, QZHT_DISABLED: The time out operation is disabled. The triggered cache manager server should never cancel a read operation.
-1 QZHT_DEFAULT: The default value is used.
-2 QZHT_NO_CHANGE: The current value is not changed.

ATDP0210 format

Offset Type Field
Dec Hex
0 0   Everything from ATDP0100 format
88 58 Char(32) HTTP host
120 78 Binary(4) HTTP TCP port
124 7C Binary(4) Offset to HTTP URI root
128 80 Binary(4) Length of HTTP URI root
132 84 Binary(4) HTTP keepalive
136 88 Binary(4) Timeout
    Char(*) HTTP URI root

ATDP0210 format field descriptions

Note: If the current description type is not *HTTP2, all information currently stored for the description, that is not mapped to one the following entries, is discarded.
HTTP host
The name of a host description associated with the triggered cache manager server that is referenced by the new acknowledgment target description and used later, at server startup, to obtain information about the system hosting an HTTP server accepting completion messages. The value must be a host description name, or one of the special values described below (left justified and padded with blanks if necessary). The default value is to reference the description currently designated as the default host description for the triggered cache manager server.

Special values and their meanings are as follows:

*DEFAULT
QZHT_DEFAULT_CHAR: The default value is referenced.
*SAME
QZHT_NO_CHANGE_CHAR: The following rules are used to map current description values for reuse:
If the current type is:   Details
*HTTP1 the default host description, currently associated with the triggered cache manager server is, referenced.  
*HTTP2 the description, currently referenced for HTTP host, is not changed No change is made.
Note: See HTTP TCP port for more information. An escape message is sent if the referenced description does not currently exist, or if *DEFAULT is specified and there is currently no default host description for the server.
HTTP keepalive
Specifies if connections to HTTP Server are kept open for reuse after completion messages are sent. The value must equal one of the special values described below. The default value is 0 (QZHT_DISABLED).

Special values and their meanings are as follows:

1 QZHT_YES, QZHT_TRUE, QZHT_ENABLED: The connection is kept open after messages are sent.
0 QZHT_NO, QZHT_FALSE, QZHT_DISABLED: The connection is closed after messages are sent.
-1 QZHT_DEFAULT: The default value is used.
-2 QZHT_NO_CHANGE: The current value is not changed.
Note: HTTP Server must support keepalive for this option to work properly.
HTTP TCP port
The TCP port number upon which HTTP Server listens for incoming completion messages. The value must be greater than 0 and less than 65536, or equal to one of the special values described below. The default value is 80.

Special values and their meanings are as follows:

-1 QZHT_DEFAULT: The default value is used.
-2 QZHT_NO_CHANGE: The current value is not changed.
Note: The TCP port number is used in combination with information obtained at server startup from the host description specified in HTTP host to establish communication with HTTP Server acknowledgment target.
HTTP URI root
The path of HTTP Server URI that is the root of this acknowledgment target (left justified and padded with blanks if necessary). The value must be a path acceptable to HTTP Server. The default path is / .

If Offset to HTTP URI root equals -2 (QZHT_NO_CHANGE), the current path is not changed.

Note: All requests to send completion messages to this acknowledgment target are prepended with this path. If the value is null, Offset to HTTP URI root must equal 0 (QZHT_NONE), -1 (QZHT_DEFAULT), or -2 (QZHT_NO_CHANGE). See Offset to HTTP URI root for more details.
Length of HTTP URI root
The length of the information for the HTTP URI root entry.
Note: If Offset to HTTP URI root equals 0 (QZHT_NONE), -1 (QZHT_DEFAULT), or -2 (QZHT_NO_CHANGE), this value must equal 0.
Offset to HTTP URI root
The offset from the beginning of the request variable to the HTTP URI root data, in bytes. The value must be greater than 0, or equal to one of the special values defined below.

Special values and their meanings are as follows:

0 QZHT_NONE: Same as -1 (QZHT_DEFAULT).
-1 QZHT_DEFAULT: The default path is used for HTTP URI root.
-2 QZHT_NO_CHANGE: The current path for HTTP URI root is not changed.
Timeout
The number of seconds the triggered cache manager server waits before canceling a read operation on sockets and ending transactions, with the HTTP host, in error. The value must be greater than 0 and less than 231 (or 2.147x109), or equal to one of the special values described below. The default value is 0 (QZHT_DISABLED).

Special values and their meanings are as follows:

0 QZHT_NO, QZHT_FALSE, QZHT_DISABLED: The time out operation is disabled. The triggered cache manager server should never cancel a read operation.
-1 QZHT_DEFAULT: The default value is used.
-2 QZHT_NO_CHANGE: The current value is not changed.

Error messages

TCM7001 E
User &1 is not authorized.
TCM7030 E
Severe error occurred while addressing parameter list.
TCM7031 E
Request variable format is not valid.
TCM7033 E
Length of request variable is not valid for the specified format.
TCM703E E
Error code parameter is not valid.
TCM70F0 E
Unknown error occurred while processing request.
TCM7101 D
User QTCM is not authorized to the configuration file for triggered cache manager server &1.
TCM7190 D
A configuration file for triggered cache manager server &1 was not found.
TCM7222 D
A default &1 is not designated for triggered cache manager server &2.
TCM7290 D
&1 &2 was not found for triggered cache manager server &3.
TCM7293 D
A &1 using the name &2 already exists for triggered cache manager server &3.
TCM72C0 D
Triggered cache manager &1 name is not valid.
TCM72C1 D
Triggered cache manager &1 type is not valid.
TCM72C2 D
Triggered cache manager description type &1 cannot be specified when using data format &2.
TCM72C3 D
Value passed to offset &1 is not valid.
TCM74C0 D
Triggered cache manager server name is not valid.