Log the queue size before and after journal rotation, to see if rotation is killing us.
[lwes-journaller.git] / src / opt.h
blob9a3559b999a80a6a30da92a9b9eee1c91215cea8
1 /*======================================================================*
2 * Copyright (C) 2008 Light Weight Event System *
3 * All rights reserved. *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program 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 *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the Free Software *
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, *
18 * Boston, MA 02110-1301 USA. *
19 *======================================================================*/
21 #ifndef OPT_DOT_H
22 #define OPT_DOT_H
24 extern int arg_args;
25 extern char* arg_basename;
26 extern const char* arg_interface;
27 /*TODO: extern int arg_interval;*/
28 extern const char* arg_ip;
29 extern int arg_join_group;
30 extern char** arg_journalls;
31 extern char* arg_disk_journals[10];
32 extern char* arg_journ_name;
33 extern const char* arg_journ_type;
34 extern char* arg_monitor_type;
35 extern int arg_log_level;
36 extern const char* arg_log_file;
37 extern int arg_njournalls;
38 extern int arg_nodaemonize;
39 extern int arg_nreaders;
40 extern const char* arg_pid_file;
41 extern int arg_port;
42 extern const char* arg_proc_type;
43 extern int arg_queue_max_cnt;
44 extern int arg_queue_max_sz;
45 extern const char* arg_queue_name;
46 extern const char* arg_queue_type;
47 extern int arg_rt;
48 extern int arg_site;
49 extern int arg_sockbuffer;
50 extern int arg_ttl;
51 extern int arg_journal_uid;
52 extern int arg_version;
53 extern const char* arg_xport;
55 #ifdef HAVE_MONDEMAND
56 extern const char* arg_mondemand_host;
57 extern const char* arg_mondemand_ip;
58 extern int arg_mondemand_port;
59 #endif
61 /* arg_proc_type: */
62 #define ARG_PROCESS "process"
63 #define ARG_THREAD "thread"
65 /* arg_queue_type: */
66 #define ARG_MQ "mq"
67 #define ARG_MSG "msg"
69 /* arg_journ_type: */
70 #define ARG_GZ "gz"
71 #define ARG_FILE "file"
73 /* arg_xport: */
74 #define ARG_UDP "udp"
76 void process_options(int argc, const char* argv[]);
78 #endif /* OPT_DOT_H */