commit | f4bfb97bfbd00b5e0aac8e65b2302d17d9361ebc | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Tue Jun 21 11:42:33 2016 +0100 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Tue Jun 21 11:50:53 2016 +0100 |
tree | 152cf91c9aeaa06ed3ec7cf2390cf7fae2ce945f | |
parent | 944de90c873717926d843a0d79f3f8989f5e5c7f [diff] |
Inject Gson serializer with Supplier<T> management Gerrit master uses a Supplier<T> pattern to get hold of the event's data and we need to use the same mechanism to serialize it to RabbitMQ stream events. Without this change, the RabbitMQ stream events are broken as they would only receive blank fields, which is the result of default serialization of Supplier<T> Change-Id: I4efa51c0d6cd06523882e631d3e717b6c1d858ee
This is Gerrit plugin.
This can publish gerrit events to message queue provided by RabbitMQ. Published events are the same as Gerrit stream evnets.
This plugin works on Gerrit 2.8 - 2.10.
linux
java-1.7
Buck
Clone or link this plugin to the plugins directory of Gerrit's source tree, and issue the command:
buck build plugins/rabbitmq
The output is created in
buck-out/gen/plugins/rabbitmq/rabbitmq.jar
[amqp] uri = amqp://localhost [exchange] name = exchange-for-gerrit-queue [message] routingKey = com.foobar.www.gerrit [gerrit] name = foobar-gerrit hostname = www.foobar.com
3.14 (Freezed)
stable-2.10
master
is permanently latest but would not be updated by author anymore.3.1
3.0
2.0
1.4
1.3
1.2
1.1
monitor.failureCount
1.0
The Apache Software License, Version 2.0
Copyright (c) 2013 rinrinne a.k.a. rin_ne