TAO_EC_Null_Factory Class Reference

The factory for a simple event channel. More...

#include <EC_Null_Factory.h>

Inheritance diagram for TAO_EC_Null_Factory:

Inheritance graph
[legend]
Collaboration diagram for TAO_EC_Null_Factory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_EC_Null_Factory (void)
 Constructor.

virtual ~TAO_EC_Null_Factory (void)
 destructor...

virtual TAO_EC_Dispatchingcreate_dispatching (TAO_EC_Event_Channel_Base *)
 Create and destroy the dispatching module.

virtual void destroy_dispatching (TAO_EC_Dispatching *)
virtual TAO_EC_Filter_Buildercreate_filter_builder (TAO_EC_Event_Channel_Base *)
 Create and destroy the filter builder.

virtual void destroy_filter_builder (TAO_EC_Filter_Builder *)
virtual TAO_EC_Supplier_Filter_Buildercreate_supplier_filter_builder (TAO_EC_Event_Channel_Base *)
 Create and destroy the filter builder.

virtual void destroy_supplier_filter_builder (TAO_EC_Supplier_Filter_Builder *)
virtual TAO_EC_ConsumerAdmincreate_consumer_admin (TAO_EC_Event_Channel_Base *)
 Create and destroy the consumer admin implementation.

virtual void destroy_consumer_admin (TAO_EC_ConsumerAdmin *)
virtual TAO_EC_SupplierAdmincreate_supplier_admin (TAO_EC_Event_Channel_Base *)
 Create and destroy the supplier admin implementation.

virtual void destroy_supplier_admin (TAO_EC_SupplierAdmin *)
virtual TAO_EC_ProxyPushSuppliercreate_proxy_push_supplier (TAO_EC_Event_Channel_Base *)
 Create and destroy a ProxyPushSupplier.

virtual void destroy_proxy_push_supplier (TAO_EC_ProxyPushSupplier *)
virtual TAO_EC_ProxyPushConsumercreate_proxy_push_consumer (TAO_EC_Event_Channel_Base *)
 Create and destroy a ProxyPushConsumer.

virtual void destroy_proxy_push_consumer (TAO_EC_ProxyPushConsumer *)
virtual TAO_EC_Timeout_Generatorcreate_timeout_generator (TAO_EC_Event_Channel_Base *)
 Create and destroy the timer module.

virtual void destroy_timeout_generator (TAO_EC_Timeout_Generator *)
virtual TAO_EC_ObserverStrategycreate_observer_strategy (TAO_EC_Event_Channel_Base *)
 Create and destroy the observer strategy.

virtual void destroy_observer_strategy (TAO_EC_ObserverStrategy *)
virtual TAO_EC_Scheduling_Strategycreate_scheduling_strategy (TAO_EC_Event_Channel_Base *)
 Create and destroy the observer strategy.

virtual void destroy_scheduling_strategy (TAO_EC_Scheduling_Strategy *)
virtual TAO_EC_ProxyPushConsumer_Collectioncreate_proxy_push_consumer_collection (TAO_EC_Event_Channel_Base *)
 Create and destroy a collection of TAO_EC_ProxyPushConsumers.

virtual void destroy_proxy_push_consumer_collection (TAO_EC_ProxyPushConsumer_Collection *)
virtual TAO_EC_ProxyPushSupplier_Collectioncreate_proxy_push_supplier_collection (TAO_EC_Event_Channel_Base *)
 Create and destroy a collection of TAO_EC_ProxyPushSuppliers.

virtual void destroy_proxy_push_supplier_collection (TAO_EC_ProxyPushSupplier_Collection *)
virtual ACE_Lockcreate_consumer_lock (void)
virtual void destroy_consumer_lock (ACE_Lock *)
virtual ACE_Lockcreate_supplier_lock (void)
virtual void destroy_supplier_lock (ACE_Lock *)
virtual TAO_EC_ConsumerControlcreate_consumer_control (TAO_EC_Event_Channel_Base *)
virtual void destroy_consumer_control (TAO_EC_ConsumerControl *)
virtual TAO_EC_SupplierControlcreate_supplier_control (TAO_EC_Event_Channel_Base *)
virtual void destroy_supplier_control (TAO_EC_SupplierControl *)

Detailed Description

The factory for a simple event channel.

The simplest configuration for an event channel does no filtering and uses reactive dispatching. This class is used to configure such an event channel. A fixed POA is used for servant activation. This object creates a single instance of the Supplier

Definition at line 39 of file EC_Null_Factory.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_EC_Null_Factory::TAO_EC_Null_Factory void   ) 
 

Constructor.

Definition at line 26 of file EC_Null_Factory.cpp.

00027 {
00028 }

TAO_EC_Null_Factory::~TAO_EC_Null_Factory void   )  [virtual]
 

destructor...

Definition at line 30 of file EC_Null_Factory.cpp.

00031 {
00032 }


Member Function Documentation

TAO_EC_ConsumerAdmin * TAO_EC_Null_Factory::create_consumer_admin TAO_EC_Event_Channel_Base  )  [virtual]
 

Create and destroy the consumer admin implementation.

Implements TAO_EC_Factory.

Definition at line 71 of file EC_Null_Factory.cpp.

00072 {
00073   return new TAO_EC_ConsumerAdmin (ec);
00074 }

TAO_EC_ConsumerControl * TAO_EC_Null_Factory::create_consumer_control TAO_EC_Event_Channel_Base  )  [virtual]
 

The ConsumerControl and SupplierControl strategies are used to discard non-existent consumers and suppliers

Implements TAO_EC_Factory.

Definition at line 218 of file EC_Null_Factory.cpp.

00219 {
00220   return new TAO_EC_ConsumerControl ();
00221 }

ACE_Lock * TAO_EC_Null_Factory::create_consumer_lock void   )  [virtual]
 

Create and destroy the locking strategies for both ProxyPushConsumers and ProxyPushSuppliers

Implements TAO_EC_Factory.

Definition at line 194 of file EC_Null_Factory.cpp.

00195 {
00196   return new ACE_Lock_Adapter<ACE_Null_Mutex> ();
00197 }

TAO_EC_Dispatching * TAO_EC_Null_Factory::create_dispatching TAO_EC_Event_Channel_Base  )  [virtual]
 

Create and destroy the dispatching module.

Implements TAO_EC_Factory.

Definition at line 35 of file EC_Null_Factory.cpp.

00036 {
00037   return new TAO_EC_Reactive_Dispatching ();
00038 }

TAO_EC_Filter_Builder * TAO_EC_Null_Factory::create_filter_builder TAO_EC_Event_Channel_Base  )  [virtual]
 

Create and destroy the filter builder.

Implements TAO_EC_Factory.

Definition at line 47 of file EC_Null_Factory.cpp.

00048 {
00049   return new TAO_EC_Null_Filter_Builder;
00050 }

TAO_EC_ObserverStrategy * TAO_EC_Null_Factory::create_observer_strategy TAO_EC_Event_Channel_Base  )  [virtual]
 

Create and destroy the observer strategy.

Implements TAO_EC_Factory.

Definition at line 136 of file EC_Null_Factory.cpp.

00137 {
00138   return new TAO_EC_Null_ObserverStrategy;
00139 }

TAO_EC_ProxyPushConsumer * TAO_EC_Null_Factory::create_proxy_push_consumer TAO_EC_Event_Channel_Base  )  [virtual]
 

Create and destroy a ProxyPushConsumer.

Implements TAO_EC_Factory.

Definition at line 107 of file EC_Null_Factory.cpp.

00108 {
00109   return new TAO_EC_Default_ProxyPushConsumer (ec);
00110 }

TAO_EC_ProxyPushConsumer_Collection * TAO_EC_Null_Factory::create_proxy_push_consumer_collection TAO_EC_Event_Channel_Base  )  [virtual]
 

Create and destroy a collection of TAO_EC_ProxyPushConsumers.

Implements TAO_EC_Factory.

Definition at line 160 of file EC_Null_Factory.cpp.

References TAO_EC_Consumer_List_Iterator.

00161 {
00162   // This typedef is a workaround for a SunCC 4.2 bug
00163   typedef TAO_ESF_Proxy_List<TAO_EC_ProxyPushConsumer>::Iterator TAO_EC_Consumer_List_Iterator;
00164   return new TAO_ESF_Immediate_Changes<TAO_EC_ProxyPushConsumer,
00165       TAO_ESF_Proxy_List<TAO_EC_ProxyPushConsumer>,
00166       TAO_EC_Consumer_List_Iterator,
00167       ACE_Null_Mutex> ();
00168 }

TAO_EC_ProxyPushSupplier * TAO_EC_Null_Factory::create_proxy_push_supplier TAO_EC_Event_Channel_Base  )  [virtual]
 

Create and destroy a ProxyPushSupplier.

Implements TAO_EC_Factory.

Definition at line 95 of file EC_Null_Factory.cpp.

References TAO_EC_DEFAULT_CONSUMER_VALIDATE_CONNECTION.

00096 {
00097   return new TAO_EC_Default_ProxyPushSupplier (ec, TAO_EC_DEFAULT_CONSUMER_VALIDATE_CONNECTION);
00098 }

TAO_EC_ProxyPushSupplier_Collection * TAO_EC_Null_Factory::create_proxy_push_supplier_collection TAO_EC_Event_Channel_Base  )  [virtual]
 

Create and destroy a collection of TAO_EC_ProxyPushSuppliers.

Implements TAO_EC_Factory.

Definition at line 177 of file EC_Null_Factory.cpp.

References TAO_EC_Supplier_List_Iterator.

00178 {
00179   // This typedef is a workaround for a SunCC 4.2 bug
00180   typedef TAO_ESF_Proxy_List<TAO_EC_ProxyPushSupplier>::Iterator TAO_EC_Supplier_List_Iterator;
00181   return new TAO_ESF_Immediate_Changes<TAO_EC_ProxyPushSupplier,
00182       TAO_ESF_Proxy_List<TAO_EC_ProxyPushSupplier>,
00183       TAO_EC_Supplier_List_Iterator,
00184       ACE_Null_Mutex> ();
00185 }

TAO_EC_Scheduling_Strategy * TAO_EC_Null_Factory::create_scheduling_strategy TAO_EC_Event_Channel_Base  )  [virtual]
 

Create and destroy the observer strategy.

Implements TAO_EC_Factory.

Definition at line 148 of file EC_Null_Factory.cpp.

00149 {
00150   return new TAO_EC_Null_Scheduling;
00151 }

TAO_EC_SupplierAdmin * TAO_EC_Null_Factory::create_supplier_admin TAO_EC_Event_Channel_Base  )  [virtual]
 

Create and destroy the supplier admin implementation.

Implements TAO_EC_Factory.

Definition at line 83 of file EC_Null_Factory.cpp.

00084 {
00085   return new TAO_EC_SupplierAdmin (ec);
00086 }

TAO_EC_SupplierControl * TAO_EC_Null_Factory::create_supplier_control TAO_EC_Event_Channel_Base  )  [virtual]
 

Implements TAO_EC_Factory.

Definition at line 230 of file EC_Null_Factory.cpp.

00231 {
00232   return new TAO_EC_SupplierControl ();
00233 }

TAO_EC_Supplier_Filter_Builder * TAO_EC_Null_Factory::create_supplier_filter_builder TAO_EC_Event_Channel_Base  )  [virtual]
 

Create and destroy the filter builder.

Implements TAO_EC_Factory.

Definition at line 59 of file EC_Null_Factory.cpp.

00060 {
00061   return new TAO_EC_Trivial_Supplier_Filter_Builder (ec);
00062 }

ACE_Lock * TAO_EC_Null_Factory::create_supplier_lock void   )  [virtual]
 

Implements TAO_EC_Factory.

Definition at line 206 of file EC_Null_Factory.cpp.

00207 {
00208   return new ACE_Lock_Adapter<ACE_Null_Mutex> ();
00209 }

TAO_EC_Timeout_Generator * TAO_EC_Null_Factory::create_timeout_generator TAO_EC_Event_Channel_Base  )  [virtual]
 

Create and destroy the timer module.

Implements TAO_EC_Factory.

Definition at line 119 of file EC_Null_Factory.cpp.

References CORBA::ORB_init().

00120 {
00121   int argc = 0;
00122   char **argv = 0;
00123   CORBA::ORB_var orb =
00124     CORBA::ORB_init (argc, argv, "");
00125   ACE_Reactor *reactor = orb->orb_core ()->reactor ();
00126   return new TAO_EC_Reactive_Timeout_Generator (reactor);
00127 }

void TAO_EC_Null_Factory::destroy_consumer_admin TAO_EC_ConsumerAdmin  )  [virtual]
 

Implements TAO_EC_Factory.

Definition at line 77 of file EC_Null_Factory.cpp.

00078 {
00079   delete x;
00080 }

void TAO_EC_Null_Factory::destroy_consumer_control TAO_EC_ConsumerControl  )  [virtual]
 

Implements TAO_EC_Factory.

Definition at line 224 of file EC_Null_Factory.cpp.

00225 {
00226   delete x;
00227 }

void TAO_EC_Null_Factory::destroy_consumer_lock ACE_Lock  )  [virtual]
 

Implements TAO_EC_Factory.

Definition at line 200 of file EC_Null_Factory.cpp.

00201 {
00202   delete x;
00203 }

void TAO_EC_Null_Factory::destroy_dispatching TAO_EC_Dispatching  )  [virtual]
 

Implements TAO_EC_Factory.

Definition at line 41 of file EC_Null_Factory.cpp.

00042 {
00043   delete x;
00044 }

void TAO_EC_Null_Factory::destroy_filter_builder TAO_EC_Filter_Builder  )  [virtual]
 

Implements TAO_EC_Factory.

Definition at line 53 of file EC_Null_Factory.cpp.

00054 {
00055   delete x;
00056 }

void TAO_EC_Null_Factory::destroy_observer_strategy TAO_EC_ObserverStrategy  )  [virtual]
 

Implements TAO_EC_Factory.

Definition at line 142 of file EC_Null_Factory.cpp.

00143 {
00144   delete x;
00145 }

void TAO_EC_Null_Factory::destroy_proxy_push_consumer TAO_EC_ProxyPushConsumer  )  [virtual]
 

Implements TAO_EC_Factory.

Definition at line 113 of file EC_Null_Factory.cpp.

00114 {
00115   delete x;
00116 }

void TAO_EC_Null_Factory::destroy_proxy_push_consumer_collection TAO_EC_ProxyPushConsumer_Collection  )  [virtual]
 

Implements TAO_EC_Factory.

Definition at line 171 of file EC_Null_Factory.cpp.

References TAO_EC_ProxyPushConsumer_Collection.

00172 {
00173   delete x;
00174 }

void TAO_EC_Null_Factory::destroy_proxy_push_supplier TAO_EC_ProxyPushSupplier  )  [virtual]
 

Implements TAO_EC_Factory.

Definition at line 101 of file EC_Null_Factory.cpp.

00102 {
00103   delete x;
00104 }

void TAO_EC_Null_Factory::destroy_proxy_push_supplier_collection TAO_EC_ProxyPushSupplier_Collection  )  [virtual]
 

Implements TAO_EC_Factory.

Definition at line 188 of file EC_Null_Factory.cpp.

References TAO_EC_ProxyPushSupplier_Collection.

00189 {
00190   delete x;
00191 }

void TAO_EC_Null_Factory::destroy_scheduling_strategy TAO_EC_Scheduling_Strategy  )  [virtual]
 

Implements TAO_EC_Factory.

Definition at line 154 of file EC_Null_Factory.cpp.

00155 {
00156   delete x;
00157 }

void TAO_EC_Null_Factory::destroy_supplier_admin TAO_EC_SupplierAdmin  )  [virtual]
 

Implements TAO_EC_Factory.

Definition at line 89 of file EC_Null_Factory.cpp.

00090 {
00091   delete x;
00092 }

void TAO_EC_Null_Factory::destroy_supplier_control TAO_EC_SupplierControl  )  [virtual]
 

Implements TAO_EC_Factory.

Definition at line 236 of file EC_Null_Factory.cpp.

00237 {
00238   delete x;
00239 }

void TAO_EC_Null_Factory::destroy_supplier_filter_builder TAO_EC_Supplier_Filter_Builder  )  [virtual]
 

Implements TAO_EC_Factory.

Definition at line 65 of file EC_Null_Factory.cpp.

00066 {
00067   delete x;
00068 }

void TAO_EC_Null_Factory::destroy_supplier_lock ACE_Lock  )  [virtual]
 

Implements TAO_EC_Factory.

Definition at line 212 of file EC_Null_Factory.cpp.

00213 {
00214   delete x;
00215 }

void TAO_EC_Null_Factory::destroy_timeout_generator TAO_EC_Timeout_Generator  )  [virtual]
 

Implements TAO_EC_Factory.

Definition at line 130 of file EC_Null_Factory.cpp.

00131 {
00132   delete x;
00133 }


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