TAO_EC_Ping_Supplier Class Reference

#include <EC_Reactive_SupplierControl.h>

Inheritance diagram for TAO_EC_Ping_Supplier:

Inheritance graph
[legend]
Collaboration diagram for TAO_EC_Ping_Supplier:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_EC_Ping_Supplier (TAO_EC_SupplierControl *control)
virtual void work (TAO_EC_ProxyPushConsumer *consumer)

Private Attributes

TAO_EC_SupplierControlcontrol_

Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE TAO_EC_Ping_Supplier::TAO_EC_Ping_Supplier TAO_EC_SupplierControl control  ) 
 

Definition at line 8 of file EC_Reactive_SupplierControl.i.

00009   :  control_ (control)
00010 {
00011 }


Member Function Documentation

void TAO_EC_Ping_Supplier::work TAO_EC_ProxyPushConsumer consumer  )  [virtual]
 

Implements TAO_ESF_Worker< TAO_EC_ProxyPushConsumer >.

Definition at line 230 of file EC_Reactive_SupplierControl.cpp.

References ACE_CATCH, ACE_CATCHANY, ACE_ENDTRY, ACE_ENV_ARG_PARAMETER, ACE_TRY, ACE_TRY_CHECK, and TAO_EC_SupplierControl::supplier_not_exist().

00232 {
00233   ACE_TRY
00234     {
00235       CORBA::Boolean disconnected;
00236       CORBA::Boolean non_existent =
00237         consumer->supplier_non_existent (disconnected
00238                                           ACE_ENV_ARG_PARAMETER);
00239       ACE_TRY_CHECK;
00240       if (non_existent && !disconnected)
00241         {
00242           this->control_->supplier_not_exist (consumer ACE_ENV_ARG_PARAMETER);
00243           ACE_TRY_CHECK;
00244         }
00245     }
00246   ACE_CATCH (CORBA::OBJECT_NOT_EXIST, ex)
00247     {
00248       this->control_->supplier_not_exist (consumer ACE_ENV_ARG_PARAMETER);
00249       ACE_TRY_CHECK;
00250     }
00251   ACE_CATCH (CORBA::TRANSIENT, transient)
00252     {
00253       // This is TAO's minor code for a failed connection, we may
00254       // want to be more lenient in the future..
00255       // if (transient.minor () == 0x54410085)
00256       this->control_->supplier_not_exist (consumer ACE_ENV_ARG_PARAMETER);
00257       ACE_TRY_CHECK;
00258     }
00259   ACE_CATCHANY
00260     {
00261       // Ignore all exceptions
00262     }
00263   ACE_ENDTRY;
00264 }


Member Data Documentation

TAO_EC_SupplierControl* TAO_EC_Ping_Supplier::control_ [private]
 

Definition at line 155 of file EC_Reactive_SupplierControl.h.


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