TAO_EC_SupplierControl_Adapter Class Reference

Forwards timeout events to the Reactive SupplierControl. More...

#include <EC_Reactive_SupplierControl.h>

Inheritance diagram for TAO_EC_SupplierControl_Adapter:

Inheritance graph
[legend]
Collaboration diagram for TAO_EC_SupplierControl_Adapter:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_EC_SupplierControl_Adapter (TAO_EC_Reactive_SupplierControl *adaptee)
 Constructor.

virtual int handle_timeout (const ACE_Time_Value &tv, const void *arg=0)

Private Attributes

TAO_EC_Reactive_SupplierControladaptee_
 The adapted object.


Detailed Description

Forwards timeout events to the Reactive SupplierControl.

The Reactive SupplierControl strategy uses the reactor to periodically wakeup and verify the state of the suppliers registered with the Event Channel.

Todo:
Marina Spivak made the following observation: these classes and implementation seem nearly identical to those in EC_Reactive_ConsumerControl.* The only differences are using consumer_admin collection vs supplier_admin, and calling disconnect_push_consumer vs disconnect_push_supplier ... Seems like it may be a good idea to change some naming and templatize...

The same templates should be used for the Notification and COS Event services.

Definition at line 59 of file EC_Reactive_SupplierControl.h.


Constructor & Destructor Documentation

TAO_EC_SupplierControl_Adapter::TAO_EC_SupplierControl_Adapter TAO_EC_Reactive_SupplierControl adaptee  ) 
 

Constructor.

Definition at line 212 of file EC_Reactive_SupplierControl.cpp.

00214   :  adaptee_ (adaptee)
00215 {
00216 }


Member Function Documentation

int TAO_EC_SupplierControl_Adapter::handle_timeout const ACE_Time_Value tv,
const void *  arg = 0
[virtual]
 

Reimplemented from ACE_Event_Handler.

Definition at line 219 of file EC_Reactive_SupplierControl.cpp.

References TAO_EC_Reactive_SupplierControl::handle_timeout().

00222 {
00223   this->adaptee_->handle_timeout (tv, arg);
00224   return 0;
00225 }


Member Data Documentation

TAO_EC_Reactive_SupplierControl* TAO_EC_SupplierControl_Adapter::adaptee_ [private]
 

The adapted object.

Definition at line 71 of file EC_Reactive_SupplierControl.h.


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