syslog-ng source
java-destination.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Balabit
3  * Copyright (c) 2014 Viktor Juhasz <viktor.juhasz@balabit.com>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  *
19  * As an additional exemption you are allowed to compile & link against the
20  * OpenSSL libraries as published by the OpenSSL project. See the file
21  * COPYING for details.
22  *
23  */
24 
25 #ifndef MODJAVA_H_INCLUDED
26 #define MODJAVA_H_INCLUDED
27 
28 #include <jni.h>
29 #include <iv.h>
30 #include <iv_event.h>
31 #include "driver.h"
33 #include "logqueue.h"
34 #include "mainloop.h"
35 #include "mainloop-io-worker.h"
36 #include "java_machine.h"
38 
39 
40 
41 typedef struct
42 {
43  LogThreadedDestDriver super;
44  JavaDestinationProxy *proxy;
45  GString *class_path;
46  gchar *class_name;
47  LogTemplate *template;
49  GHashTable *options;
50  LogTemplateOptions template_options;
52 
53 LogDriver *java_dd_new(GlobalConfig *cfg);
54 void java_dd_set_class_path(LogDriver *s, const gchar *class_path);
55 void java_dd_set_class_name(LogDriver *s, const gchar *class_name);
56 void java_dd_set_template_string(LogDriver *s, const gchar *template_string);
57 void java_dd_set_retries(LogDriver *s, guint retries);
58 void java_dd_set_option(LogDriver *s, const gchar *key, const gchar *value);
59 LogTemplateOptions *java_dd_get_template_options(LogDriver *s);
60 
61 #endif
gchar * template_string
Definition: dqtool.c:46
LogDriver * java_dd_new(GlobalConfig *cfg)
Definition: java-destination.c:293
void java_dd_set_retries(LogDriver *s, guint retries)
void java_dd_set_template_string(LogDriver *s, const gchar *template_string)
Definition: java-destination.c:128
void java_dd_set_option(LogDriver *s, const gchar *key, const gchar *value)
Definition: java-destination.c:104
void java_dd_set_class_name(LogDriver *s, const gchar *class_name)
Definition: java-destination.c:120
void java_dd_set_class_path(LogDriver *s, const gchar *class_path)
Definition: java-destination.c:113
LogTemplateOptions * java_dd_get_template_options(LogDriver *s)
Definition: java-destination.c:285
Definition: java-destination.h:42
JavaDestinationProxy * proxy
Definition: java-destination.h:44
LogTemplateOptions template_options
Definition: java-destination.h:50
GString * class_path
Definition: java-destination.h:45
GHashTable * options
Definition: java-destination.h:49
gchar * template_string
Definition: java-destination.h:48
LogThreadedDestDriver super
Definition: java-destination.h:43
gchar * class_name
Definition: java-destination.h:46
GlobalConfig * cfg
Definition: test_batched_ack_tracker.c:34
GString * value
Definition: test_decode.c:28
struct tm key
Definition: cache.c:63