commit | 2e2bac0859a735188709969e5dd336eddc657d69 | [log] [tgz] |
---|---|---|
author | Hugo Arès <hugo.ares@ericsson.com> | Fri Nov 21 15:44:29 2014 -0500 |
committer | Hugo Arès <hugo.ares@ericsson.com> | Fri Nov 21 16:01:50 2014 -0500 |
tree | 8b1ce47062ac1bf988074c7d77db6bfae21d8d66 | |
parent | 1ad2d7fe38194e776a476cd21a5ac7db89413dd9 [diff] |
Add @Singleton to Properties class Prevent loading the plugin configuration more than once. Before this change, configuration file was loaded every time the Properties class is injected into another class. Now the same instance in injected into any class that depends on it so the configurations file in no longer loaded multiple times. Properties can be concurrently accessed so synchronize the getBasicProperties method to prevent concurrent lazy loading of the properties map.
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 or later.
linux
java-1.7
gradle
To build plugin with gradle.
./gradlew build
Now avaliable for Gerrit 2.8.5 only. If you want to use it on another version of Gerrit, please try the below.
./gradlew build -PapiVersion=2.8
[amqp] uri = amqp://localhost [exchange] name = exchange-for-gerrit-queue [message] routingKey = com.foobar.www.gerrit [gerrit] name = foobar-gerrit hostname = www.foobar.com
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