Commit Graph

329 Commits

Author SHA1 Message Date
Marius Bogoevici
2f330c7bc4 Minor polishing on dynamic channel binding 2016-02-01 22:48:48 -05:00
Gary Russell
16e7893e49 scsm-88: Support Dynamic Binding Channel Limits
Required by scsm-88.

If `dynamicDestinations` is not zero length, only dynamically bind if
the channel is is in the list.

Polishing - Test Support for Dynamic Bindings
2016-02-01 22:48:48 -05:00
Marius Bogoevici
31961ae595 Add support for durable subscriptions in Redis 2016-01-29 19:04:12 -05:00
Ilayaperumal Gopinathan
73abe565fd Fix boolean getter methods
- on BindingProperties
2016-01-28 23:05:15 +05:30
Ilayaperumal Gopinathan
40709fbf14 Add durableSubscription as a binding property
- This will be updated as a binder consumer property for the key `durableSubscription`

This resolves #293
2016-01-28 10:27:33 -05:00
Dave Syer
dfe78f6d32 Fix Spring AMQP dependencies temporarily 2016-01-28 09:00:46 +00:00
Gary Russell
e2485e3290 Clean Up Auto-Declare Context on Unbind 2016-01-27 22:00:08 -05:00
Marius Bogoevici
192aa79baa Remove default groups, support default pubsub with empty group
Addressing PR comments
2016-01-27 21:59:58 -05:00
Mark Fisher
c3758b9dc0 Binder simplification
* removed pub/sub methods from binder
* consumer group is now a parameter of the remaining bindConsumer method

* remove DynamicProducer from Binder
* Move logic to create the dynamic channel to the channel resolver.
* Return bindings from bind methods and use them for unbinding
* Suffix for dlq

Move All Rabbit Binder CleanUp to Test Bindera

More RabbitMQ Binder Test Cleanup

Clean up declarations for remaining tests.

removed BinderUtils

use Redis ZSET for consumer groups

copyright dates

AutoBindDLQ: Single DLQ Per Group When Partitioned

Configure a single DLQ for each group for all partitions.

Add DLX Exchange binding for each original queue routing key, including the partition.

Fix DLQ Binding (Producer Side)

Option was not allowed and the routing key was wrong.

Add test to verify producers can be bound before consumers.

`autoBindDLQ` must be set (or reset) on both sides for success.
2016-01-27 21:59:58 -05:00
Soby Chacko
60e44b530d Kafka Test Support
-minor change in KafkaTestSupport to add a getter for KafkaServer.
2016-01-27 17:37:04 -05:00
Ilayaperumal Gopinathan
e792b0e347 Use LocalizedQueueConnectionFactory from Spring AMQP
- Remove LocalizedQueueConnectionFactory and the unit tests
   - The unit tests are already covered in Spring AMQP and also, certain methods accessors require public access to run tests from SCS
 - Kept the integration tests as is (though this can be removed as well - it is also covered in Spring AMQP)

This resolves #279
2016-01-19 09:22:53 -05:00
Ilayaperumal Gopinathan
31ae416727 Remove Spring XD tuple dependency
- Use spring-cloud-stream-tuple instead

This resolves #280
2016-01-19 19:09:24 +05:30
Marius Bogoevici
c300c95be1 GH-274 Fixes for AggregatedApplication
Resolves #274.

* Handle @Autowired(required=false) correctly when no `Bindable` beans are present (i.e. aggregated root context)
* Ensure separate domains per subcontext
* Register shared channels internally with the proxy

Update copyrights and address comments
2016-01-14 11:24:59 +05:30
Dave Syer
8036c6712e Add spring profiles for repos 2016-01-08 13:16:38 +00:00
Dave Syer
a036e5ed04 Add extra dependencies module 2016-01-08 12:33:54 +00:00
Ilayaperumal Gopinathan
fa89e5bcb6 Handle binder config in BindingProperties
- Per-binding properties defined in `BindingProperties` need to hold the binder specific configurations needed when binding producer/consumers.
Previously, these were added in `ChannelBindingServiceProperties` as producer/consumer properties. Since these configuration properties are for
per-binding based on the input/output (consumer/producer) channel being bound it is better to move these properties into `BindingProperties`.
 - Add some of the supported producer/consumer properties into BindingProperties

- This fixes #256

Rename CommonBinderProperties -> BinderPropertyKeys

Rename class AbstractBinderPropertiesAccessor.java -> AbstractBindingPropertiesAccessor.java
2015-12-30 14:08:56 -05:00
Mark Pollack
373dd12fbb Change remoteRepositories default to libs-snapshot post release 2015-12-22 10:45:43 -05:00
Ilayaperumal Gopinathan
e858e0ba81 Correct BindingProperties' toString() 2015-12-22 20:37:57 +05:30
Ilayaperumal Gopinathan
2df173202d Fix PartitionedConsumerTest's local variable name 2015-12-22 19:52:14 +05:30
Ilayaperumal Gopinathan
62865679a7 Remove tap sample
Use correct URL
2015-12-22 00:22:06 -05:00
Mark Pollack
b9b09b08b8 Change remoteRepositories default to libs-milestone for M3 release 2015-12-21 18:00:53 -05:00
Mark Fisher
98863db7c2 reverted to snapshot repo for module resolution 2015-12-21 17:07:34 -05:00
bamboo
b869cb8c4b [artifactory-release] Next development version 2015-12-21 17:18:25 +00:00
bamboo
f3d46fc120 [artifactory-release] Release version 1.0.0.M3 2015-12-21 17:18:25 +00:00
Mark Pollack
17d49bebde Default repository location for ModuleResolverProperties should be libs-milestone 2015-12-21 11:53:48 -05:00
Ilayaperumal Gopinathan
7550a89a25 Fix doc 2015-12-21 13:25:21 +05:30
Gary Russell
7ee5df4033 RabbitMQ Cleanup (New Tests).
Simple polishing.
2015-12-18 22:24:12 -05:00
Ilayaperumal Gopinathan
100a68c1bf GH-196 Add Message History Tracking
- Add `MessageChannelConfigurer` that any class that configures the message channel would implement
   - Have `message-converter` and `message-history-tracking` configurer implement this interface
  - Autowire all available configurers and use them to configure the message channel
  - For the message history tracking
    - add `channel-binding` properties as part of message header along with `timestamp`

 - Introduce CompositeMessageChannelConfigurer

Remove field injection of messageChannelConfigurer

Add tests for message track history configurer

Add content-type configurer test

Address review comments

 - Add `toString` to BindingProperties
 - Add test case to depict producer/consumer properties

Remove processor channels from tests
2015-12-18 20:13:40 -05:00
Mark Pollack
001ad52f4a Add additional doc correction 2015-12-18 16:59:29 -05:00
Marius Bogoevici
7b077817e5 GH-240 GH-235 Documentation review, partitioning
* Add multibinder docs

Resolves #240, #235
2015-12-18 16:52:39 -05:00
Mark Pollack
56f6874627 Update to spring-cloud-commons 1.1.0.M3 2015-12-18 10:59:13 -05:00
Mark Pollack
fb215413e8 Use small jre8 docker image for module launcher 2015-12-18 10:51:42 -05:00
Eric Bottard
286ba44ff1 Remove TODOs 2015-12-18 16:44:08 +01:00
Mark Pollack
de2463a4e6 Update to spring-cloud-build 1.1.0.M4 and spring-cloud-common 1.1.0.M3
* tidy up pom to remove redundant section
* provide simple fall back for building non branch changes in travis
* Add -s .settings.xml to .mvn/maven.config
2015-12-18 10:34:04 -05:00
Mark Fisher
9dfa9c9218 renamed ChannelFactory to BindableChannelFactory
This clarifies the contract as this interface is intended for
creation/configuration of the bindable channels only.
2015-12-18 09:17:27 -05:00
Ilayaperumal Gopinathan
3afa3d8bd3 Remove configuring shared message channel
Simplify ChannelFactory interface

 - Use separate methods for each message channel type (Subscribable/Pollable)
2015-12-18 09:07:48 -05:00
Mark Pollack
13247b191a Build docs on PR requests in Travis CI 2015-12-17 22:39:11 -05:00
Gary Russell
2672858982 GH-236: EmbeddedHeadersMessageConverter Multibyte
Fixes #236

Buffer overflow when converting multi-byte characters from
Unicode to UTF-8.
2015-12-17 19:28:51 -05:00
Gary Russell
cd8a9ffd16 GH-234: Update SI to 4.2.4.RELEASE
Resolves #234
2015-12-17 19:07:17 -05:00
Mark Fisher
df1817cc51 polishing 2015-12-17 18:38:35 -05:00
Marius Bogoevici
a4f97b364e Binders with default settings inherit from module's configuration
Resolve #229

* Optimizes connection factory creation for binders that can use Boot's autoconfiguration
* Make binder contexts a child of main context when creating a Binder with default configuration settings
* Inherit environment from main context when the Binder context is not a child, and make that optional
* Default environment inheritance to true
* Tests
2015-12-17 11:51:10 -05:00
Dave Syer
44d3fa4a90 Inherit Environment from main context when creating a Binder
The DefaultBinderFactory makes use of SpringApplicationBuilder to
build a context containing a binder. It has access to the Environment
of the surrounding context, but doesn't use it, and doesn't use it
(before this change). Users will be surprised if (for instance) they
change the default rabbitmq hostname and the change doesn't propagate
to the binder.
2015-12-17 15:00:19 +00:00
Eric Bottard
81b04de222 Expose configuration metadata groups 2015-12-15 10:39:41 -05:00
Mark Pollack
c96c6fcd22 Add -s .settings.xml back to .travis.yml maven command 2015-12-11 17:23:24 -05:00
Marius Bogoevici
bf178360ee Remove autoconfig
Ensure that the autoconfig and the cloud config don't overlap

Removed SeedConfiguration
2015-12-10 13:35:26 -05:00
Marius Bogoevici
029cacb419 Make error message check on converter missing more lenient in tuple tests 2015-12-10 12:59:36 -05:00
Mark Pollack
e7712bf122 Travis updates
* No need to reference .settings.xml as it is picked up automatically
* Switch to force snapshot updates on PR builds
2015-12-10 11:04:32 -05:00
Marius Bogoevici
a4fe3efaef Disabling SpringApplicationAdmin for binders, as they are under the control of the main application 2015-12-09 17:58:12 -05:00
Mark Pollack
1336440533 Add maven based docs, remove ./docs directory 2015-12-09 16:28:37 -05:00
Gary Russell
d64a2e1335 GH-224: Update to SI 4.2.3.RELEASE
resolves #224
2015-12-09 15:08:57 -05:00