java-dest: create java destination initial commit

Signed-off-by: Viktor Juhász <viktor.juhasz@balabit.com>
java-dest: make it possible to run, more than one java destination

Signed-off-by: Viktor Juhász <viktor.juhasz@balabit.com>
java-dest: remove -Werror

Signed-off-by: Viktor Juhász <viktor.juhasz@balabit.com>
java-dest: eliminate message leaking

Signed-off-by: Viktor Juhász <viktor.juhasz@balabit.com>
java-dest: rename the libjava.so to libmod-java.so, beacuse libjava.so causes problems :)

Signed-off-by: Viktor Juhász <viktor.juhasz@balabit.com>
java-dest: follow the interface modifications done in version 3.6

Signed-off-by: Viktor Juhász <viktor.juhasz@balabit.com>
java-dest: indentation is corrected

Signed-off-by: Viktor Juhász <viktor.juhasz@balabit.com>
java-dest: add new function flush. This is required for bulk methods.

Signed-off-by: Viktor Juhász <viktor.juhasz@balabit.com>
java-dest: add custom options possibility to java destination.

The getter is implemented in JNI therefore the future java destinations
must extend the SyslogNgInterface abstract class. But it is generated under
the make install process.

Signed-off-by: Viktor Juhász <viktor.juhasz@balabit.com>
java-dest: add elasticsearch beta1

Signed-off-by: Viktor Juhász <jviktor@balabit.com>
java-dest: modification after review step 1. Implement JavaDestinationProxy

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>
java-dest: corrrections after review.

Now, java destination do not catch the signals, it survives the reload.
The jni interface handling moved into a JavaDestinationProxy object.

Classloader helps to load classes with addition class path.

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>
java-dest: add java files to the list of extra dists

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>
java-dest: the classloader should be a specific per destination,

but it should use the same ClassLoader for loading all the classes,
else the objects can't use each other.

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>
java-dest: use name-value pair as string in option instead of previous option,

because with this solution won't run into error in case of reserved word.
e.g.: options(key(value)) config parsing error, because key and value are both
reserved words.

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>
java-dest: elasticsearch example updated for the new interface

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>
java-dest: modify destination dir for SyslogNg.jar

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>
java-dest: correction of make distcheck error

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>
java-dest: updated elasticsearch sample destination

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>
java-dest: updated elasticsearch destination's sample config.

Following options are available:
- server: the name or ip address of the elasticsearch server (default: localhost)
- port: the port number of the elasticsearch server's native client port (default: 9300)
- cluster: name of the cluster (no default, required)
- index: name of the index (no default, required)
- type: name of the type (in sql table) (no default, required)