Data connectors
Register, list, detail and unregister data sources and sinks
Overview
Transports provide the integration links required to consume and publish computed stream results. Joule Management API provides the ability to register, list, detail and undeploy transports.
For further information on the structure of the content payload refer to this documentation.
Example data connector content
{
"kafkaConsumer": {
"name": "nasdaq_quotes_stream",
"cluster address": "joule-gs-redpanda-0:9092",
"consumerGroupId": "nasdaq",
"topics": [
"quotes"
],
"deserializer": {
"parser": "com.fractalworks.examples.banking.data.QuoteToStreamEventParser",
"key deserializer": "org.apache.kafka.common.serialization.IntegerDeserializer",
"value deserializer": "com.fractalworks.streams.transport.kafka.serializers.object.ObjectDeserializer"
},
"properties": {
"partition.assignment.strategy": "org.apache.kafka.clients.consumer.StickyAssignor",
"max.poll.records" : "7000",
"fetch.max.bytes" : "10485760"
}
}
}
Register transport that either consumes or publishes data. A json definition is provided within the body as a raw data typeIf the registration process has succeed a response code of 201 is returned otherwise 500.
POST /joule/management/transports/register HTTP/1.1
Host:
Accept: */*
No content
Transport type (i.e. SINK, SOURCE, REFERENCE_DATA)
GET /joule/management/transports/list?type=text HTTP/1.1
Host:
Accept: */*
No content
Use case DSL configuration.
Transport type (i.e. SINK, SOURCE, REFERENCE_DATA)
GET /joule/management/transports/detail?name=text&type=text HTTP/1.1
Host:
Accept: */*
No content
Unregister transport that either consumes or publishes data.If the unregistion process has succeed a response code of 201 is returned.
Transport logical name.
Transport type (i.e. SINK, SOURCE, REFERENCE_DATA)
DELETE /joule/management/transports/unregister?name=text&type=text HTTP/1.1
Host:
Accept: */*
No content
Last updated
Was this helpful?