1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <title>Real-Time Event Channel Configuration
</title>
10 <h1>Real-Time Event Channel Configuration
</h1>
13 <H3>Configuring the Event Channel at Compilation Time
</H3>
15 <P>TAO's Real-Time Event Channel can be configured at compilation
16 time to use a different payload than its default. To do so
17 there are several options:
21 <LI><P>To eliminate the
<CODE>CORBA::Any
</CODE> field in the
22 event payload you should define the
23 <CODE>TAO_LACKS_EVENT_CHANNEL_ANY
</CODE>
24 macro when invoking the IDL compiler.
25 You can do as follows:
27 $ cd $TAO_ROOT/orbsvcs/orbsvcs
28 $ make TAO_IDLFLAGS=-DTAO_LACKS_EVENT_CHANNEL_ANY
32 <LI><P>Similarly you can eliminate the octet sequence field in
33 the event payload using:
35 $ cd $TAO_ROOT/orbsvcs/orbsvcs
36 $ make TAO_IDLFLAGS=-DTAO_LACKS_EVENT_CHANNEL_OCTET_SEQUENCE
40 <LI><P>Finally you can provide your own event payload, to do
41 this you should Replace the contents of the
42 <CODE>RtecDefaultEventData.idl
</CODE>
43 and define some IDL structure named
44 <CODE>RtecEventData
</CODE>.
45 For example, you could define you own event type as follows:
47 // Replace RtecDefaultEventData.idl with this:
51 sequence
<long
> my_event_payload;
57 <H3>Run-time Configuration
</H3>
59 <P>The new implementation of the real-time event channel uses a
60 factory to build all the objects and strategies it requires.
61 The factory can be dynamically loaded using ACE Service
62 Configurator, this is extremely convenient because the factory
63 can also parse options in the Service Configurator script file.
66 <P>There are currently several implementations of the factory.
68 <li>The
<em>default
</em> factory supports all of
69 the options below and most of the potential values, except as
70 specifically indicated.
72 The
<em>sched
</em> factory defines new option values as indicated
73 below that allow the RTES to integrate with the Real-Time
74 Scheduling Service. Use of the
<em>sched
</em> factory requires
75 that you link in the TAO_RTSchedEvent library.
77 The
<em>tpc
</em> (thread per consumer) factory defines new
78 options values as indicated below. This
79 strategy is similar to the MT dispatching strategy in that it
80 separates the thread that receives the push() from a supplier
81 from the thread that does the eventual push() to the
82 consumer(s), but it differs from MT in that MT has a pool of
83 threads pulling from a single queue and ultimately potentially
84 servicing every consumer, whereas TPC has a queue for
<em>each
</em>
85 consumer and, thus, a single thread dedicated to pushing to that
86 consumer. This insures that a badly-behaved consumer
<b>CANNOT
</b>
87 have an adverse effect on the channel or supplier.
<br>
88 To use this new strategy you will have to replace the call in your code
89 for
<code>TAO_EC_Default_Factory::init_svcs()
</code> with
90 <code>TAO_EC_TPC_Factory::init_svcs()
</code>.
92 <li> The
<em>basic
</em> and
<em>null
</em> factories are hard-coded
93 factories that do not support any configuration options.
94 They both define simple configurations that may enable some
95 applications to use the RTES in a smaller footprint.
97 <code>$TAO_ROOT/orbsvcs/orbsvcs/Event/EC_Null_Factory.h
</code>
98 and
<code>$TAO_ROOT/orbsvcs/orbsvcs/Event/EC_Basic_Factory.h
</code>
103 <h3>Special Topic: Queue Configuration
</h3>
105 In certain configurations such as
<em>mt
</em> and
<em>tpc
</em>,
106 the RTES implementation uses something called
107 <code>TAO_EC_Queue
</code>, which is an in-memory queue that
108 separates threads that receive
<code>push()
</code> invocations
109 from suppliers from the threads that dispatch
110 <code>push()
</code> invocations to consumers. A user of the
111 RTES can configure some behaviors of this queue as well as
112 behaviors when the queue reaches certain trigger points. The
113 configuration of these behaviors is a combination of
114 compile-time and run-time specification.
117 The queue itself has two trigger points for the number of
118 invocations in the queue:
120 <li><em>low-water mark (LWM)
</em>, a lower threshold below which the
121 queue allows more invocations to be placed into the queue;
122 <li><em>high-water mark (HWM)
</em>, an upper threshold above which the
123 queue prevents more invocations from being added to the queue
125 The values for these can be set at compile time via
126 <code>TAO_EC_QUEUE_LWM
</code> and
<code>TAO_EC_QUEUE_HWM
</code>
127 for the low-water mark and high-water mark, respectively.
129 In addition, an application can specify what the RTES should do if a
130 queue reaches the HWM, i.e., fills up. This behavior is encapsulated in a
131 derivation of an
<code>ACE_Service_Object
</code>, called
132 <code>TAO_EC_Queue_Full_Service_Object
</code>. The RTES looks
133 for a service object of a particular name (the default for this
134 name is in macro TAO_EC_DEFAULT_QUEUE_FULL_SERVICE_OBJECT_NAME,
135 which is
"EC_QueueFullSimpleActions") and invokes
136 <code>queue_full_action()
</code> on the instance. See class
137 <code>TAO_EC_Simple_Queue_Full_Action
</code> in file
138 <code>$TAO_ROOT/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.h
</code>
139 for an example. This particular example can be configured to
140 either
<em>wait
</em> or
<em>discard
</em> new invocations on
144 <H3>The configuration file
</H3>
146 <P>The real-time event channel uses the same service configurator
147 file that the ORB uses, the default name for this file is
148 <CODE>svc.conf
</CODE>, but the ORB option
149 <CODE>-ORBSvcConf
</CODE> can be used to override this.
150 The format of the file is described in detail in
151 the service configurator documentation, but the relevant section
152 for the event channel looks like this:
156 # Comments go here...
157 # More comments if you want to...
158 static EC_Factory
"-ECFiltering basic ....."
159 # ...and optionally...
160 static EC_QueueFullSimpleActions
"[wait | discard]"
161 # ...or you can define your own TAO_EC_Queue_Full_Service_Object,
162 # give it whatever name you want and use -ECQueueFullServiceObject
163 # (see below) to specify that object's service configurator tag.
168 table below describes all of the options (and values) supported by
170 <P>All the event service factory options start with
176 <P><TABLE BORDER=
"2" CELLSPACING=
"2" CELLPADDING=
"0">
182 <!-- <TR NAME="ECDispatching"> -->
184 <TD><CODE>-ECDispatching
</CODE>
185 <EM>dispatching_strategy
</EM>
187 <TD>Select the dispatching strategy used by the real-time
188 event service. The
<EM>reactive
</EM> strategy uses the
189 same thread that received the event from the supplier to
190 push the event to all the consumers.
<br>
191 The
<EM>priority
</EM> strategy (sched factory only) uses
193 of threads and queries the scheduling service to select
194 the thread that dispatches each event.
<br>
195 The
<EM>mt
</EM> strategy also uses a pool of threads,
196 but the thread to dispatch is randomly selected.
<br>
197 <b>Does not apply to the
<em>tpc
</em> factory.
</b>
201 <!-- <TR NAME="ECDispatchingThreads"> -->
203 <TD><CODE>-ECDispatchingThreads
</CODE>
204 <EM>number_of_threads
</EM>
206 <TD>Select the number of threads used by the
<EM>mt
</EM>
207 dispatching strategy.
<br>
208 <b>Does not apply to the
<em>tpc
</em> factory.
</b>
211 <!-- <TR NAME="ECDispatchingThreadFlags"> -->
213 <td><code>-ECDispatchingThreadFlags
</code>
214 <em>thread_flags
</em><b>:
</b><em>thread_priority
</em>
217 Provide flags and priority used for creation of
218 dispatching threads.
<br>
219 <em>thread_flags
</em> is a set of
220 <code>THR_
</code> flags separated by the vertical bar
222 <code>THR_BOUND|THR_NEW_LWP|THR_SCOPE_SYSTEM
</code>.
224 <em>thread_priority
</em> is a numeric value indicating the
225 desired priority at which the thread should be created.
226 No range checking is performed on the value prior to
227 passing to the thread creation function. Also note that
228 priorities are platform-specific, so a valid value for a
229 given set of flags on one platform may not work with the
230 same flags on another platform.
233 <!-- <TR NAME="ECQueueFullServiceObject"> -->
235 <td><code>-ECQueueFullServiceObject
</code>
236 <em>service_object_name
</em>
239 Used to specify the name/tag in the service configurator
240 through which the RTEC should look for a
"queue full
242 <b>Will only have an effect on dispatch strategies that
243 use
<code>TAO_EC_Queue
</code>.
</b>
246 <!-- <TR NAME="ECFiltering"> -->
248 <TD><CODE>-ECFiltering
</CODE>
249 <EM>consumer_filtering_strategy
</EM>
251 <TD>Select the filtering strategy used by the consumers.
252 The
<EM>null
</EM> filtering strategy will build trivial
253 filters for all consumers.
254 The
<EM>basic
</EM> filtering strategy supports
255 disjunction, conjunction, logical and, negation, bitmask,
256 and timeout filters based on the subscriptions passed by
257 the consumer during the connect call. It only supports limited
258 nesting of filter groups.
259 The
<EM>prefix
</EM> filtering strategy supports
260 all filter types that the
<EM>basic
</EM> strategy does
261 and allows unlimited nesting of filter groups.
262 When using the
<EM>prefix
</EM> strategy, the source field of the
263 group filter must specify the number of children in the group.
264 The
<EM>priority
</EM> filtering strategy (sched factory only)
266 features as the
<EM>basic
</EM> filtering strategy, but it
267 also collaborates with the scheduling service to build the
272 <!-- <TR NAME="ECSupplierFiltering"> -->
274 <TD><CODE>-ECSupplierFiltering
</CODE>
275 <EM>supplier_filtering_strategy
</EM>
277 <TD>The event channel can also perform some filtering close
278 to the suppliers by minimizing the number of consumers
279 that are tested for given event.
280 If the strategy is
<EM>null
</EM> then a global collection
281 of consumers is maintained and each event is filtered by
283 If the strategy is
<EM>per-supplier
</EM> then the EC uses
284 the supplier publications and the consumer subscriptions
285 to determine which consumers could potentially be
286 interested in events for each supplier.
287 This set of consumers is usually smaller than the complete
288 set and it is thus faster to traverse it, but keeping more
289 collections of consumers increases the connection and
290 disconnection time as well as the memory requirements.
294 <!-- <TR NAME="ECTimeout"> -->
296 <TD><CODE>-ECTimeout
</CODE>
297 <EM>timeout_strategy
</EM>
299 <TD>A consumer can request that the event channel generate
300 periodic or oneshot timeout events.
301 This option controls the strategy to generate the
303 using
<EM>reactive
</EM> the same reactor used for the ORB
304 is used by the event service.
305 The
<EM>priority
</EM> strategy (sched factory only) uses a
307 threads, timeouts with higher rate are generated by
308 threads of higher priority.
309 <BR><B>NOTE: The
<EM>priority
</EM> strategy is not
314 <!-- <TR NAME="ECObserver"> -->
316 <TD><CODE>-ECObserver
</CODE>
319 <TD>The event channel uses the Observer pattern to report
320 changes in the subscriptions and publications of its
321 suppliers and consumers; this is especially useful in the
322 implementation of event channel gateways.
323 The user can disable this feature by selecting the
324 <EM>null
</EM> strategy;
325 whereas the
<EM>basic
</EM> strategy provides a simple, yet
326 efficient implementation.
<EM>reactive
</EM> provides a
327 strategy in which an observer that is unreachable is removed
328 from the observer list.
329 <BR><B>NOTE:
<B> The default is to have the feature disabled.
333 <!-- <TR NAME="ECScheduling"> -->
335 <TD><CODE>-ECScheduling
</CODE>
336 <EM>scheduling_strategy
</EM>
338 <TD>The event channel can collaborate with the scheduling
339 service to build the dependency list between the consumers
341 If the
<EM>null
</EM> scheduling strategy is selected this
343 the
<EM>priority
</EM> strategy (sched factory only) enables this feature.
344 <BR><B>NOTE:
<B> The default is to have the feature disabled.
348 <!-- <TR NAME="ECProxyConsumerLock"> -->
350 <TD><CODE>-ECProxyConsumerLock
</CODE>
353 <TD>Select the lock type (
<EM>null
</EM>,
<EM>thread
</EM> or
354 <EM>recursive
</EM>) to synchronize access to the
355 ProxyPushConsumer state.
359 <!-- <TR NAME="ECProxySupplierLock"> -->
361 <TD><CODE>-ECProxySupplierLock
</CODE>
364 <TD>Select the lock type (
<EM>null
</EM>,
<EM>thread
</EM> or
365 <EM>recursive
</EM>) to synchronize access to the
366 ProxyPushSupplier state.
370 <!-- <TR NAME="ECUseORBId"> -->
372 <TD><CODE>-ECUseORBId
</CODE>
375 <TD>Set the name of the ORB used by the event service, only
376 useful in applications that create multiple ORBs and
377 activate the event service in one of them.
381 <!-- <TR NAME="ECConsumerControl"> -->
383 <TD><CODE>-ECConsumerControl
</CODE>
386 <TD>Select the consumer control policy (
<EM>null
</EM> or
387 <EM>reactive
</EM>) to detect and discard broken consumers.
391 <!-- <TR NAME="ECSupplierControl"> -->
393 <TD><CODE>-ECSupplierControl
</CODE>
396 <TD>Select the supplier control policy (
<EM>null
</EM> or
397 <EM>reactive
</EM>) to detect and discard broken suppliers.
401 <!-- <TR NAME="ECConsumerControlPeriod"> -->
403 <TD><CODE>-ECConsumerControlPeriod
</CODE>
406 <TD>Set the period (in microseconds) used by the reactive
407 consumer control policy (set
<EM>ECConsumerControl
</EM> to
408 <EM>reactive
</EM>) to poll the state of the consumers.
409 When set to
0 there is no polling but the
410 reactive strategy is in place.
414 <!-- <TR NAME="ECSupplierControlPeriod"> -->
416 <TD><CODE>-ECSupplierControlPeriod
</CODE>
419 <TD>Set the period (in microseconds) used by the reactive
420 supplier control policy (set
<EM>ECSupplierControl
</EM> to
421 <EM>reactive
</EM>) to poll the state of the suppliers.
422 When set to
0 there is no polling but the
423 reactive strategy is in place.
427 <!-- <TR NAME="ECConsumerControlTimeout"> -->
429 <TD><CODE>-ECConsumerControlTimeout
</CODE>
432 <TD>Set the timeout period (in microseconds) used by the reactive
433 consumer control policy (set
<EM>ECConsumerControl
</EM> to
434 <EM>reactive
</EM>) to detect a timeout when polling the state
439 <!-- <TR NAME="ECSupplierControlTimeout"> -->
441 <TD><CODE>-ECSupplierControlTimeout
</CODE>
444 <TD>Set the timeout period (in microseconds) used by the reactive
445 supplier control policy (set
<EM>ECSupplierControl
</EM> to
446 <EM>reactive
</EM>) to detect a timeout when polling the state
451 <!-- <TR NAME="ECProxyPushConsumerCollection"> -->
453 <TD><CODE>-ECProxyPushConsumerCollection
</CODE>
454 <EM>flag[:flags]
</EM>
456 <TD><P>Configure the data structure and strategies used to
457 implement collections of
458 <CODE>ProxyPushConsumers
</CODE>.
459 The argument is a colon separated list of flags, with
460 the following semantics:
461 <TABLE BORDER=
"1" CELLSPACING=
"2" CELLPADDING=
"0">
462 <TR><TH>Flag
</TH><TH>Description
</TH>
466 <TD>Use regular mutexes and/or condition
467 variables for serialization.
472 <TD>Use null mutexes and/or condition
473 variables for serialization.
478 <TD>Implement the collection using an ordered list,
479 fast for iteration (i.e. during event dispatching),
480 but slow for insertion and removal (i.e. when
481 clients connect and disconnect from the EC).
486 <TD>Implement the collection using a Red-Black tree,
487 slow for iteration (i.e. during event dispatching),
488 but fast for insertion and removal (i.e. when
489 clients connect and disconnect from the EC).
494 <TD>Threads block until they can execute a change on
495 the data structure, the system must use other
496 approaches to guarantee that the iterators are not
497 invalidated during event dispatching. For example,
498 use a separate dispatching thread. Using this option
499 with the reactive values for any of the
500 -ECSupplierControl, -ECConsumerControl, or
501 -ECDispatching options may cause deadlocks.
505 <TD>COPY_ON_READ
</TD>
506 <TD>Before initiating an iteration to dispatch events
507 (or similar tasks) a copy of the complete collection
509 This solves most of the synchronization problems,
510 but introduces a significant source of overhead and
511 priority inversions on the critical path.
515 <TD>COPY_ON_WRITE
</TD>
516 <TD>Similar to the previous one, but the copy is only
517 performed when needed.
522 <TD>Threads that need to change the collection can
523 detect if that change will invalidate iterators used
525 If so, the thread posts the change on a queue that
526 is executed once the collection is no longer in
535 <!-- <TR NAME="ECProxyPushSupplierCollection"> -->
537 <TD><CODE>-ECProxyPushSupplierCollection
</CODE>
538 <EM>flag[:flags]
</EM>
540 <TD><P>Configure the data structure and strategies used to
541 implement collections of
<CODE>ProxyPushSupplier
</CODE>
543 Use the same arguments as with the
544 <CODE>ECProxyPushConsumerCollection
</CODE> option.
549 <!-- <TR NAME="ECConsumerValidateConnection"> -->
551 <TD><CODE>-ECConsumerValidateConnection
</CODE>
552 <EM>validate_connection:
0 |
1</EM>
554 <TD>When this option is set the connection from the Event Channel
555 to the consumer will be created during the connect of the
556 consumer, just before the consumer is added to the consumer
558 the Event Channel will create the connection to the consumer at
559 the moment the first event is pushed to the consumer.
560 When the network is heavily loaded during this connect and a new event
561 is pushed before the connection is established, a new create connection
562 request is done. When having very high connection establishment
563 time (for example running on a WAN) and an interval that is much
564 smaller than the connection establishment time it is wise to
565 set this option. Else you get dozens of new connection request
566 that can result in a stack overflow. Another option is to use BiDIR
567 GIOP so that there is only one connection between Rtec and consumer
568 but for this the Rtec and the consumer must be changed to set the
569 BiDIR Policy, this is not implemented at this moment.
576 <H3>The constructor
</H3>
578 <P>The
<CODE>TAO_EC_Event_Channel
</CODE> class implements the
579 <CODE>RtecEventChannelAdmin::EventChannel
</CODE> interface;
580 this class takes one mandatory and two optional parameters in
585 TAO_EC_Event_Channel (const TAO_EC_Event_Channel_Attributes& attributes,
586 TAO_EC_Factory* factory =
0,
587 int own_factory =
0);
590 <P>The
<CODE>factory
</CODE> is an optional parameter to override
591 the default strategy factory used by the event channel,
592 the event channel will destroy the factory if the
593 <CODE>own_factory
</CODE> argument is true.
596 <P>The
<CODE>attributes
</CODE> parameter can be used to fine tune
597 some of the algorithms and strategies used by the event channel,
598 the default values are probably OK for most applications.
599 Notice that the attributes include the POA used to activate the
600 ConsumerAdmin, SupplierAdmin, ProxyPushConsumer and
601 ProxyPushSupplier objects;
602 these POAs must have the
<CODE>IMPLICIT_ACTIVATION
</CODE> and the
603 <CODE>SYSTEM_ID
</CODE> policies (as the RootPOA does).
606 <P><TABLE BORDER=
"2" CELLSPACING=
"2" CELLPADDING=
"0">
607 <TR><TH>Attribute
</TH><TH>Description
</TH></TR>
609 <TR><TD><CODE>consumer_reconnect
</CODE></TD>
610 <TD>If the attribute is not zero then the same consumer can
611 call
<CODE>connect_push_consumer
</CODE> on its
612 ProxyPushSupplier multiple times to change its
614 this is usually more efficient that disconnecting and
619 <TR><TD><CODE>supplier_reconnect
</CODE></TD>
620 <TD>If the attribute is not zero then the same supplier can
621 call
<CODE>connect_push_supplier
</CODE> on its
622 ProxyPushConsumer multiple times to change its
624 this is usually more efficient that disconnecting and
629 <TR><TD><CODE>busy_hwm
</CODE></TD>
630 <TD>When the delayed flag is set on proxy collections,
631 this flag controls the maximum
632 number of threads that can simultaneously iterate over the
633 collection before blocking.
634 It can be used to avoid starvation in delayed updates on
639 <TR><TD><CODE>max_write_delay
</CODE></TD>
640 <TD>When the delayed flag is set on proxy collections,
641 this flag controls the maximum
642 number of threads that will initiate dispatching
643 <B>after
</B> a change has been posted.
644 Any thread after that is blocked until the operations are
646 It can be used to completely stop starvation of delayed
647 updates on the collection.
651 <TR><TD><CODE>scheduler
</CODE></TD>
652 <TD>Most configurations of the real-time event channel do
653 not require an scheduler.
654 If any of the strategies that require an scheduling
655 service is selected then this attribute should be set
660 <TR><TD><CODE>supplier_poa
</CODE></TD>
661 <TD>The POA used by the event channel to activate SupplierAdmin
662 and SupplierProxy objects.
666 <TR><TD><CODE>consumer_poa
</CODE></TD>
667 <TD>The POA used by the event channel to activate ConsumerAdmin
668 and ConsumerProxy objects.
672 <TR><TD><CODE>disconnect_callbacks
</CODE></TD>
673 <TD>If not zero, then the event channel sends disconnect
674 callbacks when a disconnect method is called on a Proxy.
675 For example, if a consumer calls
676 disconnect_push_supplier() on its proxy the EC
677 invokes disconnect_push_consumer() on the consumer.
678 An analogous call is also made for suppliers when this
680 By default, these callbacks are not made in this situation.
686 <H3>Configuring the IIOP Gateway
</H3>
688 <P>The
<CODE>TAO_EC_Gateway_IIOP_Factory
</CODE> is the factory for
689 the
<CODE>TAO_EC_Gateway_IIOP
</CODE> class. This factory can be
690 used to configure the settings of the IIOP Gateway using the
691 svc.conf file. The contents looks like this:
695 # Comments go here...
696 # More comments if you want to...
697 static EC_Gateway_IIOP_Factory
"-ECGIIOPConsumerECControl null ....."
700 <P>All the IIOP Gateway factory options start with
701 <CODE>-ECGIIOP
</CODE></P>
703 <P><TABLE BORDER=
"2" CELLSPACING=
"2" CELLPADDING=
"0">
709 <!-- <TR NAME="ECGIIOPConsumerECControl"> -->
711 <TD><CODE>-ECGIIOPConsumerECControl
</CODE>
714 <TD>Select the consumer ec control policy (
<EM>null
</EM> or
715 <EM>reactive
</EM> or
<EM>reconnect
</EM>) to detect and handle
716 broken consumer ec's.
719 <!-- <TR NAME="ECGIIOPConsumerECControlPeriod"> -->
721 <TD><CODE>-ECGIIOPConsumerECControlPeriod
</CODE>
724 <TD>Set the period (in microseconds) used by the reactive and reconnect
725 consumer ec control policy (set
<EM>ECGIIOPConsumerECControl
</EM> to
726 <EM>reactive
</EM> or
<EM>reconnect
</EM>) to poll the state of the consumer ec.
727 When set to
0 there is no polling but the
728 reactive strategy is in place.
732 <!-- <TR NAME="ECGIIOPConsumerECControlTimeout"> -->
734 <TD><CODE>-ECGIIOPConsumerECControlTimeout
</CODE>
737 <TD>Set the timeout period (in microseconds) used by the reactive and reconnect
738 consumer ec control policy (set
<EM>ECGIIOPConsumerECControl
</EM> to
739 <EM>reactive
</EM> or
<EM>reconnect
</EM>) to detect a timeout when polling the state
744 <!-- <TR NAME="ECGIIOPUseORBId"> -->
746 <TD><CODE>-ECGIIOPUseORBId
</CODE>
749 <TD>Set the name of the ORB used by the event gateway, only
750 useful in applications that create multiple ORBs and
751 activate the gateway in one of them.
755 <!-- <TR NAME="ECGIIOPUseTTL"> -->
757 <TD><CODE>-ECGIIOPUseTTL
</CODE>
758 <EM>use_ttl:
0 |
1</EM>
760 <TD>Set whether the IIOP Gateway uses the TTL or not.
761 This is
1 by default. When set to
0 make sure that
762 no recursive structure is build between ec's, else an
763 event can keep looping for ever. Useful when there are no
764 recursive structures and we want the gateway to
765 transfer all events independent of their TTL because suppliers
766 can be unaware about the maximum number of hops. In case
767 this option is
0, the TTL in the event isn't decremented
772 <!-- <TR NAME="ECGIIOPUseConsumerProxyMap"> -->
774 <TD><CODE>-ECGIIOPUseConsumerProxyMap
</CODE>
775 <EM>use_consumer_proxy_map:
0 |
1</EM>
777 <TD>Set whether the IIOP Gateway uses a map with a proxy
778 push consumer for each unique source id or not. This is
1
779 by default meaning that a map is used. When set to
0 the
780 gateway will just use one proxy push consumer to push
781 events to the consumer ec. This options is useful when
782 a lot of different source id's are used but there is no
783 need for a different proxy push consumer for each source id.
784 Setting this option to
0 then improves the performance.
790 <H3>The commandline arguments
</H3>
792 The Event_Service executable has several commandline arguments you can use.
793 The following arguments are available.
795 <P><TABLE BORDER=
"2" CELLSPACING=
"2" CELLPADDING=
"0">
801 <!-- <TR NAME="-d"> -->
804 <EM>service_name
</EM>
806 <TD>The name with which the Event Service registers itself in the
810 <!-- <TR NAME="-o"> -->
813 <EM>ior_file_name
</EM>
815 <TD>The file to which the IOR of the Event Service will be written.
819 <!-- <TR NAME="-p"> -->
822 <EM>pid_file_name
</EM>
824 <TD>The process id of the Event Service will be written to this
829 <!-- <TR NAME="-q"> -->
832 <EM>ec_object_id
</EM>
834 <TD>The object ID for the Event Channel that will be used
835 when a Persistent IOR is generated
839 <!-- <TR NAME="-b"> -->
848 <!-- <TR NAME="-x"> -->
853 <TD>Don't register the Event Service to the Naming Service
857 <!-- <TR NAME="-s"> -->
860 <EM>global|local|none
</EM>
862 <TD>Which scheduler should be used. The default is
<CODE>none
</CODE>.
863 With
<CODE>local
</CODE> an in process scheduler is created. With
864 <CODE>global
</CODE> a scheduler is retrieved from the Naming Service
872 Back to the TAO
<A HREF=
"index.html">components documentation
</A>.
874 <!--#include virtual="/~schmidt/cgi-sig.html" -->
876 <!-- <address><a href="mailto:coryan@cs.wustl.edu">Carlos O'Ryan</a></address>-->
877 <!-- Created: Thu Jul 1 21:44:28 CDT 1999 -->
879 Last modified: Tue Oct
18 13:
13:
54 CDT
2005