00001 // -*- Mode: C++; -*- 00002 // Package : omniEvents 00003 // defaults.h Created : 1/10/99 00004 // Author : Paul Nader (pwn) 00005 // 00006 // Copyright (C) 1998 Paul Nader, 2004 Alex Tingle. 00007 // 00008 // This file is part of the omniEvents application. 00009 // 00010 // omniEvents is free software; you can redistribute it and/or 00011 // modify it under the terms of the GNU Lesser General Public 00012 // License as published by the Free Software Foundation; either 00013 // version 2.1 of the License, or (at your option) any later version. 00014 // 00015 // omniEvents is distributed in the hope that it will be useful, 00016 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 // Lesser General Public License for more details. 00019 // 00020 // You should have received a copy of the GNU Lesser General Public 00021 // License along with this library; if not, write to the Free Software 00022 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00023 // 00024 // Description: 00025 // 00026 // Contains definitions of default values. 00027 00028 /* 00029 $Log: defaults.h,v $ 00030 Revision 1.7.2.2 2005/05/10 14:28:10 alextingle 00031 Updated copyrights to 2005. 00032 00033 Revision 1.7.2.1 2004/11/01 12:27:12 alextingle 00034 New EventChannel parameter `PullRetryPeriod_ms' supercedes `PullRetryPeriod'. 00035 The new parameter is set by `eventc -R'. The old parameter and its `-r' 00036 option still work as before, for backwards compatibility. 00037 00038 Revision 1.7 2004/07/26 20:50:39 alextingle 00039 Version --> 2.5.4 00040 00041 Revision 1.6 2004/07/06 12:46:34 alextingle 00042 Moved default macros into defaults.h 00043 00044 Revision 1.5 2004/05/28 10:11:37 alextingle 00045 Added a comment. 00046 00047 Revision 1.4 2004/04/19 22:04:29 alextingle 00048 Corrected default CyclePeriod to 0.1s 00049 00050 Revision 1.3 2004/03/28 01:01:21 alextingle 00051 New QoS parameters: CyclePeriod_ns and InsName. 00052 00053 Revision 1.2 2004/01/11 16:57:26 alextingle 00054 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. 00055 00056 Revision 1.1 2003/12/21 16:19:49 alextingle 00057 Moved into 'src' directory as part of the change to POA implementation. 00058 00059 Revision 1.2 2003/11/03 22:36:48 alextingle 00060 Updated License to GNU Lesser General Public v2.1 00061 00062 Revision 1.1.1.1 2002/09/25 19:00:32 shamus13 00063 Import of OmniEvents source tree from release 2.1.1 00064 00065 Revision 1.1 2000/09/05 01:07:40 naderp 00066 Added MaxQueueLength QOS. 00067 00068 Revision 1.0 1999/11/01 16:48:08 naderp 00069 Initial revision 00070 00071 */ 00072 00073 #ifndef _DEFAULTS_H_ 00074 #define _DEFAULTS_H_ 00075 00076 #define PULL_RETRY_PERIOD_MS 1000 00077 #define MAX_QUEUE_LENGTH 1023 00078 #define MAX_NUM_PROXIES 1024 00079 #define CYCLE_PERIOD_NS 100000000 00080 00081 00088 #if defined(__WIN32__) 00089 # define OMNIEVENTS_LOG_DEFAULT_LOCATION "C:\\omniEvents" 00090 #elif defined(__VMS) // What is a good default for VMS? 00091 # define OMNIEVENTS_LOG_DEFAULT_LOCATION "[]" 00092 #else // Unix 00093 # define OMNIEVENTS_LOG_DEFAULT_LOCATION "/var/lib/omniEvents" 00094 #endif 00095 00100 #define OMNIEVENTS_LOGDIR_ENV_VAR "OMNIEVENTS_LOGDIR" 00101 00111 #define OMNIEVENTS_LOG_CHECKPOINT_PERIOD (15*60) 00112 00113 #endif // _DEFAULTS_H_