Google Pub/Sub extension
Plugin ID
The plugin ID for Apache ActiveMQ is fr.cantor.c4i.PubSubDelivery.
Properties
Environment independent parameters (set in extension configuration or properties file)
| Property key | Description | Mandatory | Default value |
|---|---|---|---|
| configAssetId | The ID of the asset containing the YAML mappings | Yes | |
| connection | The name of the connection in the c4i.properties file | Yes | |
| prefixTopicNamesWithContextId | true or false to indicate whether or not to prefix the topic names with the context IDs | Yes | |
| outputFormat | JSON, or XML | Yes | |
| projectId | The GCP project ID | No | The project_id field from the JSON authentication file |
| delayThresholdMs | Delay threshold for batching (in ms) | No | |
| requestByteThreshold | Request byte threshold for batching | No | |
| elementCountThreshold | Element count threshold for batching | No | |
| autoCreateTopics | Automatically create the topics if they don't exist. Otherwise, they must be created manually | No | false |
| cacheConfig | The ID of the asset containing the JCS configuration | No | |
| displayPerfStat | true to display performance statistics (see Performance statistics dedicated page) | No | false |
Environment dependent parameters
In order to make the Pub/Sub connector work, you need to connect to the Stibo SFTP for your STEP environment and create the folder /shared/customer-config/c4i/credentials/gcp (for STEP usage) or create the folder ~/.c4i/credentials/gcp on your file system (for Standalone usage).
Then you can store your GCP service account JSON file myConnection.json and reference it in the extension configuration parameter "Connection name" or through the connection property for Composite or Standalone.
Configuration Example
extensions.[0].pluginId=fr.cantor.c4i.PubSubDelivery
extensions.[0].configAssetId=C4I-Configuration
extensions.[0].prefixTopicNamesWithContextId=true
extensions.[0].connection=myGcpConnection
extensions.[0].outputFormat=JSON
pluginId=fr.cantor.c4i.PubSubDelivery
configAssetId=/Path/to/C4I/Configuration.yml
licenseAssetId=/Path/to/C4I/License.cat
prefixTopicNamesWithContextId=true
connection=myGcpConnection
outputFormat=JSON