TAO_EC_Event_Channel Class Reference

The RtecEventChannelAdmin::EventChannel implementation. More...

#include <EC_Event_Channel.h>

Inheritance diagram for TAO_EC_Event_Channel:

Inheritance graph
[legend]
Collaboration diagram for TAO_EC_Event_Channel:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_EC_Event_Channel (const TAO_EC_Event_Channel_Attributes &attributes, TAO_EC_Factory *factory=0, int own_factory=0)

Detailed Description

The RtecEventChannelAdmin::EventChannel implementation.

This class is the Mediator between all the classes in the EC implementation, its main task is to redirect the messages to the right components, to hold and manage the lifetime of the long lived objects (Timer_Module, SupplierAdmin, ConsumerAdmin and Dispatching) and to provide a simpler interface to the EC_Factory.

Definition at line 43 of file EC_Event_Channel.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_EC_Event_Channel::TAO_EC_Event_Channel const TAO_EC_Event_Channel_Attributes attributes,
TAO_EC_Factory factory = 0,
int  own_factory = 0
 

constructor If own_factory is not 0 it assumes ownership of the factory. If the factory is nil it uses the Service_Configurator to load the Factory, if not found it uses TAO_EC_Default_Factory

Definition at line 12 of file EC_Event_Channel.cpp.

References CORBA::Object::_duplicate(), ACE_NEW, TAO_EC_Event_Channel_Base::create_strategies(), TAO_EC_Event_Channel_Base::factory(), and TAO_EC_Event_Channel_Attributes::scheduler.

00015   : TAO_EC_Event_Channel_Base (attr, factory, own_factory)
00016 {
00017   if (this->factory () == 0)
00018     {
00019       this->factory (
00020              ACE_Dynamic_Service<TAO_EC_Factory>::instance ("EC_Factory"),
00021              0);
00022 
00023       if (this->factory () == 0)
00024         {
00025           TAO_EC_Factory *f = 0;
00026           ACE_NEW (f,
00027                    TAO_EC_Default_Factory);
00028           this->factory (f, 1);
00029         }
00030     }
00031   this->scheduler_ =
00032     CORBA::Object::_duplicate (attr.scheduler);
00033 
00034   this->create_strategies ();
00035 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 13:14:42 2006 for TAO_RTEvent by doxygen 1.3.6