Connection configuration
All connectors share the connection properties in this section. In the connector configuration form, they appear in the Connection, Connection (Optional), License, and Truststore sections.
Set the license and truststore properties as described in License and truststore. The connector-specific properties are described on the page of each connector: source, data queue sink and Program Call sink.
Connection
| Parameter | Description | Mandatory | Default value | Configuration key |
|---|---|---|---|---|
| Name | Unique label for the connector in your application. | Required | AS400SourceConnectorConnector_0 | name |
| AS400 URL | IBM i system connection URL. | Required | null | as400.url |
| User Id | IBM i system user. | Required | null | as400.userId |
| PASSWORD | IBM i system connection password. | Required | null | as400.password |
| License protocol | See License management. | Required | null | as400.license.protocol |
| Truststore file protocol | See Truststore management. | Optional | null | as400.tls.protocol |
| IASP | Independent auxiliary storage pool (logical partitions in the system). | Optional | null | as400.iasp |
| Library List | Libraries to add to the library list associated with the user ID. Separate the libraries with commas. They are added to the top of the library list. | Optional | null | as400.libraries |
| Secure Connection | Enables a secure connection to IBM i over an encrypted channel. | Optional | False | as400.secure.connection |
| Socket Timeout | Socket timeout in ms. The default value of -1 means that the default JVM SO_TIMEOUT is used. |
Optional | -1 | as400.socket.timeout |
| Time unit to be used for Socket Timeout | Time unit of the socket timeout. | Optional | MILLISECONDS | as400.socket.timeunit |
| Connection Retries | Number of times the connector retries to establish the connection internally before it throws an exception and passes it back to the Kafka connection manager. | Optional | 3 | as400.connection.retry |
| Reconnection Period | Time between internal reconnection retries in ms. | Optional | 60000 | as400.reconnection.period |
| Time unit to be used for Reconnection Period | Time unit of the reconnection period. | Optional | MILLISECONDS | as400.reconnection.timeunit |
| Connection Time to Live | Maximum time in seconds that the connection can be used. | Optional | 0 | as400.connection.live |
| Reconnection Period time out | Time unit used for the connection time to live. | Optional | SECONDS |
Connection (Optional)
| Parameter | Description | Mandatory | Default value | Configuration key |
|---|---|---|---|---|
| Operation Type | Operation type to perform on IBM i: FILE = 0, PRINT = 1, COMMAND = 2, DATAQUEUE = 3, DATABASE = 4, RECORDACCESS = 5, CENTRAL = 6, SIGNON = 7 | Optional | 2 | as400.operation.type |
| CCSID | Coded Character Set Identifier (CCSID), the numeric code of the character set used for character data on IBM i. | Optional | 0 | as400.ccsid |
| Pre Start Count Data Queue | Number of initial connections kept in the pool for data queue operations. This reduces the latency of the first operations. | Optional | 2 | as400.prestart.count.dq |
| Pre Start Count Command | Number of initial connections kept in the pool for running commands on IBM i. | Optional | 2 | as400.prestart.count.command |
| Cleanup Interval | Interval in ms at which the maintenance thread of the connection pool cleans up inactive or expired connections. | Optional | 300000 | as400.cleanup.interval |
| Max Connection | Maximum number of connections allowed in the connection pool. | Optional | 5 | as400.max.connection |
| Max Inactivity | Maximum time in ms that a connection can stay idle in the pool before the cleanup thread closes it. | Optional | 3600000 | as400.max.inactivity |
| Max Lifetime | Maximum lifetime in ms of a connection. After this time the connection is closed and replaced, regardless of activity. | Optional | 86400000 | as400.max.lifetime |
| Max Use Count | Maximum number of times that a connection can be used before it is closed and replaced. | Optional | -1 (no maximum) | as400.max.usecount |
| Max Use Time | Maximum time in ms that a connection can be used before it is closed and replaced. | Optional | -1 (no maximum) | as400.max.usetime |
| Pre-Test Connection | Indicates whether a connection is tested before it is handed out from the pool. This ensures that the connection is still active and ready to use. | Optional | true | as400.pretest.connection |
| Run Maintenance | Enables or disables the internal maintenance thread of the connection pool, which handles cleanup and pre-testing. | Optional | true | as400.run.maintenance |
| Thread Used | Indicates whether connections are bound to a specific thread, so that a thread always uses the same connection. | Optional | true | as400.thread.used |
| Keep Alive | Enables TCP keep-alive. It sends small packets to keep the connection open, so that firewalls do not drop it because of inactivity. | Optional | true | as400.keep.alive |
| Login Timeout | Time in ms to wait for a successful sign-on to the IBM i system. | Optional | 300000 | as400.login.timeout |
| Receive Buffer Size | Size of the socket receive buffer in bytes. | Optional | 10000 | as400.receive.buffer.size |
| Send Buffer Size | Size of the socket send buffer in bytes. | Optional | 10000 | as400.send.buffer.size |
| So Linger | Controls the socket linger behavior. When enabled, a close call blocks until all data is sent. | Optional | 0 | as400.so.linger |
| So Timeout | Timeout in ms for read operations on the socket. | Optional | 0 (infinite) | as400.so.timeout |
| TCP No Delay | Enables or disables the Nagle algorithm. When true, packets are sent immediately, which can improve performance for low-latency connections. |
Optional | true | as400.tcp.nodelay |
Related pages
- License and truststore
- Hardening and scaling for secure connections, encrypted secrets and connection pool tuning