OmniEvents
defaults.h
Go to the documentation of this file.
1 // -*- Mode: C++; -*-
2 // Package : omniEvents
3 // defaults.h Created : 1/10/99
4 // Author : Paul Nader (pwn)
5 //
6 // Copyright (C) 1998 Paul Nader, 2004 Alex Tingle.
7 //
8 // This file is part of the omniEvents application.
9 //
10 // omniEvents is free software; you can redistribute it and/or
11 // modify it under the terms of the GNU Lesser General Public
12 // License as published by the Free Software Foundation; either
13 // version 2.1 of the License, or (at your option) any later version.
14 //
15 // omniEvents is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 // Lesser General Public License for more details.
19 //
20 // You should have received a copy of the GNU Lesser General Public
21 // License along with this library; if not, write to the Free Software
22 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 //
24 // Description:
25 //
26 // Contains definitions of default values.
27 
28 /*
29  $Log: defaults.h,v $
30  Revision 1.7.2.2 2005/05/10 14:28:10 alextingle
31  Updated copyrights to 2005.
32 
33  Revision 1.7.2.1 2004/11/01 12:27:12 alextingle
34  New EventChannel parameter `PullRetryPeriod_ms' supercedes `PullRetryPeriod'.
35  The new parameter is set by `eventc -R'. The old parameter and its `-r'
36  option still work as before, for backwards compatibility.
37 
38  Revision 1.7 2004/07/26 20:50:39 alextingle
39  Version --> 2.5.4
40 
41  Revision 1.6 2004/07/06 12:46:34 alextingle
42  Moved default macros into defaults.h
43 
44  Revision 1.5 2004/05/28 10:11:37 alextingle
45  Added a comment.
46 
47  Revision 1.4 2004/04/19 22:04:29 alextingle
48  Corrected default CyclePeriod to 0.1s
49 
50  Revision 1.3 2004/03/28 01:01:21 alextingle
51  New QoS parameters: CyclePeriod_ns and InsName.
52 
53  Revision 1.2 2004/01/11 16:57:26 alextingle
54  New persistancy log file format, implemented by PersistNode.h/cc. The new format enables new nodes to be added and old ones erased by appending a single line to the file, rather than by re-persisting the whole application. This is much more efficient when lots of proxies are being created all at once. It's also a much simpler solution, with far fewer lines of code.
55 
56  Revision 1.1 2003/12/21 16:19:49 alextingle
57  Moved into 'src' directory as part of the change to POA implementation.
58 
59  Revision 1.2 2003/11/03 22:36:48 alextingle
60  Updated License to GNU Lesser General Public v2.1
61 
62  Revision 1.1.1.1 2002/09/25 19:00:32 shamus13
63  Import of OmniEvents source tree from release 2.1.1
64 
65  Revision 1.1 2000/09/05 01:07:40 naderp
66  Added MaxQueueLength QOS.
67 
68  Revision 1.0 1999/11/01 16:48:08 naderp
69  Initial revision
70 
71 */
72 
73 #ifndef _DEFAULTS_H_
74 #define _DEFAULTS_H_
75 
76 #define PULL_RETRY_PERIOD_MS 1000
77 #define MAX_QUEUE_LENGTH 1023
78 #define MAX_NUM_PROXIES 1024
79 #define CYCLE_PERIOD_NS 100000000
80 
88 #if defined(__WIN32__)
89 # define OMNIEVENTS_LOG_DEFAULT_LOCATION "C:\\omniEvents"
90 #elif defined(__VMS) // What is a good default for VMS?
91 # define OMNIEVENTS_LOG_DEFAULT_LOCATION "[]"
92 #else // Unix
93 # define OMNIEVENTS_LOG_DEFAULT_LOCATION "/var/lib/omniEvents"
94 #endif
95 
100 #define OMNIEVENTS_LOGDIR_ENV_VAR "OMNIEVENTS_LOGDIR"
101 
111 #define OMNIEVENTS_LOG_CHECKPOINT_PERIOD (15*60)
112 
113 #endif // _DEFAULTS_H_