defaults.h

Go to the documentation of this file.
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.
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.1  2004/11/01 12:27:12  alextingle
00031   New EventChannel parameter `PullRetryPeriod_ms' supercedes `PullRetryPeriod'.
00032   The new parameter is set by `eventc -R'. The old parameter and its `-r'
00033   option still work as before, for backwards compatibility.
00034 
00035   Revision 1.7  2004/07/26 20:50:39  alextingle
00036   Version --> 2.5.4
00037 
00038   Revision 1.6  2004/07/06 12:46:34  alextingle
00039   Moved default macros into defaults.h
00040 
00041   Revision 1.5  2004/05/28 10:11:37  alextingle
00042   Added a comment.
00043 
00044   Revision 1.4  2004/04/19 22:04:29  alextingle
00045   Corrected default CyclePeriod to 0.1s
00046 
00047   Revision 1.3  2004/03/28 01:01:21  alextingle
00048   New QoS parameters: CyclePeriod_ns and InsName.
00049 
00050   Revision 1.2  2004/01/11 16:57:26  alextingle
00051   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.
00052 
00053   Revision 1.1  2003/12/21 16:19:49  alextingle
00054   Moved into 'src' directory as part of the change to POA implementation.
00055 
00056   Revision 1.2  2003/11/03 22:36:48  alextingle
00057   Updated License to GNU Lesser General Public v2.1
00058 
00059   Revision 1.1.1.1  2002/09/25 19:00:32  shamus13
00060   Import of OmniEvents source tree from release 2.1.1
00061 
00062   Revision 1.1  2000/09/05 01:07:40  naderp
00063   Added MaxQueueLength QOS.
00064 
00065   Revision 1.0  1999/11/01 16:48:08  naderp
00066   Initial revision
00067 
00068 */
00069 
00070 #ifndef _DEFAULTS_H_
00071 #define _DEFAULTS_H_
00072 
00073 #define PULL_RETRY_PERIOD_MS 1000 
00074 #define MAX_QUEUE_LENGTH     1023
00075 #define MAX_NUM_PROXIES      1024 
00076 #define CYCLE_PERIOD_NS      100000000 
00077 
00078 
00085 #if defined(__WIN32__)
00086 #  define OMNIEVENTS_LOG_DEFAULT_LOCATION "C:\\omniEvents"
00087 #elif defined(__VMS) // What is a good default for VMS?
00088 #  define OMNIEVENTS_LOG_DEFAULT_LOCATION "[]"
00089 #else // Unix
00090 #  define OMNIEVENTS_LOG_DEFAULT_LOCATION "/var/lib/omniEvents"
00091 #endif
00092 
00097 #define OMNIEVENTS_LOGDIR_ENV_VAR "OMNIEVENTS_LOGDIR"
00098 
00108 #define OMNIEVENTS_LOG_CHECKPOINT_PERIOD (15*60)
00109 
00110 #endif // _DEFAULTS_H_

Generated on Mon Jan 9 03:52:13 2006 for OmniEvents by  doxygen 1.4.6