This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 13f2f6a95689afeae39a5a0838c8870cd74def7e Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Fri Feb 14 15:25:46 2020 +0100 CAMEL-14565: Add docs for missing option --- .../docker/DockerComponentConfigurer.java | 2 +- .../component/docker/DockerEndpointConfigurer.java | 1 + .../org/apache/camel/component/docker/docker.json | 5 ++-- .../src/main/docs/docker-component.adoc | 5 ++-- .../camel/component/docker/DockerComponent.java | 5 ++-- .../component/docker/DockerConfiguration.java | 2 +- .../etcd/EtcdKeysComponentConfigurer.java | 2 +- .../component/etcd/EtcdKeysEndpointConfigurer.java | 6 ++--- .../etcd/EtcdStatsComponentConfigurer.java | 2 +- .../etcd/EtcdStatsEndpointConfigurer.java | 2 +- .../etcd/EtcdWatchComponentConfigurer.java | 2 +- .../etcd/EtcdWatchEndpointConfigurer.java | 8 +++--- .../org/apache/camel/component/etcd/etcd-keys.json | 8 +++--- .../apache/camel/component/etcd/etcd-stats.json | 6 ++--- .../apache/camel/component/etcd/etcd-watch.json | 10 ++++---- .../src/main/docs/etcd-keys-component.adoc | 6 ++--- .../src/main/docs/etcd-stats-component.adoc | 4 +-- .../src/main/docs/etcd-watch-component.adoc | 8 +++--- .../component/etcd/AbstractEtcdComponent.java | 4 +-- .../camel/component/etcd/AbstractEtcdEndpoint.java | 2 +- .../camel/component/etcd/EtcdConfiguration.java | 14 +++++----- .../apache/camel/component/etcd/EtcdConstants.java | 1 - .../dsl/DockerComponentBuilderFactory.java | 30 +++++++++++----------- .../dsl/EtcdKeysComponentBuilderFactory.java | 28 ++++++++++---------- .../dsl/EtcdStatsComponentBuilderFactory.java | 28 ++++++++++---------- .../dsl/EtcdWatchComponentBuilderFactory.java | 28 ++++++++++---------- 26 files changed, 110 insertions(+), 109 deletions(-) diff --git a/components/camel-docker/src/generated/java/org/apache/camel/component/docker/DockerComponentConfigurer.java b/components/camel-docker/src/generated/java/org/apache/camel/component/docker/DockerComponentConfigurer.java index f6d05e3..42a7ae1 100644 --- a/components/camel-docker/src/generated/java/org/apache/camel/component/docker/DockerComponentConfigurer.java +++ b/components/camel-docker/src/generated/java/org/apache/camel/component/docker/DockerComponentConfigurer.java @@ -15,13 +15,13 @@ public class DockerComponentConfigurer extends PropertyConfigurerSupport impleme public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) { DockerComponent target = (DockerComponent) obj; switch (ignoreCase ? name.toLowerCase() : name) { + case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.docker.DockerConfiguration.class, value)); return true; case "bridgeerrorhandler": case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true; case "lazystartproducer": case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true; case "basicpropertybinding": case "basicPropertyBinding": target.setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true; - case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.docker.DockerConfiguration.class, value)); return true; default: return false; } } diff --git a/components/camel-docker/src/generated/java/org/apache/camel/component/docker/DockerEndpointConfigurer.java b/components/camel-docker/src/generated/java/org/apache/camel/component/docker/DockerEndpointConfigurer.java index a583923..a9ff910 100644 --- a/components/camel-docker/src/generated/java/org/apache/camel/component/docker/DockerEndpointConfigurer.java +++ b/components/camel-docker/src/generated/java/org/apache/camel/component/docker/DockerEndpointConfigurer.java @@ -40,6 +40,7 @@ public class DockerEndpointConfigurer extends PropertyConfigurerSupport implemen case "maxPerRouteConnections": target.getConfiguration().setMaxPerRouteConnections(property(camelContext, java.lang.Integer.class, value)); return true; case "maxtotalconnections": case "maxTotalConnections": target.getConfiguration().setMaxTotalConnections(property(camelContext, java.lang.Integer.class, value)); return true; + case "parameters": target.getConfiguration().setParameters(property(camelContext, java.util.Map.class, value)); return true; case "serveraddress": case "serverAddress": target.getConfiguration().setServerAddress(property(camelContext, java.lang.String.class, value)); return true; case "socket": target.getConfiguration().setSocket(property(camelContext, boolean.class, value)); return true; diff --git a/components/camel-docker/src/generated/resources/org/apache/camel/component/docker/docker.json b/components/camel-docker/src/generated/resources/org/apache/camel/component/docker/docker.json index 0557951..7d04fce 100644 --- a/components/camel-docker/src/generated/resources/org/apache/camel/component/docker/docker.json +++ b/components/camel-docker/src/generated/resources/org/apache/camel/component/docker/docker.json @@ -19,10 +19,10 @@ "version": "3.1.0-SNAPSHOT" }, "componentProperties": { + "configuration": { "kind": "property", "displayName": "Configuration", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.docker.DockerConfiguration", "deprecated": false, "secret": false, "description": "To use the shared docker configuration" }, "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by [...] "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 r [...] - "basicPropertyBinding": { "kind": "property", "displayName": "Basic Property Binding", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities" }, - "configuration": { "kind": "property", "displayName": "Configuration", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.docker.DockerConfiguration", "deprecated": false, "secret": false, "description": "To use the shared docker configuration" } + "basicPropertyBinding": { "kind": "property", "displayName": "Basic Property Binding", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities" } }, "properties": { "operation": { "kind": "path", "displayName": "Operation", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.docker.DockerOperation", "enum": [ "events", "stats", "auth", "info", "ping", "version", "imagebuild", "imagecreate", "imageinspect", "imagelist", "imagepull", "imagepushimageremove", "imagesearch", "imagetag", "containerattach", "containercommit", "containercopyfile", "containercreate", "containerdiffinspectcontainer", [...] @@ -40,6 +40,7 @@ "loggingFilter": { "kind": "parameter", "displayName": "Logging Filter", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.docker.DockerConfiguration", "configurationField": "configuration", "description": "Whether to use logging filter" }, "maxPerRouteConnections": { "kind": "parameter", "displayName": "Max Per Route Connections", "group": "advanced", "label": "advanced", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "secret": false, "defaultValue": "100", "configurationClass": "org.apache.camel.component.docker.DockerConfiguration", "configurationField": "configuration", "description": "Maximum route connections" }, "maxTotalConnections": { "kind": "parameter", "displayName": "Max Total Connections", "group": "advanced", "label": "advanced", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "secret": false, "defaultValue": "100", "configurationClass": "org.apache.camel.component.docker.DockerConfiguration", "configurationField": "configuration", "description": "Maximum total connections" }, + "parameters": { "kind": "parameter", "displayName": "Parameters", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.util.Map<java.lang.String, java.lang.Object>", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.docker.DockerConfiguration", "configurationField": "configuration", "description": "Additional configuration parameters as key\/value pairs" }, "serverAddress": { "kind": "parameter", "displayName": "Server Address", "group": "advanced", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "https:\/\/index.docker.io\/v1\/", "configurationClass": "org.apache.camel.component.docker.DockerConfiguration", "configurationField": "configuration", "description": "Server address for docker registry." }, "socket": { "kind": "parameter", "displayName": "Socket", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "true", "configurationClass": "org.apache.camel.component.docker.DockerConfiguration", "configurationField": "configuration", "description": "Socket connection mode" }, "synchronous": { "kind": "parameter", "displayName": "Synchronous", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "false", "description": "Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported)." }, diff --git a/components/camel-docker/src/main/docs/docker-component.adoc b/components/camel-docker/src/main/docs/docker-component.adoc index feb3b54..5d2f26f 100644 --- a/components/camel-docker/src/main/docs/docker-component.adoc +++ b/components/camel-docker/src/main/docs/docker-component.adoc @@ -34,10 +34,10 @@ The Docker component supports 4 options, which are listed below. [width="100%",cols="2,5,^1,2",options="header"] |=== | Name | Description | Default | Type +| *configuration* (common) | To use the shared docker configuration | | DockerConfiguration | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean | *lazyStartProducer* (producer) | 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 [...] | *basicPropertyBinding* (advanced) | Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean -| *configuration* (advanced) | To use the shared docker configuration | | DockerConfiguration |=== // component options: END @@ -61,7 +61,7 @@ with the following path and query parameters: |=== -=== Query Parameters (22 parameters): +=== Query Parameters (23 parameters): [width="100%",cols="2,5,^1,2",options="header"] @@ -81,6 +81,7 @@ with the following path and query parameters: | *loggingFilter* (advanced) | Whether to use logging filter | false | boolean | *maxPerRouteConnections* (advanced) | Maximum route connections | 100 | Integer | *maxTotalConnections* (advanced) | Maximum total connections | 100 | Integer +| *parameters* (advanced) | Additional configuration parameters as key/value pairs | | Map | *serverAddress* (advanced) | Server address for docker registry. | https://index.docker.io/v1/ | String | *socket* (advanced) | Socket connection mode | true | boolean | *synchronous* (advanced) | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). | false | boolean diff --git a/components/camel-docker/src/main/java/org/apache/camel/component/docker/DockerComponent.java b/components/camel-docker/src/main/java/org/apache/camel/component/docker/DockerComponent.java index 6881d28..fdb3b32 100644 --- a/components/camel-docker/src/main/java/org/apache/camel/component/docker/DockerComponent.java +++ b/components/camel-docker/src/main/java/org/apache/camel/component/docker/DockerComponent.java @@ -32,10 +32,11 @@ import org.apache.camel.support.DefaultComponent; @Component("docker") public class DockerComponent extends DefaultComponent { - @Metadata(label = "advanced") - private DockerConfiguration configuration = new DockerConfiguration(); private Map<DockerClientProfile, DockerClient> clients = new HashMap<>(); + @Metadata + private DockerConfiguration configuration = new DockerConfiguration(); + public DockerComponent() { } diff --git a/components/camel-docker/src/main/java/org/apache/camel/component/docker/DockerConfiguration.java b/components/camel-docker/src/main/java/org/apache/camel/component/docker/DockerConfiguration.java index b5ebf30..9abb7ad 100644 --- a/components/camel-docker/src/main/java/org/apache/camel/component/docker/DockerConfiguration.java +++ b/components/camel-docker/src/main/java/org/apache/camel/component/docker/DockerConfiguration.java @@ -65,7 +65,7 @@ public class DockerConfiguration implements Cloneable { private boolean socket; @UriParam(label = "advanced", defaultValue = "com.github.dockerjava.netty.NettyDockerCmdExecFactory") private String cmdExecFactory = "com.github.dockerjava.netty.NettyDockerCmdExecFactory"; - + @UriParam(label = "advanced") private Map<String, Object> parameters = new HashMap<>(); public String getHost() { diff --git a/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdKeysComponentConfigurer.java b/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdKeysComponentConfigurer.java index 488b719..465703e 100644 --- a/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdKeysComponentConfigurer.java +++ b/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdKeysComponentConfigurer.java @@ -15,6 +15,7 @@ public class EtcdKeysComponentConfigurer extends PropertyConfigurerSupport imple public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) { EtcdKeysComponent target = (EtcdKeysComponent) obj; switch (ignoreCase ? name.toLowerCase() : name) { + case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.etcd.EtcdConfiguration.class, value)); return true; case "lazystartproducer": case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true; case "password": target.setPassword(property(camelContext, java.lang.String.class, value)); return true; @@ -25,7 +26,6 @@ public class EtcdKeysComponentConfigurer extends PropertyConfigurerSupport imple case "userName": target.setUserName(property(camelContext, java.lang.String.class, value)); return true; case "basicpropertybinding": case "basicPropertyBinding": target.setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true; - case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.etcd.EtcdConfiguration.class, value)); return true; case "useglobalsslcontextparameters": case "useGlobalSslContextParameters": target.setUseGlobalSslContextParameters(property(camelContext, boolean.class, value)); return true; default: return false; diff --git a/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdKeysEndpointConfigurer.java b/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdKeysEndpointConfigurer.java index 054d272..8543429 100644 --- a/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdKeysEndpointConfigurer.java +++ b/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdKeysEndpointConfigurer.java @@ -15,15 +15,15 @@ public class EtcdKeysEndpointConfigurer extends PropertyConfigurerSupport implem public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) { EtcdKeysEndpoint target = (EtcdKeysEndpoint) obj; switch (ignoreCase ? name.toLowerCase() : name) { - case "lazystartproducer": - case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true; case "recursive": target.getConfiguration().setRecursive(property(camelContext, boolean.class, value)); return true; case "servicepath": case "servicePath": target.getConfiguration().setServicePath(property(camelContext, java.lang.String.class, value)); return true; case "timeout": target.getConfiguration().setTimeout(property(camelContext, java.lang.Long.class, value)); return true; + case "uris": target.getConfiguration().setUris(property(camelContext, java.lang.String.class, value)); return true; + case "lazystartproducer": + case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true; case "timetolive": case "timeToLive": target.getConfiguration().setTimeToLive(property(camelContext, java.lang.Integer.class, value)); return true; - case "uris": target.getConfiguration().setUris(property(camelContext, java.lang.String.class, value)); return true; case "basicpropertybinding": case "basicPropertyBinding": target.setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true; case "synchronous": target.setSynchronous(property(camelContext, boolean.class, value)); return true; diff --git a/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdStatsComponentConfigurer.java b/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdStatsComponentConfigurer.java index 8dbe18d..9c1e367 100644 --- a/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdStatsComponentConfigurer.java +++ b/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdStatsComponentConfigurer.java @@ -15,6 +15,7 @@ public class EtcdStatsComponentConfigurer extends PropertyConfigurerSupport impl public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) { EtcdStatsComponent target = (EtcdStatsComponent) obj; switch (ignoreCase ? name.toLowerCase() : name) { + case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.etcd.EtcdConfiguration.class, value)); return true; case "password": target.setPassword(property(camelContext, java.lang.String.class, value)); return true; case "sslcontextparameters": case "sslContextParameters": target.setSslContextParameters(property(camelContext, org.apache.camel.support.jsse.SSLContextParameters.class, value)); return true; @@ -27,7 +28,6 @@ public class EtcdStatsComponentConfigurer extends PropertyConfigurerSupport impl case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true; case "basicpropertybinding": case "basicPropertyBinding": target.setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true; - case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.etcd.EtcdConfiguration.class, value)); return true; case "useglobalsslcontextparameters": case "useGlobalSslContextParameters": target.setUseGlobalSslContextParameters(property(camelContext, boolean.class, value)); return true; default: return false; diff --git a/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdStatsEndpointConfigurer.java b/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdStatsEndpointConfigurer.java index 21e7cd9..3e3f74d 100644 --- a/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdStatsEndpointConfigurer.java +++ b/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdStatsEndpointConfigurer.java @@ -31,7 +31,7 @@ public class EtcdStatsEndpointConfigurer extends PropertyConfigurerSupport imple case "exchangepattern": case "exchangePattern": target.setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true; case "fromindex": - case "fromIndex": target.getConfiguration().setFromIndex(property(camelContext, java.lang.Long.class, value)); return true; + case "fromIndex": target.getConfiguration().setFromIndex(property(camelContext, long.class, value)); return true; case "pollstrategy": case "pollStrategy": target.setPollStrategy(property(camelContext, org.apache.camel.spi.PollingConsumerPollStrategy.class, value)); return true; case "lazystartproducer": diff --git a/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdWatchComponentConfigurer.java b/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdWatchComponentConfigurer.java index 90cb9b6..ebdce36 100644 --- a/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdWatchComponentConfigurer.java +++ b/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdWatchComponentConfigurer.java @@ -17,6 +17,7 @@ public class EtcdWatchComponentConfigurer extends PropertyConfigurerSupport impl switch (ignoreCase ? name.toLowerCase() : name) { case "bridgeerrorhandler": case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true; + case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.etcd.EtcdConfiguration.class, value)); return true; case "password": target.setPassword(property(camelContext, java.lang.String.class, value)); return true; case "sslcontextparameters": case "sslContextParameters": target.setSslContextParameters(property(camelContext, org.apache.camel.support.jsse.SSLContextParameters.class, value)); return true; @@ -25,7 +26,6 @@ public class EtcdWatchComponentConfigurer extends PropertyConfigurerSupport impl case "userName": target.setUserName(property(camelContext, java.lang.String.class, value)); return true; case "basicpropertybinding": case "basicPropertyBinding": target.setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true; - case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.etcd.EtcdConfiguration.class, value)); return true; case "useglobalsslcontextparameters": case "useGlobalSslContextParameters": target.setUseGlobalSslContextParameters(property(camelContext, boolean.class, value)); return true; default: return false; diff --git a/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdWatchEndpointConfigurer.java b/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdWatchEndpointConfigurer.java index c01937f..d80b617 100644 --- a/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdWatchEndpointConfigurer.java +++ b/components/camel-etcd/src/generated/java/org/apache/camel/component/etcd/EtcdWatchEndpointConfigurer.java @@ -18,18 +18,18 @@ public class EtcdWatchEndpointConfigurer extends PropertyConfigurerSupport imple case "bridgeerrorhandler": case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true; case "recursive": target.getConfiguration().setRecursive(property(camelContext, boolean.class, value)); return true; - case "sendemptyexchangeontimeout": - case "sendEmptyExchangeOnTimeout": target.getConfiguration().setSendEmptyExchangeOnTimeout(property(camelContext, boolean.class, value)); return true; case "servicepath": case "servicePath": target.getConfiguration().setServicePath(property(camelContext, java.lang.String.class, value)); return true; - case "timeout": target.getConfiguration().setTimeout(property(camelContext, java.lang.Long.class, value)); return true; case "uris": target.getConfiguration().setUris(property(camelContext, java.lang.String.class, value)); return true; + case "sendemptyexchangeontimeout": + case "sendEmptyExchangeOnTimeout": target.getConfiguration().setSendEmptyExchangeOnTimeout(property(camelContext, boolean.class, value)); return true; + case "timeout": target.getConfiguration().setTimeout(property(camelContext, java.lang.Long.class, value)); return true; case "exceptionhandler": case "exceptionHandler": target.setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true; case "exchangepattern": case "exchangePattern": target.setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true; case "fromindex": - case "fromIndex": target.getConfiguration().setFromIndex(property(camelContext, java.lang.Long.class, value)); return true; + case "fromIndex": target.getConfiguration().setFromIndex(property(camelContext, long.class, value)); return true; case "basicpropertybinding": case "basicPropertyBinding": target.setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true; case "synchronous": target.setSynchronous(property(camelContext, boolean.class, value)); return true; diff --git a/components/camel-etcd/src/generated/resources/org/apache/camel/component/etcd/etcd-keys.json b/components/camel-etcd/src/generated/resources/org/apache/camel/component/etcd/etcd-keys.json index 7bd54b0..05a2daa 100644 --- a/components/camel-etcd/src/generated/resources/org/apache/camel/component/etcd/etcd-keys.json +++ b/components/camel-etcd/src/generated/resources/org/apache/camel/component/etcd/etcd-keys.json @@ -19,23 +19,23 @@ "version": "3.1.0-SNAPSHOT" }, "componentProperties": { + "configuration": { "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.etcd.EtcdConfiguration", "deprecated": false, "secret": false, "description": "Sets the common configuration shared among endpoints" }, "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 r [...] "password": { "kind": "property", "displayName": "Password", "group": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The password to use for basic authentication." }, "sslContextParameters": { "kind": "property", "displayName": "Ssl Context Parameters", "group": "producer", "required": false, "type": "object", "javaType": "org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false, "secret": false, "description": "To configure security using SSLContextParameters." }, "uris": { "kind": "property", "displayName": "Uris", "group": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "To set the URIs the client connects." }, "userName": { "kind": "property", "displayName": "User Name", "group": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The user name to use for basic authentication." }, "basicPropertyBinding": { "kind": "property", "displayName": "Basic Property Binding", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities" }, - "configuration": { "kind": "property", "displayName": "Configuration", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.etcd.EtcdConfiguration", "deprecated": false, "secret": false, "description": "Sets the common configuration shared among endpoints" }, "useGlobalSslContextParameters": { "kind": "property", "displayName": "Use Global Ssl Context Parameters", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "false", "description": "Enable usage of global SSL context parameters." } }, "properties": { - "path": { "kind": "path", "displayName": "Path", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The path the endpoint refers to" }, - "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 [...] + "path": { "kind": "path", "displayName": "Path", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The path the endpoint refers to" }, "recursive": { "kind": "parameter", "displayName": "Recursive", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "To apply an action recursively." }, "servicePath": { "kind": "parameter", "displayName": "Service Path", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "\/services\/", "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "The path to look for for service discovery" }, "timeout": { "kind": "parameter", "displayName": "Timeout", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "java.lang.Long", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "To set the maximum time an action could take to complete." }, + "uris": { "kind": "parameter", "displayName": "Uris", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "http:\/\/localhost:2379,http:\/\/localhost:4001", "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "To set the URIs the client connects." }, + "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 [...] "timeToLive": { "kind": "parameter", "displayName": "Time To Live", "group": "producer", "label": "producer", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "To set the lifespan of a key in milliseconds." }, - "uris": { "kind": "parameter", "displayName": "Uris", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "http:\/\/localhost:2379,http:\/\/localhost:4001", "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "To set the URIs the client connects." }, "basicPropertyBinding": { "kind": "parameter", "displayName": "Basic Property Binding", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities" }, "synchronous": { "kind": "parameter", "displayName": "Synchronous", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "false", "description": "Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported)." }, "password": { "kind": "parameter", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": true, "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "The password to use for basic authentication." }, diff --git a/components/camel-etcd/src/generated/resources/org/apache/camel/component/etcd/etcd-stats.json b/components/camel-etcd/src/generated/resources/org/apache/camel/component/etcd/etcd-stats.json index 086d20b..a50941d 100644 --- a/components/camel-etcd/src/generated/resources/org/apache/camel/component/etcd/etcd-stats.json +++ b/components/camel-etcd/src/generated/resources/org/apache/camel/component/etcd/etcd-stats.json @@ -19,6 +19,7 @@ "version": "3.1.0-SNAPSHOT" }, "componentProperties": { + "configuration": { "kind": "property", "displayName": "Configuration", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.etcd.EtcdConfiguration", "deprecated": false, "secret": false, "description": "Sets the common configuration shared among endpoints" }, "password": { "kind": "property", "displayName": "Password", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The password to use for basic authentication." }, "sslContextParameters": { "kind": "property", "displayName": "Ssl Context Parameters", "group": "common", "required": false, "type": "object", "javaType": "org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false, "secret": false, "description": "To configure security using SSLContextParameters." }, "uris": { "kind": "property", "displayName": "Uris", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "To set the URIs the client connects." }, @@ -26,7 +27,6 @@ "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by [...] "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 r [...] "basicPropertyBinding": { "kind": "property", "displayName": "Basic Property Binding", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities" }, - "configuration": { "kind": "property", "displayName": "Configuration", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.etcd.EtcdConfiguration", "deprecated": false, "secret": false, "description": "Sets the common configuration shared among endpoints" }, "useGlobalSslContextParameters": { "kind": "property", "displayName": "Use Global Ssl Context Parameters", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "false", "description": "Enable usage of global SSL context parameters." } }, "properties": { @@ -34,13 +34,13 @@ "recursive": { "kind": "parameter", "displayName": "Recursive", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "To apply an action recursively." }, "servicePath": { "kind": "parameter", "displayName": "Service Path", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "\/services\/", "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "The path to look for for service discovery" }, "timeout": { "kind": "parameter", "displayName": "Timeout", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "java.lang.Long", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "To set the maximum time an action could take to complete." }, - "uris": { "kind": "parameter", "displayName": "Uris", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "http:\/\/localhost:2379,http:\/\/localhost:4001", "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "To set the URIs the client connects." }, + "uris": { "kind": "parameter", "displayName": "Uris", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "http:\/\/localhost:2379,http:\/\/localhost:4001", "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "To set the URIs the client connects." }, "bridgeErrorHandler": { "kind": "parameter", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled b [...] "sendEmptyExchangeOnTimeout": { "kind": "parameter", "displayName": "Send Empty Exchange On Timeout", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "To send an empty message in case of timeout watching for a key." }, "sendEmptyMessageWhenIdle": { "kind": "parameter", "displayName": "Send Empty Message When Idle", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "If the polling consumer did not poll any files, you can enable this option to send an empty message (no body) instead." }, "exceptionHandler": { "kind": "parameter", "displayName": "Exception Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", "deprecated": false, "secret": false, "description": "To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with [...] "exchangePattern": { "kind": "parameter", "displayName": "Exchange Pattern", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut", "InOptionalOut" ], "deprecated": false, "secret": false, "description": "Sets the exchange pattern when the consumer creates an exchange." }, - "fromIndex": { "kind": "parameter", "displayName": "From Index", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "integer", "javaType": "java.lang.Long", "deprecated": false, "secret": false, "defaultValue": "0", "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "The index to watch from" }, + "fromIndex": { "kind": "parameter", "displayName": "From Index", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "integer", "javaType": "long", "deprecated": false, "secret": false, "defaultValue": "0", "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "The index to watch from" }, "pollStrategy": { "kind": "parameter", "displayName": "Poll Strategy", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.PollingConsumerPollStrategy", "deprecated": false, "secret": false, "description": "A pluggable org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your custom implementation to control error handling usually occurred during the poll operation before an Exchange h [...] "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 [...] "timeToLive": { "kind": "parameter", "displayName": "Time To Live", "group": "producer", "label": "producer", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "To set the lifespan of a key in milliseconds." }, diff --git a/components/camel-etcd/src/generated/resources/org/apache/camel/component/etcd/etcd-watch.json b/components/camel-etcd/src/generated/resources/org/apache/camel/component/etcd/etcd-watch.json index b5d2d0a..d90cf65 100644 --- a/components/camel-etcd/src/generated/resources/org/apache/camel/component/etcd/etcd-watch.json +++ b/components/camel-etcd/src/generated/resources/org/apache/camel/component/etcd/etcd-watch.json @@ -20,25 +20,25 @@ }, "componentProperties": { "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by [...] + "configuration": { "kind": "property", "displayName": "Configuration", "group": "consumer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.etcd.EtcdConfiguration", "deprecated": false, "secret": false, "description": "Sets the common configuration shared among endpoints" }, "password": { "kind": "property", "displayName": "Password", "group": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The password to use for basic authentication." }, "sslContextParameters": { "kind": "property", "displayName": "Ssl Context Parameters", "group": "consumer", "required": false, "type": "object", "javaType": "org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false, "secret": false, "description": "To configure security using SSLContextParameters." }, "uris": { "kind": "property", "displayName": "Uris", "group": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "To set the URIs the client connects." }, "userName": { "kind": "property", "displayName": "User Name", "group": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The user name to use for basic authentication." }, "basicPropertyBinding": { "kind": "property", "displayName": "Basic Property Binding", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities" }, - "configuration": { "kind": "property", "displayName": "Configuration", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.etcd.EtcdConfiguration", "deprecated": false, "secret": false, "description": "Sets the common configuration shared among endpoints" }, "useGlobalSslContextParameters": { "kind": "property", "displayName": "Use Global Ssl Context Parameters", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "false", "description": "Enable usage of global SSL context parameters." } }, "properties": { - "path": { "kind": "path", "displayName": "Path", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The path the endpoint refers to" }, + "path": { "kind": "path", "displayName": "Path", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The path the endpoint refers to" }, "bridgeErrorHandler": { "kind": "parameter", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled b [...] "recursive": { "kind": "parameter", "displayName": "Recursive", "group": "consumer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "To apply an action recursively." }, - "sendEmptyExchangeOnTimeout": { "kind": "parameter", "displayName": "Send Empty Exchange On Timeout", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "To send an empty message in case of timeout watching for a key." }, "servicePath": { "kind": "parameter", "displayName": "Service Path", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "\/services\/", "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "The path to look for for service discovery" }, + "uris": { "kind": "parameter", "displayName": "Uris", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "http:\/\/localhost:2379,http:\/\/localhost:4001", "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "To set the URIs the client connects." }, + "sendEmptyExchangeOnTimeout": { "kind": "parameter", "displayName": "Send Empty Exchange On Timeout", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "To send an empty message in case of timeout watching for a key." }, "timeout": { "kind": "parameter", "displayName": "Timeout", "group": "consumer", "label": "", "required": false, "type": "integer", "javaType": "java.lang.Long", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "To set the maximum time an action could take to complete." }, - "uris": { "kind": "parameter", "displayName": "Uris", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "http:\/\/localhost:2379,http:\/\/localhost:4001", "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "To set the URIs the client connects." }, "exceptionHandler": { "kind": "parameter", "displayName": "Exception Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", "deprecated": false, "secret": false, "description": "To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with [...] "exchangePattern": { "kind": "parameter", "displayName": "Exchange Pattern", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut", "InOptionalOut" ], "deprecated": false, "secret": false, "description": "Sets the exchange pattern when the consumer creates an exchange." }, - "fromIndex": { "kind": "parameter", "displayName": "From Index", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "integer", "javaType": "java.lang.Long", "deprecated": false, "secret": false, "defaultValue": "0", "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "The index to watch from" }, + "fromIndex": { "kind": "parameter", "displayName": "From Index", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "integer", "javaType": "long", "deprecated": false, "secret": false, "defaultValue": "0", "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "The index to watch from" }, "basicPropertyBinding": { "kind": "parameter", "displayName": "Basic Property Binding", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities" }, "synchronous": { "kind": "parameter", "displayName": "Synchronous", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "false", "description": "Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported)." }, "password": { "kind": "parameter", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": true, "configurationClass": "org.apache.camel.component.etcd.EtcdConfiguration", "configurationField": "configuration", "description": "The password to use for basic authentication." }, diff --git a/components/camel-etcd/src/main/docs/etcd-keys-component.adoc b/components/camel-etcd/src/main/docs/etcd-keys-component.adoc index 7371c03..abfa274 100644 --- a/components/camel-etcd/src/main/docs/etcd-keys-component.adoc +++ b/components/camel-etcd/src/main/docs/etcd-keys-component.adoc @@ -29,13 +29,13 @@ The Etcd Keys component supports 8 options, which are listed below. [width="100%",cols="2,5,^1,2",options="header"] |=== | Name | Description | Default | Type +| *configuration* (producer) | Sets the common configuration shared among endpoints | | EtcdConfiguration | *lazyStartProducer* (producer) | 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 [...] | *password* (producer) | The password to use for basic authentication. | | String | *sslContextParameters* (producer) | To configure security using SSLContextParameters. | | SSLContextParameters | *uris* (producer) | To set the URIs the client connects. | | String | *userName* (producer) | The user name to use for basic authentication. | | String | *basicPropertyBinding* (advanced) | Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean -| *configuration* (advanced) | Sets the common configuration shared among endpoints | | EtcdConfiguration | *useGlobalSslContextParameters* (security) | Enable usage of global SSL context parameters. | false | boolean |=== // component options: END @@ -65,12 +65,12 @@ with the following path and query parameters: [width="100%",cols="2,5,^1,2",options="header"] |=== | Name | Description | Default | Type -| *lazyStartProducer* (producer) | 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 [...] | *recursive* (producer) | To apply an action recursively. | false | boolean | *servicePath* (producer) | The path to look for for service discovery | /services/ | String | *timeout* (producer) | To set the maximum time an action could take to complete. | | Long +| *uris* (common) | To set the URIs the client connects. | http://localhost:2379,http://localhost:4001 | String +| *lazyStartProducer* (producer) | 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 [...] | *timeToLive* (producer) | To set the lifespan of a key in milliseconds. | | Integer -| *uris* (producer) | To set the URIs the client connects. | http://localhost:2379,http://localhost:4001 | String | *basicPropertyBinding* (advanced) | Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean | *synchronous* (advanced) | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). | false | boolean | *password* (security) | The password to use for basic authentication. | | String diff --git a/components/camel-etcd/src/main/docs/etcd-stats-component.adoc b/components/camel-etcd/src/main/docs/etcd-stats-component.adoc index f72ee68..e258e3a 100644 --- a/components/camel-etcd/src/main/docs/etcd-stats-component.adoc +++ b/components/camel-etcd/src/main/docs/etcd-stats-component.adoc @@ -29,6 +29,7 @@ The Etcd Stats component supports 9 options, which are listed below. [width="100%",cols="2,5,^1,2",options="header"] |=== | Name | Description | Default | Type +| *configuration* (common) | Sets the common configuration shared among endpoints | | EtcdConfiguration | *password* (common) | The password to use for basic authentication. | | String | *sslContextParameters* (common) | To configure security using SSLContextParameters. | | SSLContextParameters | *uris* (common) | To set the URIs the client connects. | | String @@ -36,7 +37,6 @@ The Etcd Stats component supports 9 options, which are listed below. | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean | *lazyStartProducer* (producer) | 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 [...] | *basicPropertyBinding* (advanced) | Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean -| *configuration* (advanced) | Sets the common configuration shared among endpoints | | EtcdConfiguration | *useGlobalSslContextParameters* (security) | Enable usage of global SSL context parameters. | false | boolean |=== // component options: END @@ -75,7 +75,7 @@ with the following path and query parameters: | *sendEmptyMessageWhenIdle* (consumer) | If the polling consumer did not poll any files, you can enable this option to send an empty message (no body) instead. | false | boolean | *exceptionHandler* (consumer) | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. | | ExceptionHandler | *exchangePattern* (consumer) | Sets the exchange pattern when the consumer creates an exchange. The value can be one of: InOnly, InOut, InOptionalOut | | ExchangePattern -| *fromIndex* (consumer) | The index to watch from | 0 | Long +| *fromIndex* (consumer) | The index to watch from | 0 | long | *pollStrategy* (consumer) | A pluggable org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your custom implementation to control error handling usually occurred during the poll operation before an Exchange have been created and being routed in Camel. | | PollingConsumerPollStrategy | *lazyStartProducer* (producer) | 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 [...] | *timeToLive* (producer) | To set the lifespan of a key in milliseconds. | | Integer diff --git a/components/camel-etcd/src/main/docs/etcd-watch-component.adoc b/components/camel-etcd/src/main/docs/etcd-watch-component.adoc index b9295c1..6a01ce9 100644 --- a/components/camel-etcd/src/main/docs/etcd-watch-component.adoc +++ b/components/camel-etcd/src/main/docs/etcd-watch-component.adoc @@ -30,12 +30,12 @@ The Etcd Watch component supports 8 options, which are listed below. |=== | Name | Description | Default | Type | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean +| *configuration* (consumer) | Sets the common configuration shared among endpoints | | EtcdConfiguration | *password* (consumer) | The password to use for basic authentication. | | String | *sslContextParameters* (consumer) | To configure security using SSLContextParameters. | | SSLContextParameters | *uris* (consumer) | To set the URIs the client connects. | | String | *userName* (consumer) | The user name to use for basic authentication. | | String | *basicPropertyBinding* (advanced) | Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean -| *configuration* (advanced) | Sets the common configuration shared among endpoints | | EtcdConfiguration | *useGlobalSslContextParameters* (security) | Enable usage of global SSL context parameters. | false | boolean |=== // component options: END @@ -67,13 +67,13 @@ with the following path and query parameters: | Name | Description | Default | Type | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean | *recursive* (consumer) | To apply an action recursively. | false | boolean -| *sendEmptyExchangeOnTimeout* (consumer) | To send an empty message in case of timeout watching for a key. | false | boolean | *servicePath* (consumer) | The path to look for for service discovery | /services/ | String +| *uris* (common) | To set the URIs the client connects. | http://localhost:2379,http://localhost:4001 | String +| *sendEmptyExchangeOnTimeout* (consumer) | To send an empty message in case of timeout watching for a key. | false | boolean | *timeout* (consumer) | To set the maximum time an action could take to complete. | | Long -| *uris* (consumer) | To set the URIs the client connects. | http://localhost:2379,http://localhost:4001 | String | *exceptionHandler* (consumer) | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. | | ExceptionHandler | *exchangePattern* (consumer) | Sets the exchange pattern when the consumer creates an exchange. The value can be one of: InOnly, InOut, InOptionalOut | | ExchangePattern -| *fromIndex* (consumer) | The index to watch from | 0 | Long +| *fromIndex* (consumer) | The index to watch from | 0 | long | *basicPropertyBinding* (advanced) | Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean | *synchronous* (advanced) | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). | false | boolean | *password* (security) | The password to use for basic authentication. | | String diff --git a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdComponent.java b/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdComponent.java index 98f8ce8..e722f5d 100644 --- a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdComponent.java +++ b/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdComponent.java @@ -20,16 +20,14 @@ import java.util.Map; import java.util.Optional; import org.apache.camel.CamelContext; -import org.apache.camel.Endpoint; import org.apache.camel.SSLContextParametersAware; import org.apache.camel.spi.Metadata; import org.apache.camel.support.DefaultComponent; import org.apache.camel.support.jsse.SSLContextParameters; -import org.apache.camel.util.StringHelper; public abstract class AbstractEtcdComponent extends DefaultComponent implements SSLContextParametersAware { - @Metadata(label = "advanced") + @Metadata private EtcdConfiguration configuration = new EtcdConfiguration(); @Metadata(label = "security", defaultValue = "false") private boolean useGlobalSslContextParameters; diff --git a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdEndpoint.java b/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdEndpoint.java index 7893488..85af393 100644 --- a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdEndpoint.java +++ b/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/AbstractEtcdEndpoint.java @@ -23,7 +23,7 @@ import org.apache.camel.support.DefaultEndpoint; public abstract class AbstractEtcdEndpoint extends DefaultEndpoint implements EtcdEndpoint { - @UriPath(description = "The path the endpoint refers to") + @UriPath(label = "common",description = "The path the endpoint refers to") private final String path; @UriParam private final EtcdConfiguration configuration; diff --git a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/EtcdConfiguration.java b/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/EtcdConfiguration.java index 9093f6f..fe374e0 100644 --- a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/EtcdConfiguration.java +++ b/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/EtcdConfiguration.java @@ -28,7 +28,7 @@ import org.apache.camel.support.jsse.SSLContextParameters; @UriParams public class EtcdConfiguration implements CamelContextAware, Cloneable { - @UriParam(defaultValue = EtcdConstants.ETCD_DEFAULT_URIS) + @UriParam(label = "common", defaultValue = EtcdConstants.ETCD_DEFAULT_URIS) private String uris = EtcdConstants.ETCD_DEFAULT_URIS; @UriParam(label = "security") private SSLContextParameters sslContextParameters; @@ -36,16 +36,16 @@ public class EtcdConfiguration implements CamelContextAware, Cloneable { private String userName; @UriParam(label = "security", secret = true) private String password; - @UriParam(label = "consumer") + @UriParam(label = "consumer", description = "To send an empty message in case of timeout watching for a key.") private boolean sendEmptyExchangeOnTimeout; @UriParam private boolean recursive; - @UriParam(label = "producer") + @UriParam(label = "producer", description = "To set the lifespan of a key in milliseconds.") private Integer timeToLive; @UriParam private Long timeout; - @UriParam(label = "consumer,advanced", defaultValue = "0") - private Long fromIndex = 0L; + @UriParam(label = "consumer,advanced", defaultValue = "0", description = "The index to watch from") + private long fromIndex; @UriParam(defaultValue = "/services/") private String servicePath = "/services/"; @@ -161,14 +161,14 @@ public class EtcdConfiguration implements CamelContextAware, Cloneable { this.timeout = timeout; } - public Long getFromIndex() { + public long getFromIndex() { return fromIndex; } /** * The index to watch from */ - public void setFromIndex(Long fromIndex) { + public void setFromIndex(long fromIndex) { this.fromIndex = fromIndex; } diff --git a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/EtcdConstants.java b/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/EtcdConstants.java index 1173579..5cccfc1 100644 --- a/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/EtcdConstants.java +++ b/components/camel-etcd/src/main/java/org/apache/camel/component/etcd/EtcdConstants.java @@ -32,7 +32,6 @@ public interface EtcdConstants { String ETCD_KEYS_ACTION_DELETE_DIR = "deleteDir"; String ETCD_KEYS_ACTION_GET = "get"; - String ETCD_LEADER_STATS_PATH = "/leader"; String ETCD_SELF_STATS_PATH = "/self"; String ETCD_STORE_STATS_PATH = "/store"; diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/DockerComponentBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/DockerComponentBuilderFactory.java index 1f46bee..1bae54a 100644 --- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/DockerComponentBuilderFactory.java +++ b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/DockerComponentBuilderFactory.java @@ -49,6 +49,20 @@ public interface DockerComponentBuilderFactory { extends ComponentBuilder<DockerComponent> { /** + * To use the shared docker configuration. + * + * The option is a: + * <code>org.apache.camel.component.docker.DockerConfiguration</code> + * type. + * + * Group: common + */ + default DockerComponentBuilder configuration( + org.apache.camel.component.docker.DockerConfiguration configuration) { + doSetProperty("configuration", configuration); + return this; + } + /** * Allows for bridging the consumer to the Camel routing Error Handler, * which mean any exceptions occurred while the consumer is trying to * pickup incoming messages, or the likes, will now be processed as a @@ -102,20 +116,6 @@ public interface DockerComponentBuilderFactory { doSetProperty("basicPropertyBinding", basicPropertyBinding); return this; } - /** - * To use the shared docker configuration. - * - * The option is a: - * <code>org.apache.camel.component.docker.DockerConfiguration</code> - * type. - * - * Group: advanced - */ - default DockerComponentBuilder configuration( - org.apache.camel.component.docker.DockerConfiguration configuration) { - doSetProperty("configuration", configuration); - return this; - } } class DockerComponentBuilderImpl @@ -133,10 +133,10 @@ public interface DockerComponentBuilderFactory { String name, Object value) { switch (name) { + case "configuration": ((DockerComponent) component).setConfiguration((org.apache.camel.component.docker.DockerConfiguration) value); return true; case "bridgeErrorHandler": ((DockerComponent) component).setBridgeErrorHandler((boolean) value); return true; case "lazyStartProducer": ((DockerComponent) component).setLazyStartProducer((boolean) value); return true; case "basicPropertyBinding": ((DockerComponent) component).setBasicPropertyBinding((boolean) value); return true; - case "configuration": ((DockerComponent) component).setConfiguration((org.apache.camel.component.docker.DockerConfiguration) value); return true; default: return false; } } diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/EtcdKeysComponentBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/EtcdKeysComponentBuilderFactory.java index 70e6e3a..b62f74a 100644 --- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/EtcdKeysComponentBuilderFactory.java +++ b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/EtcdKeysComponentBuilderFactory.java @@ -49,6 +49,19 @@ public interface EtcdKeysComponentBuilderFactory { extends ComponentBuilder<EtcdKeysComponent> { /** + * Sets the common configuration shared among endpoints. + * + * The option is a: + * <code>org.apache.camel.component.etcd.EtcdConfiguration</code> type. + * + * Group: producer + */ + default EtcdKeysComponentBuilder configuration( + org.apache.camel.component.etcd.EtcdConfiguration configuration) { + doSetProperty("configuration", configuration); + return this; + } + /** * 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 @@ -130,19 +143,6 @@ public interface EtcdKeysComponentBuilderFactory { return this; } /** - * Sets the common configuration shared among endpoints. - * - * The option is a: - * <code>org.apache.camel.component.etcd.EtcdConfiguration</code> type. - * - * Group: advanced - */ - default EtcdKeysComponentBuilder configuration( - org.apache.camel.component.etcd.EtcdConfiguration configuration) { - doSetProperty("configuration", configuration); - return this; - } - /** * Enable usage of global SSL context parameters. * * The option is a: <code>boolean</code> type. @@ -172,13 +172,13 @@ public interface EtcdKeysComponentBuilderFactory { String name, Object value) { switch (name) { + case "configuration": ((EtcdKeysComponent) component).setConfiguration((org.apache.camel.component.etcd.EtcdConfiguration) value); return true; case "lazyStartProducer": ((EtcdKeysComponent) component).setLazyStartProducer((boolean) value); return true; case "password": ((EtcdKeysComponent) component).setPassword((java.lang.String) value); return true; case "sslContextParameters": ((EtcdKeysComponent) component).setSslContextParameters((org.apache.camel.support.jsse.SSLContextParameters) value); return true; case "uris": ((EtcdKeysComponent) component).setUris((java.lang.String) value); return true; case "userName": ((EtcdKeysComponent) component).setUserName((java.lang.String) value); return true; case "basicPropertyBinding": ((EtcdKeysComponent) component).setBasicPropertyBinding((boolean) value); return true; - case "configuration": ((EtcdKeysComponent) component).setConfiguration((org.apache.camel.component.etcd.EtcdConfiguration) value); return true; case "useGlobalSslContextParameters": ((EtcdKeysComponent) component).setUseGlobalSslContextParameters((boolean) value); return true; default: return false; } diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/EtcdStatsComponentBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/EtcdStatsComponentBuilderFactory.java index a6af10b..538bc96 100644 --- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/EtcdStatsComponentBuilderFactory.java +++ b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/EtcdStatsComponentBuilderFactory.java @@ -51,6 +51,19 @@ public interface EtcdStatsComponentBuilderFactory { extends ComponentBuilder<EtcdStatsComponent> { /** + * Sets the common configuration shared among endpoints. + * + * The option is a: + * <code>org.apache.camel.component.etcd.EtcdConfiguration</code> type. + * + * Group: common + */ + default EtcdStatsComponentBuilder configuration( + org.apache.camel.component.etcd.EtcdConfiguration configuration) { + doSetProperty("configuration", configuration); + return this; + } + /** * The password to use for basic authentication. * * The option is a: <code>java.lang.String</code> type. @@ -151,19 +164,6 @@ public interface EtcdStatsComponentBuilderFactory { return this; } /** - * Sets the common configuration shared among endpoints. - * - * The option is a: - * <code>org.apache.camel.component.etcd.EtcdConfiguration</code> type. - * - * Group: advanced - */ - default EtcdStatsComponentBuilder configuration( - org.apache.camel.component.etcd.EtcdConfiguration configuration) { - doSetProperty("configuration", configuration); - return this; - } - /** * Enable usage of global SSL context parameters. * * The option is a: <code>boolean</code> type. @@ -193,6 +193,7 @@ public interface EtcdStatsComponentBuilderFactory { String name, Object value) { switch (name) { + case "configuration": ((EtcdStatsComponent) component).setConfiguration((org.apache.camel.component.etcd.EtcdConfiguration) value); return true; case "password": ((EtcdStatsComponent) component).setPassword((java.lang.String) value); return true; case "sslContextParameters": ((EtcdStatsComponent) component).setSslContextParameters((org.apache.camel.support.jsse.SSLContextParameters) value); return true; case "uris": ((EtcdStatsComponent) component).setUris((java.lang.String) value); return true; @@ -200,7 +201,6 @@ public interface EtcdStatsComponentBuilderFactory { case "bridgeErrorHandler": ((EtcdStatsComponent) component).setBridgeErrorHandler((boolean) value); return true; case "lazyStartProducer": ((EtcdStatsComponent) component).setLazyStartProducer((boolean) value); return true; case "basicPropertyBinding": ((EtcdStatsComponent) component).setBasicPropertyBinding((boolean) value); return true; - case "configuration": ((EtcdStatsComponent) component).setConfiguration((org.apache.camel.component.etcd.EtcdConfiguration) value); return true; case "useGlobalSslContextParameters": ((EtcdStatsComponent) component).setUseGlobalSslContextParameters((boolean) value); return true; default: return false; } diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/EtcdWatchComponentBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/EtcdWatchComponentBuilderFactory.java index 0b7f3ec..a3a8ce0 100644 --- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/EtcdWatchComponentBuilderFactory.java +++ b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/EtcdWatchComponentBuilderFactory.java @@ -70,6 +70,19 @@ public interface EtcdWatchComponentBuilderFactory { return this; } /** + * Sets the common configuration shared among endpoints. + * + * The option is a: + * <code>org.apache.camel.component.etcd.EtcdConfiguration</code> type. + * + * Group: consumer + */ + default EtcdWatchComponentBuilder configuration( + org.apache.camel.component.etcd.EtcdConfiguration configuration) { + doSetProperty("configuration", configuration); + return this; + } + /** * The password to use for basic authentication. * * The option is a: <code>java.lang.String</code> type. @@ -130,19 +143,6 @@ public interface EtcdWatchComponentBuilderFactory { return this; } /** - * Sets the common configuration shared among endpoints. - * - * The option is a: - * <code>org.apache.camel.component.etcd.EtcdConfiguration</code> type. - * - * Group: advanced - */ - default EtcdWatchComponentBuilder configuration( - org.apache.camel.component.etcd.EtcdConfiguration configuration) { - doSetProperty("configuration", configuration); - return this; - } - /** * Enable usage of global SSL context parameters. * * The option is a: <code>boolean</code> type. @@ -173,12 +173,12 @@ public interface EtcdWatchComponentBuilderFactory { Object value) { switch (name) { case "bridgeErrorHandler": ((EtcdWatchComponent) component).setBridgeErrorHandler((boolean) value); return true; + case "configuration": ((EtcdWatchComponent) component).setConfiguration((org.apache.camel.component.etcd.EtcdConfiguration) value); return true; case "password": ((EtcdWatchComponent) component).setPassword((java.lang.String) value); return true; case "sslContextParameters": ((EtcdWatchComponent) component).setSslContextParameters((org.apache.camel.support.jsse.SSLContextParameters) value); return true; case "uris": ((EtcdWatchComponent) component).setUris((java.lang.String) value); return true; case "userName": ((EtcdWatchComponent) component).setUserName((java.lang.String) value); return true; case "basicPropertyBinding": ((EtcdWatchComponent) component).setBasicPropertyBinding((boolean) value); return true; - case "configuration": ((EtcdWatchComponent) component).setConfiguration((org.apache.camel.component.etcd.EtcdConfiguration) value); return true; case "useGlobalSslContextParameters": ((EtcdWatchComponent) component).setUseGlobalSslContextParameters((boolean) value); return true; default: return false; }