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

post

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.

Responses
201
Successful registered transport
post
POST /joule/management/transports/register HTTP/1.1
Host: 
Accept: */*

No content

List transports by type

get
Query parameters
typestringRequired

Transport type (i.e. SINK, SOURCE, REFERENCE_DATA)

Responses
404
Failed to find transport using provided name.
get
GET /joule/management/transports/list?type=text HTTP/1.1
Host: 
Accept: */*

No content

Get transport specification

get
Query parameters
namestringRequired

Use case DSL configuration.

typestringRequired

Transport type (i.e. SINK, SOURCE, REFERENCE_DATA)

Responses
200
Provide the transport specification
get
GET /joule/management/transports/detail?name=text&type=text HTTP/1.1
Host: 
Accept: */*

No content

Unregister transport

delete

Unregister transport that either consumes or publishes data.If the unregistion process has succeed a response code of 201 is returned.

Query parameters
namestringRequired

Transport logical name.

typestringRequired

Transport type (i.e. SINK, SOURCE, REFERENCE_DATA)

Responses
201
Successful transport unregister
delete
DELETE /joule/management/transports/unregister?name=text&type=text HTTP/1.1
Host: 
Accept: */*

No content

Last updated

Was this helpful?