<commit_before>flume-rabbitmq-sink
===================

* Author: rinrinne a.k.a. rin_ne
* Repository: https://github.com/rinrinne/flume-rabbitmq-sink.git

Synopsis
-------------------

This is a flume sink for RabbitMQ. Mainly used as publisher for Gerrit Trigger.

* [Jenkins]
* [Gerrit Trigger]
* [RabbitMQ Consumer]

[Jenkins]: http://jenkins-ci.org/
[Gerrit Trigger]: https://wiki.jenkins-ci.org/display/JENKINS/Gerrit+Trigger
[RabbitMQ Consumer]: https://wiki.jenkins-ci.org/display/JENKINS/RabbitMQ+Consumer+Plugin

Environments
-------------------

* `linux`
  * `java-1.6`
    * `gradle`

Build
-------------------

TO build library with gradle.

    ./gradlew build

How to setup in agent config
-------------------

```ini
<Agent>.sinks = <Sink1>
<Agent>.sinks.<Sink1>.type = jp.glassmoon.flume.sink.rabbitmq.RabbitMQSink
```

Configuration
-------------------

**Bold** is string value.

|name              | default value
|:-----------------|:-----------------
|uri               | **amqp://localhost**
|username          | **guest**
|password          | **<PASSWORD>**
|exchange          | **gerrit.publish**
|routingKey        | **(Empty)**
|deliveryMode      | 1
|priority          | 0
|appId             | **(Empty)**
|contentEncoding   | **UTF-8**
|contentType       | **application/octet-stream**

License
-------------------<commit_msg>Add note<commit_after>flume-rabbitmq-sink
===================

* Author: rinrinne a.k.a. rin_ne
* Repository: https://github.com/rinrinne/flume-rabbitmq-sink.git

Synopsis
-------------------

This is a flume sink for RabbitMQ. Mainly used as publisher for Gerrit Trigger.

* [Jenkins]
* [Gerrit Trigger]
* [RabbitMQ Consumer]

[Jenkins]: http://jenkins-ci.org/
[Gerrit Trigger]: https://wiki.jenkins-ci.org/display/JENKINS/Gerrit+Trigger
[RabbitMQ Consumer]: https://wiki.jenkins-ci.org/display/JENKINS/RabbitMQ+Consumer+Plugin

Environments
-------------------

* `linux`
  * `java-1.6`
    * `gradle`

Build
-------------------

TO build library with gradle.

    ./gradlew build

How to setup in agent config
-------------------

```ini
<Agent>.sinks = <Sink1>
<Agent>.sinks.<Sink1>.type = jp.glassmoon.flume.sink.rabbitmq.RabbitMQSink
```

Configuration
-------------------

**Bold** is string value.

|name              | default value
|:-----------------|:-----------------
|uri               | **amqp://localhost**
|username          | **guest**
|password          | **<PASSWORD>**
|exchange          | **gerrit.publish**
|routingKey        | **(Empty)**
|deliveryMode      | 1
|priority          | 0
|appId             | **(Empty)**
|contentEncoding   | **UTF-8**
|contentType       | **application/octet-stream**

If you use this together with [Gerrit Trigger], you must replace `contentType` to `application/json`.

License
-------------------
{'fraction_non_alphanumeric': 0.2523131672597865, 'fraction_numerical': 0.00498220640569395, 'mean_word_length': 2.1129568106312293, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3448550', 'n_tokens_mistral': 954, 'n_tokens_neox': 894, 'n_words': 189}