TAO_CEC_Pull_Event Class Reference

#include <CEC_Reactive_Pulling_Strategy.h>

Inheritance diagram for TAO_CEC_Pull_Event:

Inheritance graph
[legend]
Collaboration diagram for TAO_CEC_Pull_Event:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_CEC_Pull_Event (TAO_CEC_ConsumerAdmin *consumer_admin, TAO_CEC_SupplierControl *control)
virtual void work (TAO_CEC_ProxyPullConsumer *consumer)

Private Attributes

TAO_CEC_ConsumerAdminconsumer_admin_
 Used to propagate the events.
TAO_CEC_SupplierControlsupplier_control_
 To report failed or dead suppliers.

Detailed Description

Definition at line 126 of file CEC_Reactive_Pulling_Strategy.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE TAO_CEC_Pull_Event::TAO_CEC_Pull_Event ( TAO_CEC_ConsumerAdmin consumer_admin,
TAO_CEC_SupplierControl control 
)

Definition at line 8 of file CEC_Reactive_Pulling_Strategy.inl.

00010   :  consumer_admin_ (consumer_admin),
00011      supplier_control_ (control)
00012 {
00013 }


Member Function Documentation

void TAO_CEC_Pull_Event::work ( TAO_CEC_ProxyPullConsumer consumer  )  [virtual]

Implements TAO_ESF_Worker< TAO_CEC_ProxyPullConsumer >.

Definition at line 160 of file CEC_Reactive_Pulling_Strategy.cpp.

References consumer_admin_, TAO_CEC_ConsumerAdmin::push(), and TAO_CEC_ProxyPullConsumer::try_pull_from_supplier().

00161 {
00162   CORBA::Boolean has_event = 0;
00163   CORBA::Any_var any;
00164 
00165   try
00166     {
00167       any = consumer->try_pull_from_supplier (has_event);
00168     }
00169   catch (const CORBA::Exception&)
00170     {
00171       // Ignore all exceptions
00172       return;
00173     }
00174 
00175   if (has_event)
00176     {
00177       this->consumer_admin_->push (any.in ());
00178     }
00179 }


Member Data Documentation

TAO_CEC_ConsumerAdmin* TAO_CEC_Pull_Event::consumer_admin_ [private]

Used to propagate the events.

Definition at line 136 of file CEC_Reactive_Pulling_Strategy.h.

Referenced by work().

TAO_CEC_SupplierControl* TAO_CEC_Pull_Event::supplier_control_ [private]

To report failed or dead suppliers.

Definition at line 139 of file CEC_Reactive_Pulling_Strategy.h.


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:45:00 2010 for TAO_CosEvent by  doxygen 1.4.7