The "listStreamingConnections" action lists streaming connections.
This action ANDs together all the filter properties to create the filter. Omit a filter property or set it to null to prevent it from filtering the results. Omit all filters to return all connections.
When a filter property value is a string, the server treats it as a partial match of each character in the property's value to the corresponding character in the definitions. The server does not process characters as wildcards.
The action returns the following metrics:
- The
"estimatedBacklogSeconds"property reports the approximate time, in seconds, needed by the FairCom MQ server to apply data changes from the source server. - The
"incomingBytesPerSecond"property reports the data change throughput, in bytes per second, streamed from the source FairCom server to FairCom MQ. - The
"appliedBytesPerSecond"property reports the data change throughput, in bytes per second, applied by FairCom MQ. The difference between the incoming and applied throughput indicates whether the backlog is increasing or decreasing.
Note There is no
"describeStreamingConnections"action because a server will have too few connections to streaming servers.
Request examples
Minimal
This example returns all streaming connections.
{
"action": "listStreamingConnections",
"params": {},
"authToken": "replaceWithAuthTokenFromCreateSession"
}Maximal
This example returns only those streaming connections that match the filter criteria.
{
"api": "admin",
"action": "listStreamingConnections",
"params": {
"streamingConnectionNameFilter": "fmq",
"sourceServerNameFilter": "FC",
"sourceHostnameFilter": "10.70.13",
"sourcePortFilter": 5597,
"sourceUsernameFilter": "AD"
},
"authToken": "replaceWithAuthTokenFromCreateSession"
}
Response examples
Maximal
{
"authToken": "authToken",
"result": {
"streamingConnections": [
{
"streamingConnectionName": "db1",
"estimatedBacklogSeconds": 100,
"metadata": {
},
"maxSecondsBeforeConnectingToNextServer": 15,
"streamParallelism": 4,
"sourceServers": [
{
"purpose": "Primary Server",
"sourceServerName": "FAIRCOMS",
"sourceHostname": "10.70.13.112",
"sourcePort": 5597,
"sourceUsername": "ADMIN",
"sourcePassword": "ADMIN",
"tls": {
"enabled": true,
"caCertificateFilename": "ca.crt",
"allowedCipherSuites": "",
"clientCertificateEnabled": true,
"clientCertificateFilename": "admin_client.crt",
"clientPrivateKeyFilename": "admin_client.key"
}
},
{
"purpose": "Secondary Server",
"sourceServerName": "FAIRCOMS2",
"sourceHostname": "10.70.13.113",
"sourcePort": 5597,
"sourceUsername": "ADMIN",
"sourcePassword": "ADMIN",
"tls": {
"enabled": true,
"caCertificateFilename": "ca.crt",
"allowedCipherSuites": "",
"clientCertificateEnabled": true,
"clientCertificateFilename": "admin_client.crt",
"clientPrivateKeyFilename": "admin_client.key"
}
}
]
}
]
},
"errorCode": 0,
"errorMessage": ""
}
Properties
Request properties ("params")
| Property | Description | Default | Type | Limits (inclusive) |
|---|---|---|---|---|
sourceHostnameFilter |
The |
Optional with default of null
|
string | 1 to 64 bytes |
sourcePortFilter |
The |
Optional with default of null
|
integer | 1 to 65535 |
sourceServerNameFilter |
The |
Optional with default of null
|
string | 1 to 64 bytes |
sourceUsernameFilter |
The |
Optional with default of null
|
string | 1 to 64 bytes |
streamingConnectionNameFilter |
The |
Optional with default of null
|
string | 1 to 64 bytes |
Response properties ("result")
| Property | Description | Type | Limits (inclusive) |
|---|---|---|---|
streamingConnections |
The |
array of objects |
0 or more objects containing 1 or more of the following properties:
|
|
streamingConnections .estimatedBacklogSeconds |
The |
integer |
0 to 4294967296
|
|
streamingConnections .maxSecondsBeforeConnectingToNextServer |
The "maxSecondsBeforeConnectingToNextServer" property specifies the maximum number of seconds the server will attempt to reconnect to the existing server before it attempts to connect to the next server in the "sourceServers" list. |
int32 |
1 to 65535
|
|
streamingConnections .metadata |
The |
JSON | 0 to 65,500 bytes |
|
streamingConnections .sourceServers |
The "sourceServers" property contains a list of FairCom DB or RTG server connection objects. FairCom MQ attempts to connect to the first server in the list. If that fails, it attempts to connect to the next one. If it reaches the last server in the list, it attempts to connect to the first. |
array of server connection objects | {
"purpose": "Primary Server",
"sourceServerName": "FAIRCOMS",
"sourceHostname": "10.70.13.112",
"sourcePort": 5597,
"sourceUsername": "ADMIN",
"sourcePassword": "ADMIN",
"tls": {
"enabled": true,
"caCertificateFilename": "ca.crt",
"allowedCipherSuites": "",
"clientCertificateEnabled": true,
"clientCertificateFilename": "admin_client.crt",
"clientPrivateKeyFilename": "admin_client.key"
}
}
|
|
streamingConnections sourceServers .purpose |
The
In the Thing API, the
This API uses the Label API to manage purposes.
|
string | 1 to 64 bytes |
|
streamingConnections sourceServers .sourceHostname |
The "sourceHostname" property specifies a unique host name or TCP/IP address of a FairCom DB or RTG server. |
string | 1 to 255 bytes |
|
streamingConnections sourceServers .sourcePassword |
The "sourcePassword" property specifies the login password of a FairCom DB or RTG server. |
string | 1 to 128 bytes |
|
streamingConnections sourceServers .sourcePort |
The "sourcePort" property specifies the ISAM TCP/IP port of a FairCom DB or RTG server. |
int16 |
1 to 65535
|
|
streamingConnections sourceServers .sourceServerName |
The "sourceServerName" property specifies the server name of a FairCom DB or RTG server. It is the name specified by the SERVER_NAME keyword defined in the target server's configuration file, ctsrvr.cfg. The server name used by most FairCom DB and RTG servers is "FAIRCOMS". This property is required if the "sourceHostname" is not defined. |
string | 1 to 255 bytes |
|
streamingConnections sourceServers .sourceUsername |
The "sourceUsername" property specifies the name of a FairCom DB or RTG server. |
string | 1 to 64 bytes |
|
streamingConnections sourceServers .tls |
The
|
object |
|
|
streamingConnections sourceServers tls .allowedCipherSuites |
The
|
string | No limits |
|
streamingConnections sourceServers tls .caCertificateFilename |
The
"tls": {
"enabled": true,
"caCertificateFilename": "ca.crt",
"allowedCipherSuites": "",
"clientCertificateEnabled": true,
"clientCertificateFilename": "admin_client.crt",
"clientPrivateKeyFilename": "admin_client.key"
} |
string | No limits |
|
streamingConnections sourceServers tls .clientCertificateEnabled |
The "clientCertificateEnabled" property enables client certificate authentication when set to true. The target FairCom DB or RTG server must be configured to accept client certificates. |
boolean |
|
|
streamingConnections sourceServers tls .clientCertificateFilename |
string | The file name of a client certificate. | |
|
streamingConnections sourceServers tls .clientPrivateKeyFilename |
string | The file name of a client certificate private key file. | |
|
streamingConnections sourceServers tls .enabled |
The "tls": {
"enabled": true,
"caCertificateFilename": "ca.crt",
"allowedCipherSuites": "",
"clientCertificateEnabled": true,
"clientCertificateFilename": "admin_client.crt",
"clientPrivateKeyFilename": "admin_client.key"
} |
Boolean |
|
|
streamingConnections .streamingConnectionName |
The "streamingConnectionName" property specifies a unique, user-defined name for a streaming connection. The API uses it to identify streaming connections and to connect a data change stream to a FairCom DB or RTG server. |
string | 1 to 64 characters |
|
streamingConnections .streamParallelism |
The "streamParallelism" property specifies the number of parallel streams the server uses to deliver data changes to the FairCom MQ server. You typically use a number that does not exceed the number of cores on the FairCom MQ server. |
integer |
1 to 65535
|