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.
Successful registered transport
Internal Joule error. Check log files.
Failed to register transport due to malformed DSL. Check Joule service log files.
Transport has already been registered
Missing transport specification
POST /joule/management/transports/register HTTP/1.1
Host:
Accept: */*
No content
Transport type (i.e. SINK, SOURCE, REFERENCE_DATA)
Failed to find transport using provided name.
Internal Joule error. Check log files.
Invalid transport type. Valid types are SINK, SOURCE and 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)
Provide the transport specification
Failed to find transport using provided name.
Invalid transport type. Valid types are SINK, SOURCE and 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)
Successful transport unregister
Internal Joule error. Check log files.
Failed to unregister transport using provided name.
Invalid transport type. Valid types are SINK, SOURCE and REFERENCE_DATA.
Unknown transport for provided name.
DELETE /joule/management/transports/unregister?name=text&type=text HTTP/1.1
Host:
Accept: */*
No content
Last updated
Was this helpful?