From b59cb8e8fe1d915449ee41af3119715acffe20d5 Mon Sep 17 00:00:00 2001 From: gitea_admin Date: Mon, 12 Oct 2026 02:39:04 +0000 Subject: [PATCH] Add component definition: drill --- component.json | 227 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 227 insertions(+) create mode 100644 component.json diff --git a/component.json b/component.json new file mode 100644 index 0000000..e0b840f --- /dev/null +++ b/component.json @@ -0,0 +1,227 @@ +{ + "component": { + "kind": "component", + "name": "drill", + "title": "Drill", + "description": "Perform queries against an Apache Drill cluster.", + "deprecated": false, + "firstVersion": "1.1.0", + "label": "database,bigdata", + "javaType": "org.apache.camel.component.drill.DrillComponent", + "supportLevel": "Preview", + "metadata": { + "quarkusVersion": "3.36.0", + "camelArtifact": "org.apache.camel:camel-drill", + "camelVersion": "4.20.0" + }, + "groupId": "org.apache.camel.quarkus", + "artifactId": "camel-quarkus-drill", + "version": "4.20.0 (CEQ 3.36.0)", + "scheme": "drill", + "extendsScheme": "", + "syntax": "drill:host", + "async": false, + "api": false, + "consumerOnly": false, + "producerOnly": true, + "lenientProperties": false, + "browsable": false, + "remote": true + }, + "componentProperties": { + "lazyStartProducer": { + "index": 0, + "kind": "property", + "displayName": "Lazy Start Producer", + "group": "producer", + "label": "producer", + "required": false, + "type": "boolean", + "javaType": "boolean", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": false, + "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing." + }, + "autowiredEnabled": { + "index": 1, + "kind": "property", + "displayName": "Autowired Enabled", + "group": "advanced", + "label": "advanced", + "required": false, + "type": "boolean", + "javaType": "boolean", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": true, + "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc." + } + }, + "headers": { + "CamelDrillQuery": { + "index": 0, + "kind": "header", + "displayName": "", + "group": "producer", + "label": "", + "required": false, + "javaType": "String", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "The drill query", + "constantName": "org.apache.camel.component.drill.DrillConstants#DRILL_QUERY" + } + }, + "properties": { + "host": { + "index": 0, + "kind": "path", + "displayName": "Host", + "group": "producer", + "label": "", + "required": true, + "type": "string", + "javaType": "java.lang.String", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "Host name or IP address" + }, + "clusterId": { + "index": 1, + "kind": "parameter", + "displayName": "Cluster Id", + "group": "producer", + "label": "", + "required": false, + "type": "string", + "javaType": "java.lang.String", + "deprecated": false, + "autowired": false, + "secret": false, + "description": "Cluster ID https://drill.apache.org/docs/using-the-jdbc-driver/#determining-the-cluster-id" + }, + "directory": { + "index": 2, + "kind": "parameter", + "displayName": "Directory", + "group": "producer", + "label": "", + "required": false, + "type": "string", + "javaType": "java.lang.String", + "deprecated": false, + "autowired": false, + "secret": false, + "description": "Drill directory" + }, + "mode": { + "index": 3, + "kind": "parameter", + "displayName": "Mode", + "group": "producer", + "label": "", + "required": false, + "type": "enum", + "javaType": "org.apache.camel.component.drill.DrillConnectionMode", + "enum": [ + "ZK", + "DRILLBIT" + ], + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": "ZK", + "description": "Connection mode: zk: Zookeeper drillbit: Drillbit direct connection https://drill.apache.org/docs/using-the-jdbc-driver/" + }, + "port": { + "index": 4, + "kind": "parameter", + "displayName": "Port", + "group": "producer", + "label": "", + "required": false, + "type": "integer", + "javaType": "java.lang.Integer", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "defaultValue": 2181, + "description": "Port number" + }, + "lazyStartProducer": { + "index": 5, + "kind": "parameter", + "displayName": "Lazy Start Producer", + "group": "producer (advanced)", + "label": "producer,advanced", + "required": false, + "type": "boolean", + "javaType": "boolean", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": false, + "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing." + } + }, + "propertiesSchema": { + "properties": { + "host": { + "title": "Host", + "description": "Host name or IP address", + "type": "string", + "$comment": "group:producer" + }, + "clusterId": { + "title": "Cluster Id", + "description": "Cluster ID https://drill.apache.org/docs/using-the-jdbc-driver/#determining-the-cluster-id", + "type": "string", + "$comment": "group:producer" + }, + "directory": { + "title": "Directory", + "description": "Drill directory", + "type": "string", + "$comment": "group:producer" + }, + "mode": { + "title": "Mode", + "description": "Connection mode: zk: Zookeeper drillbit: Drillbit direct connection https://drill.apache.org/docs/using-the-jdbc-driver/", + "type": "string", + "enum": [ + "ZK", + "DRILLBIT" + ], + "$comment": "group:producer", + "default": "ZK" + }, + "port": { + "title": "Port", + "description": "Port number", + "type": "integer", + "$comment": "group:producer", + "default": 2181 + }, + "lazyStartProducer": { + "title": "Lazy Start Producer", + "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing.", + "type": "boolean", + "$comment": "group:producer (advanced)", + "default": false + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "host" + ] + } +} \ No newline at end of file