EC_Defaults.h

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 /**
00003  *  @file   EC_Defaults.h
00004  *
00005  *  EC_Defaults.h,v 1.15 2005/08/25 16:08:55 cleeland Exp
00006  *
00007  * In this file we set the compile time defaults for the event
00008  * channel.
00009  *
00010  *  @author Carlos O'Ryan (coryan@cs.wustl.edu)
00011  *
00012  * Based on previous work by Tim Harrison (harrison@cs.wustl.edu) and
00013  * other members of the DOC group. More details can be found in:
00014  *
00015  * http://doc.ece.uci.edu/~coryan/EC/index.html
00016  */
00017 
00018 #ifndef TAO_EC_DEFAULTS_H
00019 #define TAO_EC_DEFAULTS_H
00020 
00021 #include /**/ "ace/pre.h"
00022 
00023 #ifndef TAO_EC_ENABLE_DEBUG_MESSAGES
00024 #define TAO_EC_ENABLE_DEBUG_MESSAGES 0
00025 #endif /* TAO_EC_ENABLE_DEBUG_MESSAGES */
00026 
00027 // Any of the definitions below can be overriden in the config.h file
00028 // or the compilation line.
00029 
00030 // Control consumer and supplier reconnections
00031 #ifndef  TAO_EC_DEFAULT_CONSUMER_RECONNECT
00032 # define TAO_EC_DEFAULT_CONSUMER_RECONNECT 0
00033 #endif /*  TAO_EC_DEFAULT_CONSUMER_RECONNECT */
00034 
00035 #ifndef TAO_EC_DEFAULT_SUPPLIER_RECONNECT
00036 #define TAO_EC_DEFAULT_SUPPLIER_RECONNECT 0
00037 #endif /* TAO_EC_DEFAULT_SUPPLIER_RECONNECT */
00038 
00039 // Control callbacks when proxies are disconnected
00040 #ifndef TAO_EC_DEFAULT_DISCONNECT_CALLBACKS
00041 # define TAO_EC_DEFAULT_DISCONNECT_CALLBACKS 0
00042 #endif /* TAO_EC_DEFAULT_DISCONNECT_CALLBACKS */
00043 
00044 // The defaults for the default factory.
00045 // The TAO_EC_Default_Factory is a run-time configurable factory for
00046 // the event channel.  Using the service configurator the user can
00047 // specify what strategies should the factory produce.
00048 // This macros control the default values for those strategies.
00049 //
00050 #ifndef TAO_EC_DEFAULT_DISPATCHING
00051 # define TAO_EC_DEFAULT_DISPATCHING 0         /* reactive */
00052 #endif /* TAO_EC_DEFAULT_DISPATCHING */
00053 
00054 #ifndef TAO_EC_DEFAULT_CONSUMER_FILTER
00055 # define TAO_EC_DEFAULT_CONSUMER_FILTER 1     /* type, disj. conj. timers */
00056 #endif /* TAO_EC_DEFAULT_CONSUMER_FILTER */
00057 
00058 #ifndef TAO_EC_DEFAULT_SUPPLIER_FILTER
00059 # define TAO_EC_DEFAULT_SUPPLIER_FILTER 1     /* per supplier */
00060 #endif /* TAO_EC_DEFAULT_SUPPLIER_FILTER */
00061 
00062 #ifndef TAO_EC_DEFAULT_TIMEOUT
00063 # define TAO_EC_DEFAULT_TIMEOUT 0             /* reactive */
00064 #endif /* TAO_EC_DEFAULT_TIMEOUT */
00065 
00066 #ifndef TAO_EC_DEFAULT_OBSERVER
00067 # define TAO_EC_DEFAULT_OBSERVER 0            /* null */
00068 #endif /* TAO_EC_DEFAULT_OBSERVER */
00069 
00070 #ifndef TAO_EC_DEFAULT_SCHEDULING
00071 # define TAO_EC_DEFAULT_SCHEDULING 0          /* null */
00072 #endif /* TAO_EC_DEFAULT_SCHEDULING */
00073 
00074 #ifndef TAO_EC_DEFAULT_CONSUMER_COLLECTION
00075 # define TAO_EC_DEFAULT_CONSUMER_COLLECTION 0x001 /* copy-on-read MT-safe */
00076 #endif /* TAO_EC_DEFAULT_CONSUMER_COLLECTION */
00077 
00078 #ifndef TAO_EC_DEFAULT_SUPPLIER_COLLECTION
00079 # define TAO_EC_DEFAULT_SUPPLIER_COLLECTION 0x001 /* copy-on-read MT-safe */
00080 #endif /* TAO_EC_DEFAULT_SUPPLIER_COLLECTION */
00081 
00082 #ifndef TAO_EC_DEFAULT_CONSUMER_LOCK
00083 # define TAO_EC_DEFAULT_CONSUMER_LOCK 1       /* thread */
00084 #endif /* TAO_EC_DEFAULT_CONSUMER_LOCK */
00085 
00086 #ifndef TAO_EC_DEFAULT_SUPPLIER_LOCK
00087 # define TAO_EC_DEFAULT_SUPPLIER_LOCK 1       /* thread */
00088 #endif /* TAO_EC_DEFAULT_SUPPLIER_LOCK */
00089 
00090 #ifndef TAO_EC_DEFAULT_DISPATCHING_THREADS
00091 # define TAO_EC_DEFAULT_DISPATCHING_THREADS 1 /* */
00092 #endif /* TAO_EC_DEFAULT_DISPATCHING_THREADS */
00093 
00094 #ifndef TAO_EC_DEFAULT_DISPATCHING_THREADS_FLAGS
00095 # define TAO_EC_DEFAULT_DISPATCHING_THREADS_FLAGS THR_NEW_LWP|THR_SCHED_FIFO
00096 #endif /* TAO_EC_DEFAULT_DISPATCHING_THREADS */
00097 
00098 #ifndef TAO_EC_DEFAULT_DISPATCHING_THREADS_PRIORITY
00099 # define TAO_EC_DEFAULT_DISPATCHING_THREADS_PRIORITY 0 /* */
00100 #endif /* TAO_EC_DEFAULT_DISPATCHING_THREADS_PRIORITY */
00101 
00102 #ifndef TAO_EC_DEFAULT_DISPATCHING_THREADS_FORCE_ACTIVE
00103 # define TAO_EC_DEFAULT_DISPATCHING_THREADS_FORCE_ACTIVE 1
00104 #endif /* TAO_EC_DEFAULT_DISPATCHING_THREADS_FORCE_ACTIVE */
00105 
00106 #ifndef TAO_EC_DEFAULT_ORB_ID
00107 # define TAO_EC_DEFAULT_ORB_ID "" /* */
00108 #endif /* TAO_EC_DEFAULT_ORB_ID */
00109 
00110 #ifndef TAO_EC_DEFAULT_CONSUMER_CONTROL
00111 # define TAO_EC_DEFAULT_CONSUMER_CONTROL 0 /* null */
00112 #endif /* TAO_EC_DEFAULT_CONSUMER_CONTROL */
00113 
00114 #ifndef TAO_EC_DEFAULT_SUPPLIER_CONTROL
00115 # define TAO_EC_DEFAULT_SUPPLIER_CONTROL 0 /* null */
00116 #endif /* TAO_EC_DEFAULT_SUPPLIER_CONTROL */
00117 
00118 #ifndef TAO_EC_DEFAULT_CONSUMER_CONTROL_PERIOD
00119 # define TAO_EC_DEFAULT_CONSUMER_CONTROL_PERIOD 5000000 /* usecs */
00120 #endif /* TAO_EC_DEFAULT_CONSUMER_CONTROL_PERIOD */
00121 
00122 #ifndef TAO_EC_DEFAULT_SUPPLIER_CONTROL_PERIOD
00123 # define TAO_EC_DEFAULT_SUPPLIER_CONTROL_PERIOD 5000000 /* usecs */
00124 #endif /* TAO_EC_DEFAULT_SUPPLIER_CONTROL_PERIOD */
00125 
00126 #ifndef TAO_EC_DEFAULT_QUEUE_FULL_SERVICE_OBJECT_NAME
00127 # define TAO_EC_DEFAULT_QUEUE_FULL_SERVICE_OBJECT_NAME "EC_QueueFullSimpleActions"
00128 #endif /* TAO_EC_DEFAULT_QUEUE_FULL_SERVICE_OBJECT_NAME */
00129 
00130 #ifndef TAO_EC_DEFAULT_CONSUMER_CONTROL_TIMEOUT
00131 # define TAO_EC_DEFAULT_CONSUMER_CONTROL_TIMEOUT 10000 /* usecs */
00132 #endif /* TAO_EC_DEFAULT_CONSUMER_CONTROL_TIMEOUT */
00133 
00134 #ifndef TAO_EC_DEFAULT_SUPPLIER_CONTROL_TIMEOUT
00135 # define TAO_EC_DEFAULT_SUPPLIER_CONTROL_TIMEOUT 10000 /* usecs */
00136 #endif /* TAO_EC_DEFAULT_SUPPLIER_CONTROL_TIMEOUT */
00137 
00138 #ifndef TAO_EC_DEFAULT_CONSUMER_VALIDATE_CONNECTION
00139 # define TAO_EC_DEFAULT_CONSUMER_VALIDATE_CONNECTION 0 /* no validation */
00140 #endif /* TAO_EC_DEFAULT_CONSUMER_VALIDATE_CONNECTION */
00141 
00142 #include /**/ "ace/post.h"
00143 
00144 #endif /* TAO_EC_DEFAULTS_H */

Generated on Thu Nov 9 13:11:06 2006 for TAO_RTEvent by doxygen 1.3.6