From 32c727a5d44b7ad6a8d4fae6f3bf0fad5711690f Mon Sep 17 00:00:00 2001 From: Ilayaperumal Gopinathan Date: Thu, 4 Feb 2016 13:40:31 +0530 Subject: [PATCH] Remove lattice profile usages/references --- .../config/KafkaServiceAutoConfiguration.java | 8 -------- spring-cloud-stream-module-launcher/README.md | 19 ------------------- 2 files changed, 27 deletions(-) diff --git a/spring-cloud-stream-binders/spring-cloud-stream-binder-kafka/src/main/java/org/springframework/cloud/stream/binder/kafka/config/KafkaServiceAutoConfiguration.java b/spring-cloud-stream-binders/spring-cloud-stream-binder-kafka/src/main/java/org/springframework/cloud/stream/binder/kafka/config/KafkaServiceAutoConfiguration.java index 86d976dc7..ec4079835 100644 --- a/spring-cloud-stream-binders/spring-cloud-stream-binder-kafka/src/main/java/org/springframework/cloud/stream/binder/kafka/config/KafkaServiceAutoConfiguration.java +++ b/spring-cloud-stream-binders/spring-cloud-stream-binder-kafka/src/main/java/org/springframework/cloud/stream/binder/kafka/config/KafkaServiceAutoConfiguration.java @@ -21,7 +21,6 @@ import org.springframework.boot.autoconfigure.test.ImportAutoConfiguration; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.cloud.stream.binder.Binder; import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Profile; import org.springframework.context.annotation.PropertySource; /** @@ -36,15 +35,8 @@ import org.springframework.context.annotation.PropertySource; public class KafkaServiceAutoConfiguration { @Configuration - @Profile("!lattice") @PropertySource("classpath:/META-INF/spring-cloud-stream/kafka-binder.properties") public static class DefaultProperties { } - - @Configuration - @Profile("lattice") - @PropertySource("classpath:/META-INF/spring-cloud-stream/kafka-binder-lattice.properties") - public static class LatticeDefaultProperties { - } } diff --git a/spring-cloud-stream-module-launcher/README.md b/spring-cloud-stream-module-launcher/README.md index 937c9b086..7160becdb 100644 --- a/spring-cloud-stream-module-launcher/README.md +++ b/spring-cloud-stream-module-launcher/README.md @@ -86,22 +86,3 @@ docker run -p 8082:8080 -e MODULES=org.springframework.cloud.stream.module:log-s -e spring.cloud.stream.bindings.input=topic:foo -e SPRING_REDIS_HOST= springcloud/stream-module-launcher ```` In the above scenario, both the sink modules receive the same messages from the time source. - -## Running on Lattice - -1: Launch lattice with vagrant as described [here](http://lattice.cf/docs/getting-started/). - -2: Create a Redis instance on Lattice (running as root): - -```` -$ ltc create redis redis -r -```` - -3: Run the modules as long-running processes (LRPs) on Lattice: - -```` -$ ltc create time springcloud/stream-module-launcher -m 512 \ - -e SPRING_CLOUD_STREAM_BINDINGS_OUTPUT=ticktock -e MODULES=org.springframework.cloud.stream.module:time-source:jar:exec:1.0.0.BUILD-SNAPSHOT -$ ltc create log springcloud/stream-module-launcher -m 512 \ - -e SPRING_CLOUD_STREAM_BINDINGS_INPUT=ticktock -e MODULES=org.springframework.cloud.stream.module:log-sink:jar:exec:1.0.0.BUILD-SNAPSHOT -````