Contextual data
Register, list, detail and unregister contextual data sources
Overview
Contextual data is often used within stream processing to drive complex logic paths. Joule Management API provides the ability to register, list, detail and undeploy contextual data.
For further information on the structure of the content payload refer to this documentation.
Example contextual data content
{
"contextual data": {
"name": "banking market data",
"data sources": [
{
"geode stores": {
"name": "us markets",
"connection": {
"locator address": "192.168.86.39",
"locator port": 41111
},
"stores": {
"nasdaqIndexCompanies": {
"region": "nasdaq-companies",
"keyClass": "java.lang.String",
"gii": true
},
"holidays": {
"region": "us-holidays",
"keyClass": "java.lang.Integer"
}
}
}
}
]
}
}
Deploy a single contextual data store. A json specification is provided within the body as a raw data type.If the registration process has succeed a response code of 201 is returned otherwise 500.
Successful deployed data store
Failed to deploy data store. Check Joule service log files.
Failed to deploy data store due to malformed DSL. Check Joule service log files.
Data store has already been deployed
Missing data store specification
POST /joule/management/contextualdata/deploy HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 70
{
"name": "text",
"enabled": true,
"stores": {
"ANY_ADDITIONAL_PROPERTY": {}
}
}
No content
Deploy multiple contextual data stores. A json specification is provided within the body as a raw data type.If the registration process has succeed a response code of 201 is returned otherwise 500.
Successful deployed data stores
Failed to deploy data store. Check Joule service log files.
Failed to deploy data store due to malformed DSL. Check Joule service log files.
Data store has already been deployed
Missing data store specification
POST /joule/management/contextualdata/deploy/multi HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 129
{
"dataStoreSpecifications": [
{
"name": "text",
"enabled": true,
"stores": {
"ANY_ADDITIONAL_PROPERTY": {}
}
}
],
"name": "text",
"enabled": true
}
No content
Data store logical name.
Successful transport unregister
Internal Joule error. Check log files.
Failed to unregister transport using provided name.
Invalid transport type. Valid type is CONTEXTUAL_DATA.
Unknown data store for provided name.
DELETE /joule/management/contextualdata/undeploy HTTP/1.1
Host:
Accept: */*
No content
Last updated
Was this helpful?