Statistics API protocol parameters
To enable the statistics API protocol, include a protocol handler definition in the GATEWAY section of the configuration file.
The statsport parameter in the GATEWAY section of the configuration file is deprecated. If you specify the statsport parameter in addition to specifying a statistics API protocol handler definition, the statistics API protocol handler definition takes precedence. You can use the parameter override -statsport to override the port number for the statistics API listener port.
To enable the protocol, include a protocol handler definition in
the GATEWAY section of the configuration file, for example:
protocol@statsapi.handler=com.ibm.ctg.server.RestrictedTCPHandler
protocol@statsapi.parameters=connecttimeout=2000;port=2980;bind=;maxconn=5;
Entries for each protocol must be in the form shown:
- Two lines are allowed for each protocol. If
you do not intend to use the Configuration Tool, you
can split long lines by placing the backslash character
\after a semicolon. - The first line defines the protocol.
- The second line defines the parameters.
- Parameters are separated by a semicolon.
| Entry in the ctg.ini file | Description |
|---|---|
| bind | Bind address |
| connecttimeout | Connection timeout |
| port | Port |
| maxconn | Maximum number of connections |