You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2017/05/09 07:56:40 UTC
[01/10] camel git commit: Upgrade OkHttp client and related bundle to
version 3.7.0
Repository: camel
Updated Branches:
refs/heads/master a672bbd35 -> bf10d2787
Upgrade OkHttp client and related bundle to version 3.7.0
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/8d70b7a0
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/8d70b7a0
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/8d70b7a0
Branch: refs/heads/master
Commit: 8d70b7a0331655b3a5dc7bc7fe0774dd5ea6a29d
Parents: 37f65bc
Author: Andrea Cosentino <an...@gmail.com>
Authored: Tue May 9 09:43:18 2017 +0200
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Tue May 9 09:45:45 2017 +0200
----------------------------------------------------------------------
parent/pom.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/8d70b7a0/parent/pom.xml
----------------------------------------------------------------------
diff --git a/parent/pom.xml b/parent/pom.xml
index 11e9d86..e0f64ae 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -484,8 +484,8 @@
<openwebbeans1-version>1.2.7</openwebbeans1-version>
<openwebbeans-version>1.7.2</openwebbeans-version>
<oauth-provider-bundle-version>20100527_1</oauth-provider-bundle-version>
- <okclient-version>3.6.0</okclient-version>
- <okclient-bundle-version>3.6.0_1</okclient-bundle-version>
+ <okclient-version>3.7.0</okclient-version>
+ <okclient-bundle-version>3.7.0_1</okclient-bundle-version>
<olingo2-version>2.0.8</olingo2-version>
<olingo-odata2-core-bundle-version>2.0.8_1</olingo-odata2-core-bundle-version>
<olingo2-gson-version>2.4</olingo2-gson-version>
[05/10] camel git commit: CAMEL-10798 Splitted hazelcast component
into 11 which correspond to each of endpoints
Posted by ac...@apache.org.
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/replicatedmap/springboot/HazelcastReplicatedmapComponentConfiguration.java
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/replicatedmap/springboot/HazelcastReplicatedmapComponentConfiguration.java b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/replicatedmap/springboot/HazelcastReplicatedmapComponentConfiguration.java
new file mode 100644
index 0000000..9ddedd3
--- /dev/null
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/replicatedmap/springboot/HazelcastReplicatedmapComponentConfiguration.java
@@ -0,0 +1,77 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.replicatedmap.springboot;
+
+import javax.annotation.Generated;
+import com.hazelcast.core.HazelcastInstance;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.boot.context.properties.NestedConfigurationProperty;
+
+/**
+ * The hazelcast-replicatedmap component is used to access Hazelcast replicated
+ * map.
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+@ConfigurationProperties(prefix = "camel.component.hazelcast-replicatedmap")
+public class HazelcastReplicatedmapComponentConfiguration {
+
+ /**
+ * The hazelcast instance reference which can be used for hazelcast
+ * endpoint. If you don't specify the instance reference camel use the
+ * default hazelcast instance from the camel-hazelcast instance.
+ */
+ @NestedConfigurationProperty
+ private HazelcastInstance hazelcastInstance;
+ /**
+ * The hazelcast mode reference which kind of instance should be used. If
+ * you don't specify the mode then the node mode will be the default.
+ */
+ private String hazelcastMode = "node";
+ /**
+ * Whether the component should resolve property placeholders on itself when
+ * starting. Only properties which are of String type can use property
+ * placeholders.
+ */
+ private Boolean resolvePropertyPlaceholders = true;
+
+ public HazelcastInstance getHazelcastInstance() {
+ return hazelcastInstance;
+ }
+
+ public void setHazelcastInstance(HazelcastInstance hazelcastInstance) {
+ this.hazelcastInstance = hazelcastInstance;
+ }
+
+ public String getHazelcastMode() {
+ return hazelcastMode;
+ }
+
+ public void setHazelcastMode(String hazelcastMode) {
+ this.hazelcastMode = hazelcastMode;
+ }
+
+ public Boolean getResolvePropertyPlaceholders() {
+ return resolvePropertyPlaceholders;
+ }
+
+ public void setResolvePropertyPlaceholders(
+ Boolean resolvePropertyPlaceholders) {
+ this.resolvePropertyPlaceholders = resolvePropertyPlaceholders;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/ringbuffer/springboot/HazelcastRingbufferComponentAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/ringbuffer/springboot/HazelcastRingbufferComponentAutoConfiguration.java b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/ringbuffer/springboot/HazelcastRingbufferComponentAutoConfiguration.java
new file mode 100644
index 0000000..46de8e2
--- /dev/null
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/ringbuffer/springboot/HazelcastRingbufferComponentAutoConfiguration.java
@@ -0,0 +1,115 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.ringbuffer.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import javax.annotation.Generated;
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.ringbuffer.HazelcastRingbufferComponent;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.AutoConfigureAfter;
+import org.springframework.boot.autoconfigure.condition.ConditionMessage;
+import org.springframework.boot.autoconfigure.condition.ConditionOutcome;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.autoconfigure.condition.SpringBootCondition;
+import org.springframework.boot.bind.RelaxedPropertyResolver;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.ConditionContext;
+import org.springframework.context.annotation.Conditional;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Lazy;
+import org.springframework.core.type.AnnotatedTypeMetadata;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+@Configuration
+@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration")
+@Conditional(HazelcastRingbufferComponentAutoConfiguration.Condition.class)
+@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration")
+@EnableConfigurationProperties(HazelcastRingbufferComponentConfiguration.class)
+public class HazelcastRingbufferComponentAutoConfiguration {
+
+ @Lazy
+ @Bean(name = "hazelcast-ringbuffer-component")
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(HazelcastRingbufferComponent.class)
+ public HazelcastRingbufferComponent configureHazelcastRingbufferComponent(
+ CamelContext camelContext,
+ HazelcastRingbufferComponentConfiguration configuration)
+ throws Exception {
+ HazelcastRingbufferComponent component = new HazelcastRingbufferComponent();
+ component.setCamelContext(camelContext);
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ for (Map.Entry<String, Object> entry : parameters.entrySet()) {
+ Object value = entry.getValue();
+ Class<?> paramClass = value.getClass();
+ if (paramClass.getName().endsWith("NestedConfiguration")) {
+ Class nestedClass = null;
+ try {
+ nestedClass = (Class) paramClass.getDeclaredField(
+ "CAMEL_NESTED_CLASS").get(null);
+ HashMap<String, Object> nestedParameters = new HashMap<>();
+ IntrospectionSupport.getProperties(value, nestedParameters,
+ null, false);
+ Object nestedProperty = nestedClass.newInstance();
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), nestedProperty,
+ nestedParameters);
+ entry.setValue(nestedProperty);
+ } catch (NoSuchFieldException e) {
+ }
+ }
+ }
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), component, parameters);
+ return component;
+ }
+
+ @Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+ public static class Condition extends SpringBootCondition {
+ @Override
+ public ConditionOutcome getMatchOutcome(
+ ConditionContext conditionContext,
+ AnnotatedTypeMetadata annotatedTypeMetadata) {
+ boolean groupEnabled = isEnabled(conditionContext,
+ "camel.component.", true);
+ ConditionMessage.Builder message = ConditionMessage
+ .forCondition("camel.component.hazelcast-ringbuffer");
+ if (isEnabled(conditionContext,
+ "camel.component.hazelcast-ringbuffer.", groupEnabled)) {
+ return ConditionOutcome.match(message.because("enabled"));
+ }
+ return ConditionOutcome.noMatch(message.because("not enabled"));
+ }
+
+ private boolean isEnabled(
+ org.springframework.context.annotation.ConditionContext context,
+ java.lang.String prefix, boolean defaultValue) {
+ RelaxedPropertyResolver resolver = new RelaxedPropertyResolver(
+ context.getEnvironment(), prefix);
+ return resolver.getProperty("enabled", Boolean.class, defaultValue);
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/ringbuffer/springboot/HazelcastRingbufferComponentConfiguration.java
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/ringbuffer/springboot/HazelcastRingbufferComponentConfiguration.java b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/ringbuffer/springboot/HazelcastRingbufferComponentConfiguration.java
new file mode 100644
index 0000000..41bf0ce
--- /dev/null
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/ringbuffer/springboot/HazelcastRingbufferComponentConfiguration.java
@@ -0,0 +1,77 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.ringbuffer.springboot;
+
+import javax.annotation.Generated;
+import com.hazelcast.core.HazelcastInstance;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.boot.context.properties.NestedConfigurationProperty;
+
+/**
+ * The hazelcast-ringbuffer component is used to access Hazelcast distributed
+ * ringbuffer.
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+@ConfigurationProperties(prefix = "camel.component.hazelcast-ringbuffer")
+public class HazelcastRingbufferComponentConfiguration {
+
+ /**
+ * The hazelcast instance reference which can be used for hazelcast
+ * endpoint. If you don't specify the instance reference camel use the
+ * default hazelcast instance from the camel-hazelcast instance.
+ */
+ @NestedConfigurationProperty
+ private HazelcastInstance hazelcastInstance;
+ /**
+ * The hazelcast mode reference which kind of instance should be used. If
+ * you don't specify the mode then the node mode will be the default.
+ */
+ private String hazelcastMode = "node";
+ /**
+ * Whether the component should resolve property placeholders on itself when
+ * starting. Only properties which are of String type can use property
+ * placeholders.
+ */
+ private Boolean resolvePropertyPlaceholders = true;
+
+ public HazelcastInstance getHazelcastInstance() {
+ return hazelcastInstance;
+ }
+
+ public void setHazelcastInstance(HazelcastInstance hazelcastInstance) {
+ this.hazelcastInstance = hazelcastInstance;
+ }
+
+ public String getHazelcastMode() {
+ return hazelcastMode;
+ }
+
+ public void setHazelcastMode(String hazelcastMode) {
+ this.hazelcastMode = hazelcastMode;
+ }
+
+ public Boolean getResolvePropertyPlaceholders() {
+ return resolvePropertyPlaceholders;
+ }
+
+ public void setResolvePropertyPlaceholders(
+ Boolean resolvePropertyPlaceholders) {
+ this.resolvePropertyPlaceholders = resolvePropertyPlaceholders;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/seda/springboot/HazelcastSedaComponentAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/seda/springboot/HazelcastSedaComponentAutoConfiguration.java b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/seda/springboot/HazelcastSedaComponentAutoConfiguration.java
new file mode 100644
index 0000000..57df3a1
--- /dev/null
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/seda/springboot/HazelcastSedaComponentAutoConfiguration.java
@@ -0,0 +1,114 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.seda.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import javax.annotation.Generated;
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.seda.HazelcastSedaComponent;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.AutoConfigureAfter;
+import org.springframework.boot.autoconfigure.condition.ConditionMessage;
+import org.springframework.boot.autoconfigure.condition.ConditionOutcome;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.autoconfigure.condition.SpringBootCondition;
+import org.springframework.boot.bind.RelaxedPropertyResolver;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.ConditionContext;
+import org.springframework.context.annotation.Conditional;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Lazy;
+import org.springframework.core.type.AnnotatedTypeMetadata;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+@Configuration
+@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration")
+@Conditional(HazelcastSedaComponentAutoConfiguration.Condition.class)
+@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration")
+@EnableConfigurationProperties(HazelcastSedaComponentConfiguration.class)
+public class HazelcastSedaComponentAutoConfiguration {
+
+ @Lazy
+ @Bean(name = "hazelcast-seda-component")
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(HazelcastSedaComponent.class)
+ public HazelcastSedaComponent configureHazelcastSedaComponent(
+ CamelContext camelContext,
+ HazelcastSedaComponentConfiguration configuration) throws Exception {
+ HazelcastSedaComponent component = new HazelcastSedaComponent();
+ component.setCamelContext(camelContext);
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ for (Map.Entry<String, Object> entry : parameters.entrySet()) {
+ Object value = entry.getValue();
+ Class<?> paramClass = value.getClass();
+ if (paramClass.getName().endsWith("NestedConfiguration")) {
+ Class nestedClass = null;
+ try {
+ nestedClass = (Class) paramClass.getDeclaredField(
+ "CAMEL_NESTED_CLASS").get(null);
+ HashMap<String, Object> nestedParameters = new HashMap<>();
+ IntrospectionSupport.getProperties(value, nestedParameters,
+ null, false);
+ Object nestedProperty = nestedClass.newInstance();
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), nestedProperty,
+ nestedParameters);
+ entry.setValue(nestedProperty);
+ } catch (NoSuchFieldException e) {
+ }
+ }
+ }
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), component, parameters);
+ return component;
+ }
+
+ @Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+ public static class Condition extends SpringBootCondition {
+ @Override
+ public ConditionOutcome getMatchOutcome(
+ ConditionContext conditionContext,
+ AnnotatedTypeMetadata annotatedTypeMetadata) {
+ boolean groupEnabled = isEnabled(conditionContext,
+ "camel.component.", true);
+ ConditionMessage.Builder message = ConditionMessage
+ .forCondition("camel.component.hazelcast-seda");
+ if (isEnabled(conditionContext, "camel.component.hazelcast-seda.",
+ groupEnabled)) {
+ return ConditionOutcome.match(message.because("enabled"));
+ }
+ return ConditionOutcome.noMatch(message.because("not enabled"));
+ }
+
+ private boolean isEnabled(
+ org.springframework.context.annotation.ConditionContext context,
+ java.lang.String prefix, boolean defaultValue) {
+ RelaxedPropertyResolver resolver = new RelaxedPropertyResolver(
+ context.getEnvironment(), prefix);
+ return resolver.getProperty("enabled", Boolean.class, defaultValue);
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/seda/springboot/HazelcastSedaComponentConfiguration.java
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/seda/springboot/HazelcastSedaComponentConfiguration.java b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/seda/springboot/HazelcastSedaComponentConfiguration.java
new file mode 100644
index 0000000..33ead30
--- /dev/null
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/seda/springboot/HazelcastSedaComponentConfiguration.java
@@ -0,0 +1,76 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.seda.springboot;
+
+import javax.annotation.Generated;
+import com.hazelcast.core.HazelcastInstance;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.boot.context.properties.NestedConfigurationProperty;
+
+/**
+ * The hazelcast-seda component is used to access Hazelcast BlockingQueue.
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+@ConfigurationProperties(prefix = "camel.component.hazelcast-seda")
+public class HazelcastSedaComponentConfiguration {
+
+ /**
+ * The hazelcast instance reference which can be used for hazelcast
+ * endpoint. If you don't specify the instance reference camel use the
+ * default hazelcast instance from the camel-hazelcast instance.
+ */
+ @NestedConfigurationProperty
+ private HazelcastInstance hazelcastInstance;
+ /**
+ * The hazelcast mode reference which kind of instance should be used. If
+ * you don't specify the mode then the node mode will be the default.
+ */
+ private String hazelcastMode = "node";
+ /**
+ * Whether the component should resolve property placeholders on itself when
+ * starting. Only properties which are of String type can use property
+ * placeholders.
+ */
+ private Boolean resolvePropertyPlaceholders = true;
+
+ public HazelcastInstance getHazelcastInstance() {
+ return hazelcastInstance;
+ }
+
+ public void setHazelcastInstance(HazelcastInstance hazelcastInstance) {
+ this.hazelcastInstance = hazelcastInstance;
+ }
+
+ public String getHazelcastMode() {
+ return hazelcastMode;
+ }
+
+ public void setHazelcastMode(String hazelcastMode) {
+ this.hazelcastMode = hazelcastMode;
+ }
+
+ public Boolean getResolvePropertyPlaceholders() {
+ return resolvePropertyPlaceholders;
+ }
+
+ public void setResolvePropertyPlaceholders(
+ Boolean resolvePropertyPlaceholders) {
+ this.resolvePropertyPlaceholders = resolvePropertyPlaceholders;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/set/springboot/HazelcastSetComponentAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/set/springboot/HazelcastSetComponentAutoConfiguration.java b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/set/springboot/HazelcastSetComponentAutoConfiguration.java
new file mode 100644
index 0000000..18717d8
--- /dev/null
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/set/springboot/HazelcastSetComponentAutoConfiguration.java
@@ -0,0 +1,114 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.set.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import javax.annotation.Generated;
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.set.HazelcastSetComponent;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.AutoConfigureAfter;
+import org.springframework.boot.autoconfigure.condition.ConditionMessage;
+import org.springframework.boot.autoconfigure.condition.ConditionOutcome;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.autoconfigure.condition.SpringBootCondition;
+import org.springframework.boot.bind.RelaxedPropertyResolver;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.ConditionContext;
+import org.springframework.context.annotation.Conditional;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Lazy;
+import org.springframework.core.type.AnnotatedTypeMetadata;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+@Configuration
+@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration")
+@Conditional(HazelcastSetComponentAutoConfiguration.Condition.class)
+@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration")
+@EnableConfigurationProperties(HazelcastSetComponentConfiguration.class)
+public class HazelcastSetComponentAutoConfiguration {
+
+ @Lazy
+ @Bean(name = "hazelcast-set-component")
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(HazelcastSetComponent.class)
+ public HazelcastSetComponent configureHazelcastSetComponent(
+ CamelContext camelContext,
+ HazelcastSetComponentConfiguration configuration) throws Exception {
+ HazelcastSetComponent component = new HazelcastSetComponent();
+ component.setCamelContext(camelContext);
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ for (Map.Entry<String, Object> entry : parameters.entrySet()) {
+ Object value = entry.getValue();
+ Class<?> paramClass = value.getClass();
+ if (paramClass.getName().endsWith("NestedConfiguration")) {
+ Class nestedClass = null;
+ try {
+ nestedClass = (Class) paramClass.getDeclaredField(
+ "CAMEL_NESTED_CLASS").get(null);
+ HashMap<String, Object> nestedParameters = new HashMap<>();
+ IntrospectionSupport.getProperties(value, nestedParameters,
+ null, false);
+ Object nestedProperty = nestedClass.newInstance();
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), nestedProperty,
+ nestedParameters);
+ entry.setValue(nestedProperty);
+ } catch (NoSuchFieldException e) {
+ }
+ }
+ }
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), component, parameters);
+ return component;
+ }
+
+ @Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+ public static class Condition extends SpringBootCondition {
+ @Override
+ public ConditionOutcome getMatchOutcome(
+ ConditionContext conditionContext,
+ AnnotatedTypeMetadata annotatedTypeMetadata) {
+ boolean groupEnabled = isEnabled(conditionContext,
+ "camel.component.", true);
+ ConditionMessage.Builder message = ConditionMessage
+ .forCondition("camel.component.hazelcast-set");
+ if (isEnabled(conditionContext, "camel.component.hazelcast-set.",
+ groupEnabled)) {
+ return ConditionOutcome.match(message.because("enabled"));
+ }
+ return ConditionOutcome.noMatch(message.because("not enabled"));
+ }
+
+ private boolean isEnabled(
+ org.springframework.context.annotation.ConditionContext context,
+ java.lang.String prefix, boolean defaultValue) {
+ RelaxedPropertyResolver resolver = new RelaxedPropertyResolver(
+ context.getEnvironment(), prefix);
+ return resolver.getProperty("enabled", Boolean.class, defaultValue);
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/set/springboot/HazelcastSetComponentConfiguration.java
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/set/springboot/HazelcastSetComponentConfiguration.java b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/set/springboot/HazelcastSetComponentConfiguration.java
new file mode 100644
index 0000000..16aa2bf
--- /dev/null
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/set/springboot/HazelcastSetComponentConfiguration.java
@@ -0,0 +1,76 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.set.springboot;
+
+import javax.annotation.Generated;
+import com.hazelcast.core.HazelcastInstance;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.boot.context.properties.NestedConfigurationProperty;
+
+/**
+ * The camel Endpoint to access Hazelcast distributed set.
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+@ConfigurationProperties(prefix = "camel.component.hazelcast-set")
+public class HazelcastSetComponentConfiguration {
+
+ /**
+ * The hazelcast instance reference which can be used for hazelcast
+ * endpoint. If you don't specify the instance reference camel use the
+ * default hazelcast instance from the camel-hazelcast instance.
+ */
+ @NestedConfigurationProperty
+ private HazelcastInstance hazelcastInstance;
+ /**
+ * The hazelcast mode reference which kind of instance should be used. If
+ * you don't specify the mode then the node mode will be the default.
+ */
+ private String hazelcastMode = "node";
+ /**
+ * Whether the component should resolve property placeholders on itself when
+ * starting. Only properties which are of String type can use property
+ * placeholders.
+ */
+ private Boolean resolvePropertyPlaceholders = true;
+
+ public HazelcastInstance getHazelcastInstance() {
+ return hazelcastInstance;
+ }
+
+ public void setHazelcastInstance(HazelcastInstance hazelcastInstance) {
+ this.hazelcastInstance = hazelcastInstance;
+ }
+
+ public String getHazelcastMode() {
+ return hazelcastMode;
+ }
+
+ public void setHazelcastMode(String hazelcastMode) {
+ this.hazelcastMode = hazelcastMode;
+ }
+
+ public Boolean getResolvePropertyPlaceholders() {
+ return resolvePropertyPlaceholders;
+ }
+
+ public void setResolvePropertyPlaceholders(
+ Boolean resolvePropertyPlaceholders) {
+ this.resolvePropertyPlaceholders = resolvePropertyPlaceholders;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/topic/springboot/HazelcastTopicComponentAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/topic/springboot/HazelcastTopicComponentAutoConfiguration.java b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/topic/springboot/HazelcastTopicComponentAutoConfiguration.java
new file mode 100644
index 0000000..3d225f4
--- /dev/null
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/topic/springboot/HazelcastTopicComponentAutoConfiguration.java
@@ -0,0 +1,115 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.topic.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import javax.annotation.Generated;
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.topic.HazelcastTopicComponent;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.AutoConfigureAfter;
+import org.springframework.boot.autoconfigure.condition.ConditionMessage;
+import org.springframework.boot.autoconfigure.condition.ConditionOutcome;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.autoconfigure.condition.SpringBootCondition;
+import org.springframework.boot.bind.RelaxedPropertyResolver;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.ConditionContext;
+import org.springframework.context.annotation.Conditional;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Lazy;
+import org.springframework.core.type.AnnotatedTypeMetadata;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+@Configuration
+@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration")
+@Conditional(HazelcastTopicComponentAutoConfiguration.Condition.class)
+@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration")
+@EnableConfigurationProperties(HazelcastTopicComponentConfiguration.class)
+public class HazelcastTopicComponentAutoConfiguration {
+
+ @Lazy
+ @Bean(name = "hazelcast-topic-component")
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(HazelcastTopicComponent.class)
+ public HazelcastTopicComponent configureHazelcastTopicComponent(
+ CamelContext camelContext,
+ HazelcastTopicComponentConfiguration configuration)
+ throws Exception {
+ HazelcastTopicComponent component = new HazelcastTopicComponent();
+ component.setCamelContext(camelContext);
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ for (Map.Entry<String, Object> entry : parameters.entrySet()) {
+ Object value = entry.getValue();
+ Class<?> paramClass = value.getClass();
+ if (paramClass.getName().endsWith("NestedConfiguration")) {
+ Class nestedClass = null;
+ try {
+ nestedClass = (Class) paramClass.getDeclaredField(
+ "CAMEL_NESTED_CLASS").get(null);
+ HashMap<String, Object> nestedParameters = new HashMap<>();
+ IntrospectionSupport.getProperties(value, nestedParameters,
+ null, false);
+ Object nestedProperty = nestedClass.newInstance();
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), nestedProperty,
+ nestedParameters);
+ entry.setValue(nestedProperty);
+ } catch (NoSuchFieldException e) {
+ }
+ }
+ }
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), component, parameters);
+ return component;
+ }
+
+ @Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+ public static class Condition extends SpringBootCondition {
+ @Override
+ public ConditionOutcome getMatchOutcome(
+ ConditionContext conditionContext,
+ AnnotatedTypeMetadata annotatedTypeMetadata) {
+ boolean groupEnabled = isEnabled(conditionContext,
+ "camel.component.", true);
+ ConditionMessage.Builder message = ConditionMessage
+ .forCondition("camel.component.hazelcast-topic");
+ if (isEnabled(conditionContext, "camel.component.hazelcast-topic.",
+ groupEnabled)) {
+ return ConditionOutcome.match(message.because("enabled"));
+ }
+ return ConditionOutcome.noMatch(message.because("not enabled"));
+ }
+
+ private boolean isEnabled(
+ org.springframework.context.annotation.ConditionContext context,
+ java.lang.String prefix, boolean defaultValue) {
+ RelaxedPropertyResolver resolver = new RelaxedPropertyResolver(
+ context.getEnvironment(), prefix);
+ return resolver.getProperty("enabled", Boolean.class, defaultValue);
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/topic/springboot/HazelcastTopicComponentConfiguration.java
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/topic/springboot/HazelcastTopicComponentConfiguration.java b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/topic/springboot/HazelcastTopicComponentConfiguration.java
new file mode 100644
index 0000000..92cf232
--- /dev/null
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/topic/springboot/HazelcastTopicComponentConfiguration.java
@@ -0,0 +1,76 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.topic.springboot;
+
+import javax.annotation.Generated;
+import com.hazelcast.core.HazelcastInstance;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.boot.context.properties.NestedConfigurationProperty;
+
+/**
+ * The hazelcast-topic component is used to access Hazelcast distributed topic.
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+@ConfigurationProperties(prefix = "camel.component.hazelcast-topic")
+public class HazelcastTopicComponentConfiguration {
+
+ /**
+ * The hazelcast instance reference which can be used for hazelcast
+ * endpoint. If you don't specify the instance reference camel use the
+ * default hazelcast instance from the camel-hazelcast instance.
+ */
+ @NestedConfigurationProperty
+ private HazelcastInstance hazelcastInstance;
+ /**
+ * The hazelcast mode reference which kind of instance should be used. If
+ * you don't specify the mode then the node mode will be the default.
+ */
+ private String hazelcastMode = "node";
+ /**
+ * Whether the component should resolve property placeholders on itself when
+ * starting. Only properties which are of String type can use property
+ * placeholders.
+ */
+ private Boolean resolvePropertyPlaceholders = true;
+
+ public HazelcastInstance getHazelcastInstance() {
+ return hazelcastInstance;
+ }
+
+ public void setHazelcastInstance(HazelcastInstance hazelcastInstance) {
+ this.hazelcastInstance = hazelcastInstance;
+ }
+
+ public String getHazelcastMode() {
+ return hazelcastMode;
+ }
+
+ public void setHazelcastMode(String hazelcastMode) {
+ this.hazelcastMode = hazelcastMode;
+ }
+
+ public Boolean getResolvePropertyPlaceholders() {
+ return resolvePropertyPlaceholders;
+ }
+
+ public void setResolvePropertyPlaceholders(
+ Boolean resolvePropertyPlaceholders) {
+ this.resolvePropertyPlaceholders = resolvePropertyPlaceholders;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json
index 89d80d7..5a63a3a 100644
--- a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json
@@ -5,6 +5,72 @@
"name": "camel.component.hazelcast.enabled",
"description": "Enable hazelcast component",
"type": "java.lang.Boolean"
+ },
+ {
+ "defaultValue": true,
+ "name": "camel.component.hazelcast-list.enabled",
+ "description": "Enable hazelcast-list component",
+ "type": "java.lang.Boolean"
+ },
+ {
+ "defaultValue": true,
+ "name": "camel.component.hazelcast-map.enabled",
+ "description": "Enable hazelcast-map component",
+ "type": "java.lang.Boolean"
+ },
+ {
+ "defaultValue": true,
+ "name": "camel.component.hazelcast-replicatedmap.enabled",
+ "description": "Enable hazelcast-replicatedmap component",
+ "type": "java.lang.Boolean"
+ },
+ {
+ "defaultValue": true,
+ "name": "camel.component.hazelcast-queue.enabled",
+ "description": "Enable hazelcast-queue component",
+ "type": "java.lang.Boolean"
+ },
+ {
+ "defaultValue": true,
+ "name": "camel.component.hazelcast-set.enabled",
+ "description": "Enable hazelcast-set component",
+ "type": "java.lang.Boolean"
+ },
+ {
+ "defaultValue": true,
+ "name": "camel.component.hazelcast-topic.enabled",
+ "description": "Enable hazelcast-topic component",
+ "type": "java.lang.Boolean"
+ },
+ {
+ "defaultValue": true,
+ "name": "camel.component.hazelcast-seda.enabled",
+ "description": "Enable hazelcast-seda component",
+ "type": "java.lang.Boolean"
+ },
+ {
+ "defaultValue": true,
+ "name": "camel.component.hazelcast-multimap.enabled",
+ "description": "Enable hazelcast-multimap component",
+ "type": "java.lang.Boolean"
+ },
+ {
+ "defaultValue": true,
+ "name": "camel.component.hazelcast-ringbuffer.enabled",
+ "description": "Enable hazelcast-ringbuffer component",
+ "type": "java.lang.Boolean"
+ },
+ {
+ "defaultValue": true,
+ "name": "camel.component.hazelcast-instance.enabled",
+ "description": "Enable hazelcast-instance component",
+ "type": "java.lang.Boolean"
+ },
+ {
+ "defaultValue": true,
+ "name": "camel.component.hazelcast-atomicvalue.enabled",
+ "description": "Enable hazelcast-atomicvalue component",
+ "type": "java.lang.Boolean"
}
]
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/resources/META-INF/spring.factories
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/resources/META-INF/spring.factories b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/resources/META-INF/spring.factories
index fa335f5..7e358e7 100644
--- a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/resources/META-INF/spring.factories
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/resources/META-INF/spring.factories
@@ -15,4 +15,26 @@
## limitations under the License.
## ---------------------------------------------------------------------------
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
-org.apache.camel.component.hazelcast.springboot.HazelcastComponentAutoConfiguration
+org.apache.camel.component.hazelcast.springboot.HazelcastComponentAutoConfiguration,\
+org.apache.camel.component.hazelcast.list.springboot.HazelcastListComponentAutoConfiguration,\
+org.apache.camel.component.hazelcast.map.springboot.HazelcastMapComponentAutoConfiguration,\
+org.apache.camel.component.hazelcast.replicatedmap.springboot.HazelcastReplicatedmapComponentAutoConfiguration,\
+org.apache.camel.component.hazelcast.queue.springboot.HazelcastQueueComponentAutoConfiguration,\
+org.apache.camel.component.hazelcast.set.springboot.HazelcastSetComponentAutoConfiguration,\
+org.apache.camel.component.hazelcast.topic.springboot.HazelcastTopicComponentAutoConfiguration,\
+org.apache.camel.component.hazelcast.seda.springboot.HazelcastSedaComponentAutoConfiguration,\
+org.apache.camel.component.hazelcast.multimap.springboot.HazelcastMultimapComponentAutoConfiguration,\
+org.apache.camel.component.hazelcast.ringbuffer.springboot.HazelcastRingbufferComponentAutoConfiguration,\
+org.apache.camel.component.hazelcast.instance.springboot.HazelcastInstanceComponentAutoConfiguration,\
+org.apache.camel.component.hazelcast.atomicnumber.springboot.HazelcastAtomicnumberComponentAutoConfiguration
+
+
+
+
+
+
+
+
+
+
+
[08/10] camel git commit: CAMEL-10798 Splitted hazelcast component
into 11 which correspond to each of endpoints
Posted by ac...@apache.org.
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/HazelcastDefaultComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/HazelcastDefaultComponent.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/HazelcastDefaultComponent.java
new file mode 100644
index 0000000..f47a9fd
--- /dev/null
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/HazelcastDefaultComponent.java
@@ -0,0 +1,227 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast;
+
+import java.io.InputStream;
+import java.util.LinkedHashSet;
+import java.util.Map;
+import java.util.Set;
+
+import com.hazelcast.client.HazelcastClient;
+import com.hazelcast.client.config.ClientConfig;
+import com.hazelcast.client.config.XmlClientConfigBuilder;
+import com.hazelcast.config.Config;
+import com.hazelcast.config.XmlConfigBuilder;
+import com.hazelcast.core.Hazelcast;
+import com.hazelcast.core.HazelcastInstance;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.Endpoint;
+import org.apache.camel.impl.DefaultComponent;
+import org.apache.camel.spi.Metadata;
+import org.apache.camel.util.ObjectHelper;
+import org.apache.camel.util.ResourceHelper;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import static org.apache.camel.component.hazelcast.HazelcastConstants.HAZELCAST_CONFIGU_PARAM;
+import static org.apache.camel.component.hazelcast.HazelcastConstants.HAZELCAST_CONFIGU_URI_PARAM;
+import static org.apache.camel.component.hazelcast.HazelcastConstants.HAZELCAST_INSTANCE_NAME_PARAM;
+import static org.apache.camel.component.hazelcast.HazelcastConstants.HAZELCAST_INSTANCE_PARAM;
+
+public abstract class HazelcastDefaultComponent extends DefaultComponent {
+ private static final Logger LOGGER = LoggerFactory.getLogger(HazelcastDefaultComponent.class);
+
+ private final Set<HazelcastInstance> customHazelcastInstances;
+ @Metadata(label = "advanced")
+ private HazelcastInstance hazelcastInstance;
+ @Metadata(label = "advanced", defaultValue = "" + HazelcastConstants.HAZELCAST_NODE_MODE)
+ private String hazelcastMode = HazelcastConstants.HAZELCAST_NODE_MODE;
+
+ public HazelcastDefaultComponent() {
+ super();
+ this.customHazelcastInstances = new LinkedHashSet<>();
+ }
+
+ public HazelcastDefaultComponent(final CamelContext context) {
+ super(context);
+ this.customHazelcastInstances = new LinkedHashSet<>();
+ }
+
+ @Override
+ protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
+
+ // use the given hazelcast Instance or create one if not given
+ HazelcastInstance hzInstance;
+ if (ObjectHelper.equal(getHazelcastMode(), HazelcastConstants.HAZELCAST_NODE_MODE)) {
+ hzInstance = getOrCreateHzInstance(getCamelContext(), parameters);
+ } else {
+ hzInstance = getOrCreateHzClientInstance(getCamelContext(), parameters);
+ }
+
+ String defaultOperation = getAndRemoveOrResolveReferenceParameter(parameters, HazelcastConstants.OPERATION_PARAM, String.class);
+ if (defaultOperation == null) {
+ defaultOperation = getAndRemoveOrResolveReferenceParameter(parameters, "defaultOperation", String.class);
+ }
+
+ HazelcastDefaultEndpoint endpoint = doCreateEndpoint(uri, remaining, parameters, hzInstance);
+ endpoint.setDefaultOperation(defaultOperation);
+ return endpoint;
+ }
+
+ protected abstract HazelcastDefaultEndpoint doCreateEndpoint(String uri, String remaining, Map<String, Object> parameters, HazelcastInstance hzInstance) throws Exception;
+
+ @Override
+ public void doStart() throws Exception {
+ super.doStart();
+ }
+
+ @Override
+ public void doStop() throws Exception {
+ for (HazelcastInstance hazelcastInstance : customHazelcastInstances) {
+ hazelcastInstance.getLifecycleService().shutdown();
+ }
+
+ customHazelcastInstances.clear();
+
+ super.doStop();
+ }
+
+ public HazelcastInstance getHazelcastInstance() {
+ return hazelcastInstance;
+ }
+
+ /**
+ * The hazelcast instance reference which can be used for hazelcast endpoint.
+ * If you don't specify the instance reference, camel use the default hazelcast instance from the camel-hazelcast instance.
+ */
+ public void setHazelcastInstance(HazelcastInstance hazelcastInstance) {
+ this.hazelcastInstance = hazelcastInstance;
+ }
+
+ public String getHazelcastMode() {
+ return hazelcastMode;
+ }
+
+ /**
+ * The hazelcast mode reference which kind of instance should be used.
+ * If you don't specify the mode, then the node mode will be the default.
+ */
+ public void setHazelcastMode(String hazelcastMode) {
+ this.hazelcastMode = hazelcastMode;
+ }
+
+ protected HazelcastInstance getOrCreateHzInstance(CamelContext context, Map<String, Object> parameters) throws Exception {
+ HazelcastInstance hzInstance = null;
+ Config config = null;
+
+ // Query param named 'hazelcastInstance' (if exists) overrides the instance that was set
+ hzInstance = resolveAndRemoveReferenceParameter(parameters, HAZELCAST_INSTANCE_PARAM, HazelcastInstance.class);
+
+ // Check if an already created instance is given then just get instance by its name.
+ if (hzInstance == null && parameters.get(HAZELCAST_INSTANCE_NAME_PARAM) != null) {
+ hzInstance = Hazelcast.getHazelcastInstanceByName((String) parameters.get(HAZELCAST_INSTANCE_NAME_PARAM));
+ }
+
+ // If instance neither supplied nor found by name, try to lookup its config
+ // as reference or as xml configuration file.
+ if (hzInstance == null) {
+ config = resolveAndRemoveReferenceParameter(parameters, HAZELCAST_CONFIGU_PARAM, Config.class);
+ if (config == null) {
+ String configUri = getAndRemoveParameter(parameters, HAZELCAST_CONFIGU_URI_PARAM, String.class);
+ if (configUri != null) {
+ configUri = getCamelContext().resolvePropertyPlaceholders(configUri);
+ }
+ if (configUri != null) {
+ InputStream is = ResourceHelper.resolveMandatoryResourceAsInputStream(context, configUri);
+ config = new XmlConfigBuilder(is).build();
+ }
+ }
+
+ if (hazelcastInstance == null && config == null) {
+ config = new XmlConfigBuilder().build();
+ // Disable the version check
+ config.getProperties().setProperty("hazelcast.version.check.enabled", "false");
+ config.getProperties().setProperty("hazelcast.phone.home.enabled", "false");
+
+ hzInstance = Hazelcast.newHazelcastInstance(config);
+ } else if (config != null) {
+ if (ObjectHelper.isNotEmpty(config.getInstanceName())) {
+ hzInstance = Hazelcast.getOrCreateHazelcastInstance(config);
+ } else {
+ hzInstance = Hazelcast.newHazelcastInstance(config);
+ }
+ }
+
+ if (hzInstance != null) {
+ if (this.customHazelcastInstances.add(hzInstance)) {
+ LOGGER.debug("Add managed HZ instance {}", hzInstance.getName());
+ }
+ }
+ }
+
+ return hzInstance == null ? hazelcastInstance : hzInstance;
+ }
+
+ protected HazelcastInstance getOrCreateHzClientInstance(CamelContext context, Map<String, Object> parameters) throws Exception {
+ HazelcastInstance hzInstance = null;
+ ClientConfig config = null;
+
+ // Query param named 'hazelcastInstance' (if exists) overrides the instance that was set
+ hzInstance = resolveAndRemoveReferenceParameter(parameters, HAZELCAST_INSTANCE_PARAM, HazelcastInstance.class);
+
+ // Check if an already created instance is given then just get instance by its name.
+ if (hzInstance == null && parameters.get(HAZELCAST_INSTANCE_NAME_PARAM) != null) {
+ hzInstance = Hazelcast.getHazelcastInstanceByName((String) parameters.get(HAZELCAST_INSTANCE_NAME_PARAM));
+ }
+
+ // If instance neither supplied nor found by name, try to lookup its config
+ // as reference or as xml configuration file.
+ if (hzInstance == null) {
+ config = resolveAndRemoveReferenceParameter(parameters, HAZELCAST_CONFIGU_PARAM, ClientConfig.class);
+ if (config == null) {
+ String configUri = getAndRemoveParameter(parameters, HAZELCAST_CONFIGU_URI_PARAM, String.class);
+ if (configUri != null) {
+ configUri = getCamelContext().resolvePropertyPlaceholders(configUri);
+ }
+ if (configUri != null) {
+ InputStream is = ResourceHelper.resolveMandatoryResourceAsInputStream(context, configUri);
+ config = new XmlClientConfigBuilder(is).build();
+ }
+ }
+
+ if (hazelcastInstance == null && config == null) {
+ config = new XmlClientConfigBuilder().build();
+ // Disable the version check
+ config.getProperties().setProperty("hazelcast.version.check.enabled", "false");
+ config.getProperties().setProperty("hazelcast.phone.home.enabled", "false");
+
+ hzInstance = HazelcastClient.newHazelcastClient(config);
+ } else if (config != null) {
+ hzInstance = HazelcastClient.newHazelcastClient(config);
+ }
+
+ if (hzInstance != null) {
+ if (this.customHazelcastInstances.add(hzInstance)) {
+ LOGGER.debug("Add managed HZ instance {}", hzInstance.getName());
+ }
+ }
+ }
+
+ return hzInstance == null ? hazelcastInstance : hzInstance;
+ }
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/HazelcastDefaultEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/HazelcastDefaultEndpoint.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/HazelcastDefaultEndpoint.java
index cb6f08d..db23cba 100644
--- a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/HazelcastDefaultEndpoint.java
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/HazelcastDefaultEndpoint.java
@@ -32,10 +32,8 @@ import org.apache.camel.spi.UriPath;
/**
* The hazelcast component allows you to work with the Hazelcast distributed data grid / cache.
*/
-@UriEndpoint(firstVersion = "2.7.0", scheme = "hazelcast", title = "Hazelcast", syntax = "hazelcast:command:cacheName", consumerClass = HazelcastDefaultConsumer.class, label = "cache,datagrid")
public abstract class HazelcastDefaultEndpoint extends DefaultEndpoint {
- @UriPath @Metadata(required = "true")
protected HazelcastCommand command;
@UriPath @Metadata(required = "true")
protected String cacheName;
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/HazelcastAtomicnumberComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/HazelcastAtomicnumberComponent.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/HazelcastAtomicnumberComponent.java
new file mode 100644
index 0000000..a786fb9
--- /dev/null
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/HazelcastAtomicnumberComponent.java
@@ -0,0 +1,42 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.atomicnumber;
+
+import java.util.Map;
+
+import com.hazelcast.core.HazelcastInstance;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.HazelcastDefaultComponent;
+import org.apache.camel.component.hazelcast.HazelcastDefaultEndpoint;
+
+public class HazelcastAtomicnumberComponent extends HazelcastDefaultComponent {
+
+ public HazelcastAtomicnumberComponent() {
+ super();
+ }
+
+ public HazelcastAtomicnumberComponent(final CamelContext context) {
+ super(context);
+ }
+
+ @Override
+ protected HazelcastDefaultEndpoint doCreateEndpoint(String uri, String remaining, Map<String, Object> parameters, HazelcastInstance hzInstance) throws Exception {
+ return new HazelcastAtomicnumberEndpoint(hzInstance, uri, this, remaining);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/HazelcastAtomicnumberEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/HazelcastAtomicnumberEndpoint.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/HazelcastAtomicnumberEndpoint.java
index b30e642..904d074 100644
--- a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/HazelcastAtomicnumberEndpoint.java
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/HazelcastAtomicnumberEndpoint.java
@@ -21,12 +21,20 @@ import org.apache.camel.Component;
import org.apache.camel.Consumer;
import org.apache.camel.Processor;
import org.apache.camel.Producer;
+import org.apache.camel.component.hazelcast.HazelcastCommand;
import org.apache.camel.component.hazelcast.HazelcastDefaultEndpoint;
+import org.apache.camel.spi.UriEndpoint;
+/**
+ * The hazelcast-atomicvalue component is used to access <a href="http://www.hazelcast.com/">Hazelcast</a> atomic number, which
+ * is an object that simply provides a grid wide number (long).
+ */
+@UriEndpoint(firstVersion = "2.7.0", scheme = "hazelcast-atomicvalue", title = "Hazelcast Atomic Number", syntax = "hazelcast-atomicvalue:cacheName", producerOnly = true, label = "cache,datagrid")
public class HazelcastAtomicnumberEndpoint extends HazelcastDefaultEndpoint {
public HazelcastAtomicnumberEndpoint(HazelcastInstance hazelcastInstance, String uri, Component component, final String cacheName) {
super(hazelcastInstance, uri, component, cacheName);
+ setCommand(HazelcastCommand.atomicvalue);
}
public Consumer createConsumer(Processor processor) throws Exception {
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/instance/HazelcastInstanceComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/instance/HazelcastInstanceComponent.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/instance/HazelcastInstanceComponent.java
new file mode 100644
index 0000000..2368fb3
--- /dev/null
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/instance/HazelcastInstanceComponent.java
@@ -0,0 +1,42 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.instance;
+
+import java.util.Map;
+
+import com.hazelcast.core.HazelcastInstance;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.HazelcastDefaultComponent;
+import org.apache.camel.component.hazelcast.HazelcastDefaultEndpoint;
+
+public class HazelcastInstanceComponent extends HazelcastDefaultComponent {
+
+ public HazelcastInstanceComponent() {
+ super();
+ }
+
+ public HazelcastInstanceComponent(final CamelContext context) {
+ super(context);
+ }
+
+ @Override
+ protected HazelcastDefaultEndpoint doCreateEndpoint(String uri, String remaining, Map<String, Object> parameters, HazelcastInstance hzInstance) throws Exception {
+ return new HazelcastInstanceEndpoint(hzInstance, uri, this);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/instance/HazelcastInstanceEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/instance/HazelcastInstanceEndpoint.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/instance/HazelcastInstanceEndpoint.java
index c4c78c5..51907f1 100644
--- a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/instance/HazelcastInstanceEndpoint.java
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/instance/HazelcastInstanceEndpoint.java
@@ -20,13 +20,21 @@ import com.hazelcast.core.HazelcastInstance;
import org.apache.camel.Consumer;
import org.apache.camel.Processor;
import org.apache.camel.Producer;
-import org.apache.camel.component.hazelcast.HazelcastComponent;
+import org.apache.camel.component.hazelcast.HazelcastCommand;
+import org.apache.camel.component.hazelcast.HazelcastDefaultComponent;
import org.apache.camel.component.hazelcast.HazelcastDefaultEndpoint;
+import org.apache.camel.spi.UriEndpoint;
+/**
+ * The hazelcast-instance component is used to consume join/leave events of the cache instance in the cluster.
+ */
+@UriEndpoint(firstVersion = "2.7.0", scheme = "hazelcast-instance", title = "Hazelcast Instance", syntax = "hazelcast-instance:cacheName",
+ consumerOnly = true, consumerClass = HazelcastInstanceConsumer.class, label = "cache,datagrid")
public class HazelcastInstanceEndpoint extends HazelcastDefaultEndpoint {
- public HazelcastInstanceEndpoint(HazelcastInstance hazelcastInstance, String uri, HazelcastComponent component) {
+ public HazelcastInstanceEndpoint(HazelcastInstance hazelcastInstance, String uri, HazelcastDefaultComponent component) {
super(hazelcastInstance, uri, component);
+ setCommand(HazelcastCommand.instance);
}
public Consumer createConsumer(Processor processor) throws Exception {
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/list/HazelcastListComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/list/HazelcastListComponent.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/list/HazelcastListComponent.java
new file mode 100644
index 0000000..e69f135
--- /dev/null
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/list/HazelcastListComponent.java
@@ -0,0 +1,42 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.list;
+
+import java.util.Map;
+
+import com.hazelcast.core.HazelcastInstance;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.HazelcastDefaultComponent;
+import org.apache.camel.component.hazelcast.HazelcastDefaultEndpoint;
+
+public class HazelcastListComponent extends HazelcastDefaultComponent {
+
+ public HazelcastListComponent() {
+ super();
+ }
+
+ public HazelcastListComponent(final CamelContext context) {
+ super(context);
+ }
+
+ @Override
+ protected HazelcastDefaultEndpoint doCreateEndpoint(String uri, String remaining, Map<String, Object> parameters, HazelcastInstance hzInstance) throws Exception {
+ return new HazelcastListEndpoint(hzInstance, uri, this, remaining);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/list/HazelcastListEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/list/HazelcastListEndpoint.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/list/HazelcastListEndpoint.java
index c66a379..df2cb80 100644
--- a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/list/HazelcastListEndpoint.java
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/list/HazelcastListEndpoint.java
@@ -22,15 +22,19 @@ import org.apache.camel.Consumer;
import org.apache.camel.Endpoint;
import org.apache.camel.Processor;
import org.apache.camel.Producer;
+import org.apache.camel.component.hazelcast.HazelcastCommand;
import org.apache.camel.component.hazelcast.HazelcastDefaultEndpoint;
+import org.apache.camel.spi.UriEndpoint;
/**
- * Hazelcast List {@link Endpoint} implementation.
+ * The hazelcast-list component is used to access <a href="http://www.hazelcast.com/">Hazelcast</a> distributed list.
*/
+@UriEndpoint(firstVersion = "2.7.0", scheme = "hazelcast-list", title = "Hazelcast List", syntax = "hazelcast-list:cacheName", label = "cache,datagrid")
public class HazelcastListEndpoint extends HazelcastDefaultEndpoint {
public HazelcastListEndpoint(HazelcastInstance hazelcastInstance, String endpointUri, Component component, String cacheName) {
super(hazelcastInstance, endpointUri, component, cacheName);
+ setCommand(HazelcastCommand.list);
}
@Override
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/map/HazelcastMapComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/map/HazelcastMapComponent.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/map/HazelcastMapComponent.java
new file mode 100644
index 0000000..f178805
--- /dev/null
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/map/HazelcastMapComponent.java
@@ -0,0 +1,42 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.map;
+
+import java.util.Map;
+
+import com.hazelcast.core.HazelcastInstance;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.HazelcastDefaultComponent;
+import org.apache.camel.component.hazelcast.HazelcastDefaultEndpoint;
+
+public class HazelcastMapComponent extends HazelcastDefaultComponent {
+
+ public HazelcastMapComponent() {
+ super();
+ }
+
+ public HazelcastMapComponent(final CamelContext context) {
+ super(context);
+ }
+
+ @Override
+ protected HazelcastDefaultEndpoint doCreateEndpoint(String uri, String remaining, Map<String, Object> parameters, HazelcastInstance hzInstance) throws Exception {
+ return new HazelcastMapEndpoint(hzInstance, uri, remaining, this);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/map/HazelcastMapEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/map/HazelcastMapEndpoint.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/map/HazelcastMapEndpoint.java
index e15bd6d..2c7ac6d 100644
--- a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/map/HazelcastMapEndpoint.java
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/map/HazelcastMapEndpoint.java
@@ -20,13 +20,20 @@ import com.hazelcast.core.HazelcastInstance;
import org.apache.camel.Consumer;
import org.apache.camel.Processor;
import org.apache.camel.Producer;
-import org.apache.camel.component.hazelcast.HazelcastComponent;
+import org.apache.camel.component.hazelcast.HazelcastCommand;
+import org.apache.camel.component.hazelcast.HazelcastDefaultComponent;
import org.apache.camel.component.hazelcast.HazelcastDefaultEndpoint;
+import org.apache.camel.spi.UriEndpoint;
+/**
+ * The hazelcast-map component is used to access <a href="http://www.hazelcast.com/">Hazelcast</a> distributed map.
+ */
+@UriEndpoint(firstVersion = "2.7.0", scheme = "hazelcast-map", title = "Hazelcast Map", syntax = "hazelcast-map:cacheName", label = "cache,datagrid")
public class HazelcastMapEndpoint extends HazelcastDefaultEndpoint {
- public HazelcastMapEndpoint(HazelcastInstance hazelcastInstance, String uri, String cacheName, HazelcastComponent component) {
+ public HazelcastMapEndpoint(HazelcastInstance hazelcastInstance, String uri, String cacheName, HazelcastDefaultComponent component) {
super(hazelcastInstance, uri, component, cacheName);
+ setCommand(HazelcastCommand.map);
}
public Consumer createConsumer(Processor processor) throws Exception {
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/multimap/HazelcastMultimapComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/multimap/HazelcastMultimapComponent.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/multimap/HazelcastMultimapComponent.java
new file mode 100644
index 0000000..6eb11b2
--- /dev/null
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/multimap/HazelcastMultimapComponent.java
@@ -0,0 +1,42 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.multimap;
+
+import java.util.Map;
+
+import com.hazelcast.core.HazelcastInstance;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.HazelcastDefaultComponent;
+import org.apache.camel.component.hazelcast.HazelcastDefaultEndpoint;
+
+public class HazelcastMultimapComponent extends HazelcastDefaultComponent {
+
+ public HazelcastMultimapComponent() {
+ super();
+ }
+
+ public HazelcastMultimapComponent(final CamelContext context) {
+ super(context);
+ }
+
+ @Override
+ protected HazelcastDefaultEndpoint doCreateEndpoint(String uri, String remaining, Map<String, Object> parameters, HazelcastInstance hzInstance) throws Exception {
+ return new HazelcastMultimapEndpoint(hzInstance, uri, remaining, this);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/multimap/HazelcastMultimapEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/multimap/HazelcastMultimapEndpoint.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/multimap/HazelcastMultimapEndpoint.java
index a7b4ce7..a73d0cd 100644
--- a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/multimap/HazelcastMultimapEndpoint.java
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/multimap/HazelcastMultimapEndpoint.java
@@ -20,13 +20,20 @@ import com.hazelcast.core.HazelcastInstance;
import org.apache.camel.Consumer;
import org.apache.camel.Processor;
import org.apache.camel.Producer;
-import org.apache.camel.component.hazelcast.HazelcastComponent;
+import org.apache.camel.component.hazelcast.HazelcastCommand;
+import org.apache.camel.component.hazelcast.HazelcastDefaultComponent;
import org.apache.camel.component.hazelcast.HazelcastDefaultEndpoint;
+import org.apache.camel.spi.UriEndpoint;
+/**
+ * The hazelcast-multimap component is used to to access <a href="http://www.hazelcast.com/">Hazelcast</a> distributed multimap.
+ */
+@UriEndpoint(firstVersion = "2.7.0", scheme = "hazelcast-multimap", title = "Hazelcast Multimap", syntax = "hazelcast-multimap:cacheName", label = "cache,datagrid")
public class HazelcastMultimapEndpoint extends HazelcastDefaultEndpoint {
- public HazelcastMultimapEndpoint(HazelcastInstance hazelcastInstance, String uri, String cacheName, HazelcastComponent component) {
+ public HazelcastMultimapEndpoint(HazelcastInstance hazelcastInstance, String uri, String cacheName, HazelcastDefaultComponent component) {
super(hazelcastInstance, uri, component, cacheName);
+ setCommand(HazelcastCommand.multimap);
}
public Consumer createConsumer(Processor processor) throws Exception {
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/queue/HazelcastQueueComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/queue/HazelcastQueueComponent.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/queue/HazelcastQueueComponent.java
new file mode 100644
index 0000000..ba8bc75
--- /dev/null
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/queue/HazelcastQueueComponent.java
@@ -0,0 +1,42 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.queue;
+
+import java.util.Map;
+
+import com.hazelcast.core.HazelcastInstance;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.HazelcastDefaultComponent;
+import org.apache.camel.component.hazelcast.HazelcastDefaultEndpoint;
+
+public class HazelcastQueueComponent extends HazelcastDefaultComponent {
+
+ public HazelcastQueueComponent() {
+ super();
+ }
+
+ public HazelcastQueueComponent(final CamelContext context) {
+ super(context);
+ }
+
+ @Override
+ protected HazelcastDefaultEndpoint doCreateEndpoint(String uri, String remaining, Map<String, Object> parameters, HazelcastInstance hzInstance) throws Exception {
+ return new HazelcastQueueEndpoint(hzInstance, uri, this, remaining);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/queue/HazelcastQueueEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/queue/HazelcastQueueEndpoint.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/queue/HazelcastQueueEndpoint.java
index 678270e..7b5d5dd 100644
--- a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/queue/HazelcastQueueEndpoint.java
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/queue/HazelcastQueueEndpoint.java
@@ -21,15 +21,19 @@ import org.apache.camel.Component;
import org.apache.camel.Consumer;
import org.apache.camel.Processor;
import org.apache.camel.Producer;
+import org.apache.camel.component.hazelcast.HazelcastCommand;
import org.apache.camel.component.hazelcast.HazelcastDefaultEndpoint;
+import org.apache.camel.spi.UriEndpoint;
/**
- *
+ * The hazelcast-queue component is used to access <a href="http://www.hazelcast.com/">Hazelcast</a> distributed queue.
*/
+@UriEndpoint(firstVersion = "2.7.0", scheme = "hazelcast-queue", title = "Hazelcast Queue", syntax = "hazelcast-queue:cacheName", label = "cache,datagrid")
public class HazelcastQueueEndpoint extends HazelcastDefaultEndpoint {
public HazelcastQueueEndpoint(HazelcastInstance hazelcastInstance, String endpointUri, Component component, String cacheName) {
super(hazelcastInstance, endpointUri, component, cacheName);
+ setCommand(HazelcastCommand.queue);
}
@Override
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/replicatedmap/HazelcastReplicatedmapComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/replicatedmap/HazelcastReplicatedmapComponent.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/replicatedmap/HazelcastReplicatedmapComponent.java
new file mode 100644
index 0000000..7d720e9
--- /dev/null
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/replicatedmap/HazelcastReplicatedmapComponent.java
@@ -0,0 +1,42 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.replicatedmap;
+
+import java.util.Map;
+
+import com.hazelcast.core.HazelcastInstance;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.HazelcastDefaultComponent;
+import org.apache.camel.component.hazelcast.HazelcastDefaultEndpoint;
+
+public class HazelcastReplicatedmapComponent extends HazelcastDefaultComponent {
+
+ public HazelcastReplicatedmapComponent() {
+ super();
+ }
+
+ public HazelcastReplicatedmapComponent(final CamelContext context) {
+ super(context);
+ }
+
+ @Override
+ protected HazelcastDefaultEndpoint doCreateEndpoint(String uri, String remaining, Map<String, Object> parameters, HazelcastInstance hzInstance) throws Exception {
+ return new HazelcastReplicatedmapEndpoint(hzInstance, uri, remaining, this);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/replicatedmap/HazelcastReplicatedmapEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/replicatedmap/HazelcastReplicatedmapEndpoint.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/replicatedmap/HazelcastReplicatedmapEndpoint.java
index 79f36d6..bfe646b 100644
--- a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/replicatedmap/HazelcastReplicatedmapEndpoint.java
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/replicatedmap/HazelcastReplicatedmapEndpoint.java
@@ -20,13 +20,20 @@ import com.hazelcast.core.HazelcastInstance;
import org.apache.camel.Consumer;
import org.apache.camel.Processor;
import org.apache.camel.Producer;
-import org.apache.camel.component.hazelcast.HazelcastComponent;
+import org.apache.camel.component.hazelcast.HazelcastCommand;
+import org.apache.camel.component.hazelcast.HazelcastDefaultComponent;
import org.apache.camel.component.hazelcast.HazelcastDefaultEndpoint;
+import org.apache.camel.spi.UriEndpoint;
+/**
+ * The hazelcast-replicatedmap component is used to access <a href="http://www.hazelcast.com/">Hazelcast</a> replicated map.
+ */
+@UriEndpoint(firstVersion = "2.16.0", scheme = "hazelcast-replicatedmap", title = "Hazelcast Replicated Map", syntax = "hazelcast-replicatedmap:cacheName", label = "cache,datagrid")
public class HazelcastReplicatedmapEndpoint extends HazelcastDefaultEndpoint {
- public HazelcastReplicatedmapEndpoint(HazelcastInstance hazelcastInstance, String uri, String cacheName, HazelcastComponent component) {
+ public HazelcastReplicatedmapEndpoint(HazelcastInstance hazelcastInstance, String uri, String cacheName, HazelcastDefaultComponent component) {
super(hazelcastInstance, uri, component, cacheName);
+ setCommand(HazelcastCommand.replicatedmap);
}
public Consumer createConsumer(Processor processor) throws Exception {
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/ringbuffer/HazelcastRingbufferComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/ringbuffer/HazelcastRingbufferComponent.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/ringbuffer/HazelcastRingbufferComponent.java
new file mode 100644
index 0000000..27c0957
--- /dev/null
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/ringbuffer/HazelcastRingbufferComponent.java
@@ -0,0 +1,43 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.ringbuffer;
+
+import java.util.Map;
+
+import com.hazelcast.core.HazelcastInstance;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.HazelcastDefaultComponent;
+import org.apache.camel.component.hazelcast.HazelcastDefaultEndpoint;
+
+public class HazelcastRingbufferComponent extends HazelcastDefaultComponent {
+
+ public HazelcastRingbufferComponent() {
+ super();
+ }
+
+ public HazelcastRingbufferComponent(final CamelContext context) {
+ super(context);
+ }
+
+ @Override
+ protected HazelcastDefaultEndpoint doCreateEndpoint(String uri, String remaining, Map<String, Object> parameters, HazelcastInstance hzInstance) throws Exception {
+ HazelcastRingbufferEndpoint answer = new HazelcastRingbufferEndpoint(hzInstance, uri, this, remaining);
+ return answer;
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/ringbuffer/HazelcastRingbufferEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/ringbuffer/HazelcastRingbufferEndpoint.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/ringbuffer/HazelcastRingbufferEndpoint.java
index 6b0df4a..21dc075 100644
--- a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/ringbuffer/HazelcastRingbufferEndpoint.java
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/ringbuffer/HazelcastRingbufferEndpoint.java
@@ -21,12 +21,19 @@ import org.apache.camel.Component;
import org.apache.camel.Consumer;
import org.apache.camel.Processor;
import org.apache.camel.Producer;
+import org.apache.camel.component.hazelcast.HazelcastCommand;
import org.apache.camel.component.hazelcast.HazelcastDefaultEndpoint;
+import org.apache.camel.spi.UriEndpoint;
+/**
+ * The hazelcast-ringbuffer component is used to access <a href="http://www.hazelcast.com/">Hazelcast</a> distributed ringbuffer.
+ */
+@UriEndpoint(firstVersion = "2.16.0", scheme = "hazelcast-ringbuffer", title = "Hazelcast Ringbuffer", syntax = "hazelcast-ringbuffer:cacheName", producerOnly = true, label = "cache,datagrid")
public class HazelcastRingbufferEndpoint extends HazelcastDefaultEndpoint {
public HazelcastRingbufferEndpoint(HazelcastInstance hazelcastInstance, String uri, Component component, final String cacheName) {
super(hazelcastInstance, uri, component, cacheName);
+ setCommand(HazelcastCommand.ringbuffer);
}
public Consumer createConsumer(Processor processor) throws Exception {
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/seda/HazelcastSedaComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/seda/HazelcastSedaComponent.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/seda/HazelcastSedaComponent.java
new file mode 100644
index 0000000..f2172a4
--- /dev/null
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/seda/HazelcastSedaComponent.java
@@ -0,0 +1,46 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.seda;
+
+import java.util.Map;
+
+import com.hazelcast.core.HazelcastInstance;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.HazelcastDefaultComponent;
+import org.apache.camel.component.hazelcast.HazelcastDefaultEndpoint;
+
+public class HazelcastSedaComponent extends HazelcastDefaultComponent {
+
+ public HazelcastSedaComponent() {
+ super();
+ }
+
+ public HazelcastSedaComponent(final CamelContext context) {
+ super(context);
+ }
+
+ @Override
+ protected HazelcastDefaultEndpoint doCreateEndpoint(String uri, String remaining, Map<String, Object> parameters, HazelcastInstance hzInstance) throws Exception {
+ final HazelcastSedaConfiguration config = new HazelcastSedaConfiguration();
+ setProperties(config, parameters);
+ config.setQueueName(remaining);
+ HazelcastSedaEndpoint answer = new HazelcastSedaEndpoint(hzInstance, uri, this, config);
+ return answer;
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/seda/HazelcastSedaEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/seda/HazelcastSedaEndpoint.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/seda/HazelcastSedaEndpoint.java
index a4b89fa..b638498 100644
--- a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/seda/HazelcastSedaEndpoint.java
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/seda/HazelcastSedaEndpoint.java
@@ -23,25 +23,29 @@ import org.apache.camel.Consumer;
import org.apache.camel.Endpoint;
import org.apache.camel.Processor;
import org.apache.camel.Producer;
-import org.apache.camel.component.hazelcast.HazelcastComponent;
+import org.apache.camel.component.hazelcast.HazelcastCommand;
+import org.apache.camel.component.hazelcast.HazelcastDefaultComponent;
import org.apache.camel.component.hazelcast.HazelcastDefaultEndpoint;
+import org.apache.camel.spi.UriEndpoint;
import org.apache.camel.util.ObjectHelper;
/**
- * Hazelcast SEDA {@link Endpoint} implementation.
+ * The hazelcast-seda component is used to access <a href="http://www.hazelcast.com/">Hazelcast</a> {@link BlockingQueue}.
*/
+@UriEndpoint(firstVersion = "2.7.0", scheme = "hazelcast-seda", title = "Hazelcast SEDA", syntax = "hazelcast-seda:cacheName", label = "cache,datagrid")
public class HazelcastSedaEndpoint extends HazelcastDefaultEndpoint {
private final BlockingQueue<Object> queue;
private final HazelcastSedaConfiguration configuration;
- public HazelcastSedaEndpoint(final HazelcastInstance hazelcastInstance, final String uri, final HazelcastComponent component, final HazelcastSedaConfiguration configuration) {
+ public HazelcastSedaEndpoint(final HazelcastInstance hazelcastInstance, final String uri, final HazelcastDefaultComponent component, final HazelcastSedaConfiguration configuration) {
super(hazelcastInstance, uri, component);
this.queue = hazelcastInstance.getQueue(configuration.getQueueName());
this.configuration = configuration;
if (ObjectHelper.isEmpty(configuration.getQueueName())) {
throw new IllegalArgumentException("Queue name is missing.");
}
+ setCommand(HazelcastCommand.seda);
}
public Producer createProducer() throws Exception {
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/set/HazelcastSetComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/set/HazelcastSetComponent.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/set/HazelcastSetComponent.java
new file mode 100644
index 0000000..04a6dda
--- /dev/null
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/set/HazelcastSetComponent.java
@@ -0,0 +1,43 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.set;
+
+import java.util.Map;
+
+import com.hazelcast.core.HazelcastInstance;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.HazelcastDefaultComponent;
+import org.apache.camel.component.hazelcast.HazelcastDefaultEndpoint;
+
+public class HazelcastSetComponent extends HazelcastDefaultComponent {
+
+ public HazelcastSetComponent() {
+ super();
+ }
+
+ public HazelcastSetComponent(final CamelContext context) {
+ super(context);
+ }
+
+ @Override
+ protected HazelcastDefaultEndpoint doCreateEndpoint(String uri, String remaining, Map<String, Object> parameters, HazelcastInstance hzInstance) throws Exception {
+ HazelcastSetEndpoint answer = new HazelcastSetEndpoint(hzInstance, uri, this, remaining);
+ return answer;
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/set/HazelcastSetEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/set/HazelcastSetEndpoint.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/set/HazelcastSetEndpoint.java
index fe4c27d..077bb3e 100644
--- a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/set/HazelcastSetEndpoint.java
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/set/HazelcastSetEndpoint.java
@@ -22,15 +22,19 @@ import org.apache.camel.Consumer;
import org.apache.camel.Endpoint;
import org.apache.camel.Processor;
import org.apache.camel.Producer;
+import org.apache.camel.component.hazelcast.HazelcastCommand;
import org.apache.camel.component.hazelcast.HazelcastDefaultEndpoint;
+import org.apache.camel.spi.UriEndpoint;
/**
- * Hazelcast Set {@link Endpoint} implementation.
+ * The camel {@link Endpoint} to access <a href="http://www.hazelcast.com/">Hazelcast</a> distributed set.
*/
+@UriEndpoint(firstVersion = "2.7.0", scheme = "hazelcast-set", title = "Hazelcast Set", syntax = "hazelcast-set:cacheName", label = "cache,datagrid")
public class HazelcastSetEndpoint extends HazelcastDefaultEndpoint {
public HazelcastSetEndpoint(HazelcastInstance hazelcastInstance, String endpointUri, Component component, String cacheName) {
super(hazelcastInstance, endpointUri, component, cacheName);
+ setCommand(HazelcastCommand.set);
}
@Override
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/topic/HazelcastTopicComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/topic/HazelcastTopicComponent.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/topic/HazelcastTopicComponent.java
new file mode 100644
index 0000000..d2876c8
--- /dev/null
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/topic/HazelcastTopicComponent.java
@@ -0,0 +1,45 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.topic;
+
+import java.util.Map;
+
+import com.hazelcast.core.HazelcastInstance;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.HazelcastDefaultComponent;
+import org.apache.camel.component.hazelcast.HazelcastDefaultEndpoint;
+
+public class HazelcastTopicComponent extends HazelcastDefaultComponent {
+
+ public HazelcastTopicComponent() {
+ super();
+ }
+
+ public HazelcastTopicComponent(final CamelContext context) {
+ super(context);
+ }
+
+ @Override
+ protected HazelcastDefaultEndpoint doCreateEndpoint(String uri, String remaining, Map<String, Object> parameters, HazelcastInstance hzInstance) throws Exception {
+ final HazelcastTopicConfiguration config = new HazelcastTopicConfiguration();
+ setProperties(config, parameters);
+ HazelcastTopicEndpoint answer = new HazelcastTopicEndpoint(hzInstance, uri, this, remaining, config);
+ return answer;
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/topic/HazelcastTopicEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/topic/HazelcastTopicEndpoint.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/topic/HazelcastTopicEndpoint.java
index f9aefb7..59c6e95 100644
--- a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/topic/HazelcastTopicEndpoint.java
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/topic/HazelcastTopicEndpoint.java
@@ -22,8 +22,14 @@ import org.apache.camel.Consumer;
import org.apache.camel.MultipleConsumersSupport;
import org.apache.camel.Processor;
import org.apache.camel.Producer;
+import org.apache.camel.component.hazelcast.HazelcastCommand;
import org.apache.camel.component.hazelcast.HazelcastDefaultEndpoint;
+import org.apache.camel.spi.UriEndpoint;
+/**
+ * The hazelcast-topic component is used to access <a href="http://www.hazelcast.com/">Hazelcast</a> distributed topic.
+ */
+@UriEndpoint(firstVersion = "2.15.0", scheme = "hazelcast-topic", title = "Hazelcast Topic", syntax = "hazelcast-topic:cacheName", label = "cache,datagrid")
public class HazelcastTopicEndpoint extends HazelcastDefaultEndpoint implements MultipleConsumersSupport {
private final HazelcastTopicConfiguration configuration;
@@ -31,6 +37,7 @@ public class HazelcastTopicEndpoint extends HazelcastDefaultEndpoint implements
public HazelcastTopicEndpoint(HazelcastInstance hazelcastInstance, String endpointUri, Component component, String cacheName, final HazelcastTopicConfiguration configuration) {
super(hazelcastInstance, endpointUri, component, cacheName);
this.configuration = configuration;
+ setCommand(HazelcastCommand.topic);
}
@Override
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-atomicvalue
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-atomicvalue b/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-atomicvalue
new file mode 100644
index 0000000..583616a
--- /dev/null
+++ b/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-atomicvalue
@@ -0,0 +1,18 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+class=org.apache.camel.component.hazelcast.atomicnumber.HazelcastAtomicnumberComponent
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-instance
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-instance b/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-instance
new file mode 100644
index 0000000..4d47929
--- /dev/null
+++ b/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-instance
@@ -0,0 +1,18 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+class=org.apache.camel.component.hazelcast.instance.HazelcastInstanceComponent
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-list
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-list b/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-list
new file mode 100644
index 0000000..97c33f9
--- /dev/null
+++ b/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-list
@@ -0,0 +1,18 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+class=org.apache.camel.component.hazelcast.list.HazelcastListComponent
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-map
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-map b/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-map
new file mode 100644
index 0000000..24adef8
--- /dev/null
+++ b/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-map
@@ -0,0 +1,18 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+class=org.apache.camel.component.hazelcast.map.HazelcastMapComponent
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-multimap
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-multimap b/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-multimap
new file mode 100644
index 0000000..62f82a0
--- /dev/null
+++ b/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-multimap
@@ -0,0 +1,18 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+class=org.apache.camel.component.hazelcast.multimap.HazelcastMultimapComponent
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-queue
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-queue b/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-queue
new file mode 100644
index 0000000..cc350f2
--- /dev/null
+++ b/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-queue
@@ -0,0 +1,18 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+class=org.apache.camel.component.hazelcast.queue.HazelcastQueueComponent
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-replicatedmap
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-replicatedmap b/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-replicatedmap
new file mode 100644
index 0000000..5c1fbc6
--- /dev/null
+++ b/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-replicatedmap
@@ -0,0 +1,18 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+class=org.apache.camel.component.hazelcast.replicatedmap.HazelcastReplicatedmapComponent
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-ringbuffer
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-ringbuffer b/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-ringbuffer
new file mode 100644
index 0000000..f2e3e65
--- /dev/null
+++ b/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-ringbuffer
@@ -0,0 +1,18 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+class=org.apache.camel.component.hazelcast.ringbuffer.HazelcastRingbufferComponent
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-seda
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-seda b/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-seda
new file mode 100644
index 0000000..4d96a59
--- /dev/null
+++ b/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-seda
@@ -0,0 +1,18 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+class=org.apache.camel.component.hazelcast.seda.HazelcastSedaComponent
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-set
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-set b/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-set
new file mode 100644
index 0000000..313d664
--- /dev/null
+++ b/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-set
@@ -0,0 +1,18 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+class=org.apache.camel.component.hazelcast.set.HazelcastSetComponent
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-topic
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-topic b/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-topic
new file mode 100644
index 0000000..407d64f
--- /dev/null
+++ b/components/camel-hazelcast/src/main/resources/META-INF/services/org/apache/camel/component/hazelcast-topic
@@ -0,0 +1,18 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+class=org.apache.camel.component.hazelcast.topic.HazelcastTopicComponent
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastAtomicnumberProducerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastAtomicnumberProducerTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastAtomicnumberProducerTest.java
index 5f2c54e..7fd1316 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastAtomicnumberProducerTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastAtomicnumberProducerTest.java
@@ -134,30 +134,30 @@ public class HazelcastAtomicnumberProducerTest extends HazelcastCamelTestSupport
public void configure() throws Exception {
from("direct:setInvalid").setHeader(HazelcastConstants.OPERATION, constant("invalid"))
- .to(String.format("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX));
+ .to(String.format("hazelcast-%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX));
from("direct:set").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.SETVALUE_OPERATION))
- .to(String.format("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX));
+ .to(String.format("hazelcast-%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX));
- from("direct:get").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION)).to(String.format("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX));
+ from("direct:get").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION)).to(String.format("hazelcast-%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX));
from("direct:increment").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.INCREMENT_OPERATION)).to(
- String.format("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX));
+ String.format("hazelcast-%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX));
from("direct:decrement").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DECREMENT_OPERATION)).to(
- String.format("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX));
+ String.format("hazelcast-%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX));
from("direct:destroy").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DESTROY_OPERATION)).to(
- String.format("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX));
+ String.format("hazelcast-%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX));
from("direct:compareAndSet").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.COMPARE_AND_SET_OPERATION)).to(
- String.format("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX));
+ String.format("hazelcast-%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX));
from("direct:getAndAdd").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_AND_ADD_OPERATION)).to(
- String.format("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX));
+ String.format("hazelcast-%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX));
- from("direct:setWithOperationNumber").toF("hazelcast:%sfoo?operation=%s", HazelcastConstants.ATOMICNUMBER_PREFIX, HazelcastConstants.SETVALUE_OPERATION);
- from("direct:setWithOperationName").toF("hazelcast:%sfoo?operation=setvalue", HazelcastConstants.ATOMICNUMBER_PREFIX);
+ from("direct:setWithOperationNumber").toF("hazelcast-%sfoo?operation=%s", HazelcastConstants.ATOMICNUMBER_PREFIX, HazelcastConstants.SETVALUE_OPERATION);
+ from("direct:setWithOperationName").toF("hazelcast-%sfoo?operation=setvalue", HazelcastConstants.ATOMICNUMBER_PREFIX);
}
};
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastCamelSpringTestSupport.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastCamelSpringTestSupport.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastCamelSpringTestSupport.java
index 2a9fa73..39d6307 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastCamelSpringTestSupport.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastCamelSpringTestSupport.java
@@ -34,9 +34,7 @@ public abstract class HazelcastCamelSpringTestSupport extends CamelSpringTestSup
protected CamelContext createCamelContext() throws Exception {
MockitoAnnotations.initMocks(this);
CamelContext context = super.createCamelContext();
- HazelcastComponent hazelcastComponent = new HazelcastComponent(context);
- hazelcastComponent.setHazelcastInstance(hazelcastInstance);
- context.addComponent("hazelcast", hazelcastComponent);
+ HazelcastCamelTestHelper.registerHazelcastComponents(context, hazelcastInstance);
trainHazelcastInstance(hazelcastInstance);
return context;
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastCamelTestHelper.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastCamelTestHelper.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastCamelTestHelper.java
new file mode 100644
index 0000000..425eb5a
--- /dev/null
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastCamelTestHelper.java
@@ -0,0 +1,78 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast;
+
+import com.hazelcast.core.HazelcastInstance;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.atomicnumber.HazelcastAtomicnumberComponent;
+import org.apache.camel.component.hazelcast.instance.HazelcastInstanceComponent;
+import org.apache.camel.component.hazelcast.list.HazelcastListComponent;
+import org.apache.camel.component.hazelcast.map.HazelcastMapComponent;
+import org.apache.camel.component.hazelcast.multimap.HazelcastMultimapComponent;
+import org.apache.camel.component.hazelcast.queue.HazelcastQueueComponent;
+import org.apache.camel.component.hazelcast.replicatedmap.HazelcastReplicatedmapComponent;
+import org.apache.camel.component.hazelcast.ringbuffer.HazelcastRingbufferComponent;
+import org.apache.camel.component.hazelcast.seda.HazelcastSedaComponent;
+import org.apache.camel.component.hazelcast.set.HazelcastSetComponent;
+import org.apache.camel.component.hazelcast.topic.HazelcastTopicComponent;
+
+public final class HazelcastCamelTestHelper {
+
+ private HazelcastCamelTestHelper() {
+ }
+
+ public static void registerHazelcastComponents(CamelContext context, HazelcastInstance hazelcastInstance) {
+ HazelcastAtomicnumberComponent atomic = new HazelcastAtomicnumberComponent(context);
+ atomic.setHazelcastInstance(hazelcastInstance);
+ context.addComponent("hazelcast-atomicvalue", atomic);
+ HazelcastInstanceComponent instance = new HazelcastInstanceComponent(context);
+ instance.setHazelcastInstance(hazelcastInstance);
+ context.addComponent("hazelcast-instance", instance);
+ HazelcastListComponent list = new HazelcastListComponent(context);
+ list.setHazelcastInstance(hazelcastInstance);
+ context.addComponent("hazelcast-list", list);
+ HazelcastMapComponent map = new HazelcastMapComponent(context);
+ map.setHazelcastInstance(hazelcastInstance);
+ context.addComponent("hazelcast-map", map);
+ HazelcastMultimapComponent multimap = new HazelcastMultimapComponent(context);
+ multimap.setHazelcastInstance(hazelcastInstance);
+ context.addComponent("hazelcast-multimap", multimap);
+ HazelcastQueueComponent queue = new HazelcastQueueComponent(context);
+ queue.setHazelcastInstance(hazelcastInstance);
+ context.addComponent("hazelcast-queue", queue);
+ HazelcastReplicatedmapComponent replicatedmap = new HazelcastReplicatedmapComponent(context);
+ replicatedmap.setHazelcastInstance(hazelcastInstance);
+ context.addComponent("hazelcast-replicatedmap", replicatedmap);
+ HazelcastRingbufferComponent ringbuffer = new HazelcastRingbufferComponent(context);
+ ringbuffer.setHazelcastInstance(hazelcastInstance);
+ context.addComponent("hazelcast-ringbuffer", ringbuffer);
+ HazelcastSedaComponent seda = new HazelcastSedaComponent(context);
+ seda.setHazelcastInstance(hazelcastInstance);
+ context.addComponent("hazelcast-seda", seda);
+ HazelcastSetComponent set = new HazelcastSetComponent(context);
+ set.setHazelcastInstance(hazelcastInstance);
+ context.addComponent("hazelcast-set", set);
+ HazelcastTopicComponent topic = new HazelcastTopicComponent(context);
+ topic.setHazelcastInstance(hazelcastInstance);
+ context.addComponent("hazelcast-topic", topic);
+ HazelcastComponent old = new HazelcastComponent(context);
+ old.setHazelcastInstance(hazelcastInstance);
+ context.addComponent("hazelcast", old);
+ }
+
+}
[04/10] camel git commit: Upgrade Kafka and related bundle to version
0.10.2.1
Posted by ac...@apache.org.
Upgrade Kafka and related bundle to version 0.10.2.1
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/dbeadb6d
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/dbeadb6d
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/dbeadb6d
Branch: refs/heads/master
Commit: dbeadb6d9956030443e66db400164e777234f432
Parents: 8d70b7a
Author: Andrea Cosentino <an...@gmail.com>
Authored: Tue May 9 09:48:32 2017 +0200
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Tue May 9 09:48:32 2017 +0200
----------------------------------------------------------------------
parent/pom.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/dbeadb6d/parent/pom.xml
----------------------------------------------------------------------
diff --git a/parent/pom.xml b/parent/pom.xml
index e0f64ae..9735bbb 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -399,8 +399,8 @@
<jython-version>2.5.3</jython-version>
<jzlib-version>1.1.3</jzlib-version>
<jzlib-bundle-version>1.1.3_2</jzlib-bundle-version>
- <kafka-version>0.10.2.0</kafka-version>
- <kafka-bundle-version>0.10.2.0_1</kafka-bundle-version>
+ <kafka-version>0.10.2.1</kafka-version>
+ <kafka-bundle-version>0.10.2.1_1</kafka-bundle-version>
<karaf-version>2.4.4</karaf-version>
<karaf3-version>3.0.8</karaf3-version>
<karaf4-version>4.1.1</karaf4-version>
[10/10] camel git commit: CAMEL-10798 Splitted hazelcast component
into 11 which correspond to each of endpoints
Posted by ac...@apache.org.
CAMEL-10798 Splitted hazelcast component into 11 which correspond to each of endpoints
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/bf10d278
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/bf10d278
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/bf10d278
Branch: refs/heads/master
Commit: bf10d2787f7bf464987a79642ee711b83bb1b972
Parents: dbeadb6
Author: Tomohisa Igarashi <tm...@gmail.com>
Authored: Mon Apr 24 23:26:02 2017 +0900
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Tue May 9 09:50:01 2017 +0200
----------------------------------------------------------------------
.../docs/hazelcast-atomicvalue-component.adoc | 213 +++
.../src/main/docs/hazelcast-component.adoc | 1402 ------------------
.../main/docs/hazelcast-instance-component.adoc | 100 ++
.../src/main/docs/hazelcast-list-component.adoc | 129 ++
.../src/main/docs/hazelcast-map-component.adoc | 336 +++++
.../main/docs/hazelcast-multimap-component.adoc | 237 +++
.../main/docs/hazelcast-queue-component.adoc | 142 ++
.../docs/hazelcast-replicatedmap-component.adoc | 210 +++
.../docs/hazelcast-ringbuffer-component.adoc | 116 ++
.../src/main/docs/hazelcast-seda-component.adoc | 104 ++
.../src/main/docs/hazelcast-set-component.adoc | 56 +
.../main/docs/hazelcast-topic-component.adoc | 88 ++
.../src/main/docs/hazelcast.adoc | 165 +++
.../component/hazelcast/HazelcastComponent.java | 175 +--
.../hazelcast/HazelcastDefaultComponent.java | 227 +++
.../hazelcast/HazelcastDefaultEndpoint.java | 2 -
.../HazelcastAtomicnumberComponent.java | 42 +
.../HazelcastAtomicnumberEndpoint.java | 8 +
.../instance/HazelcastInstanceComponent.java | 42 +
.../instance/HazelcastInstanceEndpoint.java | 12 +-
.../hazelcast/list/HazelcastListComponent.java | 42 +
.../hazelcast/list/HazelcastListEndpoint.java | 6 +-
.../hazelcast/map/HazelcastMapComponent.java | 42 +
.../hazelcast/map/HazelcastMapEndpoint.java | 11 +-
.../multimap/HazelcastMultimapComponent.java | 42 +
.../multimap/HazelcastMultimapEndpoint.java | 11 +-
.../queue/HazelcastQueueComponent.java | 42 +
.../hazelcast/queue/HazelcastQueueEndpoint.java | 6 +-
.../HazelcastReplicatedmapComponent.java | 42 +
.../HazelcastReplicatedmapEndpoint.java | 11 +-
.../HazelcastRingbufferComponent.java | 43 +
.../ringbuffer/HazelcastRingbufferEndpoint.java | 7 +
.../hazelcast/seda/HazelcastSedaComponent.java | 46 +
.../hazelcast/seda/HazelcastSedaEndpoint.java | 10 +-
.../hazelcast/set/HazelcastSetComponent.java | 43 +
.../hazelcast/set/HazelcastSetEndpoint.java | 6 +-
.../topic/HazelcastTopicComponent.java | 45 +
.../hazelcast/topic/HazelcastTopicEndpoint.java | 7 +
.../camel/component/hazelcast-atomicvalue | 18 +
.../apache/camel/component/hazelcast-instance | 18 +
.../org/apache/camel/component/hazelcast-list | 18 +
.../org/apache/camel/component/hazelcast-map | 18 +
.../apache/camel/component/hazelcast-multimap | 18 +
.../org/apache/camel/component/hazelcast-queue | 18 +
.../camel/component/hazelcast-replicatedmap | 18 +
.../apache/camel/component/hazelcast-ringbuffer | 18 +
.../org/apache/camel/component/hazelcast-seda | 18 +
.../org/apache/camel/component/hazelcast-set | 18 +
.../org/apache/camel/component/hazelcast-topic | 18 +
.../HazelcastAtomicnumberProducerTest.java | 20 +-
.../HazelcastCamelSpringTestSupport.java | 4 +-
.../hazelcast/HazelcastCamelTestHelper.java | 78 +
.../hazelcast/HazelcastCamelTestSupport.java | 7 +-
.../hazelcast/HazelcastConfigurationTest.java | 43 +-
.../hazelcast/HazelcastErrorMessagesTest.java | 8 +-
.../HazelcastInstanceConsumerTest.java | 2 +-
.../hazelcast/HazelcastListConsumerTest.java | 2 +-
.../hazelcast/HazelcastListProducerTest.java | 22 +-
.../hazelcast/HazelcastMapConsumerTest.java | 2 +-
.../hazelcast/HazelcastMapProducerTest.java | 30 +-
.../HazelcastMultimapConsumerTest.java | 2 +-
.../HazelcastMultimapProducerTest.java | 22 +-
.../hazelcast/HazelcastQueueConsumerTest.java | 2 +-
.../hazelcast/HazelcastQueueProducerTest.java | 24 +-
.../HazelcastReliableTopicConsumerTest.java | 2 +-
.../HazelcastReliableTopicProducerTest.java | 6 +-
.../HazelcastReplicatedmapConsumerTest.java | 2 +-
.../HazelcastReplicatedmapProducerTest.java | 18 +-
.../HazelcastRingbufferProducerTest.java | 10 +-
.../HazelcastSedaConcurrentConsumersTest.java | 4 +-
.../HazelcastSedaConfigurationTest.java | 10 +-
.../hazelcast/HazelcastSedaFIFOTest.java | 4 +-
.../hazelcast/HazelcastSedaInOnlyTest.java | 4 +-
.../hazelcast/HazelcastSedaInOutTest.java | 4 +-
.../HazelcastSedaInOutTransactedTest.java | 4 +-
.../HazelcastSedaSpringSupportTest.java | 2 +-
.../HazelcastSedaTransferExchangeTest.java | 6 +-
.../hazelcast/HazelcastSetConsumerTest.java | 2 +-
.../hazelcast/HazelcastSetProducerTest.java | 18 +-
.../hazelcast/HazelcastTopicConsumerTest.java | 2 +-
.../hazelcast/HazelcastTopicProducerTest.java | 6 +-
.../spring/test-camel-context-atomicnumber.xml | 14 +-
...ontext-hazelcast-instance-name-reference.xml | 4 +-
...mel-context-hazelcast-instance-reference.xml | 4 +-
.../META-INF/spring/test-camel-context-map.xml | 24 +-
.../spring/test-camel-context-multimap.xml | 14 +-
.../spring/test-camel-context-replicatedmap.xml | 12 +-
.../spring/test-camel-context-ringbuffer.xml | 10 +-
.../META-INF/spring/test-camel-context-seda.xml | 6 +-
components/readme.adoc | 36 +-
docs/user-manual/en/SUMMARY.md | 12 +-
.../ReadMe.md | 2 +-
.../example/kubernetes/fmp/HazelcastRoute.java | 10 +-
...tAtomicnumberComponentAutoConfiguration.java | 115 ++
...lcastAtomicnumberComponentConfiguration.java | 77 +
...lcastInstanceComponentAutoConfiguration.java | 115 ++
...HazelcastInstanceComponentConfiguration.java | 77 +
...HazelcastListComponentAutoConfiguration.java | 114 ++
.../HazelcastListComponentConfiguration.java | 76 +
.../HazelcastMapComponentAutoConfiguration.java | 114 ++
.../HazelcastMapComponentConfiguration.java | 76 +
...lcastMultimapComponentAutoConfiguration.java | 115 ++
...HazelcastMultimapComponentConfiguration.java | 77 +
...azelcastQueueComponentAutoConfiguration.java | 115 ++
.../HazelcastQueueComponentConfiguration.java | 76 +
...ReplicatedmapComponentAutoConfiguration.java | 115 ++
...castReplicatedmapComponentConfiguration.java | 77 +
...astRingbufferComponentAutoConfiguration.java | 115 ++
...zelcastRingbufferComponentConfiguration.java | 77 +
...HazelcastSedaComponentAutoConfiguration.java | 114 ++
.../HazelcastSedaComponentConfiguration.java | 76 +
.../HazelcastSetComponentAutoConfiguration.java | 114 ++
.../HazelcastSetComponentConfiguration.java | 76 +
...azelcastTopicComponentAutoConfiguration.java | 115 ++
.../HazelcastTopicComponentConfiguration.java | 76 +
...dditional-spring-configuration-metadata.json | 66 +
.../main/resources/META-INF/spring.factories | 24 +-
117 files changed, 5393 insertions(+), 1785 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/docs/hazelcast-atomicvalue-component.adoc
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/docs/hazelcast-atomicvalue-component.adoc b/components/camel-hazelcast/src/main/docs/hazelcast-atomicvalue-component.adoc
new file mode 100644
index 0000000..82315ea
--- /dev/null
+++ b/components/camel-hazelcast/src/main/docs/hazelcast-atomicvalue-component.adoc
@@ -0,0 +1,213 @@
+## Hazelcast Atomic Number Component
+
+*Available as of Camel version 2.7*
+
+The http://www.hazelcast.com/[Hazelcast] atomic number component is one of link:hazelcast.html[Camel Hazelcast Components] which allows you to access Hazelcast atomic number.
+An atomic number is an object that simply provides a grid wide number (long).
+
+*There is no consumer for this endpoint!*
+
+
+### Options
+
+// component options: START
+The Hazelcast Atomic Number component supports 3 options which are listed below.
+
+
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **hazelcastInstance** (advanced) | The hazelcast instance reference which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | HazelcastInstance
+| **hazelcastMode** (advanced) | The hazelcast mode reference which kind of instance should be used. If you don't specify the mode then the node mode will be the default. | node | String
+| **resolveProperty Placeholders** (advanced) | Whether the component should resolve property placeholders on itself when starting. Only properties which are of String type can use property placeholders. | true | boolean
+|=======================================================================
+// component options: END
+
+// endpoint options: START
+The Hazelcast Atomic Number endpoint is configured using URI syntax:
+
+ hazelcast-atomicvalue:cacheName
+
+with the following path and query parameters:
+
+#### Path Parameters (1 parameters):
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **cacheName** | *Required* The name of the cache | | String
+|=======================================================================
+
+#### Query Parameters (9 parameters):
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **reliable** (common) | Define if the endpoint will use a reliable Topic struct or not. | false | boolean
+| **defaultOperation** (producer) | To specify a default operation to use if no operation header has been provided. | | String
+| **hazelcastInstance** (producer) | The hazelcast instance reference which can be used for hazelcast endpoint. | | HazelcastInstance
+| **hazelcastInstanceName** (producer) | The hazelcast instance reference name which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | String
+| **synchronous** (advanced) | Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported). | false | boolean
+| **concurrentConsumers** (seda) | To use concurrent consumers polling from the SEDA queue. | 1 | int
+| **pollTimeout** (seda) | The timeout used when consuming from the SEDA queue. When a timeout occurs the consumer can check whether it is allowed to continue running. Setting a lower value allows the consumer to react more quickly upon shutdown. | 1000 | int
+| **transacted** (seda) | If set to true then the consumer runs in transaction mode where the messages in the seda queue will only be removed if the transaction commits which happens when the processing is complete. | false | boolean
+| **transferExchange** (seda) | If set to true the whole Exchange will be transfered. If header or body contains not serializable objects they will be skipped. | false | boolean
+|=======================================================================
+// endpoint options: END
+
+
+### atomic number producer - to("hazelcast-atomicvalue:foo")
+
+The operations for this producer are:
+* setvalue (set the number with a given value)
+* get
+* increase (+1)
+* decrease (-1)
+* destroy
+
+Header Variables for the request message:
+
+[width="100%",cols="10%,10%,80%",options="header",]
+|=======================================================================
+|Name |Type |Description
+
+|`CamelHazelcastOperationType` |`String` |valid values are: setvalue, get, increase, decrease, destroy
+|=======================================================================
+
+#### Sample for *set*:
+
+Java DSL:
+
+[source,java]
+-----------------------------------------------------------------------------------------
+from("direct:set")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.SETVALUE_OPERATION))
+.toF("hazelcast-%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX);
+-----------------------------------------------------------------------------------------
+
+Spring DSL:
+
+[source,java]
+-----------------------------------------------------------------------------------------------
+<route>
+ <from uri="direct:set" />
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>setvalue</constant>
+ </setHeader>
+ <to uri="hazelcast-atomicvalue:foo" />
+</route>
+-----------------------------------------------------------------------------------------------
+
+Provide the value to set inside the message body (here the value is 10):
+`template.sendBody("direct:set", 10);`
+
+#### Sample for *get*:
+
+Java DSL:
+
+[source,java]
+------------------------------------------------------------------------------------
+from("direct:get")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION))
+.toF("hazelcast-%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX);
+------------------------------------------------------------------------------------
+
+Spring DSL:
+
+[source,java]
+-----------------------------------------------------------------------------------------------
+<route>
+ <from uri="direct:get" />
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>get</constant>
+ </setHeader>
+ <to uri="hazelcast-atomicvalue:foo" />
+</route>
+-----------------------------------------------------------------------------------------------
+
+You can get the number with
+`long body = template.requestBody("direct:get", null, Long.class);`.
+
+#### Sample for *increment*:
+
+Java DSL:
+
+[source,java]
+------------------------------------------------------------------------------------------
+from("direct:increment")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.INCREMENT_OPERATION))
+.toF("hazelcast-%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX);
+------------------------------------------------------------------------------------------
+
+Spring DSL:
+
+[source,java]
+-----------------------------------------------------------------------------------------------
+<route>
+ <from uri="direct:increment" />
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>increment</constant>
+ </setHeader>
+ <to uri="hazelcast-atomicvalue:foo" />
+</route>
+-----------------------------------------------------------------------------------------------
+
+The actual value (after increment) will be provided inside the message
+body.
+
+#### Sample for *decrement*:
+
+Java DSL:
+
+[source,java]
+------------------------------------------------------------------------------------------
+from("direct:decrement")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DECREMENT_OPERATION))
+.toF("hazelcast-%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX);
+------------------------------------------------------------------------------------------
+
+Spring DSL:
+
+[source,java]
+-----------------------------------------------------------------------------------------------
+<route>
+ <from uri="direct:decrement" />
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>decrement</constant>
+ </setHeader>
+ <to uri="hazelcast-atomicvalue:foo" />
+</route>
+-----------------------------------------------------------------------------------------------
+
+The actual value (after decrement) will be provided inside the message
+body.
+
+#### Sample for *destroy*
+
+Java DSL:
+
+[source,java]
+----------------------------------------------------------------------------------------
+from("direct:destroy")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DESTROY_OPERATION))
+.toF("hazelcast-%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX);
+----------------------------------------------------------------------------------------
+
+Spring DSL:
+
+[source,java]
+-----------------------------------------------------------------------------------------------
+<route>
+ <from uri="direct:destroy" />
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>destroy</constant>
+ </setHeader>
+ <to uri="hazelcast-atomicvalue:foo" />
+</route>
+-----------------------------------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/docs/hazelcast-component.adoc
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/docs/hazelcast-component.adoc b/components/camel-hazelcast/src/main/docs/hazelcast-component.adoc
deleted file mode 100644
index 184f039..0000000
--- a/components/camel-hazelcast/src/main/docs/hazelcast-component.adoc
+++ /dev/null
@@ -1,1402 +0,0 @@
-## Hazelcast Component
-
-*Available as of Camel version 2.7*
-
-The *hazelcast:* component allows you to work with the
-http://www.hazelcast.com[Hazelcast] distributed data grid / cache.
-Hazelcast is a in memory data grid, entirely written in Java (single
-jar). It offers a great palette of different data stores like map, multi
-map (same key, n values), queue, list and atomic number. The main reason
-to use Hazelcast is its simple cluster support. If you have enabled
-multicast on your network you can run a cluster with hundred nodes with
-no extra configuration. Hazelcast can simply configured to add
-additional features like n copies between nodes (default is 1), cache
-persistence, network configuration (if needed), near cache, enviction
-and so on. For more information consult the Hazelcast documentation on
-http://www.hazelcast.com/docs.jsp[http://www.hazelcast.com/docs.jsp].
-
-Maven users will need to add the following dependency to their `pom.xml`
-for this component:
-
-[source,xml]
-------------------------------------------------------------
-<dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-hazelcast</artifactId>
- <version>x.x.x</version>
- <!-- use the same version as your Camel core version -->
-</dependency>
-------------------------------------------------------------
-
-### URI format
-
-[source,java]
--------------------------------------------------------------------------------------------------------------------------
-hazelcast:[ map | multimap | queue | topic | seda | set | atomicvalue | instance | list | ringbuffer]:cachename[?options]
--------------------------------------------------------------------------------------------------------------------------
-
-* Topic support is available as of Camel 2.15. *
-
-
-* RingBuffer support is available as of Camel 2.16. *
-
-### Options
-
-
-
-
-// component options: START
-The Hazelcast component supports 3 options which are listed below.
-
-
-
-[width="100%",cols="2,5,^1,2",options="header"]
-|=======================================================================
-| Name | Description | Default | Type
-| **hazelcastInstance** (advanced) | The hazelcast instance reference which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | HazelcastInstance
-| **hazelcastMode** (advanced) | The hazelcast mode reference which kind of instance should be used. If you don't specify the mode then the node mode will be the default. | node | String
-| **resolveProperty Placeholders** (advanced) | Whether the component should resolve property placeholders on itself when starting. Only properties which are of String type can use property placeholders. | true | boolean
-|=======================================================================
-// component options: END
-
-
-
-
-
-
-// endpoint options: START
-The Hazelcast endpoint is configured using URI syntax:
-
- hazelcast:command:cacheName
-
-with the following path and query parameters:
-
-#### Path Parameters (2 parameters):
-
-[width="100%",cols="2,5,^1,2",options="header"]
-|=======================================================================
-| Name | Description | Default | Type
-| **command** | *Required* What operation to perform. | | HazelcastCommand
-| **cacheName** | *Required* The name of the cache | | String
-|=======================================================================
-
-#### Query Parameters (12 parameters):
-
-[width="100%",cols="2,5,^1,2",options="header"]
-|=======================================================================
-| Name | Description | Default | Type
-| **defaultOperation** (common) | To specify a default operation to use if no operation header has been provided. | | String
-| **hazelcastInstance** (common) | The hazelcast instance reference which can be used for hazelcast endpoint. | | HazelcastInstance
-| **hazelcastInstanceName** (common) | The hazelcast instance reference name which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | String
-| **reliable** (common) | Define if the endpoint will use a reliable Topic struct or not. | false | boolean
-| **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
-| **exceptionHandler** (consumer) | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options 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. | | ExchangePattern
-| **synchronous** (advanced) | Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported). | false | boolean
-| **concurrentConsumers** (seda) | To use concurrent consumers polling from the SEDA queue. | 1 | int
-| **pollTimeout** (seda) | The timeout used when consuming from the SEDA queue. When a timeout occurs the consumer can check whether it is allowed to continue running. Setting a lower value allows the consumer to react more quickly upon shutdown. | 1000 | int
-| **transacted** (seda) | If set to true then the consumer runs in transaction mode where the messages in the seda queue will only be removed if the transaction commits which happens when the processing is complete. | false | boolean
-| **transferExchange** (seda) | If set to true the whole Exchange will be transfered. If header or body contains not serializable objects they will be skipped. | false | boolean
-|=======================================================================
-// endpoint options: END
-
-
-
-### Sections
-
-1. Usage of link:hazelcast-component.html[#map]
-2. Usage of link:hazelcast-component.html[#multimap]
-3. Usage of link:hazelcast-component.html[#queue]
-4. Usage of link:hazelcast-component.html[#topic]
-5. Usage of link:hazelcast-component.html[#list]
-6. Usage of link:hazelcast-component.html[#seda]
-7. Usage of link:hazelcast-component.html[atomic number]
-8. Usage of link:hazelcast-component.html[#cluster] support (instance)
-9. Usage of link:hazelcast-component.html[#replicatedmap]
-10. Usage of link:hazelcast-component.html[#ringbuffer]
-
-### Usage of Map
-
-#### Map cache producer - to("hazelcast:map:foo")
-
-If you want to store a value in a map you can use the map cache
-producer.
-
-The map cache producer provides follow operations specified by *CamelHazelcastOperationType* header:
-
-* put
-* putIfAbsent
-* get
-* getAll
-* keySet
-* containsKey
-* containsValue
-* delete
-* update
-* query
-* clear
-* evict
-* evictAll
-
-All operations are provide the inside the "hazelcast.operation.type" header variable. In Java
-DSL you can use the constants from `org.apache.camel.component.hazelcast.HazelcastConstants`.
-
-Header Variables for the request message:
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Type |Description
-|`CamelHazelcastOperationType` |`String` | as already described.
-
-|`CamelHazelcastObjectId` |`String` |the object id to store / find your object inside the cache (not needed for the query operation)
-|=======================================================================
-
-*put* and *putIfAbsent* operations provide an eviction mechanism:
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Type |Description
-|`CamelHazelcastObjectTtlValue` |`Integer` | value of TTL.
-
-|`CamelHazelcastObjectTtlUnit` |`java.util.concurrent.TimeUnit` | value of time unit ( DAYS / HOURS / MINUTES / ....
-|=======================================================================
-
-You can call the samples with:
-
-[source,java]
--------------------------------------------------------------------------------------------------------------------
-template.sendBodyAndHeader("direct:[put|get|update|delete|query|evict]", "my-foo", HazelcastConstants.OBJECT_ID, "4711");
--------------------------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforput:]]
-Sample for *put*:
-
-Java DSL:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:put")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX);
-------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
- <from uri="direct:put" />
- <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
- <setHeader headerName="hazelcast.operation.type">
- <constant>put</constant>
- </setHeader>
- <to uri="hazelcast:map:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-Sample for *put* with eviction:
-
-Java DSL:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:put")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION))
-.setHeader(HazelcastConstants.TTL_VALUE, constant(Long.valueOf(1)))
-.setHeader(HazelcastConstants.TTL_UNIT, constant(TimeUnit.MINUTES))
-.toF("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX);
-------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
- <from uri="direct:put" />
- <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
- <setHeader headerName="hazelcast.operation.type">
- <constant>put</constant>
- </setHeader>
- <setHeader headerName="HazelcastConstants.TTL_VALUE">
- <simple resultType="java.lang.Long">1</simple>
- </setHeader>
- <setHeader headerName="HazelcastConstants.TTL_UNIT">
- <simple resultType="java.util.concurrent.TimeUnit">TimeUnit.MINUTES</simple>
- </setHeader>
- <to uri="hazelcast:map:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-
-[[HazelcastComponent-Sampleforget:]]
-Sample for *get*:
-
-Java DSL:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:get")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX)
-.to("seda:out");
-------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
- <from uri="direct:get" />
- <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
- <setHeader headerName="hazelcast.operation.type">
- <constant>get</constant>
- </setHeader>
- <to uri="hazelcast:map:foo" />
- <to uri="seda:out" />
-</route>
------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforupdate:]]
-Sample for *update*:
-
-Java DSL:
-
-[source,java]
----------------------------------------------------------------------------------------
-from("direct:update")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.UPDATE_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX);
----------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
- <from uri="direct:update" />
- <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
- <setHeader headerName="hazelcast.operation.type">
- <constant>update</constant>
- </setHeader>
- <to uri="hazelcast:map:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Samplefordelete:]]
-Sample for *delete*:
-
-Java DSL:
-
-[source,java]
----------------------------------------------------------------------------------------
-from("direct:delete")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DELETE_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX);
----------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
- <from uri="direct:delete" />
- <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
- <setHeader headerName="hazelcast.operation.type">
- <constant>delete</constant>
- </setHeader>
- <to uri="hazelcast:map:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforquery]]
-Sample for *query*
-
-Java DSL:
-
-[source,java]
---------------------------------------------------------------------------------------
-from("direct:query")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.QUERY_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX)
-.to("seda:out");
---------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
- <from uri="direct:query" />
- <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
- <setHeader headerName="hazelcast.operation.type">
- <constant>query</constant>
- </setHeader>
- <to uri="hazelcast:map:foo" />
- <to uri="seda:out" />
-</route>
------------------------------------------------------------------------------------------------
-
-For the query operation Hazelcast offers a SQL like syntax to query your
-distributed map.
-
-[source,java]
--------------------------------------------------------------------------------
-String q1 = "bar > 1000";
-template.sendBodyAndHeader("direct:query", null, HazelcastConstants.QUERY, q1);
--------------------------------------------------------------------------------
-
-### Map cache consumer - from("hazelcast:map:foo")
-
-Hazelcast provides event listeners on their data grid. If you want to be
-notified if a cache will be manipulated, you can use the map consumer.
-There're 4 events: *put*, *update*, *delete* and *envict*. The event
-type will be stored in the "*hazelcast.listener.action*" header
-variable. The map consumer provides some additional information inside
-these variables:
-
-Header Variables inside the response message:
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Type |Description
-
-|`CamelHazelcastListenerTime` |`Long` |time of the event in millis
-
-|`CamelHazelcastListenerType` |`String` |the map consumer sets here "cachelistener"
-
-|`CamelHazelcastListenerAction` |`String` |type of event - here *added*, *updated*, *envicted* and *removed*.
-
-|`CamelHazelcastObjectId` |`String` |the oid of the object
-
-|`CamelHazelcastCacheName` |`String` |the name of the cache - e.g. "foo"
-
-|`CamelHazelcastCacheType` |`String` |the type of the cache - here map
-|=======================================================================
-
-The object value will be stored within *put* and *update* actions inside
-the message body.
-
-Here's a sample:
-
-[source,java]
---------------------------------------------------------------------------------------------
-fromF("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX)
-.log("object...")
-.choice()
- .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
- .log("...added")
- .to("mock:added")
- .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ENVICTED))
- .log("...envicted")
- .to("mock:envicted")
- .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.UPDATED))
- .log("...updated")
- .to("mock:updated")
- .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED))
- .log("...removed")
- .to("mock:removed")
- .otherwise()
- .log("fail!");
---------------------------------------------------------------------------------------------
-
-### Usage of Multi Map
-
-#### multimap cache producer - to("hazelcast:multimap:foo")
-
-A multimap is a cache where you can store n values to one key. The
-multimap producer provides 4 operations (put, get, removevalue, delete).
-
-Header Variables for the request message:
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Type |Description
-
-|`CamelHazelcastOperationType` |`String` |valid values are: put, get, removevalue, delete *From Camel 2.16:* clear.
-
-|`CamelHazelcastObjectId` |`String` |the object id to store / find your object inside the cache
-|=======================================================================
-
-[[HazelcastComponent-Sampleforput:.1]]
-Sample for *put*:
-
-Java DSL:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:put")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION))
-.to(String.format("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX));
-------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
- <from uri="direct:put" />
- <log message="put.."/>
- <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
- <setHeader headerName="hazelcast.operation.type">
- <constant>put</constant>
- </setHeader>
- <to uri="hazelcast:multimap:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforremovevalue:]]
-Sample for *removevalue*:
-
-Java DSL:
-
-[source,java]
---------------------------------------------------------------------------------------------
-from("direct:removevalue")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.REMOVEVALUE_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX);
---------------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
- <from uri="direct:removevalue" />
- <log message="removevalue..."/>
- <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
- <setHeader headerName="hazelcast.operation.type">
- <constant>removevalue</constant>
- </setHeader>
- <to uri="hazelcast:multimap:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-To remove a value you have to provide the value you want to remove
-inside the message body. If you have a multimap object
-\{`key: "4711" values: { "my-foo", "my-bar"`}} you have to put "my-foo"
-inside the message body to remove the "my-foo" value.
-
-[[HazelcastComponent-Sampleforget:.1]]
-Sample for *get*:
-
-Java DSL:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:get")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX)
-.to("seda:out");
-------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
- <from uri="direct:get" />
- <log message="get.."/>
- <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
- <setHeader headerName="hazelcast.operation.type">
- <constant>get</constant>
- </setHeader>
- <to uri="hazelcast:multimap:foo" />
- <to uri="seda:out" />
-</route>
------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Samplefordelete:.1]]
-Sample for *delete*:
-
-Java DSL:
-
-[source,java]
----------------------------------------------------------------------------------------
-from("direct:delete")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DELETE_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX);
----------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
- <from uri="direct:delete" />
- <log message="delete.."/>
- <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
- <setHeader headerName="hazelcast.operation.type">
- <constant>delete</constant>
- </setHeader>
- <to uri="hazelcast:multimap:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-you can call them in your test class with:
-
-[source,java]
-------------------------------------------------------------------------------------------------------------------
-template.sendBodyAndHeader("direct:[put|get|removevalue|delete]", "my-foo", HazelcastConstants.OBJECT_ID, "4711");
-------------------------------------------------------------------------------------------------------------------
-
-#### multimap cache consumer - from("hazelcast:multimap:foo")
-
-For the multimap cache this component provides the same listeners /
-variables as for the map cache consumer (except the update and enviction
-listener). The only difference is the *multimap* prefix inside the URI.
-Here is a sample:
-
-[source,java]
---------------------------------------------------------------------------------------------------
-fromF("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX)
-.log("object...")
-.choice()
- .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
- .log("...added")
- .to("mock:added")
- //.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ENVICTED))
- // .log("...envicted")
- // .to("mock:envicted")
- .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED))
- .log("...removed")
- .to("mock:removed")
- .otherwise()
- .log("fail!");
---------------------------------------------------------------------------------------------------
-
-Header Variables inside the response message:
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Type |Description
-
-|`CamelHazelcastListenerTime` |`Long` |time of the event in millis
-
-|`CamelHazelcastListenerType` |`String` |the map consumer sets here "cachelistener"
-
-|`CamelHazelcastListenerAction` |`String` |type of event - here *added* and *removed* (and soon *envicted*)
-
-|`CamelHazelcastObjectId` |`String` |the oid of the object
-
-|`CamelHazelcastCacheName` |`String` |the name of the cache - e.g. "foo"
-
-|`CamelHazelcastCacheType` |`String` |the type of the cache - here multimap
-|=======================================================================
-
-### Usage of Queue
-
-#### Queue producer – to(“hazelcast:queue:foo”)
-
-The queue producer provides 6 operations (add, put, poll, peek, offer,
-removevalue).
-
-[[HazelcastComponent-Sampleforadd:]]
-Sample for *add*:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:add")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.ADD_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX);
-------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforput:.2]]
-Sample for *put*:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:put")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX);
-------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforpoll:]]
-Sample for *poll*:
-
-[source,java]
--------------------------------------------------------------------------------------
-from("direct:poll")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.POLL_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX);
--------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforpeek:]]
-Sample for *peek*:
-
-[source,java]
--------------------------------------------------------------------------------------
-from("direct:peek")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PEEK_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX);
--------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforoffer:]]
-Sample for *offer*:
-
-[source,java]
---------------------------------------------------------------------------------------
-from("direct:offer")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.OFFER_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX);
---------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforremovevalue:.1]]
-Sample for *removevalue*:
-
-[source,java]
---------------------------------------------------------------------------------------------
-from("direct:removevalue")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.REMOVEVALUE_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX);
---------------------------------------------------------------------------------------------
-
-#### Queue consumer – from(“hazelcast:queue:foo”)
-
-The queue consumer provides 2 operations (add, remove).
-
-[source,java]
--------------------------------------------------------------------------------------------
-fromF("hazelcast:%smm", HazelcastConstants.QUEUE_PREFIX)
- .log("object...")
- .choice()
- .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
- .log("...added")
- .to("mock:added")
- .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED))
- .log("...removed")
- .to("mock:removed")
- .otherwise()
- .log("fail!");
--------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-topic]]
-
-### Usage of Topic
-
-#### Topic producer – to(“hazelcast:topic:foo”)
-
-The topic producer provides only one operation (publish).
-
-[[HazelcastComponent-Sampleforpublish:]]
-Sample for *publish*:
-
-[source,java]
-----------------------------------------------------------------------------------------
-from("direct:add")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUBLISH_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.PUBLISH_OPERATION);
-----------------------------------------------------------------------------------------
-
-#### Topic consumer – from(“hazelcast:topic:foo”)
-
-The topic consumer provides only one operation (received). This
-component is supposed to support multiple consumption as it's expected
-when it comes to topics so you are free to have as much consumers as you
-need on the same hazelcast topic.
-
-[source,java]
---------------------------------------------------------------------------------------------
-fromF("hazelcast:%sfoo", HazelcastConstants.TOPIC_PREFIX)
- .choice()
- .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.RECEIVED))
- .log("...message received")
- .otherwise()
- .log("...this should never have happened")
---------------------------------------------------------------------------------------------
-
-
-
-### Usage of List
-
-#### List producer – to(“hazelcast:list:foo”)
-
-The list producer provides 4 operations (add, addAll, set, get,
-removevalue, removeAll, clear).
-
-[[HazelcastComponent-Sampleforadd:.1]]
-Sample for *add*:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:add")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.ADD_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.LIST_PREFIX);
-------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforget:.2]]
-Sample for *get*:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:get")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.LIST_PREFIX)
-.to("seda:out");
-------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforsetvalue:]]
-Sample for *setvalue*:
-
-[source,java]
------------------------------------------------------------------------------------------
-from("direct:set")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.SETVALUE_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.LIST_PREFIX);
------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforremovevalue:.2]]
-Sample for *removevalue*:
-
-[source,java]
---------------------------------------------------------------------------------------------
-from("direct:removevalue")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.REMOVEVALUE_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.LIST_PREFIX);
---------------------------------------------------------------------------------------------
-
-Note that *CamelHazelcastObjectIndex* header is used for indexing
-purpose.
-
-#### The list consumer provides 2 operations (add, remove).List consumer – from(“hazelcast:list:foo”)
-
-[source,java]
------------------------------------------------------------------------------------------------
-fromF("hazelcast:%smm", HazelcastConstants.LIST_PREFIX)
- .log("object...")
- .choice()
- .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
- .log("...added")
- .to("mock:added")
- .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED))
- .log("...removed")
- .to("mock:removed")
- .otherwise()
- .log("fail!");
------------------------------------------------------------------------------------------------
-
-### Usage of SEDA
-
-SEDA component differs from the rest components provided. It implements
-a work-queue in order to support asynchronous SEDA architectures,
-similar to the core "SEDA" component.
-
-#### SEDA producer – to(“hazelcast:seda:foo”)
-
-The SEDA producer provides no operations. You only send data to the
-specified queue.
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Default value |Description
-
-|`transferExchange` |`false` | if set to true the whole Exchange will be transfered. If
-header or body contains not serializable objects, they will be skipped.
-|=======================================================================
-
-Java DSL :
-
-[source,java]
---------------------------
-from("direct:foo")
-.to("hazelcast:seda:foo");
---------------------------
-
-Spring DSL :
-
-[source,java]
-----------------------------------
-<route>
- <from uri="direct:start" />
- <to uri="hazelcast:seda:foo" />
-</route>
-----------------------------------
-
-#### SEDA consumer – from(“hazelcast:seda:foo”)
-
-The SEDA consumer provides no operations. You only retrieve data from
-the specified queue.
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Default value |Description
-
-|`pollInterval` |`1000` |The timeout used when consuming from the SEDA queue. When a timeout
-occurs, the consumer can check whether it is allowed to continue
-running. Setting a lower value allows the consumer to react more quickly
-upon shutdown. (*deprecated* from Camel 2.15 onwards, use pollTimeout
-instead).
-
-|`pollTimeout` |1000 | The timeout used when consuming from the SEDA queue. When
-a timeout occurs, the consumer can check whether it is allowed to
-continue running. Setting a lower value allows the consumer to react
-more quickly upon shutdown.
-
-|`concurrentConsumers` |`1` |To use concurrent consumers polling from the SEDA queue.
-
-|`transferExchange` |`false`| if set to true the whole Exchange will be transfered. If
-header or body contains not serializable objects, they will be skipped.
-
-|`transacted` |`false`| if set to true then the consumer runs in transaction
-mode, where the messages in the seda queue will only be removed if the
-transaction commits, which happens when the processing is complete.
-|=======================================================================
-
-Java DSL :
-
-[source,java]
---------------------------
-from("hazelcast:seda:foo")
-.to("mock:result");
---------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------
-<route>
- <from uri="hazelcast:seda:foo" />
- <to uri="mock:result" />
-</route>
------------------------------------
-
-### Usage of Atomic Number
-
-* There is no consumer for this endpoint! *
-
-#### atomic number producer - to("hazelcast:atomicnumber:foo")
-
-An atomic number is an object that simply provides a grid wide number
-(long). The operations for this producer are setvalue (set the number
-with a given value), get, increase (+1), decrease (-1) and destroy.
-
-Header Variables for the request message:
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Type |Description
-
-|`CamelHazelcastOperationType` |`String` |valid values are: setvalue, get, increase, decrease, destroy
-|=======================================================================
-
-[[HazelcastComponent-Sampleforset:]]
-Sample for *set*:
-
-Java DSL:
-
-[source,java]
------------------------------------------------------------------------------------------
-from("direct:set")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.SETVALUE_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX);
------------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
- <from uri="direct:set" />
- <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
- <setHeader headerName="hazelcast.operation.type">
- <constant>setvalue</constant>
- </setHeader>
- <to uri="hazelcast:atomicvalue:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-Provide the value to set inside the message body (here the value is 10):
-`template.sendBody("direct:set", 10);`
-
-[[HazelcastComponent-Sampleforget:.3]]
-Sample for *get*:
-
-Java DSL:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:get")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX);
-------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
- <from uri="direct:get" />
- <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
- <setHeader headerName="hazelcast.operation.type">
- <constant>get</constant>
- </setHeader>
- <to uri="hazelcast:atomicvalue:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-You can get the number with
-`long body = template.requestBody("direct:get", null, Long.class);`.
-
-[[HazelcastComponent-Sampleforincrement:]]
-Sample for *increment*:
-
-Java DSL:
-
-[source,java]
-------------------------------------------------------------------------------------------
-from("direct:increment")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.INCREMENT_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX);
-------------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
- <from uri="direct:increment" />
- <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
- <setHeader headerName="hazelcast.operation.type">
- <constant>increment</constant>
- </setHeader>
- <to uri="hazelcast:atomicvalue:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-The actual value (after increment) will be provided inside the message
-body.
-
-[[HazelcastComponent-Samplefordecrement:]]
-Sample for *decrement*:
-
-Java DSL:
-
-[source,java]
-------------------------------------------------------------------------------------------
-from("direct:decrement")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DECREMENT_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX);
-------------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
- <from uri="direct:decrement" />
- <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
- <setHeader headerName="hazelcast.operation.type">
- <constant>decrement</constant>
- </setHeader>
- <to uri="hazelcast:atomicvalue:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-The actual value (after decrement) will be provided inside the message
-body.
-
-[[HazelcastComponent-Samplefordestroy]]
-Sample for *destroy*
-
-Java DSL:
-
-[source,java]
-----------------------------------------------------------------------------------------
-from("direct:destroy")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DESTROY_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX);
-----------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
- <from uri="direct:destroy" />
- <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
- <setHeader headerName="hazelcast.operation.type">
- <constant>destroy</constant>
- </setHeader>
- <to uri="hazelcast:atomicvalue:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-### cluster support
-
-* This endpoint provides no producer! *
-
-### instance consumer - from("hazelcast:instance:foo")
-
-Hazelcast makes sense in one single "server node", but it's extremly
-powerful in a clustered environment. The instance consumer fires if a
-new cache instance will join or leave the cluster.
-
-Here's a sample:
-
-[source,java]
------------------------------------------------------------------------------------------
-fromF("hazelcast:%sfoo", HazelcastConstants.INSTANCE_PREFIX)
-.log("instance...")
-.choice()
- .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
- .log("...added")
- .to("mock:added")
- .otherwise()
- .log("...removed")
- .to("mock:removed");
------------------------------------------------------------------------------------------
-
-Each event provides the following information inside the message header:
-
-Header Variables inside the response message:
-
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Type |Description
-
-|`CamelHazelcastListenerTime` |`Long` |time of the event in millis
-
-|`CamelHazelcastListenerType` |`String` |the map consumer sets here "instancelistener"
-
-|`CamelHazelcastListenerAction` |`String` |type of event - here *added* or *removed*.
-
-|`CamelHazelcastInstanceHost` |`String` | host name of the instance
-
-|`CamelHazelcastInstancePort` |`Integer` |port number of the instance
-|=======================================================================
-
-### Using hazelcast reference
-
-#### By its name
-
-[source,xml]
---------------------------------------------------------------------------------------------------------
-<bean id="hazelcastLifecycle" class="com.hazelcast.core.LifecycleService"
- factory-bean="hazelcastInstance" factory-method="getLifecycleService"
- destroy-method="shutdown" />
-
-<bean id="config" class="com.hazelcast.config.Config">
- <constructor-arg type="java.lang.String" value="HZ.INSTANCE" />
-</bean>
-
-<bean id="hazelcastInstance" class="com.hazelcast.core.Hazelcast" factory-method="newHazelcastInstance">
- <constructor-arg type="com.hazelcast.config.Config" ref="config"/>
-</bean>
-<camelContext xmlns="http://camel.apache.org/schema/spring">
- <route id="testHazelcastInstanceBeanRefPut">
- <from uri="direct:testHazelcastInstanceBeanRefPut"/>
- <setHeader headerName="CamelHazelcastOperationType">
- <constant>put</constant>
- </setHeader>
- <to uri="hazelcast:map:testmap?hazelcastInstanceName=HZ.INSTANCE"/>
- </route>
-
- <route id="testHazelcastInstanceBeanRefGet">
- <from uri="direct:testHazelcastInstanceBeanRefGet" />
- <setHeader headerName="CamelHazelcastOperationType">
- <constant>get</constant>
- </setHeader>
- <to uri="hazelcast:map:testmap?hazelcastInstanceName=HZ.INSTANCE"/>
- <to uri="seda:out" />
- </route>
-</camelContext>
---------------------------------------------------------------------------------------------------------
-
-#### By instance
-
-[source,xml]
-------------------------------------------------------------------------------
-<bean id="hazelcastInstance" class="com.hazelcast.core.Hazelcast"
- factory-method="newHazelcastInstance" />
-<bean id="hazelcastLifecycle" class="com.hazelcast.core.LifecycleService"
- factory-bean="hazelcastInstance" factory-method="getLifecycleService"
- destroy-method="shutdown" />
-
-<camelContext xmlns="http://camel.apache.org/schema/spring">
- <route id="testHazelcastInstanceBeanRefPut">
- <from uri="direct:testHazelcastInstanceBeanRefPut"/>
- <setHeader headerName="CamelHazelcastOperationType">
- <constant>put</constant>
- </setHeader>
- <to uri="hazelcast:map:testmap?hazelcastInstance=#hazelcastInstance"/>
- </route>
-
- <route id="testHazelcastInstanceBeanRefGet">
- <from uri="direct:testHazelcastInstanceBeanRefGet" />
- <setHeader headerName="CamelHazelcastOperationType">
- <constant>get</constant>
- </setHeader>
- <to uri="hazelcast:map:testmap?hazelcastInstance=#hazelcastInstance"/>
- <to uri="seda:out" />
- </route>
-</camelContext>
-------------------------------------------------------------------------------
-
-### Publishing hazelcast instance as an OSGI service
-
-If operating in an OSGI container and you would want to use one instance
-of hazelcast across all bundles in the same container. You can publish
-the instance as an OSGI service and bundles using the cache al need is
-to reference the service in the hazelcast endpoint.
-
-#### Bundle A create an instance and publishes it as an OSGI service
-
-
-
-[source,xml]
---------------------------------------------------------------------------------------------------------
-<bean id="config" class="com.hazelcast.config.FileSystemXmlConfig">
- <argument type="java.lang.String" value="${hazelcast.config}"/>
-</bean>
-
-<bean id="hazelcastInstance" class="com.hazelcast.core.Hazelcast" factory-method="newHazelcastInstance">
- <argument type="com.hazelcast.config.Config" ref="config"/>
-</bean>
-
-<!-- publishing the hazelcastInstance as a service -->
-<service ref="hazelcastInstance" interface="com.hazelcast.core.HazelcastInstance" />
---------------------------------------------------------------------------------------------------------
-
-#### Bundle B uses the instance
-
-[source,xml]
---------------------------------------------------------------------------------------
-<!-- referencing the hazelcastInstance as a service -->
-<reference ref="hazelcastInstance" interface="com.hazelcast.core.HazelcastInstance" />
-
-<camelContext xmlns="http://camel.apache.org/schema/blueprint">
- <route id="testHazelcastInstanceBeanRefPut">
- <from uri="direct:testHazelcastInstanceBeanRefPut"/>
- <setHeader headerName="CamelHazelcastOperationType">
- <constant>put</constant>
- </setHeader>
- <to uri="hazelcast:map:testmap?hazelcastInstance=#hazelcastInstance"/>
- </route>
-
- <route id="testHazelcastInstanceBeanRefGet">
- <from uri="direct:testHazelcastInstanceBeanRefGet" />
- <setHeader headerName="CamelHazelcastOperationType">
- <constant>get</constant>
- </setHeader>
- <to uri="hazelcast:map:testmap?hazelcastInstance=#hazelcastInstance"/>
- <to uri="seda:out" />
- </route>
-</camelContext>
---------------------------------------------------------------------------------------
-
-### Usage of Replicated map
-
-*Avalaible from Camel 2.16*
-
-#### replicatedmap cache producer
-
-A replicated map is a weakly consistent, distributed key-value data
-structure with no data partition. The replicatedmap producer provides 4
-operations (put, get, delete, clear).
-
-Header Variables for the request message:
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Type |Description
-
-|`CamelHazelcastOperationType` |`String` | valid values are: put, get, removevalue, delete
-
-|`CamelHazelcastObjectId` |`String` | the object id to store / find your object inside the cache
-|=======================================================================
-
-[[HazelcastComponent-Sampleforput:.3]]
-Sample for *put*:
-
-Java DSL:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:put")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION))
-.to(String.format("hazelcast:%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX));
-------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
- <from uri="direct:put" />
- <log message="put.."/>
- <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
- <setHeader headerName="hazelcast.operation.type">
- <constant>put</constant>
- </setHeader>
- <to uri="hazelcast:replicatedmap:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforget:.4]]
-Sample for *get*:
-
-Java DSL:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:get")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX)
-.to("seda:out");
-------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
- <from uri="direct:get" />
- <log message="get.."/>
- <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
- <setHeader headerName="hazelcast.operation.type">
- <constant>get</constant>
- </setHeader>
- <to uri="hazelcast:replicatedmap:foo" />
- <to uri="seda:out" />
-</route>
------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Samplefordelete:.2]]
-Sample for *delete*:
-
-Java DSL:
-
-[source,java]
----------------------------------------------------------------------------------------
-from("direct:delete")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DELETE_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX);
----------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
- <from uri="direct:delete" />
- <log message="delete.."/>
- <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
- <setHeader headerName="hazelcast.operation.type">
- <constant>delete</constant>
- </setHeader>
- <to uri="hazelcast:replicatedmap:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-you can call them in your test class with:
-
-[source,java]
-------------------------------------------------------------------------------------------------------------
-template.sendBodyAndHeader("direct:[put|get|delete|clear]", "my-foo", HazelcastConstants.OBJECT_ID, "4711");
-------------------------------------------------------------------------------------------------------------
-
-#### replicatedmap cache consumer
-
-For the multimap cache this component provides the same listeners /
-variables as for the map cache consumer (except the update and enviction
-listener). The only difference is the *multimap* prefix inside the URI.
-Here is a sample:
-
-[source,java]
---------------------------------------------------------------------------------------------------
-fromF("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX)
-.log("object...")
-.choice()
- .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
- .log("...added")
- .to("mock:added")
- //.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ENVICTED))
- // .log("...envicted")
- // .to("mock:envicted")
- .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED))
- .log("...removed")
- .to("mock:removed")
- .otherwise()
- .log("fail!");
---------------------------------------------------------------------------------------------------
-
-Header Variables inside the response message:
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Type |Description
-
-|`CamelHazelcastListenerTime` |`Long` |time of the event in millis
-
-|`CamelHazelcastListenerType` |`String` |the map consumer sets here "cachelistener"
-
-|`CamelHazelcastListenerAction` |`String` |type of event - here *added* and *removed* (and soon *envicted*)
-
-|`CamelHazelcastObjectId` |`String` | the oid of the object
-
-|`CamelHazelcastCacheName` |`String` |the name of the cache - e.g. "foo"
-
-|`CamelHazelcastCacheType` |`String` |the type of the cache - here replicatedmap
-|=======================================================================
-
-### Usage of Ringbuffer
-
-*Avalaible from Camel 2.16*
-
-#### ringbuffer cache producer
-
-Ringbuffer is a distributed data structure where the data is stored in a
-ring-like structure. You can think of it as a circular array with a
-certain capacity. The ringbuffer producer provides 5 operations (add,
-readonceHead, readonceTail, remainingCapacity, capacity).
-
-Header Variables for the request message:
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Type |Description
-
-|`CamelHazelcastOperationType` |`String` |valid values are: put, get, removevalue, delete
-
-|`CamelHazelcastObjectId` |`String` |the object id to store / find your object inside the cache
-|=======================================================================
-
-[[HazelcastComponent-Sampleforput:.4]]
-Sample for *put*:
-
-Java DSL:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:put")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.ADD_OPERATION))
-.to(String.format("hazelcast:%sbar", HazelcastConstants.RINGBUFFER_PREFIX));
-------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
- <from uri="direct:put" />
- <log message="put.."/>
- <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
- <setHeader headerName="hazelcast.operation.type">
- <constant>add</constant>
- </setHeader>
- <to uri="hazelcast:ringbuffer:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforreadoncefromhead:]]
-Sample for *readonce from head*:
-
-Java DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-from("direct:get")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.READ_ONCE_HEAD_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.RINGBUFFER_PREFIX)
-.to("seda:out");
------------------------------------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/docs/hazelcast-instance-component.adoc
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/docs/hazelcast-instance-component.adoc b/components/camel-hazelcast/src/main/docs/hazelcast-instance-component.adoc
new file mode 100644
index 0000000..255e50e
--- /dev/null
+++ b/components/camel-hazelcast/src/main/docs/hazelcast-instance-component.adoc
@@ -0,0 +1,100 @@
+## Hazelcast Instance Component
+
+*Available as of Camel version 2.7*
+
+The http://www.hazelcast.com/[Hazelcast] instance component is one of link:hazelcast.html[Camel Hazelcast Components] which allows you to consume join/leave events of the cache instance in the cluster.
+Hazelcast makes sense in one single "server node", but it's extremly powerful in a clustered environment.
+
+*This endpoint provides no producer!*
+
+
+### Options
+
+// component options: START
+The Hazelcast Instance component supports 3 options which are listed below.
+
+
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **hazelcastInstance** (advanced) | The hazelcast instance reference which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | HazelcastInstance
+| **hazelcastMode** (advanced) | The hazelcast mode reference which kind of instance should be used. If you don't specify the mode then the node mode will be the default. | node | String
+| **resolveProperty Placeholders** (advanced) | Whether the component should resolve property placeholders on itself when starting. Only properties which are of String type can use property placeholders. | true | boolean
+|=======================================================================
+// component options: END
+// endpoint options: START
+The Hazelcast Instance endpoint is configured using URI syntax:
+
+ hazelcast-instance:cacheName
+
+with the following path and query parameters:
+
+#### Path Parameters (1 parameters):
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **cacheName** | *Required* The name of the cache | | String
+|=======================================================================
+
+#### Query Parameters (12 parameters):
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **reliable** (common) | Define if the endpoint will use a reliable Topic struct or not. | false | boolean
+| **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
+| **defaultOperation** (consumer) | To specify a default operation to use if no operation header has been provided. | | String
+| **hazelcastInstance** (consumer) | The hazelcast instance reference which can be used for hazelcast endpoint. | | HazelcastInstance
+| **hazelcastInstanceName** (consumer) | The hazelcast instance reference name which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | String
+| **exceptionHandler** (consumer) | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options 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. | | ExchangePattern
+| **synchronous** (advanced) | Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported). | false | boolean
+| **concurrentConsumers** (seda) | To use concurrent consumers polling from the SEDA queue. | 1 | int
+| **pollTimeout** (seda) | The timeout used when consuming from the SEDA queue. When a timeout occurs the consumer can check whether it is allowed to continue running. Setting a lower value allows the consumer to react more quickly upon shutdown. | 1000 | int
+| **transacted** (seda) | If set to true then the consumer runs in transaction mode where the messages in the seda queue will only be removed if the transaction commits which happens when the processing is complete. | false | boolean
+| **transferExchange** (seda) | If set to true the whole Exchange will be transfered. If header or body contains not serializable objects they will be skipped. | false | boolean
+|=======================================================================
+// endpoint options: END
+
+
+
+### instance consumer - from("hazelcast-instance:foo")
+
+ The instance consumer fires if a new cache instance will join or leave the cluster.
+
+Here's a sample:
+
+[source,java]
+-----------------------------------------------------------------------------------------
+fromF("hazelcast-%sfoo", HazelcastConstants.INSTANCE_PREFIX)
+.log("instance...")
+.choice()
+ .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
+ .log("...added")
+ .to("mock:added")
+ .otherwise()
+ .log("...removed")
+ .to("mock:removed");
+-----------------------------------------------------------------------------------------
+
+Each event provides the following information inside the message header:
+
+Header Variables inside the response message:
+
+
+[width="100%",cols="10%,10%,80%",options="header",]
+|=======================================================================
+|Name |Type |Description
+
+|`CamelHazelcastListenerTime` |`Long` |time of the event in millis
+
+|`CamelHazelcastListenerType` |`String` |the map consumer sets here "instancelistener"
+
+|`CamelHazelcastListenerAction` |`String` |type of event - here *added* or *removed*.
+
+|`CamelHazelcastInstanceHost` |`String` | host name of the instance
+
+|`CamelHazelcastInstancePort` |`Integer` |port number of the instance
+|=======================================================================
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/docs/hazelcast-list-component.adoc
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/docs/hazelcast-list-component.adoc b/components/camel-hazelcast/src/main/docs/hazelcast-list-component.adoc
new file mode 100644
index 0000000..e877495
--- /dev/null
+++ b/components/camel-hazelcast/src/main/docs/hazelcast-list-component.adoc
@@ -0,0 +1,129 @@
+## Hazelcast List Component
+
+*Available as of Camel version 2.7*
+
+The http://www.hazelcast.com/[Hazelcast] List component is one of link:hazelcast.html[Camel Hazelcast Components] which allows you to access Hazelcast distributed list.
+
+### Options
+
+// component options: START
+The Hazelcast List component supports 3 options which are listed below.
+
+
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **hazelcastInstance** (advanced) | The hazelcast instance reference which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | HazelcastInstance
+| **hazelcastMode** (advanced) | The hazelcast mode reference which kind of instance should be used. If you don't specify the mode then the node mode will be the default. | node | String
+| **resolveProperty Placeholders** (advanced) | Whether the component should resolve property placeholders on itself when starting. Only properties which are of String type can use property placeholders. | true | boolean
+|=======================================================================
+// component options: END
+// endpoint options: START
+The Hazelcast List endpoint is configured using URI syntax:
+
+ hazelcast-list:cacheName
+
+with the following path and query parameters:
+
+#### Path Parameters (1 parameters):
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **cacheName** | *Required* The name of the cache | | String
+|=======================================================================
+
+#### Query Parameters (12 parameters):
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **defaultOperation** (common) | To specify a default operation to use if no operation header has been provided. | | String
+| **hazelcastInstance** (common) | The hazelcast instance reference which can be used for hazelcast endpoint. | | HazelcastInstance
+| **hazelcastInstanceName** (common) | The hazelcast instance reference name which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | String
+| **reliable** (common) | Define if the endpoint will use a reliable Topic struct or not. | false | boolean
+| **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
+| **exceptionHandler** (consumer) | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options 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. | | ExchangePattern
+| **synchronous** (advanced) | Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported). | false | boolean
+| **concurrentConsumers** (seda) | To use concurrent consumers polling from the SEDA queue. | 1 | int
+| **pollTimeout** (seda) | The timeout used when consuming from the SEDA queue. When a timeout occurs the consumer can check whether it is allowed to continue running. Setting a lower value allows the consumer to react more quickly upon shutdown. | 1000 | int
+| **transacted** (seda) | If set to true then the consumer runs in transaction mode where the messages in the seda queue will only be removed if the transaction commits which happens when the processing is complete. | false | boolean
+| **transferExchange** (seda) | If set to true the whole Exchange will be transfered. If header or body contains not serializable objects they will be skipped. | false | boolean
+|=======================================================================
+// endpoint options: END
+
+
+### List producer – to(“hazelcast-list:foo”)
+
+The list producer provides 7 operations:
+* add
+* addAll
+* set
+* get
+* removevalue
+* removeAll
+* clear
+
+#### Sample for *add*:
+
+[source,java]
+------------------------------------------------------------------------------------
+from("direct:add")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.ADD_OPERATION))
+.toF("hazelcast-%sbar", HazelcastConstants.LIST_PREFIX);
+------------------------------------------------------------------------------------
+
+#### Sample for *get*:
+
+[source,java]
+------------------------------------------------------------------------------------
+from("direct:get")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION))
+.toF("hazelcast-%sbar", HazelcastConstants.LIST_PREFIX)
+.to("seda:out");
+------------------------------------------------------------------------------------
+
+#### Sample for *setvalue*:
+
+[source,java]
+-----------------------------------------------------------------------------------------
+from("direct:set")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.SETVALUE_OPERATION))
+.toF("hazelcast-%sbar", HazelcastConstants.LIST_PREFIX);
+-----------------------------------------------------------------------------------------
+
+#### Sample for *removevalue*:
+
+[source,java]
+--------------------------------------------------------------------------------------------
+from("direct:removevalue")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.REMOVEVALUE_OPERATION))
+.toF("hazelcast-%sbar", HazelcastConstants.LIST_PREFIX);
+--------------------------------------------------------------------------------------------
+
+Note that *CamelHazelcastObjectIndex* header is used for indexing
+purpose.
+
+
+### List consumer – from(“hazelcast-list:foo”)
+
+The list consumer provides 2 operations:
+* add
+* remove
+
+[source,java]
+-----------------------------------------------------------------------------------------------
+fromF("hazelcast-%smm", HazelcastConstants.LIST_PREFIX)
+ .log("object...")
+ .choice()
+ .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
+ .log("...added")
+ .to("mock:added")
+ .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED))
+ .log("...removed")
+ .to("mock:removed")
+ .otherwise()
+ .log("fail!");
+-----------------------------------------------------------------------------------------------
[02/10] camel git commit: Upgrade Quartz to version 2.3.0
Posted by ac...@apache.org.
Upgrade Quartz to version 2.3.0
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/37f65bc1
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/37f65bc1
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/37f65bc1
Branch: refs/heads/master
Commit: 37f65bc1a17b749a2cb42c0a0974765634f832ee
Parents: 395c33f
Author: Andrea Cosentino <an...@gmail.com>
Authored: Tue May 9 09:02:52 2017 +0200
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Tue May 9 09:45:45 2017 +0200
----------------------------------------------------------------------
parent/pom.xml | 3 ++-
platforms/karaf/features/src/main/resources/features.xml | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/37f65bc1/parent/pom.xml
----------------------------------------------------------------------
diff --git a/parent/pom.xml b/parent/pom.xml
index 841ccdb..11e9d86 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -266,6 +266,7 @@
<hibernate-validator-version>5.4.1.Final</hibernate-validator-version>
<!-- Spring 3.2.x and 4.0.x still stick to JPA 2.0. Hibernate 4.3.x upgraded to JPA 2.1. -->
<hibernate-version>4.2.20.Final</hibernate-version>
+ <hikaricp-version>2.3.13</hikaricp-version>
<hk2-version>2.3.0</hk2-version>
<hk2-osgi-resource-version>1.0.1</hk2-osgi-resource-version>
<hsqldb-version>2.3.4</hsqldb-version>
@@ -526,7 +527,7 @@
<quartz-bundle-version>1.8.6_1</quartz-bundle-version>
<quartz-version>1.8.6</quartz-version>
<quartz-version-range>[1.8,2)</quartz-version-range>
- <quartz2-version>2.2.3</quartz2-version>
+ <quartz2-version>2.3.0</quartz2-version>
<quickfixj-version>1.6.3</quickfixj-version>
<rabbitmq-amqp-client-version>4.1.0</rabbitmq-amqp-client-version>
<reactive-streams-version>1.0.0</reactive-streams-version>
http://git-wip-us.apache.org/repos/asf/camel/blob/37f65bc1/platforms/karaf/features/src/main/resources/features.xml
----------------------------------------------------------------------
diff --git a/platforms/karaf/features/src/main/resources/features.xml b/platforms/karaf/features/src/main/resources/features.xml
index aeb10aa..41c420e 100644
--- a/platforms/karaf/features/src/main/resources/features.xml
+++ b/platforms/karaf/features/src/main/resources/features.xml
@@ -1478,6 +1478,7 @@
<feature name='camel-quartz2' version='${project.version}' resolver='(obr)' start-level='50'>
<bundle dependency='true'>wrap:mvn:com.mchange/c3p0/${c3p0-version}</bundle>
<bundle dependency='true'>wrap:mvn:com.mchange/mchange-commons-java/${mchange-commons-java-version}</bundle>
+ <bundle dependency='true'>mvn:com.zaxxer/HikariCP-java6/${hikaricp-version}</bundle>
<bundle dependency='true'>mvn:org.quartz-scheduler/quartz/${quartz2-version}</bundle>
<feature version='${project.version}'>camel-core</feature>
<bundle>mvn:org.apache.camel/camel-quartz2/${project.version}</bundle>
[09/10] camel git commit: CAMEL-10798 Splitted hazelcast component
into 11 which correspond to each of endpoints
Posted by ac...@apache.org.
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/docs/hazelcast-map-component.adoc
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/docs/hazelcast-map-component.adoc b/components/camel-hazelcast/src/main/docs/hazelcast-map-component.adoc
new file mode 100644
index 0000000..ab01655
--- /dev/null
+++ b/components/camel-hazelcast/src/main/docs/hazelcast-map-component.adoc
@@ -0,0 +1,336 @@
+## Hazelcast Map Component
+
+*Available as of Camel version 2.7*
+
+The http://www.hazelcast.com/[Hazelcast] Map component is one of link:hazelcast.html[Camel Hazelcast Components] which allows you to access Hazelcast distributed map.
+
+
+### Options
+
+// component options: START
+The Hazelcast Map component supports 3 options which are listed below.
+
+
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **hazelcastInstance** (advanced) | The hazelcast instance reference which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | HazelcastInstance
+| **hazelcastMode** (advanced) | The hazelcast mode reference which kind of instance should be used. If you don't specify the mode then the node mode will be the default. | node | String
+| **resolveProperty Placeholders** (advanced) | Whether the component should resolve property placeholders on itself when starting. Only properties which are of String type can use property placeholders. | true | boolean
+|=======================================================================
+// component options: END
+// endpoint options: START
+The Hazelcast Map endpoint is configured using URI syntax:
+
+ hazelcast-map:cacheName
+
+with the following path and query parameters:
+
+#### Path Parameters (1 parameters):
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **cacheName** | *Required* The name of the cache | | String
+|=======================================================================
+
+#### Query Parameters (12 parameters):
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **defaultOperation** (common) | To specify a default operation to use if no operation header has been provided. | | String
+| **hazelcastInstance** (common) | The hazelcast instance reference which can be used for hazelcast endpoint. | | HazelcastInstance
+| **hazelcastInstanceName** (common) | The hazelcast instance reference name which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | String
+| **reliable** (common) | Define if the endpoint will use a reliable Topic struct or not. | false | boolean
+| **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
+| **exceptionHandler** (consumer) | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options 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. | | ExchangePattern
+| **synchronous** (advanced) | Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported). | false | boolean
+| **concurrentConsumers** (seda) | To use concurrent consumers polling from the SEDA queue. | 1 | int
+| **pollTimeout** (seda) | The timeout used when consuming from the SEDA queue. When a timeout occurs the consumer can check whether it is allowed to continue running. Setting a lower value allows the consumer to react more quickly upon shutdown. | 1000 | int
+| **transacted** (seda) | If set to true then the consumer runs in transaction mode where the messages in the seda queue will only be removed if the transaction commits which happens when the processing is complete. | false | boolean
+| **transferExchange** (seda) | If set to true the whole Exchange will be transfered. If header or body contains not serializable objects they will be skipped. | false | boolean
+|=======================================================================
+// endpoint options: END
+
+
+
+### Map cache producer - to("hazelcast-map:foo")
+
+If you want to store a value in a map you can use the map cache
+producer.
+
+The map cache producer provides follow operations specified by *CamelHazelcastOperationType* header:
+
+* put
+* putIfAbsent
+* get
+* getAll
+* keySet
+* containsKey
+* containsValue
+* delete
+* update
+* query
+* clear
+* evict
+* evictAll
+
+All operations are provide the inside the "hazelcast.operation.type" header variable. In Java
+DSL you can use the constants from `org.apache.camel.component.hazelcast.HazelcastConstants`.
+
+Header Variables for the request message:
+
+[width="100%",cols="10%,10%,80%",options="header",]
+|=======================================================================
+|Name |Type |Description
+|`CamelHazelcastOperationType` |`String` | as already described.
+
+|`CamelHazelcastObjectId` |`String` |the object id to store / find your object inside the cache (not needed for the query operation)
+|=======================================================================
+
+*put* and *putIfAbsent* operations provide an eviction mechanism:
+
+[width="100%",cols="10%,10%,80%",options="header",]
+|=======================================================================
+|Name |Type |Description
+|`CamelHazelcastObjectTtlValue` |`Integer` | value of TTL.
+
+|`CamelHazelcastObjectTtlUnit` |`java.util.concurrent.TimeUnit` | value of time unit ( DAYS / HOURS / MINUTES / ....
+|=======================================================================
+
+You can call the samples with:
+
+[source,java]
+-------------------------------------------------------------------------------------------------------------------
+template.sendBodyAndHeader("direct:[put|get|update|delete|query|evict]", "my-foo", HazelcastConstants.OBJECT_ID, "4711");
+-------------------------------------------------------------------------------------------------------------------
+
+#### Sample for *put*:
+
+Java DSL:
+
+[source,java]
+------------------------------------------------------------------------------------
+from("direct:put")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION))
+.toF("hazelcast-%sfoo", HazelcastConstants.MAP_PREFIX);
+------------------------------------------------------------------------------------
+
+Spring DSL:
+
+[source,java]
+-----------------------------------------------------------------------------------------------
+<route>
+ <from uri="direct:put" />
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>put</constant>
+ </setHeader>
+ <to uri="hazelcast-map:foo" />
+</route>
+-----------------------------------------------------------------------------------------------
+
+Sample for *put* with eviction:
+
+Java DSL:
+
+[source,java]
+------------------------------------------------------------------------------------
+from("direct:put")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION))
+.setHeader(HazelcastConstants.TTL_VALUE, constant(Long.valueOf(1)))
+.setHeader(HazelcastConstants.TTL_UNIT, constant(TimeUnit.MINUTES))
+.toF("hazelcast-%sfoo", HazelcastConstants.MAP_PREFIX);
+------------------------------------------------------------------------------------
+
+Spring DSL:
+
+[source,java]
+-----------------------------------------------------------------------------------------------
+<route>
+ <from uri="direct:put" />
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>put</constant>
+ </setHeader>
+ <setHeader headerName="HazelcastConstants.TTL_VALUE">
+ <simple resultType="java.lang.Long">1</simple>
+ </setHeader>
+ <setHeader headerName="HazelcastConstants.TTL_UNIT">
+ <simple resultType="java.util.concurrent.TimeUnit">TimeUnit.MINUTES</simple>
+ </setHeader>
+ <to uri="hazelcast-map:foo" />
+</route>
+-----------------------------------------------------------------------------------------------
+
+
+#### Sample for *get*:
+
+Java DSL:
+
+[source,java]
+------------------------------------------------------------------------------------
+from("direct:get")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION))
+.toF("hazelcast-%sfoo", HazelcastConstants.MAP_PREFIX)
+.to("seda:out");
+------------------------------------------------------------------------------------
+
+Spring DSL:
+
+[source,java]
+-----------------------------------------------------------------------------------------------
+<route>
+ <from uri="direct:get" />
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>get</constant>
+ </setHeader>
+ <to uri="hazelcast-map:foo" />
+ <to uri="seda:out" />
+</route>
+-----------------------------------------------------------------------------------------------
+
+#### Sample for *update*:
+
+Java DSL:
+
+[source,java]
+---------------------------------------------------------------------------------------
+from("direct:update")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.UPDATE_OPERATION))
+.toF("hazelcast-%sfoo", HazelcastConstants.MAP_PREFIX);
+---------------------------------------------------------------------------------------
+
+Spring DSL:
+
+[source,java]
+-----------------------------------------------------------------------------------------------
+<route>
+ <from uri="direct:update" />
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>update</constant>
+ </setHeader>
+ <to uri="hazelcast-map:foo" />
+</route>
+-----------------------------------------------------------------------------------------------
+
+#### Sample for *delete*:
+
+Java DSL:
+
+[source,java]
+---------------------------------------------------------------------------------------
+from("direct:delete")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DELETE_OPERATION))
+.toF("hazelcast-%sfoo", HazelcastConstants.MAP_PREFIX);
+---------------------------------------------------------------------------------------
+
+Spring DSL:
+
+[source,java]
+-----------------------------------------------------------------------------------------------
+<route>
+ <from uri="direct:delete" />
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>delete</constant>
+ </setHeader>
+ <to uri="hazelcast-map:foo" />
+</route>
+-----------------------------------------------------------------------------------------------
+
+#### Sample for *query*
+
+Java DSL:
+
+[source,java]
+--------------------------------------------------------------------------------------
+from("direct:query")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.QUERY_OPERATION))
+.toF("hazelcast-%sfoo", HazelcastConstants.MAP_PREFIX)
+.to("seda:out");
+--------------------------------------------------------------------------------------
+
+Spring DSL:
+
+[source,java]
+-----------------------------------------------------------------------------------------------
+<route>
+ <from uri="direct:query" />
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>query</constant>
+ </setHeader>
+ <to uri="hazelcast-map:foo" />
+ <to uri="seda:out" />
+</route>
+-----------------------------------------------------------------------------------------------
+
+For the query operation Hazelcast offers a SQL like syntax to query your
+distributed map.
+
+[source,java]
+-------------------------------------------------------------------------------
+String q1 = "bar > 1000";
+template.sendBodyAndHeader("direct:query", null, HazelcastConstants.QUERY, q1);
+-------------------------------------------------------------------------------
+
+
+### Map cache consumer - from("hazelcast-map:foo")
+
+Hazelcast provides event listeners on their data grid. If you want to be
+notified if a cache will be manipulated, you can use the map consumer.
+There're 4 events: *put*, *update*, *delete* and *envict*. The event
+type will be stored in the "*hazelcast.listener.action*" header
+variable. The map consumer provides some additional information inside
+these variables:
+
+Header Variables inside the response message:
+
+[width="100%",cols="10%,10%,80%",options="header",]
+|=======================================================================
+|Name |Type |Description
+
+|`CamelHazelcastListenerTime` |`Long` |time of the event in millis
+
+|`CamelHazelcastListenerType` |`String` |the map consumer sets here "cachelistener"
+
+|`CamelHazelcastListenerAction` |`String` |type of event - here *added*, *updated*, *envicted* and *removed*.
+
+|`CamelHazelcastObjectId` |`String` |the oid of the object
+
+|`CamelHazelcastCacheName` |`String` |the name of the cache - e.g. "foo"
+
+|`CamelHazelcastCacheType` |`String` |the type of the cache - here map
+|=======================================================================
+
+The object value will be stored within *put* and *update* actions inside
+the message body.
+
+Here's a sample:
+
+[source,java]
+--------------------------------------------------------------------------------------------
+fromF("hazelcast-%sfoo", HazelcastConstants.MAP_PREFIX)
+.log("object...")
+.choice()
+ .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
+ .log("...added")
+ .to("mock:added")
+ .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ENVICTED))
+ .log("...envicted")
+ .to("mock:envicted")
+ .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.UPDATED))
+ .log("...updated")
+ .to("mock:updated")
+ .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED))
+ .log("...removed")
+ .to("mock:removed")
+ .otherwise()
+ .log("fail!");
+--------------------------------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/docs/hazelcast-multimap-component.adoc
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/docs/hazelcast-multimap-component.adoc b/components/camel-hazelcast/src/main/docs/hazelcast-multimap-component.adoc
new file mode 100644
index 0000000..f19f4a4
--- /dev/null
+++ b/components/camel-hazelcast/src/main/docs/hazelcast-multimap-component.adoc
@@ -0,0 +1,237 @@
+## Hazelcast Multimap Component
+
+*Available as of Camel version 2.7*
+
+The http://www.hazelcast.com/[Hazelcast] Multimap component is one of link:hazelcast.html[Camel Hazelcast Components] which allows you to access Hazelcast distributed multimap.
+
+
+### Options
+
+// component options: START
+The Hazelcast Multimap component supports 3 options which are listed below.
+
+
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **hazelcastInstance** (advanced) | The hazelcast instance reference which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | HazelcastInstance
+| **hazelcastMode** (advanced) | The hazelcast mode reference which kind of instance should be used. If you don't specify the mode then the node mode will be the default. | node | String
+| **resolveProperty Placeholders** (advanced) | Whether the component should resolve property placeholders on itself when starting. Only properties which are of String type can use property placeholders. | true | boolean
+|=======================================================================
+// component options: END
+
+// endpoint options: START
+The Hazelcast Multimap endpoint is configured using URI syntax:
+
+ hazelcast-multimap:cacheName
+
+with the following path and query parameters:
+
+#### Path Parameters (1 parameters):
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **cacheName** | *Required* The name of the cache | | String
+|=======================================================================
+
+#### Query Parameters (12 parameters):
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **defaultOperation** (common) | To specify a default operation to use if no operation header has been provided. | | String
+| **hazelcastInstance** (common) | The hazelcast instance reference which can be used for hazelcast endpoint. | | HazelcastInstance
+| **hazelcastInstanceName** (common) | The hazelcast instance reference name which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | String
+| **reliable** (common) | Define if the endpoint will use a reliable Topic struct or not. | false | boolean
+| **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
+| **exceptionHandler** (consumer) | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options 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. | | ExchangePattern
+| **synchronous** (advanced) | Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported). | false | boolean
+| **concurrentConsumers** (seda) | To use concurrent consumers polling from the SEDA queue. | 1 | int
+| **pollTimeout** (seda) | The timeout used when consuming from the SEDA queue. When a timeout occurs the consumer can check whether it is allowed to continue running. Setting a lower value allows the consumer to react more quickly upon shutdown. | 1000 | int
+| **transacted** (seda) | If set to true then the consumer runs in transaction mode where the messages in the seda queue will only be removed if the transaction commits which happens when the processing is complete. | false | boolean
+| **transferExchange** (seda) | If set to true the whole Exchange will be transfered. If header or body contains not serializable objects they will be skipped. | false | boolean
+|=======================================================================
+// endpoint options: END
+
+
+
+### multimap cache producer - to("hazelcast-multimap:foo")
+
+A multimap is a cache where you can store n values to one key. The
+multimap producer provides 4 operations (put, get, removevalue, delete).
+
+Header Variables for the request message:
+
+[width="100%",cols="10%,10%,80%",options="header",]
+|=======================================================================
+|Name |Type |Description
+
+|`CamelHazelcastOperationType` |`String` |valid values are: put, get, removevalue, delete *From Camel 2.16:* clear.
+
+|`CamelHazelcastObjectId` |`String` |the object id to store / find your object inside the cache
+|=======================================================================
+
+#### Sample for *put*:
+
+Java DSL:
+
+[source,java]
+------------------------------------------------------------------------------------
+from("direct:put")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION))
+.to(String.format("hazelcast-%sbar", HazelcastConstants.MULTIMAP_PREFIX));
+------------------------------------------------------------------------------------
+
+Spring DSL:
+
+[source,java]
+-----------------------------------------------------------------------------------------------
+<route>
+ <from uri="direct:put" />
+ <log message="put.."/>
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>put</constant>
+ </setHeader>
+ <to uri="hazelcast-multimap:foo" />
+</route>
+-----------------------------------------------------------------------------------------------
+
+#### Sample for *removevalue*:
+
+Java DSL:
+
+[source,java]
+--------------------------------------------------------------------------------------------
+from("direct:removevalue")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.REMOVEVALUE_OPERATION))
+.toF("hazelcast-%sbar", HazelcastConstants.MULTIMAP_PREFIX);
+--------------------------------------------------------------------------------------------
+
+Spring DSL:
+
+[source,java]
+-----------------------------------------------------------------------------------------------
+<route>
+ <from uri="direct:removevalue" />
+ <log message="removevalue..."/>
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>removevalue</constant>
+ </setHeader>
+ <to uri="hazelcast-multimap:foo" />
+</route>
+-----------------------------------------------------------------------------------------------
+
+To remove a value you have to provide the value you want to remove
+inside the message body. If you have a multimap object
+\{`key: "4711" values: { "my-foo", "my-bar"`}} you have to put "my-foo"
+inside the message body to remove the "my-foo" value.
+
+#### Sample for *get*:
+
+Java DSL:
+
+[source,java]
+------------------------------------------------------------------------------------
+from("direct:get")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION))
+.toF("hazelcast-%sbar", HazelcastConstants.MULTIMAP_PREFIX)
+.to("seda:out");
+------------------------------------------------------------------------------------
+
+Spring DSL:
+
+[source,java]
+-----------------------------------------------------------------------------------------------
+<route>
+ <from uri="direct:get" />
+ <log message="get.."/>
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>get</constant>
+ </setHeader>
+ <to uri="hazelcast-multimap:foo" />
+ <to uri="seda:out" />
+</route>
+-----------------------------------------------------------------------------------------------
+
+#### Sample for *delete*:
+
+Java DSL:
+
+[source,java]
+---------------------------------------------------------------------------------------
+from("direct:delete")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DELETE_OPERATION))
+.toF("hazelcast-%sbar", HazelcastConstants.MULTIMAP_PREFIX);
+---------------------------------------------------------------------------------------
+
+Spring DSL:
+
+[source,java]
+-----------------------------------------------------------------------------------------------
+<route>
+ <from uri="direct:delete" />
+ <log message="delete.."/>
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>delete</constant>
+ </setHeader>
+ <to uri="hazelcast-multimap:foo" />
+</route>
+-----------------------------------------------------------------------------------------------
+
+you can call them in your test class with:
+
+[source,java]
+------------------------------------------------------------------------------------------------------------------
+template.sendBodyAndHeader("direct:[put|get|removevalue|delete]", "my-foo", HazelcastConstants.OBJECT_ID, "4711");
+------------------------------------------------------------------------------------------------------------------
+
+### multimap cache consumer - from("hazelcast-multimap:foo")
+
+For the multimap cache this component provides the same listeners /
+variables as for the map cache consumer (except the update and enviction
+listener). The only difference is the *multimap* prefix inside the URI.
+Here is a sample:
+
+[source,java]
+--------------------------------------------------------------------------------------------------
+fromF("hazelcast-%sbar", HazelcastConstants.MULTIMAP_PREFIX)
+.log("object...")
+.choice()
+ .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
+ .log("...added")
+ .to("mock:added")
+ //.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ENVICTED))
+ // .log("...envicted")
+ // .to("mock:envicted")
+ .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED))
+ .log("...removed")
+ .to("mock:removed")
+ .otherwise()
+ .log("fail!");
+--------------------------------------------------------------------------------------------------
+
+Header Variables inside the response message:
+
+[width="100%",cols="10%,10%,80%",options="header",]
+|=======================================================================
+|Name |Type |Description
+
+|`CamelHazelcastListenerTime` |`Long` |time of the event in millis
+
+|`CamelHazelcastListenerType` |`String` |the map consumer sets here "cachelistener"
+
+|`CamelHazelcastListenerAction` |`String` |type of event - here *added* and *removed* (and soon *envicted*)
+
+|`CamelHazelcastObjectId` |`String` |the oid of the object
+
+|`CamelHazelcastCacheName` |`String` |the name of the cache - e.g. "foo"
+
+|`CamelHazelcastCacheType` |`String` |the type of the cache - here multimap
+|=======================================================================
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/docs/hazelcast-queue-component.adoc
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/docs/hazelcast-queue-component.adoc b/components/camel-hazelcast/src/main/docs/hazelcast-queue-component.adoc
new file mode 100644
index 0000000..1b2b5f7
--- /dev/null
+++ b/components/camel-hazelcast/src/main/docs/hazelcast-queue-component.adoc
@@ -0,0 +1,142 @@
+## Hazelcast Queue Component
+
+*Available as of Camel version 2.7*
+
+The http://www.hazelcast.com/[Hazelcast] Queue component is one of link:hazelcast.html[Camel Hazelcast Components] which allows you to access Hazelcast distributed queue.
+
+
+### Options
+
+// component options: START
+The Hazelcast Queue component supports 3 options which are listed below.
+
+
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **hazelcastInstance** (advanced) | The hazelcast instance reference which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | HazelcastInstance
+| **hazelcastMode** (advanced) | The hazelcast mode reference which kind of instance should be used. If you don't specify the mode then the node mode will be the default. | node | String
+| **resolveProperty Placeholders** (advanced) | Whether the component should resolve property placeholders on itself when starting. Only properties which are of String type can use property placeholders. | true | boolean
+|=======================================================================
+// component options: END
+// endpoint options: START
+The Hazelcast Queue endpoint is configured using URI syntax:
+
+ hazelcast-queue:cacheName
+
+with the following path and query parameters:
+
+#### Path Parameters (1 parameters):
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **cacheName** | *Required* The name of the cache | | String
+|=======================================================================
+
+#### Query Parameters (12 parameters):
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **defaultOperation** (common) | To specify a default operation to use if no operation header has been provided. | | String
+| **hazelcastInstance** (common) | The hazelcast instance reference which can be used for hazelcast endpoint. | | HazelcastInstance
+| **hazelcastInstanceName** (common) | The hazelcast instance reference name which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | String
+| **reliable** (common) | Define if the endpoint will use a reliable Topic struct or not. | false | boolean
+| **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
+| **exceptionHandler** (consumer) | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options 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. | | ExchangePattern
+| **synchronous** (advanced) | Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported). | false | boolean
+| **concurrentConsumers** (seda) | To use concurrent consumers polling from the SEDA queue. | 1 | int
+| **pollTimeout** (seda) | The timeout used when consuming from the SEDA queue. When a timeout occurs the consumer can check whether it is allowed to continue running. Setting a lower value allows the consumer to react more quickly upon shutdown. | 1000 | int
+| **transacted** (seda) | If set to true then the consumer runs in transaction mode where the messages in the seda queue will only be removed if the transaction commits which happens when the processing is complete. | false | boolean
+| **transferExchange** (seda) | If set to true the whole Exchange will be transfered. If header or body contains not serializable objects they will be skipped. | false | boolean
+|=======================================================================
+// endpoint options: END
+
+
+### Queue producer – to(“hazelcast-queue:foo”)
+
+The queue producer provides 6 operations:
+* add
+* put
+* poll
+* peek
+* offer
+* removevalue
+
+#### Sample for *add*:
+
+[source,java]
+------------------------------------------------------------------------------------
+from("direct:add")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.ADD_OPERATION))
+.toF("hazelcast-%sbar", HazelcastConstants.QUEUE_PREFIX);
+------------------------------------------------------------------------------------
+
+#### Sample for *put*:
+
+[source,java]
+------------------------------------------------------------------------------------
+from("direct:put")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION))
+.toF("hazelcast-%sbar", HazelcastConstants.QUEUE_PREFIX);
+------------------------------------------------------------------------------------
+
+#### Sample for *poll*:
+
+[source,java]
+-------------------------------------------------------------------------------------
+from("direct:poll")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.POLL_OPERATION))
+.toF("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX);
+-------------------------------------------------------------------------------------
+
+#### Sample for *peek*:
+
+[source,java]
+-------------------------------------------------------------------------------------
+from("direct:peek")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PEEK_OPERATION))
+.toF("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX);
+-------------------------------------------------------------------------------------
+
+#### Sample for *offer*:
+
+[source,java]
+--------------------------------------------------------------------------------------
+from("direct:offer")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.OFFER_OPERATION))
+.toF("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX);
+--------------------------------------------------------------------------------------
+
+#### Sample for *removevalue*:
+
+[source,java]
+--------------------------------------------------------------------------------------------
+from("direct:removevalue")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.REMOVEVALUE_OPERATION))
+.toF("hazelcast-%sbar", HazelcastConstants.QUEUE_PREFIX);
+--------------------------------------------------------------------------------------------
+
+### Queue consumer – from(“hazelcast-queue:foo”)
+
+The queue consumer provides 2 operations:
+* add
+* remove
+
+[source,java]
+-------------------------------------------------------------------------------------------
+fromF("hazelcast-%smm", HazelcastConstants.QUEUE_PREFIX)
+ .log("object...")
+ .choice()
+ .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
+ .log("...added")
+ .to("mock:added")
+ .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED))
+ .log("...removed")
+ .to("mock:removed")
+ .otherwise()
+ .log("fail!");
+-------------------------------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/docs/hazelcast-replicatedmap-component.adoc
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/docs/hazelcast-replicatedmap-component.adoc b/components/camel-hazelcast/src/main/docs/hazelcast-replicatedmap-component.adoc
new file mode 100644
index 0000000..8a87c28
--- /dev/null
+++ b/components/camel-hazelcast/src/main/docs/hazelcast-replicatedmap-component.adoc
@@ -0,0 +1,210 @@
+## Hazelcast Replicated Map Component
+
+*Available as of Camel version 2.16*
+
+The http://www.hazelcast.com/[Hazelcast] instance component is one of link:hazelcast.html[Camel Hazelcast Components] which allows you to consume join/leave events of the cache instance in the cluster.
+A replicated map is a weakly consistent, distributed key-value data structure with no data partition.
+
+
+### Options
+
+// component options: START
+The Hazelcast Replicated Map component supports 3 options which are listed below.
+
+
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **hazelcastInstance** (advanced) | The hazelcast instance reference which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | HazelcastInstance
+| **hazelcastMode** (advanced) | The hazelcast mode reference which kind of instance should be used. If you don't specify the mode then the node mode will be the default. | node | String
+| **resolveProperty Placeholders** (advanced) | Whether the component should resolve property placeholders on itself when starting. Only properties which are of String type can use property placeholders. | true | boolean
+|=======================================================================
+// component options: END
+// endpoint options: START
+The Hazelcast Replicated Map endpoint is configured using URI syntax:
+
+ hazelcast-replicatedmap:cacheName
+
+with the following path and query parameters:
+
+#### Path Parameters (1 parameters):
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **cacheName** | *Required* The name of the cache | | String
+|=======================================================================
+
+#### Query Parameters (12 parameters):
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **defaultOperation** (common) | To specify a default operation to use if no operation header has been provided. | | String
+| **hazelcastInstance** (common) | The hazelcast instance reference which can be used for hazelcast endpoint. | | HazelcastInstance
+| **hazelcastInstanceName** (common) | The hazelcast instance reference name which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | String
+| **reliable** (common) | Define if the endpoint will use a reliable Topic struct or not. | false | boolean
+| **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
+| **exceptionHandler** (consumer) | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options 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. | | ExchangePattern
+| **synchronous** (advanced) | Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported). | false | boolean
+| **concurrentConsumers** (seda) | To use concurrent consumers polling from the SEDA queue. | 1 | int
+| **pollTimeout** (seda) | The timeout used when consuming from the SEDA queue. When a timeout occurs the consumer can check whether it is allowed to continue running. Setting a lower value allows the consumer to react more quickly upon shutdown. | 1000 | int
+| **transacted** (seda) | If set to true then the consumer runs in transaction mode where the messages in the seda queue will only be removed if the transaction commits which happens when the processing is complete. | false | boolean
+| **transferExchange** (seda) | If set to true the whole Exchange will be transfered. If header or body contains not serializable objects they will be skipped. | false | boolean
+|=======================================================================
+// endpoint options: END
+
+
+
+### replicatedmap cache producer
+
+The replicatedmap producer provides 4 operations:
+* put
+* get
+* delete
+* clear
+
+Header Variables for the request message:
+
+[width="100%",cols="10%,10%,80%",options="header",]
+|=======================================================================
+|Name |Type |Description
+
+|`CamelHazelcastOperationType` |`String` | valid values are: put, get, removevalue, delete
+
+|`CamelHazelcastObjectId` |`String` | the object id to store / find your object inside the cache
+|=======================================================================
+
+#### Sample for *put*:
+
+Java DSL:
+
+[source,java]
+------------------------------------------------------------------------------------
+from("direct:put")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION))
+.to(String.format("hazelcast-%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX));
+------------------------------------------------------------------------------------
+
+Spring DSL:
+
+[source,java]
+-----------------------------------------------------------------------------------------------
+<route>
+ <from uri="direct:put" />
+ <log message="put.."/>
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>put</constant>
+ </setHeader>
+ <to uri="hazelcast-replicatedmap:foo" />
+</route>
+-----------------------------------------------------------------------------------------------
+
+#### Sample for *get*:
+
+Java DSL:
+
+[source,java]
+------------------------------------------------------------------------------------
+from("direct:get")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION))
+.toF("hazelcast-%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX)
+.to("seda:out");
+------------------------------------------------------------------------------------
+
+Spring DSL:
+
+[source,java]
+-----------------------------------------------------------------------------------------------
+<route>
+ <from uri="direct:get" />
+ <log message="get.."/>
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>get</constant>
+ </setHeader>
+ <to uri="hazelcast-replicatedmap:foo" />
+ <to uri="seda:out" />
+</route>
+-----------------------------------------------------------------------------------------------
+
+#### Sample for *delete*:
+
+Java DSL:
+
+[source,java]
+---------------------------------------------------------------------------------------
+from("direct:delete")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DELETE_OPERATION))
+.toF("hazelcast-%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX);
+---------------------------------------------------------------------------------------
+
+Spring DSL:
+
+[source,java]
+-----------------------------------------------------------------------------------------------
+<route>
+ <from uri="direct:delete" />
+ <log message="delete.."/>
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>delete</constant>
+ </setHeader>
+ <to uri="hazelcast-replicatedmap:foo" />
+</route>
+-----------------------------------------------------------------------------------------------
+
+you can call them in your test class with:
+
+[source,java]
+------------------------------------------------------------------------------------------------------------
+template.sendBodyAndHeader("direct:[put|get|delete|clear]", "my-foo", HazelcastConstants.OBJECT_ID, "4711");
+------------------------------------------------------------------------------------------------------------
+
+### replicatedmap cache consumer
+
+For the multimap cache this component provides the same listeners /
+variables as for the map cache consumer (except the update and enviction
+listener). The only difference is the *multimap* prefix inside the URI.
+Here is a sample:
+
+[source,java]
+--------------------------------------------------------------------------------------------------
+fromF("hazelcast-%sbar", HazelcastConstants.MULTIMAP_PREFIX)
+.log("object...")
+.choice()
+ .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
+ .log("...added")
+ .to("mock:added")
+ //.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ENVICTED))
+ // .log("...envicted")
+ // .to("mock:envicted")
+ .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED))
+ .log("...removed")
+ .to("mock:removed")
+ .otherwise()
+ .log("fail!");
+--------------------------------------------------------------------------------------------------
+
+Header Variables inside the response message:
+
+[width="100%",cols="10%,10%,80%",options="header",]
+|=======================================================================
+|Name |Type |Description
+
+|`CamelHazelcastListenerTime` |`Long` |time of the event in millis
+
+|`CamelHazelcastListenerType` |`String` |the map consumer sets here "cachelistener"
+
+|`CamelHazelcastListenerAction` |`String` |type of event - here *added* and *removed* (and soon *envicted*)
+
+|`CamelHazelcastObjectId` |`String` | the oid of the object
+
+|`CamelHazelcastCacheName` |`String` |the name of the cache - e.g. "foo"
+
+|`CamelHazelcastCacheType` |`String` |the type of the cache - here replicatedmap
+|=======================================================================
+
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/docs/hazelcast-ringbuffer-component.adoc
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/docs/hazelcast-ringbuffer-component.adoc b/components/camel-hazelcast/src/main/docs/hazelcast-ringbuffer-component.adoc
new file mode 100644
index 0000000..1a9001a
--- /dev/null
+++ b/components/camel-hazelcast/src/main/docs/hazelcast-ringbuffer-component.adoc
@@ -0,0 +1,116 @@
+## Hazelcast Ringbuffer Component
+
+*Available as of Camel version 2.16*
+
+*Avalaible from Camel 2.16*
+
+The http://www.hazelcast.com/[Hazelcast] ringbuffer component is one of link:hazelcast.html[Camel Hazelcast Components] which allows you to access Hazelcast ringbuffer.
+Ringbuffer is a distributed data structure where the data is stored in a ring-like structure. You can think of it as a circular array with a certain capacity.
+
+### Options
+
+// component options: START
+The Hazelcast Ringbuffer component supports 3 options which are listed below.
+
+
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **hazelcastInstance** (advanced) | The hazelcast instance reference which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | HazelcastInstance
+| **hazelcastMode** (advanced) | The hazelcast mode reference which kind of instance should be used. If you don't specify the mode then the node mode will be the default. | node | String
+| **resolveProperty Placeholders** (advanced) | Whether the component should resolve property placeholders on itself when starting. Only properties which are of String type can use property placeholders. | true | boolean
+|=======================================================================
+// component options: END
+
+// endpoint options: START
+The Hazelcast Ringbuffer endpoint is configured using URI syntax:
+
+ hazelcast-ringbuffer:cacheName
+
+with the following path and query parameters:
+
+#### Path Parameters (1 parameters):
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **cacheName** | *Required* The name of the cache | | String
+|=======================================================================
+
+#### Query Parameters (9 parameters):
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **reliable** (common) | Define if the endpoint will use a reliable Topic struct or not. | false | boolean
+| **defaultOperation** (producer) | To specify a default operation to use if no operation header has been provided. | | String
+| **hazelcastInstance** (producer) | The hazelcast instance reference which can be used for hazelcast endpoint. | | HazelcastInstance
+| **hazelcastInstanceName** (producer) | The hazelcast instance reference name which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | String
+| **synchronous** (advanced) | Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported). | false | boolean
+| **concurrentConsumers** (seda) | To use concurrent consumers polling from the SEDA queue. | 1 | int
+| **pollTimeout** (seda) | The timeout used when consuming from the SEDA queue. When a timeout occurs the consumer can check whether it is allowed to continue running. Setting a lower value allows the consumer to react more quickly upon shutdown. | 1000 | int
+| **transacted** (seda) | If set to true then the consumer runs in transaction mode where the messages in the seda queue will only be removed if the transaction commits which happens when the processing is complete. | false | boolean
+| **transferExchange** (seda) | If set to true the whole Exchange will be transfered. If header or body contains not serializable objects they will be skipped. | false | boolean
+|=======================================================================
+// endpoint options: END
+
+
+
+### ringbuffer cache producer
+
+The ringbuffer producer provides 5 operations:
+* add
+* readonceHead
+* readonceTail
+* remainingCapacity
+* capacity
+
+Header Variables for the request message:
+
+[width="100%",cols="10%,10%,80%",options="header",]
+|=======================================================================
+|Name |Type |Description
+
+|`CamelHazelcastOperationType` |`String` |valid values are: put, get, removevalue, delete
+
+|`CamelHazelcastObjectId` |`String` |the object id to store / find your object inside the cache
+|=======================================================================
+
+#### Sample for *put*:
+
+Java DSL:
+
+[source,java]
+------------------------------------------------------------------------------------
+from("direct:put")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.ADD_OPERATION))
+.to(String.format("hazelcast-%sbar", HazelcastConstants.RINGBUFFER_PREFIX));
+------------------------------------------------------------------------------------
+
+Spring DSL:
+
+[source,java]
+-----------------------------------------------------------------------------------------------
+<route>
+ <from uri="direct:put" />
+ <log message="put.."/>
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>add</constant>
+ </setHeader>
+ <to uri="hazelcast-ringbuffer:foo" />
+</route>
+-----------------------------------------------------------------------------------------------
+
+#### Sample for *readonce from head*:
+
+Java DSL:
+
+[source,java]
+-----------------------------------------------------------------------------------------------
+from("direct:get")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.READ_ONCE_HEAD_OPERATION))
+.toF("hazelcast-%sbar", HazelcastConstants.RINGBUFFER_PREFIX)
+.to("seda:out");
+-----------------------------------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/docs/hazelcast-seda-component.adoc
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/docs/hazelcast-seda-component.adoc b/components/camel-hazelcast/src/main/docs/hazelcast-seda-component.adoc
new file mode 100644
index 0000000..165dc0a4
--- /dev/null
+++ b/components/camel-hazelcast/src/main/docs/hazelcast-seda-component.adoc
@@ -0,0 +1,104 @@
+## Hazelcast SEDA Component
+
+*Available as of Camel version 2.7*
+
+The http://www.hazelcast.com/[Hazelcast] SEDA component is one of link:hazelcast.html[Camel Hazelcast Components] which allows you to access Hazelcast BlockingQueue.
+SEDA component differs from the rest components provided. It implements a work-queue in order to support asynchronous SEDA architectures, similar to the core "SEDA" component.
+
+
+### Options
+
+// component options: START
+The Hazelcast SEDA component supports 3 options which are listed below.
+
+
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **hazelcastInstance** (advanced) | The hazelcast instance reference which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | HazelcastInstance
+| **hazelcastMode** (advanced) | The hazelcast mode reference which kind of instance should be used. If you don't specify the mode then the node mode will be the default. | node | String
+| **resolveProperty Placeholders** (advanced) | Whether the component should resolve property placeholders on itself when starting. Only properties which are of String type can use property placeholders. | true | boolean
+|=======================================================================
+// component options: END
+// endpoint options: START
+The Hazelcast SEDA endpoint is configured using URI syntax:
+
+ hazelcast-seda:cacheName
+
+with the following path and query parameters:
+
+#### Path Parameters (1 parameters):
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **cacheName** | *Required* The name of the cache | | String
+|=======================================================================
+
+#### Query Parameters (12 parameters):
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **defaultOperation** (common) | To specify a default operation to use if no operation header has been provided. | | String
+| **hazelcastInstance** (common) | The hazelcast instance reference which can be used for hazelcast endpoint. | | HazelcastInstance
+| **hazelcastInstanceName** (common) | The hazelcast instance reference name which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | String
+| **reliable** (common) | Define if the endpoint will use a reliable Topic struct or not. | false | boolean
+| **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
+| **exceptionHandler** (consumer) | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options 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. | | ExchangePattern
+| **synchronous** (advanced) | Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported). | false | boolean
+| **concurrentConsumers** (seda) | To use concurrent consumers polling from the SEDA queue. | 1 | int
+| **pollTimeout** (seda) | The timeout used when consuming from the SEDA queue. When a timeout occurs the consumer can check whether it is allowed to continue running. Setting a lower value allows the consumer to react more quickly upon shutdown. | 1000 | int
+| **transacted** (seda) | If set to true then the consumer runs in transaction mode where the messages in the seda queue will only be removed if the transaction commits which happens when the processing is complete. | false | boolean
+| **transferExchange** (seda) | If set to true the whole Exchange will be transfered. If header or body contains not serializable objects they will be skipped. | false | boolean
+|=======================================================================
+// endpoint options: END
+
+
+### SEDA producer – to(“hazelcast-seda:foo”)
+
+The SEDA producer provides no operations. You only send data to the
+specified queue.
+
+Java DSL :
+
+[source,java]
+--------------------------
+from("direct:foo")
+.to("hazelcast-seda:foo");
+--------------------------
+
+Spring DSL :
+
+[source,java]
+----------------------------------
+<route>
+ <from uri="direct:start" />
+ <to uri="hazelcast-seda:foo" />
+</route>
+----------------------------------
+
+### SEDA consumer – from(“hazelcast-seda:foo”)
+
+The SEDA consumer provides no operations. You only retrieve data from
+the specified queue.
+
+Java DSL :
+
+[source,java]
+--------------------------
+from("hazelcast-seda:foo")
+.to("mock:result");
+--------------------------
+
+Spring DSL:
+
+[source,java]
+-----------------------------------
+<route>
+ <from uri="hazelcast-seda:foo" />
+ <to uri="mock:result" />
+</route>
+-----------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/docs/hazelcast-set-component.adoc
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/docs/hazelcast-set-component.adoc b/components/camel-hazelcast/src/main/docs/hazelcast-set-component.adoc
new file mode 100644
index 0000000..529faa5
--- /dev/null
+++ b/components/camel-hazelcast/src/main/docs/hazelcast-set-component.adoc
@@ -0,0 +1,56 @@
+## Hazelcast Set Component
+
+*Available as of Camel version 2.7*
+
+The http://www.hazelcast.com/[Hazelcast] Set component is one of link:hazelcast.html[Camel Hazelcast Components] which allows you to access Hazelcast distributed set.
+
+
+### Options
+
+// component options: START
+The Hazelcast Set component supports 3 options which are listed below.
+
+
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **hazelcastInstance** (advanced) | The hazelcast instance reference which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | HazelcastInstance
+| **hazelcastMode** (advanced) | The hazelcast mode reference which kind of instance should be used. If you don't specify the mode then the node mode will be the default. | node | String
+| **resolveProperty Placeholders** (advanced) | Whether the component should resolve property placeholders on itself when starting. Only properties which are of String type can use property placeholders. | true | boolean
+|=======================================================================
+// component options: END
+// endpoint options: START
+The Hazelcast Set endpoint is configured using URI syntax:
+
+ hazelcast-set:cacheName
+
+with the following path and query parameters:
+
+#### Path Parameters (1 parameters):
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **cacheName** | *Required* The name of the cache | | String
+|=======================================================================
+
+#### Query Parameters (12 parameters):
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **defaultOperation** (common) | To specify a default operation to use if no operation header has been provided. | | String
+| **hazelcastInstance** (common) | The hazelcast instance reference which can be used for hazelcast endpoint. | | HazelcastInstance
+| **hazelcastInstanceName** (common) | The hazelcast instance reference name which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | String
+| **reliable** (common) | Define if the endpoint will use a reliable Topic struct or not. | false | boolean
+| **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
+| **exceptionHandler** (consumer) | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options 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. | | ExchangePattern
+| **synchronous** (advanced) | Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported). | false | boolean
+| **concurrentConsumers** (seda) | To use concurrent consumers polling from the SEDA queue. | 1 | int
+| **pollTimeout** (seda) | The timeout used when consuming from the SEDA queue. When a timeout occurs the consumer can check whether it is allowed to continue running. Setting a lower value allows the consumer to react more quickly upon shutdown. | 1000 | int
+| **transacted** (seda) | If set to true then the consumer runs in transaction mode where the messages in the seda queue will only be removed if the transaction commits which happens when the processing is complete. | false | boolean
+| **transferExchange** (seda) | If set to true the whole Exchange will be transfered. If header or body contains not serializable objects they will be skipped. | false | boolean
+|=======================================================================
+// endpoint options: END
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/docs/hazelcast-topic-component.adoc
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/docs/hazelcast-topic-component.adoc b/components/camel-hazelcast/src/main/docs/hazelcast-topic-component.adoc
new file mode 100644
index 0000000..b6e224b
--- /dev/null
+++ b/components/camel-hazelcast/src/main/docs/hazelcast-topic-component.adoc
@@ -0,0 +1,88 @@
+## Hazelcast Topic Component
+
+*Available as of Camel version 2.15*
+
+The http://www.hazelcast.com/[Hazelcast] Topic component is one of link:hazelcast.html[Camel Hazelcast Components] which allows you to access Hazelcast distributed topic.
+
+
+### Options
+
+// component options: START
+The Hazelcast Topic component supports 3 options which are listed below.
+
+
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **hazelcastInstance** (advanced) | The hazelcast instance reference which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | HazelcastInstance
+| **hazelcastMode** (advanced) | The hazelcast mode reference which kind of instance should be used. If you don't specify the mode then the node mode will be the default. | node | String
+| **resolveProperty Placeholders** (advanced) | Whether the component should resolve property placeholders on itself when starting. Only properties which are of String type can use property placeholders. | true | boolean
+|=======================================================================
+// component options: END
+// endpoint options: START
+The Hazelcast Topic endpoint is configured using URI syntax:
+
+ hazelcast-topic:cacheName
+
+with the following path and query parameters:
+
+#### Path Parameters (1 parameters):
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **cacheName** | *Required* The name of the cache | | String
+|=======================================================================
+
+#### Query Parameters (12 parameters):
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|=======================================================================
+| Name | Description | Default | Type
+| **defaultOperation** (common) | To specify a default operation to use if no operation header has been provided. | | String
+| **hazelcastInstance** (common) | The hazelcast instance reference which can be used for hazelcast endpoint. | | HazelcastInstance
+| **hazelcastInstanceName** (common) | The hazelcast instance reference name which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance. | | String
+| **reliable** (common) | Define if the endpoint will use a reliable Topic struct or not. | false | boolean
+| **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
+| **exceptionHandler** (consumer) | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options 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. | | ExchangePattern
+| **synchronous** (advanced) | Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported). | false | boolean
+| **concurrentConsumers** (seda) | To use concurrent consumers polling from the SEDA queue. | 1 | int
+| **pollTimeout** (seda) | The timeout used when consuming from the SEDA queue. When a timeout occurs the consumer can check whether it is allowed to continue running. Setting a lower value allows the consumer to react more quickly upon shutdown. | 1000 | int
+| **transacted** (seda) | If set to true then the consumer runs in transaction mode where the messages in the seda queue will only be removed if the transaction commits which happens when the processing is complete. | false | boolean
+| **transferExchange** (seda) | If set to true the whole Exchange will be transfered. If header or body contains not serializable objects they will be skipped. | false | boolean
+|=======================================================================
+// endpoint options: END
+
+
+
+### Topic producer – to(“hazelcast-topic:foo”)
+
+The topic producer provides only one operation (publish).
+
+#### Sample for *publish*:
+
+[source,java]
+----------------------------------------------------------------------------------------
+from("direct:add")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUBLISH_OPERATION))
+.toF("hazelcast-%sbar", HazelcastConstants.PUBLISH_OPERATION);
+----------------------------------------------------------------------------------------
+
+### Topic consumer – from(“hazelcast-topic:foo”)
+
+The topic consumer provides only one operation (received). This
+component is supposed to support multiple consumption as it's expected
+when it comes to topics so you are free to have as much consumers as you
+need on the same hazelcast topic.
+
+[source,java]
+--------------------------------------------------------------------------------------------
+fromF("hazelcast-%sfoo", HazelcastConstants.TOPIC_PREFIX)
+ .choice()
+ .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.RECEIVED))
+ .log("...message received")
+ .otherwise()
+ .log("...this should never have happened")
+--------------------------------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/docs/hazelcast.adoc
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/docs/hazelcast.adoc b/components/camel-hazelcast/src/main/docs/hazelcast.adoc
new file mode 100644
index 0000000..55f638d
--- /dev/null
+++ b/components/camel-hazelcast/src/main/docs/hazelcast.adoc
@@ -0,0 +1,165 @@
+## Hazelcast Component
+
+*Available as of Camel version 2.7*
+
+The *hazelcast-* component allows you to work with the
+http://www.hazelcast.com[Hazelcast] distributed data grid / cache.
+Hazelcast is a in memory data grid, entirely written in Java (single
+jar). It offers a great palette of different data stores like map, multi
+map (same key, n values), queue, list and atomic number. The main reason
+to use Hazelcast is its simple cluster support. If you have enabled
+multicast on your network you can run a cluster with hundred nodes with
+no extra configuration. Hazelcast can simply configured to add
+additional features like n copies between nodes (default is 1), cache
+persistence, network configuration (if needed), near cache, enviction
+and so on. For more information consult the Hazelcast documentation on
+http://www.hazelcast.com/docs.jsp[http://www.hazelcast.com/docs.jsp].
+
+Maven users will need to add the following dependency to their `pom.xml`
+for this component:
+
+[source,xml]
+------------------------------------------------------------
+<dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-hazelcast</artifactId>
+ <version>x.x.x</version>
+ <!-- use the same version as your Camel core version -->
+</dependency>
+------------------------------------------------------------
+
+
+### Hazelcast components
+See followings for each component usage:
+* link:hazelcast-map-component.html[map]
+* link:hazelcast-multimap-component.html[multimap]
+* link:hazelcast-queue-component.html[queue]
+* link:hazelcast-topic-component.html[topic]
+* link:hazelcast-list-component.html[list]
+* link:hazelcast-seda-component.html[seda]
+* link:hazelcast-set-component.html[set]
+* link:hazelcast-atomicvalue-component.html[atomic number]
+* link:hazelcast-instance-component.html[cluster support (instance)]
+* link:hazelcast-replicatedmap-component.html[replicatedmap]
+* link:hazelcast-ringbuffer-component.html[ringbuffer]
+
+
+
+### Using hazelcast reference
+
+#### By its name
+
+[source,xml]
+--------------------------------------------------------------------------------------------------------
+<bean id="hazelcastLifecycle" class="com.hazelcast.core.LifecycleService"
+ factory-bean="hazelcastInstance" factory-method="getLifecycleService"
+ destroy-method="shutdown" />
+
+<bean id="config" class="com.hazelcast.config.Config">
+ <constructor-arg type="java.lang.String" value="HZ.INSTANCE" />
+</bean>
+
+<bean id="hazelcastInstance" class="com.hazelcast.core.Hazelcast" factory-method="newHazelcastInstance">
+ <constructor-arg type="com.hazelcast.config.Config" ref="config"/>
+</bean>
+<camelContext xmlns="http://camel.apache.org/schema/spring">
+ <route id="testHazelcastInstanceBeanRefPut">
+ <from uri="direct:testHazelcastInstanceBeanRefPut"/>
+ <setHeader headerName="CamelHazelcastOperationType">
+ <constant>put</constant>
+ </setHeader>
+ <to uri="hazelcast-map:testmap?hazelcastInstanceName=HZ.INSTANCE"/>
+ </route>
+
+ <route id="testHazelcastInstanceBeanRefGet">
+ <from uri="direct:testHazelcastInstanceBeanRefGet" />
+ <setHeader headerName="CamelHazelcastOperationType">
+ <constant>get</constant>
+ </setHeader>
+ <to uri="hazelcast-map:testmap?hazelcastInstanceName=HZ.INSTANCE"/>
+ <to uri="seda:out" />
+ </route>
+</camelContext>
+--------------------------------------------------------------------------------------------------------
+
+#### By instance
+
+[source,xml]
+------------------------------------------------------------------------------
+<bean id="hazelcastInstance" class="com.hazelcast.core.Hazelcast"
+ factory-method="newHazelcastInstance" />
+<bean id="hazelcastLifecycle" class="com.hazelcast.core.LifecycleService"
+ factory-bean="hazelcastInstance" factory-method="getLifecycleService"
+ destroy-method="shutdown" />
+
+<camelContext xmlns="http://camel.apache.org/schema/spring">
+ <route id="testHazelcastInstanceBeanRefPut">
+ <from uri="direct:testHazelcastInstanceBeanRefPut"/>
+ <setHeader headerName="CamelHazelcastOperationType">
+ <constant>put</constant>
+ </setHeader>
+ <to uri="hazelcast-map:testmap?hazelcastInstance=#hazelcastInstance"/>
+ </route>
+
+ <route id="testHazelcastInstanceBeanRefGet">
+ <from uri="direct:testHazelcastInstanceBeanRefGet" />
+ <setHeader headerName="CamelHazelcastOperationType">
+ <constant>get</constant>
+ </setHeader>
+ <to uri="hazelcast-map:testmap?hazelcastInstance=#hazelcastInstance"/>
+ <to uri="seda:out" />
+ </route>
+</camelContext>
+------------------------------------------------------------------------------
+
+### Publishing hazelcast instance as an OSGI service
+
+If operating in an OSGI container and you would want to use one instance
+of hazelcast across all bundles in the same container. You can publish
+the instance as an OSGI service and bundles using the cache al need is
+to reference the service in the hazelcast endpoint.
+
+#### Bundle A create an instance and publishes it as an OSGI service
+
+
+
+[source,xml]
+--------------------------------------------------------------------------------------------------------
+<bean id="config" class="com.hazelcast.config.FileSystemXmlConfig">
+ <argument type="java.lang.String" value="${hazelcast.config}"/>
+</bean>
+
+<bean id="hazelcastInstance" class="com.hazelcast.core.Hazelcast" factory-method="newHazelcastInstance">
+ <argument type="com.hazelcast.config.Config" ref="config"/>
+</bean>
+
+<!-- publishing the hazelcastInstance as a service -->
+<service ref="hazelcastInstance" interface="com.hazelcast.core.HazelcastInstance" />
+--------------------------------------------------------------------------------------------------------
+
+#### Bundle B uses the instance
+
+[source,xml]
+--------------------------------------------------------------------------------------
+<!-- referencing the hazelcastInstance as a service -->
+<reference ref="hazelcastInstance" interface="com.hazelcast.core.HazelcastInstance" />
+
+<camelContext xmlns="http://camel.apache.org/schema/blueprint">
+ <route id="testHazelcastInstanceBeanRefPut">
+ <from uri="direct:testHazelcastInstanceBeanRefPut"/>
+ <setHeader headerName="CamelHazelcastOperationType">
+ <constant>put</constant>
+ </setHeader>
+ <to uri="hazelcast-map:testmap?hazelcastInstance=#hazelcastInstance"/>
+ </route>
+
+ <route id="testHazelcastInstanceBeanRefGet">
+ <from uri="direct:testHazelcastInstanceBeanRefGet" />
+ <setHeader headerName="CamelHazelcastOperationType">
+ <constant>get</constant>
+ </setHeader>
+ <to uri="hazelcast-map:testmap?hazelcastInstance=#hazelcastInstance"/>
+ <to uri="seda:out" />
+ </route>
+</camelContext>
+--------------------------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/HazelcastComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/HazelcastComponent.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/HazelcastComponent.java
index b4b0414..55f8d0e 100644
--- a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/HazelcastComponent.java
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/HazelcastComponent.java
@@ -56,43 +56,30 @@ import static org.apache.camel.component.hazelcast.HazelcastConstants.HAZELCAST_
import static org.apache.camel.component.hazelcast.HazelcastConstants.HAZELCAST_INSTANCE_NAME_PARAM;
import static org.apache.camel.component.hazelcast.HazelcastConstants.HAZELCAST_INSTANCE_PARAM;
-public class HazelcastComponent extends DefaultComponent {
- private static final Logger LOGGER = LoggerFactory.getLogger(HazelcastComponent.class);
+/**
+ * @deprecated
+ *
+ */
+@Deprecated
+public class HazelcastComponent extends HazelcastDefaultComponent {
- private final Set<HazelcastInstance> customHazelcastInstances;
- @Metadata(label = "advanced")
- private HazelcastInstance hazelcastInstance;
- @Metadata(label = "advanced", defaultValue = "" + HazelcastConstants.HAZELCAST_NODE_MODE)
- private String hazelcastMode = HazelcastConstants.HAZELCAST_NODE_MODE;
+ private static final Logger LOG = LoggerFactory.getLogger(HazelcastComponent.class);
public HazelcastComponent() {
super();
- this.customHazelcastInstances = new LinkedHashSet<>();
}
public HazelcastComponent(final CamelContext context) {
super(context);
- this.customHazelcastInstances = new LinkedHashSet<>();
}
@Override
- protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
-
- // use the given hazelcast Instance or create one if not given
- HazelcastInstance hzInstance;
- if (ObjectHelper.equal(hazelcastMode, HazelcastConstants.HAZELCAST_NODE_MODE)) {
- hzInstance = getOrCreateHzInstance(getCamelContext(), parameters);
- } else {
- hzInstance = getOrCreateHzClientInstance(getCamelContext(), parameters);
- }
-
- String defaultOperation = getAndRemoveOrResolveReferenceParameter(parameters, HazelcastConstants.OPERATION_PARAM, String.class);
- if (defaultOperation == null) {
- defaultOperation = getAndRemoveOrResolveReferenceParameter(parameters, "defaultOperation", String.class);
- }
+ protected HazelcastDefaultEndpoint doCreateEndpoint(String uri, String remaining, Map<String, Object> parameters, HazelcastInstance hzInstance) throws Exception {
HazelcastDefaultEndpoint endpoint = null;
+ LOG.warn("The scheme syntax 'hazelcast:{}' has been deprecated. Use 'hazelcast-{}' instead.", remaining, remaining);
+
// check type of endpoint
if (remaining.startsWith(HazelcastConstants.MAP_PREFIX)) {
// remaining is the cache name
@@ -184,149 +171,7 @@ public class HazelcastComponent extends DefaultComponent {
HazelcastConstants.MAP_PREFIX, HazelcastConstants.MULTIMAP_PREFIX, HazelcastConstants.ATOMICNUMBER_PREFIX, HazelcastConstants.INSTANCE_PREFIX, HazelcastConstants.QUEUE_PREFIX,
HazelcastConstants.SEDA_PREFIX, HazelcastConstants.LIST_PREFIX, HazelcastConstants.REPLICATEDMAP_PREFIX, HazelcastConstants.SET_PREFIX, HazelcastConstants.RINGBUFFER_PREFIX, uri));
}
-
- endpoint.setDefaultOperation(defaultOperation);
-
return endpoint;
}
- @Override
- public void doStart() throws Exception {
- super.doStart();
- }
-
- @Override
- public void doStop() throws Exception {
- for (HazelcastInstance hazelcastInstance : customHazelcastInstances) {
- hazelcastInstance.getLifecycleService().shutdown();
- }
-
- customHazelcastInstances.clear();
-
- super.doStop();
- }
-
- public HazelcastInstance getHazelcastInstance() {
- return hazelcastInstance;
- }
-
- /**
- * The hazelcast instance reference which can be used for hazelcast endpoint.
- * If you don't specify the instance reference, camel use the default hazelcast instance from the camel-hazelcast instance.
- */
- public void setHazelcastInstance(HazelcastInstance hazelcastInstance) {
- this.hazelcastInstance = hazelcastInstance;
- }
-
- public String getHazelcastMode() {
- return hazelcastMode;
- }
-
- /**
- * The hazelcast mode reference which kind of instance should be used.
- * If you don't specify the mode, then the node mode will be the default.
- */
- public void setHazelcastMode(String hazelcastMode) {
- this.hazelcastMode = hazelcastMode;
- }
-
- private HazelcastInstance getOrCreateHzInstance(CamelContext context, Map<String, Object> parameters) throws Exception {
- HazelcastInstance hzInstance = null;
- Config config = null;
-
- // Query param named 'hazelcastInstance' (if exists) overrides the instance that was set
- hzInstance = resolveAndRemoveReferenceParameter(parameters, HAZELCAST_INSTANCE_PARAM, HazelcastInstance.class);
-
- // Check if an already created instance is given then just get instance by its name.
- if (hzInstance == null && parameters.get(HAZELCAST_INSTANCE_NAME_PARAM) != null) {
- hzInstance = Hazelcast.getHazelcastInstanceByName((String) parameters.get(HAZELCAST_INSTANCE_NAME_PARAM));
- }
-
- // If instance neither supplied nor found by name, try to lookup its config
- // as reference or as xml configuration file.
- if (hzInstance == null) {
- config = resolveAndRemoveReferenceParameter(parameters, HAZELCAST_CONFIGU_PARAM, Config.class);
- if (config == null) {
- String configUri = getAndRemoveParameter(parameters, HAZELCAST_CONFIGU_URI_PARAM, String.class);
- if (configUri != null) {
- configUri = getCamelContext().resolvePropertyPlaceholders(configUri);
- }
- if (configUri != null) {
- InputStream is = ResourceHelper.resolveMandatoryResourceAsInputStream(context, configUri);
- config = new XmlConfigBuilder(is).build();
- }
- }
-
- if (hazelcastInstance == null && config == null) {
- config = new XmlConfigBuilder().build();
- // Disable the version check
- config.getProperties().setProperty("hazelcast.version.check.enabled", "false");
- config.getProperties().setProperty("hazelcast.phone.home.enabled", "false");
-
- hzInstance = Hazelcast.newHazelcastInstance(config);
- } else if (config != null) {
- if (ObjectHelper.isNotEmpty(config.getInstanceName())) {
- hzInstance = Hazelcast.getOrCreateHazelcastInstance(config);
- } else {
- hzInstance = Hazelcast.newHazelcastInstance(config);
- }
- }
-
- if (hzInstance != null) {
- if (this.customHazelcastInstances.add(hzInstance)) {
- LOGGER.debug("Add managed HZ instance {}", hzInstance.getName());
- }
- }
- }
-
- return hzInstance == null ? hazelcastInstance : hzInstance;
- }
-
- private HazelcastInstance getOrCreateHzClientInstance(CamelContext context, Map<String, Object> parameters) throws Exception {
- HazelcastInstance hzInstance = null;
- ClientConfig config = null;
-
- // Query param named 'hazelcastInstance' (if exists) overrides the instance that was set
- hzInstance = resolveAndRemoveReferenceParameter(parameters, HAZELCAST_INSTANCE_PARAM, HazelcastInstance.class);
-
- // Check if an already created instance is given then just get instance by its name.
- if (hzInstance == null && parameters.get(HAZELCAST_INSTANCE_NAME_PARAM) != null) {
- hzInstance = Hazelcast.getHazelcastInstanceByName((String) parameters.get(HAZELCAST_INSTANCE_NAME_PARAM));
- }
-
- // If instance neither supplied nor found by name, try to lookup its config
- // as reference or as xml configuration file.
- if (hzInstance == null) {
- config = resolveAndRemoveReferenceParameter(parameters, HAZELCAST_CONFIGU_PARAM, ClientConfig.class);
- if (config == null) {
- String configUri = getAndRemoveParameter(parameters, HAZELCAST_CONFIGU_URI_PARAM, String.class);
- if (configUri != null) {
- configUri = getCamelContext().resolvePropertyPlaceholders(configUri);
- }
- if (configUri != null) {
- InputStream is = ResourceHelper.resolveMandatoryResourceAsInputStream(context, configUri);
- config = new XmlClientConfigBuilder(is).build();
- }
- }
-
- if (hazelcastInstance == null && config == null) {
- config = new XmlClientConfigBuilder().build();
- // Disable the version check
- config.getProperties().setProperty("hazelcast.version.check.enabled", "false");
- config.getProperties().setProperty("hazelcast.phone.home.enabled", "false");
-
- hzInstance = HazelcastClient.newHazelcastClient(config);
- } else if (config != null) {
- hzInstance = HazelcastClient.newHazelcastClient(config);
- }
-
- if (hzInstance != null) {
- if (this.customHazelcastInstances.add(hzInstance)) {
- LOGGER.debug("Add managed HZ instance {}", hzInstance.getName());
- }
- }
- }
-
- return hzInstance == null ? hazelcastInstance : hzInstance;
- }
}
[07/10] camel git commit: CAMEL-10798 Splitted hazelcast component
into 11 which correspond to each of endpoints
Posted by ac...@apache.org.
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastCamelTestSupport.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastCamelTestSupport.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastCamelTestSupport.java
index fa56f5d..3b36b42 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastCamelTestSupport.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastCamelTestSupport.java
@@ -16,6 +16,8 @@
*/
package org.apache.camel.component.hazelcast;
+import java.util.ArrayList;
+import java.util.List;
import com.hazelcast.core.HazelcastInstance;
import org.apache.camel.CamelContext;
import org.apache.camel.test.junit4.CamelTestSupport;
@@ -23,6 +25,7 @@ import org.junit.After;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import static org.mockito.Mockito.*;
+
public class HazelcastCamelTestSupport extends CamelTestSupport {
@Mock
@@ -32,9 +35,7 @@ public class HazelcastCamelTestSupport extends CamelTestSupport {
protected CamelContext createCamelContext() throws Exception {
MockitoAnnotations.initMocks(this);
CamelContext context = super.createCamelContext();
- HazelcastComponent hazelcastComponent = new HazelcastComponent(context);
- hazelcastComponent.setHazelcastInstance(hazelcastInstance);
- context.addComponent("hazelcast", hazelcastComponent);
+ HazelcastCamelTestHelper.registerHazelcastComponents(context, hazelcastInstance);
trainHazelcastInstance(hazelcastInstance);
return context;
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastConfigurationTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastConfigurationTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastConfigurationTest.java
index 181b670..17df4b7 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastConfigurationTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastConfigurationTest.java
@@ -24,6 +24,7 @@ import com.hazelcast.config.Config;
import com.hazelcast.core.Hazelcast;
import com.hazelcast.core.HazelcastInstance;
import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.map.HazelcastMapComponent;
import org.apache.camel.impl.DefaultCamelContext;
import org.apache.camel.impl.SimpleRegistry;
import org.junit.After;
@@ -54,14 +55,14 @@ public class HazelcastConfigurationTest {
context = new DefaultCamelContext();
context.start();
- HazelcastDefaultEndpoint endpoint1 = getHzEndpoint(context, "hazelcast:map:my-cache-1?hazelcastInstanceName=" + instanceName);
- HazelcastDefaultEndpoint endpoint2 = getHzEndpoint(context, "hazelcast:map:my-cache-2?hazelcastInstanceName=" + instanceName);
+ HazelcastDefaultEndpoint endpoint1 = getHzEndpoint(context, "hazelcast-map:my-cache-1?hazelcastInstanceName=" + instanceName);
+ HazelcastDefaultEndpoint endpoint2 = getHzEndpoint(context, "hazelcast-map:my-cache-2?hazelcastInstanceName=" + instanceName);
Assert.assertNotNull(endpoint1.getHazelcastInstance());
Assert.assertNotNull(endpoint2.getHazelcastInstance());
Assert.assertTrue(endpoint1.getHazelcastInstance() == endpoint2.getHazelcastInstance());
- HazelcastComponent component = context.getComponent("hazelcast", HazelcastComponent.class);
+ HazelcastMapComponent component = context.getComponent("hazelcast-map", HazelcastMapComponent.class);
Assert.assertNull(component.getHazelcastInstance());
for (HazelcastDefaultEndpoint endpoint : Arrays.asList(endpoint1, endpoint2)) {
@@ -87,14 +88,14 @@ public class HazelcastConfigurationTest {
context = new DefaultCamelContext();
context.start();
- HazelcastDefaultEndpoint endpoint1 = getHzEndpoint(context, "hazelcast:map:my-cache-1");
- HazelcastDefaultEndpoint endpoint2 = getHzEndpoint(context, "hazelcast:map:my-cache-2");
+ HazelcastDefaultEndpoint endpoint1 = getHzEndpoint(context, "hazelcast-map:my-cache-1");
+ HazelcastDefaultEndpoint endpoint2 = getHzEndpoint(context, "hazelcast-map:my-cache-2");
Assert.assertNotNull(endpoint1.getHazelcastInstance());
Assert.assertNotNull(endpoint2.getHazelcastInstance());
Assert.assertTrue(endpoint1.getHazelcastInstance() != endpoint2.getHazelcastInstance());
- HazelcastComponent component = context.getComponent("hazelcast", HazelcastComponent.class);
+ HazelcastMapComponent component = context.getComponent("hazelcast-map", HazelcastMapComponent.class);
Assert.assertNull(component.getHazelcastInstance());
for (HazelcastDefaultEndpoint endpoint : Arrays.asList(endpoint1, endpoint2)) {
@@ -119,14 +120,14 @@ public class HazelcastConfigurationTest {
context = new DefaultCamelContext();
context.start();
- HazelcastDefaultEndpoint endpoint1 = getHzEndpoint(context, "hazelcast:map:my-cache-1?hazelcastConfigUri=classpath:hazelcast-named.xml");
- HazelcastDefaultEndpoint endpoint2 = getHzEndpoint(context, "hazelcast:map:my-cache-2?hazelcastConfigUri=classpath:hazelcast-named.xml");
+ HazelcastDefaultEndpoint endpoint1 = getHzEndpoint(context, "hazelcast-map:my-cache-1?hazelcastConfigUri=classpath:hazelcast-named.xml");
+ HazelcastDefaultEndpoint endpoint2 = getHzEndpoint(context, "hazelcast-map:my-cache-2?hazelcastConfigUri=classpath:hazelcast-named.xml");
Assert.assertNotNull(endpoint1.getHazelcastInstance());
Assert.assertNotNull(endpoint2.getHazelcastInstance());
Assert.assertTrue(endpoint1.getHazelcastInstance() == endpoint2.getHazelcastInstance());
- HazelcastComponent component = context.getComponent("hazelcast", HazelcastComponent.class);
+ HazelcastMapComponent component = context.getComponent("hazelcast-map", HazelcastMapComponent.class);
Assert.assertNull(component.getHazelcastInstance());
HazelcastInstance hz = endpoint1.getHazelcastInstance();
@@ -150,14 +151,14 @@ public class HazelcastConfigurationTest {
context = new DefaultCamelContext();
context.start();
- HazelcastDefaultEndpoint endpoint1 = getHzEndpoint(context, "hazelcast:map:my-cache-1?hazelcastConfigUri=classpath:hazelcast-custom.xml");
- HazelcastDefaultEndpoint endpoint2 = getHzEndpoint(context, "hazelcast:map:my-cache-2?hazelcastConfigUri=classpath:hazelcast-custom.xml");
+ HazelcastDefaultEndpoint endpoint1 = getHzEndpoint(context, "hazelcast-map:my-cache-1?hazelcastConfigUri=classpath:hazelcast-custom.xml");
+ HazelcastDefaultEndpoint endpoint2 = getHzEndpoint(context, "hazelcast-map:my-cache-2?hazelcastConfigUri=classpath:hazelcast-custom.xml");
Assert.assertNotNull(endpoint1.getHazelcastInstance());
Assert.assertNotNull(endpoint2.getHazelcastInstance());
Assert.assertTrue(endpoint1.getHazelcastInstance() != endpoint2.getHazelcastInstance());
- HazelcastComponent component = context.getComponent("hazelcast", HazelcastComponent.class);
+ HazelcastMapComponent component = context.getComponent("hazelcast-map", HazelcastMapComponent.class);
Assert.assertNull(component.getHazelcastInstance());
for (HazelcastDefaultEndpoint endpoint : Arrays.asList(endpoint1, endpoint2)) {
@@ -191,12 +192,12 @@ public class HazelcastConfigurationTest {
context = new DefaultCamelContext(reg);
context.start();
- context.getEndpoint("hazelcast:map:my-cache?hazelcastConfig=#my-config");
+ context.getEndpoint("hazelcast-map:my-cache?hazelcastConfig=#my-config");
- HazelcastDefaultEndpoint endpoint = getHzEndpoint(context, "hazelcast:map:my-cache?hazelcastConfig=#my-config");
+ HazelcastDefaultEndpoint endpoint = getHzEndpoint(context, "hazelcast-map:my-cache?hazelcastConfig=#my-config");
Assert.assertNotNull(endpoint.getHazelcastInstance());
- HazelcastComponent component = context.getComponent("hazelcast", HazelcastComponent.class);
+ HazelcastMapComponent component = context.getComponent("hazelcast-map", HazelcastMapComponent.class);
Assert.assertNull(component.getHazelcastInstance());
HazelcastInstance hz = endpoint.getHazelcastInstance();
@@ -255,17 +256,17 @@ public class HazelcastConfigurationTest {
reg.put(customConfig.getInstanceName(), customConfig);
reg.put(sharedConfig.getInstanceName(), hzShared);
- HazelcastComponent component = new HazelcastComponent();
+ HazelcastMapComponent component = new HazelcastMapComponent();
component.setHazelcastInstance(hzComponent);
context = new DefaultCamelContext(reg);
- context.addComponent("hazelcast", component);
+ context.addComponent("hazelcast-map", component);
context.start();
- HazelcastDefaultEndpoint endpoint1 = getHzEndpoint(context, "hazelcast:map:my-cache-1?hazelcastInstanceName=" + namedConfig.getInstanceName());
- HazelcastDefaultEndpoint endpoint2 = getHzEndpoint(context, "hazelcast:map:my-cache-2?hazelcastConfig=#" + customConfig.getInstanceName());
- HazelcastDefaultEndpoint endpoint3 = getHzEndpoint(context, "hazelcast:map:my-cache-2?hazelcastInstance=#" + sharedConfig.getInstanceName());
- HazelcastDefaultEndpoint endpoint4 = getHzEndpoint(context, "hazelcast:map:my-cache-4");
+ HazelcastDefaultEndpoint endpoint1 = getHzEndpoint(context, "hazelcast-map:my-cache-1?hazelcastInstanceName=" + namedConfig.getInstanceName());
+ HazelcastDefaultEndpoint endpoint2 = getHzEndpoint(context, "hazelcast-map:my-cache-2?hazelcastConfig=#" + customConfig.getInstanceName());
+ HazelcastDefaultEndpoint endpoint3 = getHzEndpoint(context, "hazelcast-map:my-cache-2?hazelcastInstance=#" + sharedConfig.getInstanceName());
+ HazelcastDefaultEndpoint endpoint4 = getHzEndpoint(context, "hazelcast-map:my-cache-4");
Assert.assertNotNull(endpoint1.getHazelcastInstance());
Assert.assertNotNull(endpoint2.getHazelcastInstance());
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastErrorMessagesTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastErrorMessagesTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastErrorMessagesTest.java
index ec365e6..fe5ad87 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastErrorMessagesTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastErrorMessagesTest.java
@@ -44,7 +44,7 @@ public class HazelcastErrorMessagesTest extends HazelcastCamelTestSupport {
public void testAtomicNumberConsumer() {
RouteBuilder builder = new RouteBuilder() {
public void configure() throws Exception {
- from("hazelcast:atomicvalue:foo").to("seda:out");
+ from("hazelcast-atomicvalue:foo").to("seda:out");
}
};
try {
@@ -52,7 +52,7 @@ public class HazelcastErrorMessagesTest extends HazelcastCamelTestSupport {
context.start();
fail("Should have thrown exception");
} catch (Exception e) {
- assertTrue(e.getMessage().contains("You cannot send messages to this endpoint: hazelcast://atomicvalue:foo"));
+ assertTrue(e.getMessage().contains("You cannot send messages to this endpoint: hazelcast-atomicvalue://foo"));
}
}
@@ -60,7 +60,7 @@ public class HazelcastErrorMessagesTest extends HazelcastCamelTestSupport {
public void testInstanceProducer() {
RouteBuilder builder = new RouteBuilder() {
public void configure() throws Exception {
- from("direct:foo").to("hazelcast:instance:foo");
+ from("direct:foo").to("hazelcast-instance:foo");
}
};
@@ -69,7 +69,7 @@ public class HazelcastErrorMessagesTest extends HazelcastCamelTestSupport {
context.start();
fail("Should have thrown exception");
} catch (Exception e) {
- assertTrue(e.getMessage().contains("You cannot send messages to this endpoint: hazelcast://instance:foo"));
+ assertTrue(e.getMessage().contains("You cannot send messages to this endpoint: hazelcast-instance://foo"));
}
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastInstanceConsumerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastInstanceConsumerTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastInstanceConsumerTest.java
index 49687d5..df37300 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastInstanceConsumerTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastInstanceConsumerTest.java
@@ -108,7 +108,7 @@ public class HazelcastInstanceConsumerTest extends HazelcastCamelTestSupport {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
- from(String.format("hazelcast:%sfoo", HazelcastConstants.INSTANCE_PREFIX)).log("instance...").choice()
+ from(String.format("hazelcast-%sfoo", HazelcastConstants.INSTANCE_PREFIX)).log("instance...").choice()
.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED)).log("...added").to("mock:added").otherwise().log("...removed").to("mock:removed");
}
};
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastListConsumerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastListConsumerTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastListConsumerTest.java
index d4d52df..71c56a0 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastListConsumerTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastListConsumerTest.java
@@ -86,7 +86,7 @@ public class HazelcastListConsumerTest extends HazelcastCamelTestSupport {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
- from(String.format("hazelcast:%sfoo", HazelcastConstants.LIST_PREFIX)).log("object...").choice().when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
+ from(String.format("hazelcast-%sfoo", HazelcastConstants.LIST_PREFIX)).log("object...").choice().when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
.log("...added").to("mock:added").when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED)).log("...removed").to("mock:removed").otherwise()
.log("fail!");
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastListProducerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastListProducerTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastListProducerTest.java
index 616cd19..f5092c7 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastListProducerTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastListProducerTest.java
@@ -144,31 +144,31 @@ public class HazelcastListProducerTest extends HazelcastCamelTestSupport {
@Override
public void configure() throws Exception {
- from("direct:addInvalid").setHeader(HazelcastConstants.OPERATION, constant("bogus")).toF("hazelcast:%sbar", HazelcastConstants.LIST_PREFIX);
+ from("direct:addInvalid").setHeader(HazelcastConstants.OPERATION, constant("bogus")).toF("hazelcast-%sbar", HazelcastConstants.LIST_PREFIX);
- from("direct:add").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.ADD_OPERATION)).toF("hazelcast:%sbar", HazelcastConstants.LIST_PREFIX);
+ from("direct:add").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.ADD_OPERATION)).toF("hazelcast-%sbar", HazelcastConstants.LIST_PREFIX);
- from("direct:set").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.SETVALUE_OPERATION)).toF("hazelcast:%sbar", HazelcastConstants.LIST_PREFIX);
+ from("direct:set").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.SETVALUE_OPERATION)).toF("hazelcast-%sbar", HazelcastConstants.LIST_PREFIX);
- from("direct:get").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION)).toF("hazelcast:%sbar", HazelcastConstants.LIST_PREFIX)
+ from("direct:get").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION)).toF("hazelcast-%sbar", HazelcastConstants.LIST_PREFIX)
.to("seda:out");
from("direct:removevalue").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.REMOVEVALUE_OPERATION)).to(
- String.format("hazelcast:%sbar", HazelcastConstants.LIST_PREFIX));
+ String.format("hazelcast-%sbar", HazelcastConstants.LIST_PREFIX));
- from("direct:clear").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.CLEAR_OPERATION)).toF("hazelcast:%sbar", HazelcastConstants.LIST_PREFIX);
+ from("direct:clear").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.CLEAR_OPERATION)).toF("hazelcast-%sbar", HazelcastConstants.LIST_PREFIX);
from("direct:addAll").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.ADD_ALL_OPERATION)).to(
- String.format("hazelcast:%sbar", HazelcastConstants.LIST_PREFIX));
+ String.format("hazelcast-%sbar", HazelcastConstants.LIST_PREFIX));
from("direct:removeAll").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.REMOVE_ALL_OPERATION)).to(
- String.format("hazelcast:%sbar", HazelcastConstants.LIST_PREFIX));
+ String.format("hazelcast-%sbar", HazelcastConstants.LIST_PREFIX));
from("direct:retainAll").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.RETAIN_ALL_OPERATION)).to(
- String.format("hazelcast:%sbar", HazelcastConstants.LIST_PREFIX));
+ String.format("hazelcast-%sbar", HazelcastConstants.LIST_PREFIX));
- from("direct:addWithOperationNumber").toF("hazelcast:%sbar?operation=%s", HazelcastConstants.LIST_PREFIX, HazelcastConstants.ADD_OPERATION);
- from("direct:addWithOperationName").toF("hazelcast:%sbar?operation=add", HazelcastConstants.LIST_PREFIX);
+ from("direct:addWithOperationNumber").toF("hazelcast-%sbar?operation=%s", HazelcastConstants.LIST_PREFIX, HazelcastConstants.ADD_OPERATION);
+ from("direct:addWithOperationName").toF("hazelcast-%sbar?operation=add", HazelcastConstants.LIST_PREFIX);
}
};
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastMapConsumerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastMapConsumerTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastMapConsumerTest.java
index ca8ab32..fa65710 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastMapConsumerTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastMapConsumerTest.java
@@ -126,7 +126,7 @@ public class HazelcastMapConsumerTest extends HazelcastCamelTestSupport {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
- from(String.format("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX)).log("object...").choice().when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
+ from(String.format("hazelcast-%sfoo", HazelcastConstants.MAP_PREFIX)).log("object...").choice().when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
.log("...added").to("mock:added").when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.EVICTED)).log("...evicted").to("mock:evicted")
.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.UPDATED)).log("...updated").to("mock:updated")
.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED)).log("...removed").to("mock:removed").otherwise().log("fail!");
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastMapProducerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastMapProducerTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastMapProducerTest.java
index f8d3e02..91600c8 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastMapProducerTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastMapProducerTest.java
@@ -254,44 +254,44 @@ public class HazelcastMapProducerTest extends HazelcastCamelTestSupport implemen
@Override
public void configure() throws Exception {
- from("direct:putInvalid").setHeader(HazelcastConstants.OPERATION, constant("bogus")).to(String.format("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX));
+ from("direct:putInvalid").setHeader(HazelcastConstants.OPERATION, constant("bogus")).to(String.format("hazelcast-%sfoo", HazelcastConstants.MAP_PREFIX));
- from("direct:put").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION)).to(String.format("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX));
+ from("direct:put").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION)).to(String.format("hazelcast-%sfoo", HazelcastConstants.MAP_PREFIX));
from("direct:putIfAbsent").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_IF_ABSENT_OPERATION))
- .to(String.format("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX));
+ .to(String.format("hazelcast-%sfoo", HazelcastConstants.MAP_PREFIX));
- from("direct:update").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.UPDATE_OPERATION)).to(String.format("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX));
+ from("direct:update").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.UPDATE_OPERATION)).to(String.format("hazelcast-%sfoo", HazelcastConstants.MAP_PREFIX));
- from("direct:get").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION)).to(String.format("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX))
+ from("direct:get").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION)).to(String.format("hazelcast-%sfoo", HazelcastConstants.MAP_PREFIX))
.to("seda:out");
- from("direct:getAll").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_ALL_OPERATION)).to(String.format("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX))
+ from("direct:getAll").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_ALL_OPERATION)).to(String.format("hazelcast-%sfoo", HazelcastConstants.MAP_PREFIX))
.to("seda:out");
- from("direct:delete").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DELETE_OPERATION)).to(String.format("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX));
+ from("direct:delete").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DELETE_OPERATION)).to(String.format("hazelcast-%sfoo", HazelcastConstants.MAP_PREFIX));
- from("direct:query").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.QUERY_OPERATION)).to(String.format("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX))
+ from("direct:query").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.QUERY_OPERATION)).to(String.format("hazelcast-%sfoo", HazelcastConstants.MAP_PREFIX))
.to("seda:out");
- from("direct:clear").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.CLEAR_OPERATION)).to(String.format("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX));
+ from("direct:clear").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.CLEAR_OPERATION)).to(String.format("hazelcast-%sfoo", HazelcastConstants.MAP_PREFIX));
- from("direct:evict").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.EVICT_OPERATION)).to(String.format("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX))
+ from("direct:evict").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.EVICT_OPERATION)).to(String.format("hazelcast-%sfoo", HazelcastConstants.MAP_PREFIX))
.to("seda:out");
- from("direct:evictAll").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.EVICT_ALL_OPERATION)).to(String.format("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX))
+ from("direct:evictAll").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.EVICT_ALL_OPERATION)).to(String.format("hazelcast-%sfoo", HazelcastConstants.MAP_PREFIX))
.to("seda:out");
from("direct:containsKey").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.CONTAINS_KEY_OPERATION))
- .to(String.format("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX))
+ .to(String.format("hazelcast-%sfoo", HazelcastConstants.MAP_PREFIX))
.to("seda:out");
from("direct:containsValue").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.CONTAINS_VALUE_OPERATION))
- .to(String.format("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX))
+ .to(String.format("hazelcast-%sfoo", HazelcastConstants.MAP_PREFIX))
.to("seda:out");
- from("direct:putWithOperationNumber").toF("hazelcast:%sfoo?operation=%s", HazelcastConstants.MAP_PREFIX, HazelcastConstants.PUT_OPERATION);
- from("direct:putWithOperationName").toF("hazelcast:%sfoo?operation=put", HazelcastConstants.MAP_PREFIX);
+ from("direct:putWithOperationNumber").toF("hazelcast-%sfoo?operation=%s", HazelcastConstants.MAP_PREFIX, HazelcastConstants.PUT_OPERATION);
+ from("direct:putWithOperationName").toF("hazelcast-%sfoo?operation=put", HazelcastConstants.MAP_PREFIX);
}
};
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastMultimapConsumerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastMultimapConsumerTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastMultimapConsumerTest.java
index f99c3dd..a4bbbad 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastMultimapConsumerTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastMultimapConsumerTest.java
@@ -105,7 +105,7 @@ public class HazelcastMultimapConsumerTest extends HazelcastCamelTestSupport {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
- from(String.format("hazelcast:%smm", HazelcastConstants.MULTIMAP_PREFIX)).log("object...").choice()
+ from(String.format("hazelcast-%smm", HazelcastConstants.MULTIMAP_PREFIX)).log("object...").choice()
.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED)).log("...added").to("mock:added")
.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.EVICTED)).log("...evicted").to("mock:evicted")
.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED)).log("...removed").to("mock:removed").otherwise().log("fail!");
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastMultimapProducerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastMultimapProducerTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastMultimapProducerTest.java
index 5d44c80..151980d 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastMultimapProducerTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastMultimapProducerTest.java
@@ -140,33 +140,33 @@ public class HazelcastMultimapProducerTest extends HazelcastCamelTestSupport {
@Override
public void configure() throws Exception {
- from("direct:putInvalid").setHeader(HazelcastConstants.OPERATION, constant("bogus")).to(String.format("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX));
+ from("direct:putInvalid").setHeader(HazelcastConstants.OPERATION, constant("bogus")).to(String.format("hazelcast-%sbar", HazelcastConstants.MULTIMAP_PREFIX));
- from("direct:put").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION)).to(String.format("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX));
+ from("direct:put").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION)).to(String.format("hazelcast-%sbar", HazelcastConstants.MULTIMAP_PREFIX));
from("direct:removevalue").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.REMOVEVALUE_OPERATION)).to(
- String.format("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX));
+ String.format("hazelcast-%sbar", HazelcastConstants.MULTIMAP_PREFIX));
- from("direct:get").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION)).to(String.format("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX))
+ from("direct:get").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION)).to(String.format("hazelcast-%sbar", HazelcastConstants.MULTIMAP_PREFIX))
.to("seda:out");
- from("direct:delete").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DELETE_OPERATION)).to(String.format("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX));
+ from("direct:delete").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DELETE_OPERATION)).to(String.format("hazelcast-%sbar", HazelcastConstants.MULTIMAP_PREFIX));
- from("direct:clear").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.CLEAR_OPERATION)).to(String.format("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX));
+ from("direct:clear").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.CLEAR_OPERATION)).to(String.format("hazelcast-%sbar", HazelcastConstants.MULTIMAP_PREFIX));
from("direct:valueCount").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.VALUE_COUNT_OPERATION))
- .to(String.format("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX));
+ .to(String.format("hazelcast-%sbar", HazelcastConstants.MULTIMAP_PREFIX));
from("direct:containsKey").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.CONTAINS_KEY_OPERATION))
- .to(String.format("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX))
+ .to(String.format("hazelcast-%sbar", HazelcastConstants.MULTIMAP_PREFIX))
.to("seda:out");
from("direct:containsValue").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.CONTAINS_VALUE_OPERATION))
- .to(String.format("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX))
+ .to(String.format("hazelcast-%sbar", HazelcastConstants.MULTIMAP_PREFIX))
.to("seda:out");
- from("direct:putWithOperationNumber").toF("hazelcast:%sbar?operation=%s", HazelcastConstants.MULTIMAP_PREFIX, HazelcastConstants.PUT_OPERATION);
- from("direct:putWithOperationName").toF("hazelcast:%sbar?operation=put", HazelcastConstants.MULTIMAP_PREFIX);
+ from("direct:putWithOperationNumber").toF("hazelcast-%sbar?operation=%s", HazelcastConstants.MULTIMAP_PREFIX, HazelcastConstants.PUT_OPERATION);
+ from("direct:putWithOperationName").toF("hazelcast-%sbar?operation=put", HazelcastConstants.MULTIMAP_PREFIX);
}
};
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastQueueConsumerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastQueueConsumerTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastQueueConsumerTest.java
index 762450a..65309d6 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastQueueConsumerTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastQueueConsumerTest.java
@@ -90,7 +90,7 @@ public class HazelcastQueueConsumerTest extends HazelcastCamelTestSupport {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
- from(String.format("hazelcast:%sfoo", HazelcastConstants.QUEUE_PREFIX)).log("object...").choice().when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
+ from(String.format("hazelcast-%sfoo", HazelcastConstants.QUEUE_PREFIX)).log("object...").choice().when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
.log("...added").to("mock:added").when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED)).log("...removed").to("mock:removed").otherwise()
.log("fail!");
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastQueueProducerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastQueueProducerTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastQueueProducerTest.java
index 24a4a78..4e0504f 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastQueueProducerTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastQueueProducerTest.java
@@ -145,32 +145,32 @@ public class HazelcastQueueProducerTest extends HazelcastCamelTestSupport {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
- from("direct:no-operation").to(String.format("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX));
+ from("direct:no-operation").to(String.format("hazelcast-%sbar", HazelcastConstants.QUEUE_PREFIX));
- from("direct:putInvalid").setHeader(HazelcastConstants.OPERATION, constant("bogus")).to(String.format("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX));
+ from("direct:putInvalid").setHeader(HazelcastConstants.OPERATION, constant("bogus")).to(String.format("hazelcast-%sbar", HazelcastConstants.QUEUE_PREFIX));
- from("direct:put").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION)).to(String.format("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX));
+ from("direct:put").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION)).to(String.format("hazelcast-%sbar", HazelcastConstants.QUEUE_PREFIX));
- from("direct:add").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.ADD_OPERATION)).to(String.format("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX));
+ from("direct:add").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.ADD_OPERATION)).to(String.format("hazelcast-%sbar", HazelcastConstants.QUEUE_PREFIX));
- from("direct:offer").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.OFFER_OPERATION)).to(String.format("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX));
+ from("direct:offer").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.OFFER_OPERATION)).to(String.format("hazelcast-%sbar", HazelcastConstants.QUEUE_PREFIX));
- from("direct:poll").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.POLL_OPERATION)).to(String.format("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX));
+ from("direct:poll").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.POLL_OPERATION)).to(String.format("hazelcast-%sbar", HazelcastConstants.QUEUE_PREFIX));
- from("direct:peek").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PEEK_OPERATION)).to(String.format("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX));
+ from("direct:peek").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PEEK_OPERATION)).to(String.format("hazelcast-%sbar", HazelcastConstants.QUEUE_PREFIX));
from("direct:removevalue").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.REMOVEVALUE_OPERATION)).to(
- String.format("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX));
+ String.format("hazelcast-%sbar", HazelcastConstants.QUEUE_PREFIX));
from("direct:remainingCapacity").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.REMAINING_CAPACITY_OPERATION)).to(
- String.format("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX));
+ String.format("hazelcast-%sbar", HazelcastConstants.QUEUE_PREFIX));
from("direct:drainTo").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DRAIN_TO_OPERATION)).to(
- String.format("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX));
+ String.format("hazelcast-%sbar", HazelcastConstants.QUEUE_PREFIX));
- from("direct:putWithOperationNumber").toF(String.format("hazelcast:%sbar?operation=%s", HazelcastConstants.QUEUE_PREFIX, HazelcastConstants.PUT_OPERATION));
+ from("direct:putWithOperationNumber").toF(String.format("hazelcast-%sbar?operation=%s", HazelcastConstants.QUEUE_PREFIX, HazelcastConstants.PUT_OPERATION));
- from("direct:putWithOperationName").toF(String.format("hazelcast:%sbar?operation=put", HazelcastConstants.QUEUE_PREFIX));
+ from("direct:putWithOperationName").toF(String.format("hazelcast-%sbar?operation=put", HazelcastConstants.QUEUE_PREFIX));
}
};
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastReliableTopicConsumerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastReliableTopicConsumerTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastReliableTopicConsumerTest.java
index d6b0ecc..0d3af1a 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastReliableTopicConsumerTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastReliableTopicConsumerTest.java
@@ -74,7 +74,7 @@ public class HazelcastReliableTopicConsumerTest extends HazelcastCamelTestSuppor
return new RouteBuilder() {
@Override
public void configure() throws Exception {
- from(String.format("hazelcast:%sfoo?reliable=true", HazelcastConstants.TOPIC_PREFIX)).log("object...")
+ from(String.format("hazelcast-%sfoo?reliable=true", HazelcastConstants.TOPIC_PREFIX)).log("object...")
.choice()
.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.RECEIVED))
.log("...received").to("mock:received")
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastReliableTopicProducerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastReliableTopicProducerTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastReliableTopicProducerTest.java
index 196c6f6..88ee672 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastReliableTopicProducerTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastReliableTopicProducerTest.java
@@ -68,11 +68,11 @@ public class HazelcastReliableTopicProducerTest extends HazelcastCamelTestSuppor
return new RouteBuilder() {
@Override
public void configure() throws Exception {
- from("direct:no-operation").to(String.format("hazelcast:%sbar?reliable=true", HazelcastConstants.TOPIC_PREFIX));
+ from("direct:no-operation").to(String.format("hazelcast-%sbar?reliable=true", HazelcastConstants.TOPIC_PREFIX));
- from("direct:publishInvalid").setHeader(HazelcastConstants.OPERATION, constant("bogus")).to(String.format("hazelcast:%sbar?reliable=true", HazelcastConstants.TOPIC_PREFIX));
+ from("direct:publishInvalid").setHeader(HazelcastConstants.OPERATION, constant("bogus")).to(String.format("hazelcast-%sbar?reliable=true", HazelcastConstants.TOPIC_PREFIX));
- from("direct:publish").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUBLISH_OPERATION)).to(String.format("hazelcast:%sbar?reliable=true",
+ from("direct:publish").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUBLISH_OPERATION)).to(String.format("hazelcast-%sbar?reliable=true",
HazelcastConstants.TOPIC_PREFIX));
}
};
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastReplicatedmapConsumerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastReplicatedmapConsumerTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastReplicatedmapConsumerTest.java
index c4a4140..c7ef1cc 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastReplicatedmapConsumerTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastReplicatedmapConsumerTest.java
@@ -105,7 +105,7 @@ public class HazelcastReplicatedmapConsumerTest extends HazelcastCamelTestSuppor
return new RouteBuilder() {
@Override
public void configure() throws Exception {
- from(String.format("hazelcast:%srm", HazelcastConstants.REPLICATEDMAP_PREFIX)).log("object...").choice()
+ from(String.format("hazelcast-%srm", HazelcastConstants.REPLICATEDMAP_PREFIX)).log("object...").choice()
.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED)).log("...added").to("mock:added")
.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.EVICTED)).log("...evicted").to("mock:evicted")
.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED)).log("...removed").to("mock:removed").otherwise().log("fail!");
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastReplicatedmapProducerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastReplicatedmapProducerTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastReplicatedmapProducerTest.java
index 3addc29..5484643 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastReplicatedmapProducerTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastReplicatedmapProducerTest.java
@@ -128,29 +128,29 @@ public class HazelcastReplicatedmapProducerTest extends HazelcastCamelTestSuppor
@Override
public void configure() throws Exception {
- from("direct:putInvalid").setHeader(HazelcastConstants.OPERATION, constant("bogus")).to(String.format("hazelcast:%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX));
+ from("direct:putInvalid").setHeader(HazelcastConstants.OPERATION, constant("bogus")).to(String.format("hazelcast-%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX));
- from("direct:put").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION)).to(String.format("hazelcast:%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX));
+ from("direct:put").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION)).to(String.format("hazelcast-%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX));
- from("direct:get").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION)).to(String.format("hazelcast:%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX))
+ from("direct:get").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION)).to(String.format("hazelcast-%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX))
.to("seda:out");
from("direct:delete").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DELETE_OPERATION))
- .to(String.format("hazelcast:%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX));
+ .to(String.format("hazelcast-%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX));
from("direct:clear").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.CLEAR_OPERATION))
- .to(String.format("hazelcast:%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX));
+ .to(String.format("hazelcast-%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX));
from("direct:containsKey").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.CONTAINS_KEY_OPERATION))
- .to(String.format("hazelcast:%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX))
+ .to(String.format("hazelcast-%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX))
.to("seda:out");
from("direct:containsValue").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.CONTAINS_VALUE_OPERATION))
- .to(String.format("hazelcast:%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX))
+ .to(String.format("hazelcast-%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX))
.to("seda:out");
- from("direct:putWithOperationNumber").toF("hazelcast:%sbar?operation=%s", HazelcastConstants.REPLICATEDMAP_PREFIX, HazelcastConstants.PUT_OPERATION);
- from("direct:putWithOperationName").toF("hazelcast:%sbar?operation=put", HazelcastConstants.REPLICATEDMAP_PREFIX);
+ from("direct:putWithOperationNumber").toF("hazelcast-%sbar?operation=%s", HazelcastConstants.REPLICATEDMAP_PREFIX, HazelcastConstants.PUT_OPERATION);
+ from("direct:putWithOperationName").toF("hazelcast-%sbar?operation=put", HazelcastConstants.REPLICATEDMAP_PREFIX);
}
};
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastRingbufferProducerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastRingbufferProducerTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastRingbufferProducerTest.java
index 2d5bb5f..b389175 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastRingbufferProducerTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastRingbufferProducerTest.java
@@ -85,19 +85,19 @@ public class HazelcastRingbufferProducerTest extends HazelcastCamelTestSupport {
public void configure() throws Exception {
from("direct:readonceHead").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.READ_ONCE_HEAD_OPERATION)).to(
- String.format("hazelcast:%sfoo", HazelcastConstants.RINGBUFFER_PREFIX));
+ String.format("hazelcast-%sfoo", HazelcastConstants.RINGBUFFER_PREFIX));
from("direct:readonceTail").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.READ_ONCE_TAIL_OPERATION)).to(
- String.format("hazelcast:%sfoo", HazelcastConstants.RINGBUFFER_PREFIX));
+ String.format("hazelcast-%sfoo", HazelcastConstants.RINGBUFFER_PREFIX));
from("direct:add").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.ADD_OPERATION)).to(
- String.format("hazelcast:%sfoo", HazelcastConstants.RINGBUFFER_PREFIX));
+ String.format("hazelcast-%sfoo", HazelcastConstants.RINGBUFFER_PREFIX));
from("direct:capacity").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_CAPACITY_OPERATION)).to(
- String.format("hazelcast:%sfoo", HazelcastConstants.RINGBUFFER_PREFIX));
+ String.format("hazelcast-%sfoo", HazelcastConstants.RINGBUFFER_PREFIX));
from("direct:remainingCapacity").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.REMAINING_CAPACITY_OPERATION)).to(
- String.format("hazelcast:%sfoo", HazelcastConstants.RINGBUFFER_PREFIX));
+ String.format("hazelcast-%sfoo", HazelcastConstants.RINGBUFFER_PREFIX));
}
};
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaConcurrentConsumersTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaConcurrentConsumersTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaConcurrentConsumersTest.java
index 1b12a75..51ca05a 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaConcurrentConsumersTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaConcurrentConsumersTest.java
@@ -39,7 +39,7 @@ public class HazelcastSedaConcurrentConsumersTest extends CamelTestSupport {
mock.expectedMessageCount(bodyCount);
for (int i = 0; i < bodyCount; i++) {
- template.sendBody("hazelcast:seda:foo?concurrentConsumers=4", "test");
+ template.sendBody("hazelcast-seda:foo?concurrentConsumers=4", "test");
}
assertMockEndpointsSatisfied();
@@ -51,7 +51,7 @@ public class HazelcastSedaConcurrentConsumersTest extends CamelTestSupport {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
- from("hazelcast:seda:foo?concurrentConsumers=4").threads(6).to("mock:result");
+ from("hazelcast-seda:foo?concurrentConsumers=4").threads(6).to("mock:result");
}
};
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaConfigurationTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaConfigurationTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaConfigurationTest.java
index 43eb8f9..2cf74c7 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaConfigurationTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaConfigurationTest.java
@@ -24,12 +24,12 @@ public class HazelcastSedaConfigurationTest extends CamelTestSupport {
@Test
public void createEndpointWithTransferExchange() throws Exception {
- HazelcastSedaEndpoint hzlqEndpoint = (HazelcastSedaEndpoint) context.getEndpoint("hazelcast:seda:foo?transferExchange=true");
+ HazelcastSedaEndpoint hzlqEndpoint = (HazelcastSedaEndpoint) context.getEndpoint("hazelcast-seda:foo?transferExchange=true");
assertEquals("Invalid queue name", "foo", hzlqEndpoint.getConfiguration().getQueueName());
assertTrue("Default value of concurrent consumers is invalid", hzlqEndpoint.getConfiguration().isTransferExchange());
- hzlqEndpoint = (HazelcastSedaEndpoint) context.getEndpoint("hazelcast:seda:foo?transferExchange=false");
+ hzlqEndpoint = (HazelcastSedaEndpoint) context.getEndpoint("hazelcast-seda:foo?transferExchange=false");
assertEquals("Invalid queue name", "foo", hzlqEndpoint.getConfiguration().getQueueName());
assertFalse("Default value of concurrent consumers is invalid", hzlqEndpoint.getConfiguration().isTransferExchange());
@@ -37,7 +37,7 @@ public class HazelcastSedaConfigurationTest extends CamelTestSupport {
@Test
public void createEndpointWithNoParams() throws Exception {
- HazelcastSedaEndpoint hzlqEndpoint = (HazelcastSedaEndpoint) context.getEndpoint("hazelcast:seda:foo");
+ HazelcastSedaEndpoint hzlqEndpoint = (HazelcastSedaEndpoint) context.getEndpoint("hazelcast-seda:foo");
assertEquals("Invalid queue name", "foo", hzlqEndpoint.getConfiguration().getQueueName());
assertEquals("Default value of concurrent consumers is invalid", 1, hzlqEndpoint.getConfiguration().getConcurrentConsumers());
@@ -46,7 +46,7 @@ public class HazelcastSedaConfigurationTest extends CamelTestSupport {
@Test
public void createEndpointWithConcurrentConsumersParam() throws Exception {
- HazelcastSedaEndpoint hzlqEndpoint = (HazelcastSedaEndpoint) context.getEndpoint("hazelcast:seda:foo?concurrentConsumers=4");
+ HazelcastSedaEndpoint hzlqEndpoint = (HazelcastSedaEndpoint) context.getEndpoint("hazelcast-seda:foo?concurrentConsumers=4");
assertEquals("Invalid queue name", "foo", hzlqEndpoint.getConfiguration().getQueueName());
assertEquals("Value of concurrent consumers is invalid", 4, hzlqEndpoint.getConfiguration().getConcurrentConsumers());
@@ -55,7 +55,7 @@ public class HazelcastSedaConfigurationTest extends CamelTestSupport {
@Test
public void createEndpointWithPoolIntevalParam() throws Exception {
- HazelcastSedaEndpoint hzlqEndpoint = (HazelcastSedaEndpoint) context.getEndpoint("hazelcast:seda:foo?pollTimeout=4000");
+ HazelcastSedaEndpoint hzlqEndpoint = (HazelcastSedaEndpoint) context.getEndpoint("hazelcast-seda:foo?pollTimeout=4000");
assertEquals("Invalid queue name", "foo", hzlqEndpoint.getConfiguration().getQueueName());
assertEquals("Default value of concurrent consumers is invalid", 1, hzlqEndpoint.getConfiguration().getConcurrentConsumers());
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaFIFOTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaFIFOTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaFIFOTest.java
index 27a8c99..96bdb66 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaFIFOTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaFIFOTest.java
@@ -46,7 +46,7 @@ public class HazelcastSedaFIFOTest extends CamelTestSupport {
mock.expectedMessageCount(bodyCount);
for (int i = 0; i < bodyCount; i++) {
- template.sendBody("hazelcast:seda:foo", "test" + i);
+ template.sendBody("hazelcast-seda:foo", "test" + i);
}
assertMockEndpointsSatisfied();
@@ -58,7 +58,7 @@ public class HazelcastSedaFIFOTest extends CamelTestSupport {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
- from("hazelcast:seda:foo").to("mock:result");
+ from("hazelcast-seda:foo").to("mock:result");
}
};
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaInOnlyTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaInOnlyTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaInOnlyTest.java
index 4ca3d6e..ab26ebe 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaInOnlyTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaInOnlyTest.java
@@ -50,9 +50,9 @@ public class HazelcastSedaInOnlyTest extends CamelTestSupport {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
- from("direct:foo").to("hazelcast:seda:foo");
+ from("direct:foo").to("hazelcast-seda:foo");
- from("hazelcast:seda:foo").to("mock:result");
+ from("hazelcast-seda:foo").to("mock:result");
}
};
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaInOutTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaInOutTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaInOutTest.java
index 76fa70c..3c144b8 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaInOutTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaInOutTest.java
@@ -49,9 +49,9 @@ public class HazelcastSedaInOutTest extends CamelTestSupport {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
- from("direct:foo").to("hazelcast:seda:foo");
+ from("direct:foo").to("hazelcast-seda:foo");
- from("hazelcast:seda:foo").to("mock:result");
+ from("hazelcast-seda:foo").to("mock:result");
}
};
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaInOutTransactedTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaInOutTransactedTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaInOutTransactedTest.java
index ae8daee..5bf5f77 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaInOutTransactedTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaInOutTransactedTest.java
@@ -25,9 +25,9 @@ public class HazelcastSedaInOutTransactedTest extends HazelcastSedaInOutTest {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
- from("direct:foo").to("hazelcast:seda:foo");
+ from("direct:foo").to("hazelcast-seda:foo");
- from("hazelcast:seda:foo?transacted=true").to("mock:result");
+ from("hazelcast-seda:foo?transacted=true").to("mock:result");
}
};
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaSpringSupportTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaSpringSupportTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaSpringSupportTest.java
index 9bec3d7..980b15b 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaSpringSupportTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaSpringSupportTest.java
@@ -34,7 +34,7 @@ public class HazelcastSedaSpringSupportTest extends CamelSpringTestSupport {
public void simpleSend() throws Exception {
mock.expectedMessageCount(1);
- template.sendBody("hazelcast:seda:foo", "test");
+ template.sendBody("hazelcast-seda:foo", "test");
assertMockEndpointsSatisfied();
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaTransferExchangeTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaTransferExchangeTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaTransferExchangeTest.java
index e3faaa7..e0e9474 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaTransferExchangeTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaTransferExchangeTest.java
@@ -65,11 +65,11 @@ public class HazelcastSedaTransferExchangeTest extends CamelTestSupport {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
- from("direct:foo").to("hazelcast:seda:foo");
+ from("direct:foo").to("hazelcast-seda:foo");
- from("direct:foobar").to("hazelcast:seda:foo?transferExchange=true");
+ from("direct:foobar").to("hazelcast-seda:foo?transferExchange=true");
- from("hazelcast:seda:foo").to("mock:result");
+ from("hazelcast-seda:foo").to("mock:result");
}
};
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSetConsumerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSetConsumerTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSetConsumerTest.java
index 64dc4e6..3265856 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSetConsumerTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSetConsumerTest.java
@@ -87,7 +87,7 @@ public class HazelcastSetConsumerTest extends HazelcastCamelTestSupport {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
- from(String.format("hazelcast:%sfoo", HazelcastConstants.SET_PREFIX)).log("object...").choice().when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
+ from(String.format("hazelcast-%sfoo", HazelcastConstants.SET_PREFIX)).log("object...").choice().when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
.log("...added").to("mock:added").when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED)).log("...removed").to("mock:removed").otherwise()
.log("fail!");
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSetProducerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSetProducerTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSetProducerTest.java
index 91c615c..ec21e2e 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSetProducerTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSetProducerTest.java
@@ -118,26 +118,26 @@ public class HazelcastSetProducerTest extends HazelcastCamelTestSupport {
@Override
public void configure() throws Exception {
- from("direct:addInvalid").setHeader(HazelcastConstants.OPERATION, constant("bogus")).toF("hazelcast:%sbar", HazelcastConstants.SET_PREFIX);
+ from("direct:addInvalid").setHeader(HazelcastConstants.OPERATION, constant("bogus")).toF("hazelcast-%sbar", HazelcastConstants.SET_PREFIX);
- from("direct:add").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.ADD_OPERATION)).toF("hazelcast:%sbar", HazelcastConstants.SET_PREFIX);
+ from("direct:add").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.ADD_OPERATION)).toF("hazelcast-%sbar", HazelcastConstants.SET_PREFIX);
from("direct:removevalue").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.REMOVEVALUE_OPERATION)).to(
- String.format("hazelcast:%sbar", HazelcastConstants.SET_PREFIX));
+ String.format("hazelcast-%sbar", HazelcastConstants.SET_PREFIX));
- from("direct:clear").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.CLEAR_OPERATION)).toF("hazelcast:%sbar", HazelcastConstants.SET_PREFIX);
+ from("direct:clear").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.CLEAR_OPERATION)).toF("hazelcast-%sbar", HazelcastConstants.SET_PREFIX);
from("direct:addAll").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.ADD_ALL_OPERATION)).to(
- String.format("hazelcast:%sbar", HazelcastConstants.SET_PREFIX));
+ String.format("hazelcast-%sbar", HazelcastConstants.SET_PREFIX));
from("direct:removeAll").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.REMOVE_ALL_OPERATION)).to(
- String.format("hazelcast:%sbar", HazelcastConstants.SET_PREFIX));
+ String.format("hazelcast-%sbar", HazelcastConstants.SET_PREFIX));
from("direct:retainAll").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.RETAIN_ALL_OPERATION)).to(
- String.format("hazelcast:%sbar", HazelcastConstants.SET_PREFIX));
+ String.format("hazelcast-%sbar", HazelcastConstants.SET_PREFIX));
- from("direct:addWithOperationNumber").toF("hazelcast:%sbar?operation=%s", HazelcastConstants.SET_PREFIX, HazelcastConstants.ADD_OPERATION);
- from("direct:addWithOperationName").toF("hazelcast:%sbar?operation=add", HazelcastConstants.SET_PREFIX);
+ from("direct:addWithOperationNumber").toF("hazelcast-%sbar?operation=%s", HazelcastConstants.SET_PREFIX, HazelcastConstants.ADD_OPERATION);
+ from("direct:addWithOperationName").toF("hazelcast-%sbar?operation=add", HazelcastConstants.SET_PREFIX);
}
};
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastTopicConsumerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastTopicConsumerTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastTopicConsumerTest.java
index c833f88..9be9c05 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastTopicConsumerTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastTopicConsumerTest.java
@@ -74,7 +74,7 @@ public class HazelcastTopicConsumerTest extends HazelcastCamelTestSupport {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
- from(String.format("hazelcast:%sfoo", HazelcastConstants.TOPIC_PREFIX)).log("object...")
+ from(String.format("hazelcast-%sfoo", HazelcastConstants.TOPIC_PREFIX)).log("object...")
.choice()
.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.RECEIVED))
.log("...received").to("mock:received")
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastTopicProducerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastTopicProducerTest.java b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastTopicProducerTest.java
index 37f1750..dff2014 100644
--- a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastTopicProducerTest.java
+++ b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastTopicProducerTest.java
@@ -68,11 +68,11 @@ public class HazelcastTopicProducerTest extends HazelcastCamelTestSupport {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
- from("direct:no-operation").to(String.format("hazelcast:%sbar", HazelcastConstants.TOPIC_PREFIX));
+ from("direct:no-operation").to(String.format("hazelcast-%sbar", HazelcastConstants.TOPIC_PREFIX));
- from("direct:publishInvalid").setHeader(HazelcastConstants.OPERATION, constant("bogus")).to(String.format("hazelcast:%sbar", HazelcastConstants.TOPIC_PREFIX));
+ from("direct:publishInvalid").setHeader(HazelcastConstants.OPERATION, constant("bogus")).to(String.format("hazelcast-%sbar", HazelcastConstants.TOPIC_PREFIX));
- from("direct:publish").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUBLISH_OPERATION)).to(String.format("hazelcast:%sbar", HazelcastConstants.TOPIC_PREFIX));
+ from("direct:publish").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUBLISH_OPERATION)).to(String.format("hazelcast-%sbar", HazelcastConstants.TOPIC_PREFIX));
}
};
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-atomicnumber.xml
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-atomicnumber.xml b/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-atomicnumber.xml
index 46e74aa..fa84ed7 100644
--- a/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-atomicnumber.xml
+++ b/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-atomicnumber.xml
@@ -30,7 +30,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>setvalue</constant>
</setHeader>
- <to uri="hazelcast:atomicvalue:foo" />
+ <to uri="hazelcast-atomicvalue:foo" />
</route>
<route>
@@ -38,7 +38,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>get</constant>
</setHeader>
- <to uri="hazelcast:atomicvalue:foo" />
+ <to uri="hazelcast-atomicvalue:foo" />
</route>
<route>
@@ -46,7 +46,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>increment</constant>
</setHeader>
- <to uri="hazelcast:atomicvalue:foo" />
+ <to uri="hazelcast-atomicvalue:foo" />
</route>
<route>
@@ -54,7 +54,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>decrement</constant>
</setHeader>
- <to uri="hazelcast:atomicvalue:foo" />
+ <to uri="hazelcast-atomicvalue:foo" />
</route>
<route>
@@ -62,7 +62,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>compareAndSet</constant>
</setHeader>
- <to uri="hazelcast:atomicvalue:foo" />
+ <to uri="hazelcast-atomicvalue:foo" />
</route>
<route>
@@ -70,7 +70,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>getAndAdd</constant>
</setHeader>
- <to uri="hazelcast:atomicvalue:foo" />
+ <to uri="hazelcast-atomicvalue:foo" />
</route>
<route>
@@ -78,7 +78,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>destroy</constant>
</setHeader>
- <to uri="hazelcast:atomicvalue:foo" />
+ <to uri="hazelcast-atomicvalue:foo" />
</route>
</camelContext>
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-hazelcast-instance-name-reference.xml
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-hazelcast-instance-name-reference.xml b/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-hazelcast-instance-name-reference.xml
index 6143b2f..2d0ba79 100644
--- a/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-hazelcast-instance-name-reference.xml
+++ b/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-hazelcast-instance-name-reference.xml
@@ -40,7 +40,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>put</constant>
</setHeader>
- <to uri="hazelcast:map:testmap?hazelcastInstanceName=HZ.INSTANCE"/>
+ <to uri="hazelcast-map:testmap?hazelcastInstanceName=HZ.INSTANCE"/>
</route>
<route id="testHazelcastInstanceBeanRefGet">
@@ -48,7 +48,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>get</constant>
</setHeader>
- <to uri="hazelcast:map:testmap?hazelcastInstanceName=HZ.INSTANCE"/>
+ <to uri="hazelcast-map:testmap?hazelcastInstanceName=HZ.INSTANCE"/>
<to uri="seda:out" />
</route>
</camelContext>
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-hazelcast-instance-reference.xml
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-hazelcast-instance-reference.xml b/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-hazelcast-instance-reference.xml
index 06e8151..50b912a 100644
--- a/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-hazelcast-instance-reference.xml
+++ b/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-hazelcast-instance-reference.xml
@@ -39,7 +39,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>put</constant>
</setHeader>
- <to uri="hazelcast:map:testmap?hazelcastInstance=#hazelcastInstance"/>
+ <to uri="hazelcast-map:testmap?hazelcastInstance=#hazelcastInstance"/>
</route>
<route id="testHazelcastInstanceBeanRefGet">
@@ -47,7 +47,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>get</constant>
</setHeader>
- <to uri="hazelcast:map:testmap?hazelcastInstance=#hazelcastInstance"/>
+ <to uri="hazelcast-map:testmap?hazelcastInstance=#hazelcastInstance"/>
<to uri="seda:out" />
</route>
</camelContext>
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-map.xml
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-map.xml b/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-map.xml
index a1289de..1b3b155 100644
--- a/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-map.xml
+++ b/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-map.xml
@@ -30,7 +30,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>put</constant>
</setHeader>
- <to uri="hazelcast:map:foo" />
+ <to uri="hazelcast-map:foo" />
</route>
<route>
@@ -38,7 +38,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>update</constant>
</setHeader>
- <to uri="hazelcast:map:foo" />
+ <to uri="hazelcast-map:foo" />
</route>
<route>
@@ -46,7 +46,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>get</constant>
</setHeader>
- <to uri="hazelcast:map:foo" />
+ <to uri="hazelcast-map:foo" />
<to uri="seda:out" />
</route>
@@ -55,7 +55,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>delete</constant>
</setHeader>
- <to uri="hazelcast:map:foo" />
+ <to uri="hazelcast-map:foo" />
</route>
<route>
@@ -63,7 +63,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>query</constant>
</setHeader>
- <to uri="hazelcast:map:foo" />
+ <to uri="hazelcast-map:foo" />
<to uri="seda:out" />
</route>
@@ -72,7 +72,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>putIfAbsent</constant>
</setHeader>
- <to uri="hazelcast:map:foo" />
+ <to uri="hazelcast-map:foo" />
</route>
<route>
@@ -80,7 +80,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>getAll</constant>
</setHeader>
- <to uri="hazelcast:map:foo" />
+ <to uri="hazelcast-map:foo" />
<to uri="seda:out" />
</route>
@@ -89,7 +89,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>clear</constant>
</setHeader>
- <to uri="hazelcast:map:foo" />
+ <to uri="hazelcast-map:foo" />
</route>
<route>
@@ -97,7 +97,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>evict</constant>
</setHeader>
- <to uri="hazelcast:map:foo" />
+ <to uri="hazelcast-map:foo" />
<to uri="seda:out" />
</route>
@@ -106,7 +106,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>evictAll</constant>
</setHeader>
- <to uri="hazelcast:map:foo" />
+ <to uri="hazelcast-map:foo" />
<to uri="seda:out" />
</route>
@@ -115,7 +115,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>containsKey</constant>
</setHeader>
- <to uri="hazelcast:map:foo" />
+ <to uri="hazelcast-map:foo" />
<to uri="seda:out" />
</route>
@@ -124,7 +124,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>containsValue</constant>
</setHeader>
- <to uri="hazelcast:map:foo" />
+ <to uri="hazelcast-map:foo" />
<to uri="seda:out" />
</route>
</camelContext>
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-multimap.xml
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-multimap.xml b/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-multimap.xml
index 017a1aa..7f80997 100644
--- a/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-multimap.xml
+++ b/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-multimap.xml
@@ -30,7 +30,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>put</constant>
</setHeader>
- <to uri="hazelcast:multimap:bar" />
+ <to uri="hazelcast-multimap:bar" />
</route>
<route>
@@ -38,7 +38,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>removevalue</constant>
</setHeader>
- <to uri="hazelcast:multimap:bar" />
+ <to uri="hazelcast-multimap:bar" />
</route>
<route>
@@ -46,7 +46,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>get</constant>
</setHeader>
- <to uri="hazelcast:multimap:bar" />
+ <to uri="hazelcast-multimap:bar" />
<to uri="seda:out" />
</route>
@@ -55,7 +55,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>delete</constant>
</setHeader>
- <to uri="hazelcast:multimap:bar" />
+ <to uri="hazelcast-multimap:bar" />
</route>
<route>
@@ -63,7 +63,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>valueCount</constant>
</setHeader>
- <to uri="hazelcast:multimap:bar" />
+ <to uri="hazelcast-multimap:bar" />
</route>
<route>
@@ -71,7 +71,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>containsKey</constant>
</setHeader>
- <to uri="hazelcast:multimap:bar" />
+ <to uri="hazelcast-multimap:bar" />
<to uri="seda:out" />
</route>
@@ -80,7 +80,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>containsValue</constant>
</setHeader>
- <to uri="hazelcast:multimap:bar" />
+ <to uri="hazelcast-multimap:bar" />
<to uri="seda:out" />
</route>
[06/10] camel git commit: CAMEL-10798 Splitted hazelcast component
into 11 which correspond to each of endpoints
Posted by ac...@apache.org.
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-replicatedmap.xml
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-replicatedmap.xml b/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-replicatedmap.xml
index f6fe6ca..568c59f 100644
--- a/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-replicatedmap.xml
+++ b/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-replicatedmap.xml
@@ -30,7 +30,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>put</constant>
</setHeader>
- <to uri="hazelcast:replicatedmap:bar" />
+ <to uri="hazelcast-replicatedmap:bar" />
</route>
<route>
@@ -38,7 +38,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>get</constant>
</setHeader>
- <to uri="hazelcast:replicatedmap:bar" />
+ <to uri="hazelcast-replicatedmap:bar" />
<to uri="seda:out" />
</route>
@@ -47,7 +47,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>delete</constant>
</setHeader>
- <to uri="hazelcast:replicatedmap:bar" />
+ <to uri="hazelcast-replicatedmap:bar" />
</route>
<route>
@@ -55,7 +55,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>clear</constant>
</setHeader>
- <to uri="hazelcast:replicatedmap:bar" />
+ <to uri="hazelcast-replicatedmap:bar" />
</route>
<route>
@@ -63,7 +63,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>containsKey</constant>
</setHeader>
- <to uri="hazelcast:replicatedmap:bar" />
+ <to uri="hazelcast-replicatedmap:bar" />
<to uri="seda:out" />
</route>
@@ -72,7 +72,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>containsValue</constant>
</setHeader>
- <to uri="hazelcast:replicatedmap:bar" />
+ <to uri="hazelcast-replicatedmap:bar" />
<to uri="seda:out" />
</route>
</camelContext>
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-ringbuffer.xml
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-ringbuffer.xml b/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-ringbuffer.xml
index 59502e1..27ac4d5 100644
--- a/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-ringbuffer.xml
+++ b/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-ringbuffer.xml
@@ -30,7 +30,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>add</constant>
</setHeader>
- <to uri="hazelcast:ringbuffer:foo" />
+ <to uri="hazelcast-ringbuffer:foo" />
</route>
<route>
@@ -38,7 +38,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>readonceHead</constant>
</setHeader>
- <to uri="hazelcast:ringbuffer:foo" />
+ <to uri="hazelcast-ringbuffer:foo" />
</route>
<route>
@@ -46,7 +46,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>readonceTail</constant>
</setHeader>
- <to uri="hazelcast:ringbuffer:foo" />
+ <to uri="hazelcast-ringbuffer:foo" />
</route>
<route>
@@ -54,7 +54,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>capacity</constant>
</setHeader>
- <to uri="hazelcast:ringbuffer:foo" />
+ <to uri="hazelcast-ringbuffer:foo" />
</route>
<route>
@@ -62,7 +62,7 @@
<setHeader headerName="CamelHazelcastOperationType">
<constant>remainingCapacity</constant>
</setHeader>
- <to uri="hazelcast:ringbuffer:foo" />
+ <to uri="hazelcast-ringbuffer:foo" />
</route>
</camelContext>
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-seda.xml
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-seda.xml b/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-seda.xml
index 4f8e307..f349707 100644
--- a/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-seda.xml
+++ b/components/camel-hazelcast/src/test/resources/META-INF/spring/test-camel-context-seda.xml
@@ -28,13 +28,13 @@
<camelContext id="xmlRoute" xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="direct:start" />
- <to uri="hazelcast:seda:foo" />
+ <to uri="hazelcast-seda:foo" />
</route>
<route>
- <from uri="hazelcast:seda:foo" />
+ <from uri="hazelcast-seda:foo" />
<to uri="mock:result" />
</route>
</camelContext>
-</beans>
\ No newline at end of file
+</beans>
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/components/readme.adoc
----------------------------------------------------------------------
diff --git a/components/readme.adoc b/components/readme.adoc
index 8b29ef2..56f2c8f 100644
--- a/components/readme.adoc
+++ b/components/readme.adoc
@@ -2,7 +2,7 @@ Components
^^^^^^^^^^
// components: START
-Number of Components: 238 in 185 JAR artifacts (14 deprecated)
+Number of Components: 248 in 185 JAR artifacts (14 deprecated)
[width="100%",cols="4,1,5",options="header"]
|=======================================================================
@@ -269,8 +269,38 @@ Number of Components: 238 in 185 JAR artifacts (14 deprecated)
| link:camel-guava-eventbus/src/main/docs/guava-eventbus-component.adoc[Guava EventBus] (camel-guava-eventbus) +
`guava-eventbus:eventBusRef` | 2.10 | The guava-eventbus component provides integration bridge between Camel and Google Guava EventBus.
-| link:camel-hazelcast/src/main/docs/hazelcast-component.adoc[Hazelcast] (camel-hazelcast) +
-`hazelcast:command:cacheName` | 2.7 | The hazelcast component allows you to work with the Hazelcast distributed data grid / cache.
+| link:camel-hazelcast/src/main/docs/hazelcast-atomicvalue-component.adoc[Hazelcast Atomic Number] (camel-hazelcast) +
+`hazelcast-atomicvalue:cacheName` | 2.7 | The hazelcast-atomicvalue component is used to access Hazelcast atomic number which is an object that simply provides a grid wide number (long).
+
+| link:camel-hazelcast/src/main/docs/hazelcast-instance-component.adoc[Hazelcast Instance] (camel-hazelcast) +
+`hazelcast-instance:cacheName` | 2.7 | The hazelcast-instance component is used to consume join/leave events of the cache instance in the cluster.
+
+| link:camel-hazelcast/src/main/docs/hazelcast-list-component.adoc[Hazelcast List] (camel-hazelcast) +
+`hazelcast-list:cacheName` | 2.7 | The hazelcast-list component is used to access Hazelcast distributed list.
+
+| link:camel-hazelcast/src/main/docs/hazelcast-map-component.adoc[Hazelcast Map] (camel-hazelcast) +
+`hazelcast-map:cacheName` | 2.7 | The hazelcast-map component is used to access Hazelcast distributed map.
+
+| link:camel-hazelcast/src/main/docs/hazelcast-multimap-component.adoc[Hazelcast Multimap] (camel-hazelcast) +
+`hazelcast-multimap:cacheName` | 2.7 | The hazelcast-multimap component is used to to access Hazelcast distributed multimap.
+
+| link:camel-hazelcast/src/main/docs/hazelcast-queue-component.adoc[Hazelcast Queue] (camel-hazelcast) +
+`hazelcast-queue:cacheName` | 2.7 | The hazelcast-queue component is used to access Hazelcast distributed queue.
+
+| link:camel-hazelcast/src/main/docs/hazelcast-replicatedmap-component.adoc[Hazelcast Replicated Map] (camel-hazelcast) +
+`hazelcast-replicatedmap:cacheName` | 2.16 | The hazelcast-replicatedmap component is used to access Hazelcast replicated map.
+
+| link:camel-hazelcast/src/main/docs/hazelcast-ringbuffer-component.adoc[Hazelcast Ringbuffer] (camel-hazelcast) +
+`hazelcast-ringbuffer:cacheName` | 2.16 | The hazelcast-ringbuffer component is used to access Hazelcast distributed ringbuffer.
+
+| link:camel-hazelcast/src/main/docs/hazelcast-seda-component.adoc[Hazelcast SEDA] (camel-hazelcast) +
+`hazelcast-seda:cacheName` | 2.7 | The hazelcast-seda component is used to access Hazelcast BlockingQueue.
+
+| link:camel-hazelcast/src/main/docs/hazelcast-set-component.adoc[Hazelcast Set] (camel-hazelcast) +
+`hazelcast-set:cacheName` | 2.7 | The camel Endpoint to access Hazelcast distributed set.
+
+| link:camel-hazelcast/src/main/docs/hazelcast-topic-component.adoc[Hazelcast Topic] (camel-hazelcast) +
+`hazelcast-topic:cacheName` | 2.15 | The hazelcast-topic component is used to access Hazelcast distributed topic.
| link:camel-hbase/src/main/docs/hbase-component.adoc[HBase] (camel-hbase) +
`hbase:tableName` | 2.10 | For reading/writing from/to an HBase store (Hadoop database).
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/docs/user-manual/en/SUMMARY.md
----------------------------------------------------------------------
diff --git a/docs/user-manual/en/SUMMARY.md b/docs/user-manual/en/SUMMARY.md
index 5ffcb5b..c4302f4 100644
--- a/docs/user-manual/en/SUMMARY.md
+++ b/docs/user-manual/en/SUMMARY.md
@@ -201,7 +201,17 @@
* [Grape](grape-component.adoc)
* [gRPC](grpc-component.adoc)
* [Guava EventBus](guava-eventbus-component.adoc)
- * [Hazelcast](hazelcast-component.adoc)
+ * [Hazelcast Atomic Number](hazelcast-atomicvalue-component.adoc)
+ * [Hazelcast Instance](hazelcast-instance-component.adoc)
+ * [Hazelcast List](hazelcast-list-component.adoc)
+ * [Hazelcast Map](hazelcast-map-component.adoc)
+ * [Hazelcast Multimap](hazelcast-multimap-component.adoc)
+ * [Hazelcast Queue](hazelcast-queue-component.adoc)
+ * [Hazelcast Replicated Map](hazelcast-replicatedmap-component.adoc)
+ * [Hazelcast Ringbuffer](hazelcast-ringbuffer-component.adoc)
+ * [Hazelcast SEDA](hazelcast-seda-component.adoc)
+ * [Hazelcast Set](hazelcast-set-component.adoc)
+ * [Hazelcast Topic](hazelcast-topic-component.adoc)
* [HBase](hbase-component.adoc)
* [HDFS](hdfs-component.adoc)
* [HDFS2](hdfs2-component.adoc)
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/examples/camel-example-hazelcast-kubernetes/ReadMe.md
----------------------------------------------------------------------
diff --git a/examples/camel-example-hazelcast-kubernetes/ReadMe.md b/examples/camel-example-hazelcast-kubernetes/ReadMe.md
index 0f6c893..83b958f 100644
--- a/examples/camel-example-hazelcast-kubernetes/ReadMe.md
+++ b/examples/camel-example-hazelcast-kubernetes/ReadMe.md
@@ -111,7 +111,7 @@ INFO: hz.client_0 [someGroup] [3.8] HazelcastClient 3.8 (20170217 - d7998b4) is
2017-03-10 10:05:23,995 [main ] INFO DefaultRuntimeEndpointRegistry - Runtime endpoint registry is in extended mode gathering usage statistics of all incoming and outgoing endpoints (cache limit: 1000)
2017-03-10 10:05:24,061 [main ] INFO SpringCamelContext - StreamCaching is not in use. If using streams then its recommended to enable stream caching. See more details at http://camel.apache.org/stream-caching.html
2017-03-10 10:05:24,114 [main ] INFO SpringCamelContext - Route: route1 started and consuming from: timer://foo?period=5000
-2017-03-10 10:05:24,115 [main ] INFO SpringCamelContext - Route: route2 started and consuming from: hazelcast://topic:foo
+2017-03-10 10:05:24,115 [main ] INFO SpringCamelContext - Route: route2 started and consuming from: hazelcast-topic://foo
2017-03-10 10:05:24,116 [main ] INFO SpringCamelContext - Total 2 routes, of which 2 are started.
2017-03-10 10:05:24,119 [main ] INFO SpringCamelContext - Apache Camel 2.19.0-SNAPSHOT (CamelContext: camel-1) started in 0.265 seconds
Mar 10, 2017 10:05:24 AM com.hazelcast.client.connection.ClientConnectionManager
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/examples/camel-example-hazelcast-kubernetes/src/main/java/org/apache/camel/example/kubernetes/fmp/HazelcastRoute.java
----------------------------------------------------------------------
diff --git a/examples/camel-example-hazelcast-kubernetes/src/main/java/org/apache/camel/example/kubernetes/fmp/HazelcastRoute.java b/examples/camel-example-hazelcast-kubernetes/src/main/java/org/apache/camel/example/kubernetes/fmp/HazelcastRoute.java
index b851680..b098513 100644
--- a/examples/camel-example-hazelcast-kubernetes/src/main/java/org/apache/camel/example/kubernetes/fmp/HazelcastRoute.java
+++ b/examples/camel-example-hazelcast-kubernetes/src/main/java/org/apache/camel/example/kubernetes/fmp/HazelcastRoute.java
@@ -26,8 +26,8 @@ import com.hazelcast.core.HazelcastInstance;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.component.hazelcast.HazelcastComponent;
import org.apache.camel.component.hazelcast.HazelcastConstants;
+import org.apache.camel.component.hazelcast.topic.HazelcastTopicComponent;
public class HazelcastRoute extends RouteBuilder {
@@ -41,9 +41,9 @@ public class HazelcastRoute extends RouteBuilder {
HazelcastInstance instance = HazelcastClient.newHazelcastClient(config);
// setup camel hazelcast
- HazelcastComponent hazelcast = new HazelcastComponent();
+ HazelcastTopicComponent hazelcast = new HazelcastTopicComponent();
hazelcast.setHazelcastInstance(instance);
- getContext().addComponent("hazelcast", hazelcast);
+ getContext().addComponent("hazelcast-topic", hazelcast);
from("timer:foo?period=5000")
.log("Producer side: Sending data to Hazelcast topic..")
@@ -55,9 +55,9 @@ public class HazelcastRoute extends RouteBuilder {
exchange.getIn().setBody(payload);
}
})
- .to("hazelcast:topic:foo");
+ .to("hazelcast-topic:foo");
- from("hazelcast:topic:foo")
+ from("hazelcast-topic:foo")
.log("Consumer side: Detected following action: $simple{in.header.CamelHazelcastListenerAction}");
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/springboot/HazelcastAtomicnumberComponentAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/springboot/HazelcastAtomicnumberComponentAutoConfiguration.java b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/springboot/HazelcastAtomicnumberComponentAutoConfiguration.java
new file mode 100644
index 0000000..577a8c6
--- /dev/null
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/springboot/HazelcastAtomicnumberComponentAutoConfiguration.java
@@ -0,0 +1,115 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.atomicnumber.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import javax.annotation.Generated;
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.atomicnumber.HazelcastAtomicnumberComponent;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.AutoConfigureAfter;
+import org.springframework.boot.autoconfigure.condition.ConditionMessage;
+import org.springframework.boot.autoconfigure.condition.ConditionOutcome;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.autoconfigure.condition.SpringBootCondition;
+import org.springframework.boot.bind.RelaxedPropertyResolver;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.ConditionContext;
+import org.springframework.context.annotation.Conditional;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Lazy;
+import org.springframework.core.type.AnnotatedTypeMetadata;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+@Configuration
+@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration")
+@Conditional(HazelcastAtomicnumberComponentAutoConfiguration.Condition.class)
+@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration")
+@EnableConfigurationProperties(HazelcastAtomicnumberComponentConfiguration.class)
+public class HazelcastAtomicnumberComponentAutoConfiguration {
+
+ @Lazy
+ @Bean(name = "hazelcast-atomicvalue-component")
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(HazelcastAtomicnumberComponent.class)
+ public HazelcastAtomicnumberComponent configureHazelcastAtomicnumberComponent(
+ CamelContext camelContext,
+ HazelcastAtomicnumberComponentConfiguration configuration)
+ throws Exception {
+ HazelcastAtomicnumberComponent component = new HazelcastAtomicnumberComponent();
+ component.setCamelContext(camelContext);
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ for (Map.Entry<String, Object> entry : parameters.entrySet()) {
+ Object value = entry.getValue();
+ Class<?> paramClass = value.getClass();
+ if (paramClass.getName().endsWith("NestedConfiguration")) {
+ Class nestedClass = null;
+ try {
+ nestedClass = (Class) paramClass.getDeclaredField(
+ "CAMEL_NESTED_CLASS").get(null);
+ HashMap<String, Object> nestedParameters = new HashMap<>();
+ IntrospectionSupport.getProperties(value, nestedParameters,
+ null, false);
+ Object nestedProperty = nestedClass.newInstance();
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), nestedProperty,
+ nestedParameters);
+ entry.setValue(nestedProperty);
+ } catch (NoSuchFieldException e) {
+ }
+ }
+ }
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), component, parameters);
+ return component;
+ }
+
+ @Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+ public static class Condition extends SpringBootCondition {
+ @Override
+ public ConditionOutcome getMatchOutcome(
+ ConditionContext conditionContext,
+ AnnotatedTypeMetadata annotatedTypeMetadata) {
+ boolean groupEnabled = isEnabled(conditionContext,
+ "camel.component.", true);
+ ConditionMessage.Builder message = ConditionMessage
+ .forCondition("camel.component.hazelcast-atomicvalue");
+ if (isEnabled(conditionContext,
+ "camel.component.hazelcast-atomicvalue.", groupEnabled)) {
+ return ConditionOutcome.match(message.because("enabled"));
+ }
+ return ConditionOutcome.noMatch(message.because("not enabled"));
+ }
+
+ private boolean isEnabled(
+ org.springframework.context.annotation.ConditionContext context,
+ java.lang.String prefix, boolean defaultValue) {
+ RelaxedPropertyResolver resolver = new RelaxedPropertyResolver(
+ context.getEnvironment(), prefix);
+ return resolver.getProperty("enabled", Boolean.class, defaultValue);
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/springboot/HazelcastAtomicnumberComponentConfiguration.java
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/springboot/HazelcastAtomicnumberComponentConfiguration.java b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/springboot/HazelcastAtomicnumberComponentConfiguration.java
new file mode 100644
index 0000000..0c7a749
--- /dev/null
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/atomicnumber/springboot/HazelcastAtomicnumberComponentConfiguration.java
@@ -0,0 +1,77 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.atomicnumber.springboot;
+
+import javax.annotation.Generated;
+import com.hazelcast.core.HazelcastInstance;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.boot.context.properties.NestedConfigurationProperty;
+
+/**
+ * The hazelcast-atomicvalue component is used to access Hazelcast atomic number
+ * which is an object that simply provides a grid wide number (long).
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+@ConfigurationProperties(prefix = "camel.component.hazelcast-atomicvalue")
+public class HazelcastAtomicnumberComponentConfiguration {
+
+ /**
+ * The hazelcast instance reference which can be used for hazelcast
+ * endpoint. If you don't specify the instance reference camel use the
+ * default hazelcast instance from the camel-hazelcast instance.
+ */
+ @NestedConfigurationProperty
+ private HazelcastInstance hazelcastInstance;
+ /**
+ * The hazelcast mode reference which kind of instance should be used. If
+ * you don't specify the mode then the node mode will be the default.
+ */
+ private String hazelcastMode = "node";
+ /**
+ * Whether the component should resolve property placeholders on itself when
+ * starting. Only properties which are of String type can use property
+ * placeholders.
+ */
+ private Boolean resolvePropertyPlaceholders = true;
+
+ public HazelcastInstance getHazelcastInstance() {
+ return hazelcastInstance;
+ }
+
+ public void setHazelcastInstance(HazelcastInstance hazelcastInstance) {
+ this.hazelcastInstance = hazelcastInstance;
+ }
+
+ public String getHazelcastMode() {
+ return hazelcastMode;
+ }
+
+ public void setHazelcastMode(String hazelcastMode) {
+ this.hazelcastMode = hazelcastMode;
+ }
+
+ public Boolean getResolvePropertyPlaceholders() {
+ return resolvePropertyPlaceholders;
+ }
+
+ public void setResolvePropertyPlaceholders(
+ Boolean resolvePropertyPlaceholders) {
+ this.resolvePropertyPlaceholders = resolvePropertyPlaceholders;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/instance/springboot/HazelcastInstanceComponentAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/instance/springboot/HazelcastInstanceComponentAutoConfiguration.java b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/instance/springboot/HazelcastInstanceComponentAutoConfiguration.java
new file mode 100644
index 0000000..480ce76
--- /dev/null
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/instance/springboot/HazelcastInstanceComponentAutoConfiguration.java
@@ -0,0 +1,115 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.instance.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import javax.annotation.Generated;
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.instance.HazelcastInstanceComponent;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.AutoConfigureAfter;
+import org.springframework.boot.autoconfigure.condition.ConditionMessage;
+import org.springframework.boot.autoconfigure.condition.ConditionOutcome;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.autoconfigure.condition.SpringBootCondition;
+import org.springframework.boot.bind.RelaxedPropertyResolver;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.ConditionContext;
+import org.springframework.context.annotation.Conditional;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Lazy;
+import org.springframework.core.type.AnnotatedTypeMetadata;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+@Configuration
+@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration")
+@Conditional(HazelcastInstanceComponentAutoConfiguration.Condition.class)
+@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration")
+@EnableConfigurationProperties(HazelcastInstanceComponentConfiguration.class)
+public class HazelcastInstanceComponentAutoConfiguration {
+
+ @Lazy
+ @Bean(name = "hazelcast-instance-component")
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(HazelcastInstanceComponent.class)
+ public HazelcastInstanceComponent configureHazelcastInstanceComponent(
+ CamelContext camelContext,
+ HazelcastInstanceComponentConfiguration configuration)
+ throws Exception {
+ HazelcastInstanceComponent component = new HazelcastInstanceComponent();
+ component.setCamelContext(camelContext);
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ for (Map.Entry<String, Object> entry : parameters.entrySet()) {
+ Object value = entry.getValue();
+ Class<?> paramClass = value.getClass();
+ if (paramClass.getName().endsWith("NestedConfiguration")) {
+ Class nestedClass = null;
+ try {
+ nestedClass = (Class) paramClass.getDeclaredField(
+ "CAMEL_NESTED_CLASS").get(null);
+ HashMap<String, Object> nestedParameters = new HashMap<>();
+ IntrospectionSupport.getProperties(value, nestedParameters,
+ null, false);
+ Object nestedProperty = nestedClass.newInstance();
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), nestedProperty,
+ nestedParameters);
+ entry.setValue(nestedProperty);
+ } catch (NoSuchFieldException e) {
+ }
+ }
+ }
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), component, parameters);
+ return component;
+ }
+
+ @Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+ public static class Condition extends SpringBootCondition {
+ @Override
+ public ConditionOutcome getMatchOutcome(
+ ConditionContext conditionContext,
+ AnnotatedTypeMetadata annotatedTypeMetadata) {
+ boolean groupEnabled = isEnabled(conditionContext,
+ "camel.component.", true);
+ ConditionMessage.Builder message = ConditionMessage
+ .forCondition("camel.component.hazelcast-instance");
+ if (isEnabled(conditionContext,
+ "camel.component.hazelcast-instance.", groupEnabled)) {
+ return ConditionOutcome.match(message.because("enabled"));
+ }
+ return ConditionOutcome.noMatch(message.because("not enabled"));
+ }
+
+ private boolean isEnabled(
+ org.springframework.context.annotation.ConditionContext context,
+ java.lang.String prefix, boolean defaultValue) {
+ RelaxedPropertyResolver resolver = new RelaxedPropertyResolver(
+ context.getEnvironment(), prefix);
+ return resolver.getProperty("enabled", Boolean.class, defaultValue);
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/instance/springboot/HazelcastInstanceComponentConfiguration.java
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/instance/springboot/HazelcastInstanceComponentConfiguration.java b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/instance/springboot/HazelcastInstanceComponentConfiguration.java
new file mode 100644
index 0000000..a34e790
--- /dev/null
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/instance/springboot/HazelcastInstanceComponentConfiguration.java
@@ -0,0 +1,77 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.instance.springboot;
+
+import javax.annotation.Generated;
+import com.hazelcast.core.HazelcastInstance;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.boot.context.properties.NestedConfigurationProperty;
+
+/**
+ * The hazelcast-instance component is used to consume join/leave events of the
+ * cache instance in the cluster.
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+@ConfigurationProperties(prefix = "camel.component.hazelcast-instance")
+public class HazelcastInstanceComponentConfiguration {
+
+ /**
+ * The hazelcast instance reference which can be used for hazelcast
+ * endpoint. If you don't specify the instance reference camel use the
+ * default hazelcast instance from the camel-hazelcast instance.
+ */
+ @NestedConfigurationProperty
+ private HazelcastInstance hazelcastInstance;
+ /**
+ * The hazelcast mode reference which kind of instance should be used. If
+ * you don't specify the mode then the node mode will be the default.
+ */
+ private String hazelcastMode = "node";
+ /**
+ * Whether the component should resolve property placeholders on itself when
+ * starting. Only properties which are of String type can use property
+ * placeholders.
+ */
+ private Boolean resolvePropertyPlaceholders = true;
+
+ public HazelcastInstance getHazelcastInstance() {
+ return hazelcastInstance;
+ }
+
+ public void setHazelcastInstance(HazelcastInstance hazelcastInstance) {
+ this.hazelcastInstance = hazelcastInstance;
+ }
+
+ public String getHazelcastMode() {
+ return hazelcastMode;
+ }
+
+ public void setHazelcastMode(String hazelcastMode) {
+ this.hazelcastMode = hazelcastMode;
+ }
+
+ public Boolean getResolvePropertyPlaceholders() {
+ return resolvePropertyPlaceholders;
+ }
+
+ public void setResolvePropertyPlaceholders(
+ Boolean resolvePropertyPlaceholders) {
+ this.resolvePropertyPlaceholders = resolvePropertyPlaceholders;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/list/springboot/HazelcastListComponentAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/list/springboot/HazelcastListComponentAutoConfiguration.java b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/list/springboot/HazelcastListComponentAutoConfiguration.java
new file mode 100644
index 0000000..3a71585
--- /dev/null
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/list/springboot/HazelcastListComponentAutoConfiguration.java
@@ -0,0 +1,114 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.list.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import javax.annotation.Generated;
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.list.HazelcastListComponent;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.AutoConfigureAfter;
+import org.springframework.boot.autoconfigure.condition.ConditionMessage;
+import org.springframework.boot.autoconfigure.condition.ConditionOutcome;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.autoconfigure.condition.SpringBootCondition;
+import org.springframework.boot.bind.RelaxedPropertyResolver;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.ConditionContext;
+import org.springframework.context.annotation.Conditional;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Lazy;
+import org.springframework.core.type.AnnotatedTypeMetadata;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+@Configuration
+@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration")
+@Conditional(HazelcastListComponentAutoConfiguration.Condition.class)
+@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration")
+@EnableConfigurationProperties(HazelcastListComponentConfiguration.class)
+public class HazelcastListComponentAutoConfiguration {
+
+ @Lazy
+ @Bean(name = "hazelcast-list-component")
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(HazelcastListComponent.class)
+ public HazelcastListComponent configureHazelcastListComponent(
+ CamelContext camelContext,
+ HazelcastListComponentConfiguration configuration) throws Exception {
+ HazelcastListComponent component = new HazelcastListComponent();
+ component.setCamelContext(camelContext);
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ for (Map.Entry<String, Object> entry : parameters.entrySet()) {
+ Object value = entry.getValue();
+ Class<?> paramClass = value.getClass();
+ if (paramClass.getName().endsWith("NestedConfiguration")) {
+ Class nestedClass = null;
+ try {
+ nestedClass = (Class) paramClass.getDeclaredField(
+ "CAMEL_NESTED_CLASS").get(null);
+ HashMap<String, Object> nestedParameters = new HashMap<>();
+ IntrospectionSupport.getProperties(value, nestedParameters,
+ null, false);
+ Object nestedProperty = nestedClass.newInstance();
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), nestedProperty,
+ nestedParameters);
+ entry.setValue(nestedProperty);
+ } catch (NoSuchFieldException e) {
+ }
+ }
+ }
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), component, parameters);
+ return component;
+ }
+
+ @Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+ public static class Condition extends SpringBootCondition {
+ @Override
+ public ConditionOutcome getMatchOutcome(
+ ConditionContext conditionContext,
+ AnnotatedTypeMetadata annotatedTypeMetadata) {
+ boolean groupEnabled = isEnabled(conditionContext,
+ "camel.component.", true);
+ ConditionMessage.Builder message = ConditionMessage
+ .forCondition("camel.component.hazelcast-list");
+ if (isEnabled(conditionContext, "camel.component.hazelcast-list.",
+ groupEnabled)) {
+ return ConditionOutcome.match(message.because("enabled"));
+ }
+ return ConditionOutcome.noMatch(message.because("not enabled"));
+ }
+
+ private boolean isEnabled(
+ org.springframework.context.annotation.ConditionContext context,
+ java.lang.String prefix, boolean defaultValue) {
+ RelaxedPropertyResolver resolver = new RelaxedPropertyResolver(
+ context.getEnvironment(), prefix);
+ return resolver.getProperty("enabled", Boolean.class, defaultValue);
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/list/springboot/HazelcastListComponentConfiguration.java
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/list/springboot/HazelcastListComponentConfiguration.java b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/list/springboot/HazelcastListComponentConfiguration.java
new file mode 100644
index 0000000..011f99d
--- /dev/null
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/list/springboot/HazelcastListComponentConfiguration.java
@@ -0,0 +1,76 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.list.springboot;
+
+import javax.annotation.Generated;
+import com.hazelcast.core.HazelcastInstance;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.boot.context.properties.NestedConfigurationProperty;
+
+/**
+ * The hazelcast-list component is used to access Hazelcast distributed list.
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+@ConfigurationProperties(prefix = "camel.component.hazelcast-list")
+public class HazelcastListComponentConfiguration {
+
+ /**
+ * The hazelcast instance reference which can be used for hazelcast
+ * endpoint. If you don't specify the instance reference camel use the
+ * default hazelcast instance from the camel-hazelcast instance.
+ */
+ @NestedConfigurationProperty
+ private HazelcastInstance hazelcastInstance;
+ /**
+ * The hazelcast mode reference which kind of instance should be used. If
+ * you don't specify the mode then the node mode will be the default.
+ */
+ private String hazelcastMode = "node";
+ /**
+ * Whether the component should resolve property placeholders on itself when
+ * starting. Only properties which are of String type can use property
+ * placeholders.
+ */
+ private Boolean resolvePropertyPlaceholders = true;
+
+ public HazelcastInstance getHazelcastInstance() {
+ return hazelcastInstance;
+ }
+
+ public void setHazelcastInstance(HazelcastInstance hazelcastInstance) {
+ this.hazelcastInstance = hazelcastInstance;
+ }
+
+ public String getHazelcastMode() {
+ return hazelcastMode;
+ }
+
+ public void setHazelcastMode(String hazelcastMode) {
+ this.hazelcastMode = hazelcastMode;
+ }
+
+ public Boolean getResolvePropertyPlaceholders() {
+ return resolvePropertyPlaceholders;
+ }
+
+ public void setResolvePropertyPlaceholders(
+ Boolean resolvePropertyPlaceholders) {
+ this.resolvePropertyPlaceholders = resolvePropertyPlaceholders;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/map/springboot/HazelcastMapComponentAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/map/springboot/HazelcastMapComponentAutoConfiguration.java b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/map/springboot/HazelcastMapComponentAutoConfiguration.java
new file mode 100644
index 0000000..6b9603d
--- /dev/null
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/map/springboot/HazelcastMapComponentAutoConfiguration.java
@@ -0,0 +1,114 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.map.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import javax.annotation.Generated;
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.map.HazelcastMapComponent;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.AutoConfigureAfter;
+import org.springframework.boot.autoconfigure.condition.ConditionMessage;
+import org.springframework.boot.autoconfigure.condition.ConditionOutcome;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.autoconfigure.condition.SpringBootCondition;
+import org.springframework.boot.bind.RelaxedPropertyResolver;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.ConditionContext;
+import org.springframework.context.annotation.Conditional;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Lazy;
+import org.springframework.core.type.AnnotatedTypeMetadata;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+@Configuration
+@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration")
+@Conditional(HazelcastMapComponentAutoConfiguration.Condition.class)
+@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration")
+@EnableConfigurationProperties(HazelcastMapComponentConfiguration.class)
+public class HazelcastMapComponentAutoConfiguration {
+
+ @Lazy
+ @Bean(name = "hazelcast-map-component")
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(HazelcastMapComponent.class)
+ public HazelcastMapComponent configureHazelcastMapComponent(
+ CamelContext camelContext,
+ HazelcastMapComponentConfiguration configuration) throws Exception {
+ HazelcastMapComponent component = new HazelcastMapComponent();
+ component.setCamelContext(camelContext);
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ for (Map.Entry<String, Object> entry : parameters.entrySet()) {
+ Object value = entry.getValue();
+ Class<?> paramClass = value.getClass();
+ if (paramClass.getName().endsWith("NestedConfiguration")) {
+ Class nestedClass = null;
+ try {
+ nestedClass = (Class) paramClass.getDeclaredField(
+ "CAMEL_NESTED_CLASS").get(null);
+ HashMap<String, Object> nestedParameters = new HashMap<>();
+ IntrospectionSupport.getProperties(value, nestedParameters,
+ null, false);
+ Object nestedProperty = nestedClass.newInstance();
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), nestedProperty,
+ nestedParameters);
+ entry.setValue(nestedProperty);
+ } catch (NoSuchFieldException e) {
+ }
+ }
+ }
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), component, parameters);
+ return component;
+ }
+
+ @Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+ public static class Condition extends SpringBootCondition {
+ @Override
+ public ConditionOutcome getMatchOutcome(
+ ConditionContext conditionContext,
+ AnnotatedTypeMetadata annotatedTypeMetadata) {
+ boolean groupEnabled = isEnabled(conditionContext,
+ "camel.component.", true);
+ ConditionMessage.Builder message = ConditionMessage
+ .forCondition("camel.component.hazelcast-map");
+ if (isEnabled(conditionContext, "camel.component.hazelcast-map.",
+ groupEnabled)) {
+ return ConditionOutcome.match(message.because("enabled"));
+ }
+ return ConditionOutcome.noMatch(message.because("not enabled"));
+ }
+
+ private boolean isEnabled(
+ org.springframework.context.annotation.ConditionContext context,
+ java.lang.String prefix, boolean defaultValue) {
+ RelaxedPropertyResolver resolver = new RelaxedPropertyResolver(
+ context.getEnvironment(), prefix);
+ return resolver.getProperty("enabled", Boolean.class, defaultValue);
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/map/springboot/HazelcastMapComponentConfiguration.java
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/map/springboot/HazelcastMapComponentConfiguration.java b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/map/springboot/HazelcastMapComponentConfiguration.java
new file mode 100644
index 0000000..d7fcf41
--- /dev/null
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/map/springboot/HazelcastMapComponentConfiguration.java
@@ -0,0 +1,76 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.map.springboot;
+
+import javax.annotation.Generated;
+import com.hazelcast.core.HazelcastInstance;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.boot.context.properties.NestedConfigurationProperty;
+
+/**
+ * The hazelcast-map component is used to access Hazelcast distributed map.
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+@ConfigurationProperties(prefix = "camel.component.hazelcast-map")
+public class HazelcastMapComponentConfiguration {
+
+ /**
+ * The hazelcast instance reference which can be used for hazelcast
+ * endpoint. If you don't specify the instance reference camel use the
+ * default hazelcast instance from the camel-hazelcast instance.
+ */
+ @NestedConfigurationProperty
+ private HazelcastInstance hazelcastInstance;
+ /**
+ * The hazelcast mode reference which kind of instance should be used. If
+ * you don't specify the mode then the node mode will be the default.
+ */
+ private String hazelcastMode = "node";
+ /**
+ * Whether the component should resolve property placeholders on itself when
+ * starting. Only properties which are of String type can use property
+ * placeholders.
+ */
+ private Boolean resolvePropertyPlaceholders = true;
+
+ public HazelcastInstance getHazelcastInstance() {
+ return hazelcastInstance;
+ }
+
+ public void setHazelcastInstance(HazelcastInstance hazelcastInstance) {
+ this.hazelcastInstance = hazelcastInstance;
+ }
+
+ public String getHazelcastMode() {
+ return hazelcastMode;
+ }
+
+ public void setHazelcastMode(String hazelcastMode) {
+ this.hazelcastMode = hazelcastMode;
+ }
+
+ public Boolean getResolvePropertyPlaceholders() {
+ return resolvePropertyPlaceholders;
+ }
+
+ public void setResolvePropertyPlaceholders(
+ Boolean resolvePropertyPlaceholders) {
+ this.resolvePropertyPlaceholders = resolvePropertyPlaceholders;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/multimap/springboot/HazelcastMultimapComponentAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/multimap/springboot/HazelcastMultimapComponentAutoConfiguration.java b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/multimap/springboot/HazelcastMultimapComponentAutoConfiguration.java
new file mode 100644
index 0000000..08b7115
--- /dev/null
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/multimap/springboot/HazelcastMultimapComponentAutoConfiguration.java
@@ -0,0 +1,115 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.multimap.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import javax.annotation.Generated;
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.multimap.HazelcastMultimapComponent;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.AutoConfigureAfter;
+import org.springframework.boot.autoconfigure.condition.ConditionMessage;
+import org.springframework.boot.autoconfigure.condition.ConditionOutcome;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.autoconfigure.condition.SpringBootCondition;
+import org.springframework.boot.bind.RelaxedPropertyResolver;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.ConditionContext;
+import org.springframework.context.annotation.Conditional;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Lazy;
+import org.springframework.core.type.AnnotatedTypeMetadata;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+@Configuration
+@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration")
+@Conditional(HazelcastMultimapComponentAutoConfiguration.Condition.class)
+@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration")
+@EnableConfigurationProperties(HazelcastMultimapComponentConfiguration.class)
+public class HazelcastMultimapComponentAutoConfiguration {
+
+ @Lazy
+ @Bean(name = "hazelcast-multimap-component")
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(HazelcastMultimapComponent.class)
+ public HazelcastMultimapComponent configureHazelcastMultimapComponent(
+ CamelContext camelContext,
+ HazelcastMultimapComponentConfiguration configuration)
+ throws Exception {
+ HazelcastMultimapComponent component = new HazelcastMultimapComponent();
+ component.setCamelContext(camelContext);
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ for (Map.Entry<String, Object> entry : parameters.entrySet()) {
+ Object value = entry.getValue();
+ Class<?> paramClass = value.getClass();
+ if (paramClass.getName().endsWith("NestedConfiguration")) {
+ Class nestedClass = null;
+ try {
+ nestedClass = (Class) paramClass.getDeclaredField(
+ "CAMEL_NESTED_CLASS").get(null);
+ HashMap<String, Object> nestedParameters = new HashMap<>();
+ IntrospectionSupport.getProperties(value, nestedParameters,
+ null, false);
+ Object nestedProperty = nestedClass.newInstance();
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), nestedProperty,
+ nestedParameters);
+ entry.setValue(nestedProperty);
+ } catch (NoSuchFieldException e) {
+ }
+ }
+ }
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), component, parameters);
+ return component;
+ }
+
+ @Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+ public static class Condition extends SpringBootCondition {
+ @Override
+ public ConditionOutcome getMatchOutcome(
+ ConditionContext conditionContext,
+ AnnotatedTypeMetadata annotatedTypeMetadata) {
+ boolean groupEnabled = isEnabled(conditionContext,
+ "camel.component.", true);
+ ConditionMessage.Builder message = ConditionMessage
+ .forCondition("camel.component.hazelcast-multimap");
+ if (isEnabled(conditionContext,
+ "camel.component.hazelcast-multimap.", groupEnabled)) {
+ return ConditionOutcome.match(message.because("enabled"));
+ }
+ return ConditionOutcome.noMatch(message.because("not enabled"));
+ }
+
+ private boolean isEnabled(
+ org.springframework.context.annotation.ConditionContext context,
+ java.lang.String prefix, boolean defaultValue) {
+ RelaxedPropertyResolver resolver = new RelaxedPropertyResolver(
+ context.getEnvironment(), prefix);
+ return resolver.getProperty("enabled", Boolean.class, defaultValue);
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/multimap/springboot/HazelcastMultimapComponentConfiguration.java
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/multimap/springboot/HazelcastMultimapComponentConfiguration.java b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/multimap/springboot/HazelcastMultimapComponentConfiguration.java
new file mode 100644
index 0000000..2869489
--- /dev/null
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/multimap/springboot/HazelcastMultimapComponentConfiguration.java
@@ -0,0 +1,77 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.multimap.springboot;
+
+import javax.annotation.Generated;
+import com.hazelcast.core.HazelcastInstance;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.boot.context.properties.NestedConfigurationProperty;
+
+/**
+ * The hazelcast-multimap component is used to to access Hazelcast distributed
+ * multimap.
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+@ConfigurationProperties(prefix = "camel.component.hazelcast-multimap")
+public class HazelcastMultimapComponentConfiguration {
+
+ /**
+ * The hazelcast instance reference which can be used for hazelcast
+ * endpoint. If you don't specify the instance reference camel use the
+ * default hazelcast instance from the camel-hazelcast instance.
+ */
+ @NestedConfigurationProperty
+ private HazelcastInstance hazelcastInstance;
+ /**
+ * The hazelcast mode reference which kind of instance should be used. If
+ * you don't specify the mode then the node mode will be the default.
+ */
+ private String hazelcastMode = "node";
+ /**
+ * Whether the component should resolve property placeholders on itself when
+ * starting. Only properties which are of String type can use property
+ * placeholders.
+ */
+ private Boolean resolvePropertyPlaceholders = true;
+
+ public HazelcastInstance getHazelcastInstance() {
+ return hazelcastInstance;
+ }
+
+ public void setHazelcastInstance(HazelcastInstance hazelcastInstance) {
+ this.hazelcastInstance = hazelcastInstance;
+ }
+
+ public String getHazelcastMode() {
+ return hazelcastMode;
+ }
+
+ public void setHazelcastMode(String hazelcastMode) {
+ this.hazelcastMode = hazelcastMode;
+ }
+
+ public Boolean getResolvePropertyPlaceholders() {
+ return resolvePropertyPlaceholders;
+ }
+
+ public void setResolvePropertyPlaceholders(
+ Boolean resolvePropertyPlaceholders) {
+ this.resolvePropertyPlaceholders = resolvePropertyPlaceholders;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/queue/springboot/HazelcastQueueComponentAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/queue/springboot/HazelcastQueueComponentAutoConfiguration.java b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/queue/springboot/HazelcastQueueComponentAutoConfiguration.java
new file mode 100644
index 0000000..6873e44
--- /dev/null
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/queue/springboot/HazelcastQueueComponentAutoConfiguration.java
@@ -0,0 +1,115 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.queue.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import javax.annotation.Generated;
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.queue.HazelcastQueueComponent;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.AutoConfigureAfter;
+import org.springframework.boot.autoconfigure.condition.ConditionMessage;
+import org.springframework.boot.autoconfigure.condition.ConditionOutcome;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.autoconfigure.condition.SpringBootCondition;
+import org.springframework.boot.bind.RelaxedPropertyResolver;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.ConditionContext;
+import org.springframework.context.annotation.Conditional;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Lazy;
+import org.springframework.core.type.AnnotatedTypeMetadata;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+@Configuration
+@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration")
+@Conditional(HazelcastQueueComponentAutoConfiguration.Condition.class)
+@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration")
+@EnableConfigurationProperties(HazelcastQueueComponentConfiguration.class)
+public class HazelcastQueueComponentAutoConfiguration {
+
+ @Lazy
+ @Bean(name = "hazelcast-queue-component")
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(HazelcastQueueComponent.class)
+ public HazelcastQueueComponent configureHazelcastQueueComponent(
+ CamelContext camelContext,
+ HazelcastQueueComponentConfiguration configuration)
+ throws Exception {
+ HazelcastQueueComponent component = new HazelcastQueueComponent();
+ component.setCamelContext(camelContext);
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ for (Map.Entry<String, Object> entry : parameters.entrySet()) {
+ Object value = entry.getValue();
+ Class<?> paramClass = value.getClass();
+ if (paramClass.getName().endsWith("NestedConfiguration")) {
+ Class nestedClass = null;
+ try {
+ nestedClass = (Class) paramClass.getDeclaredField(
+ "CAMEL_NESTED_CLASS").get(null);
+ HashMap<String, Object> nestedParameters = new HashMap<>();
+ IntrospectionSupport.getProperties(value, nestedParameters,
+ null, false);
+ Object nestedProperty = nestedClass.newInstance();
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), nestedProperty,
+ nestedParameters);
+ entry.setValue(nestedProperty);
+ } catch (NoSuchFieldException e) {
+ }
+ }
+ }
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), component, parameters);
+ return component;
+ }
+
+ @Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+ public static class Condition extends SpringBootCondition {
+ @Override
+ public ConditionOutcome getMatchOutcome(
+ ConditionContext conditionContext,
+ AnnotatedTypeMetadata annotatedTypeMetadata) {
+ boolean groupEnabled = isEnabled(conditionContext,
+ "camel.component.", true);
+ ConditionMessage.Builder message = ConditionMessage
+ .forCondition("camel.component.hazelcast-queue");
+ if (isEnabled(conditionContext, "camel.component.hazelcast-queue.",
+ groupEnabled)) {
+ return ConditionOutcome.match(message.because("enabled"));
+ }
+ return ConditionOutcome.noMatch(message.because("not enabled"));
+ }
+
+ private boolean isEnabled(
+ org.springframework.context.annotation.ConditionContext context,
+ java.lang.String prefix, boolean defaultValue) {
+ RelaxedPropertyResolver resolver = new RelaxedPropertyResolver(
+ context.getEnvironment(), prefix);
+ return resolver.getProperty("enabled", Boolean.class, defaultValue);
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/queue/springboot/HazelcastQueueComponentConfiguration.java
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/queue/springboot/HazelcastQueueComponentConfiguration.java b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/queue/springboot/HazelcastQueueComponentConfiguration.java
new file mode 100644
index 0000000..60fb9bb
--- /dev/null
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/queue/springboot/HazelcastQueueComponentConfiguration.java
@@ -0,0 +1,76 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.queue.springboot;
+
+import javax.annotation.Generated;
+import com.hazelcast.core.HazelcastInstance;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.boot.context.properties.NestedConfigurationProperty;
+
+/**
+ * The hazelcast-queue component is used to access Hazelcast distributed queue.
+ *
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+@ConfigurationProperties(prefix = "camel.component.hazelcast-queue")
+public class HazelcastQueueComponentConfiguration {
+
+ /**
+ * The hazelcast instance reference which can be used for hazelcast
+ * endpoint. If you don't specify the instance reference camel use the
+ * default hazelcast instance from the camel-hazelcast instance.
+ */
+ @NestedConfigurationProperty
+ private HazelcastInstance hazelcastInstance;
+ /**
+ * The hazelcast mode reference which kind of instance should be used. If
+ * you don't specify the mode then the node mode will be the default.
+ */
+ private String hazelcastMode = "node";
+ /**
+ * Whether the component should resolve property placeholders on itself when
+ * starting. Only properties which are of String type can use property
+ * placeholders.
+ */
+ private Boolean resolvePropertyPlaceholders = true;
+
+ public HazelcastInstance getHazelcastInstance() {
+ return hazelcastInstance;
+ }
+
+ public void setHazelcastInstance(HazelcastInstance hazelcastInstance) {
+ this.hazelcastInstance = hazelcastInstance;
+ }
+
+ public String getHazelcastMode() {
+ return hazelcastMode;
+ }
+
+ public void setHazelcastMode(String hazelcastMode) {
+ this.hazelcastMode = hazelcastMode;
+ }
+
+ public Boolean getResolvePropertyPlaceholders() {
+ return resolvePropertyPlaceholders;
+ }
+
+ public void setResolvePropertyPlaceholders(
+ Boolean resolvePropertyPlaceholders) {
+ this.resolvePropertyPlaceholders = resolvePropertyPlaceholders;
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/bf10d278/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/replicatedmap/springboot/HazelcastReplicatedmapComponentAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/replicatedmap/springboot/HazelcastReplicatedmapComponentAutoConfiguration.java b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/replicatedmap/springboot/HazelcastReplicatedmapComponentAutoConfiguration.java
new file mode 100644
index 0000000..df46cf9
--- /dev/null
+++ b/platforms/spring-boot/components-starter/camel-hazelcast-starter/src/main/java/org/apache/camel/component/hazelcast/replicatedmap/springboot/HazelcastReplicatedmapComponentAutoConfiguration.java
@@ -0,0 +1,115 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.hazelcast.replicatedmap.springboot;
+
+import java.util.HashMap;
+import java.util.Map;
+import javax.annotation.Generated;
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.hazelcast.replicatedmap.HazelcastReplicatedmapComponent;
+import org.apache.camel.util.IntrospectionSupport;
+import org.springframework.boot.autoconfigure.AutoConfigureAfter;
+import org.springframework.boot.autoconfigure.condition.ConditionMessage;
+import org.springframework.boot.autoconfigure.condition.ConditionOutcome;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
+import org.springframework.boot.autoconfigure.condition.SpringBootCondition;
+import org.springframework.boot.bind.RelaxedPropertyResolver;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.ConditionContext;
+import org.springframework.context.annotation.Conditional;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Lazy;
+import org.springframework.core.type.AnnotatedTypeMetadata;
+
+/**
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+@Configuration
+@ConditionalOnBean(type = "org.apache.camel.spring.boot.CamelAutoConfiguration")
+@Conditional(HazelcastReplicatedmapComponentAutoConfiguration.Condition.class)
+@AutoConfigureAfter(name = "org.apache.camel.spring.boot.CamelAutoConfiguration")
+@EnableConfigurationProperties(HazelcastReplicatedmapComponentConfiguration.class)
+public class HazelcastReplicatedmapComponentAutoConfiguration {
+
+ @Lazy
+ @Bean(name = "hazelcast-replicatedmap-component")
+ @ConditionalOnClass(CamelContext.class)
+ @ConditionalOnMissingBean(HazelcastReplicatedmapComponent.class)
+ public HazelcastReplicatedmapComponent configureHazelcastReplicatedmapComponent(
+ CamelContext camelContext,
+ HazelcastReplicatedmapComponentConfiguration configuration)
+ throws Exception {
+ HazelcastReplicatedmapComponent component = new HazelcastReplicatedmapComponent();
+ component.setCamelContext(camelContext);
+ Map<String, Object> parameters = new HashMap<>();
+ IntrospectionSupport.getProperties(configuration, parameters, null,
+ false);
+ for (Map.Entry<String, Object> entry : parameters.entrySet()) {
+ Object value = entry.getValue();
+ Class<?> paramClass = value.getClass();
+ if (paramClass.getName().endsWith("NestedConfiguration")) {
+ Class nestedClass = null;
+ try {
+ nestedClass = (Class) paramClass.getDeclaredField(
+ "CAMEL_NESTED_CLASS").get(null);
+ HashMap<String, Object> nestedParameters = new HashMap<>();
+ IntrospectionSupport.getProperties(value, nestedParameters,
+ null, false);
+ Object nestedProperty = nestedClass.newInstance();
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), nestedProperty,
+ nestedParameters);
+ entry.setValue(nestedProperty);
+ } catch (NoSuchFieldException e) {
+ }
+ }
+ }
+ IntrospectionSupport.setProperties(camelContext,
+ camelContext.getTypeConverter(), component, parameters);
+ return component;
+ }
+
+ @Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
+ public static class Condition extends SpringBootCondition {
+ @Override
+ public ConditionOutcome getMatchOutcome(
+ ConditionContext conditionContext,
+ AnnotatedTypeMetadata annotatedTypeMetadata) {
+ boolean groupEnabled = isEnabled(conditionContext,
+ "camel.component.", true);
+ ConditionMessage.Builder message = ConditionMessage
+ .forCondition("camel.component.hazelcast-replicatedmap");
+ if (isEnabled(conditionContext,
+ "camel.component.hazelcast-replicatedmap.", groupEnabled)) {
+ return ConditionOutcome.match(message.because("enabled"));
+ }
+ return ConditionOutcome.noMatch(message.because("not enabled"));
+ }
+
+ private boolean isEnabled(
+ org.springframework.context.annotation.ConditionContext context,
+ java.lang.String prefix, boolean defaultValue) {
+ RelaxedPropertyResolver resolver = new RelaxedPropertyResolver(
+ context.getEnvironment(), prefix);
+ return resolver.getProperty("enabled", Boolean.class, defaultValue);
+ }
+ }
+}
\ No newline at end of file
[03/10] camel git commit: Upgrade Hystrix and related bundle to
version 1.5.11
Posted by ac...@apache.org.
Upgrade Hystrix and related bundle to version 1.5.11
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/395c33f3
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/395c33f3
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/395c33f3
Branch: refs/heads/master
Commit: 395c33f3ae8ff3a64d1c8138f5b8723cce6d1e95
Parents: a672bbd
Author: Andrea Cosentino <an...@gmail.com>
Authored: Tue May 9 08:43:04 2017 +0200
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Tue May 9 09:45:45 2017 +0200
----------------------------------------------------------------------
parent/pom.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/395c33f3/parent/pom.xml
----------------------------------------------------------------------
diff --git a/parent/pom.xml b/parent/pom.xml
index e074d7d..841ccdb 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -278,8 +278,8 @@
<httpclient4-version>4.5.3</httpclient4-version>
<httpasyncclient-version>4.1.3</httpasyncclient-version>
<httpclient-version>3.1</httpclient-version>
- <hystrix-version>1.5.10</hystrix-version>
- <hystrix-bundle-version>1.5.10_1</hystrix-bundle-version>
+ <hystrix-version>1.5.11</hystrix-version>
+ <hystrix-bundle-version>1.5.11_1</hystrix-bundle-version>
<ibatis-bundle-version>2.3.4.726_4</ibatis-bundle-version>
<ibatis-version>2.3.4.726</ibatis-version>
<ical4j-version>1.0.7</ical4j-version>