Required Parameter Group: | |||
1 | receiver variable | Output | Char(*) |
2 | length of receiver variable | Input | Binary(4) |
3 | receiver variable format | Input | Char(8) |
4 | server name | I/O | Char(32) |
5 | error code | I/O | Char(*) |
Library Name/Service Program: QTCM/QZHTINCONF | |||
Threadsafe: Yes |
The QzhtGetTCMServerStatus API retrieves the current status (or state) of triggered cache manager servers along with their respective autostart property. The API is a callable service implemented as an ILE entry point within QZHTINCONF *SRVPGM in QTCM *LIB.
The QTCM/H(QZHTINCONF) header file includes ILE C prototypes for this API.
The variable used to return the information indicating the status and autostart property of triggered cache manager servers.
The number of bytes that the calling program provides for receiver variable. This value must be greater than or equal to 8.
The format name of Receiver variable data. The following values must be used:
The name used to identify the server for which the status information is returned (left justified and padded with blanks if necessary). The value must specify a server name, or be one of the special values described below.
The special value and its meaning is as follows:
The structure in which to return error information.
Offset | Type | Field | |
---|---|---|---|
Dec | Hex | ||
0 | 0 | Binary(4) | Bytes returned |
4 | 4 | Binary(4) | Bytes available |
8 | 8 | Binary(4) | Offset to server entries |
12 | C | Binary(4) | Number of server entries |
16 | 10 | Binary(4) | Length of server entry |
Server entries Note: The following
entries are repeated for each set of server data returned.
|
|||
Char(32) | Server name | ||
Binary(4) | Autostart property | ||
Binary(4) | Current state | ||
Binary(4) | Local TCP port |
Special values and their meanings are as follows:
1 | QZHT_YES, QZHT_TRUE, QZHT_ENABLED: The server is set to start when startup of *AUTOSTART servers is requested. |
0 | QZHT_NO, QZHT_FALSE, QZHT_DISABLED: The server is not set to start when startup of *AUTOSTART servers is requested. |
1 | QZHT_INACTIVE: The server is not active. |
2 | QZHT_STARTING: The server is in the process of starting up. |
3 | QZHT_ACTIVE: The server is active. |
4 | QZHT_ENDING: The server is in the process of shutting down. |