TAO_Fault_Tolerance_Service Class Reference

TAO_Fault_Tolerant_Service. More...

#include <Fault_Tolerance_Service.h>

Collaboration diagram for TAO_Fault_Tolerance_Service:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_Fault_Tolerance_Service (void)
 Ctor.

 ~TAO_Fault_Tolerance_Service (void)
 Dtor.

void init (TAO_ORB_Core *orb_core)
 Initialise the internal data structures.

TAO_Service_Callbacksservice_callback (void)
 Return the underlying callback object.


Private Attributes

TAO_Service_Callbacksft_service_callback_
 hook to callback on to the service


Detailed Description

TAO_Fault_Tolerant_Service.

A class that holds an FT service call back instance.

Definition at line 42 of file Fault_Tolerance_Service.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE TAO_Fault_Tolerance_Service::TAO_Fault_Tolerance_Service void   ) 
 

Ctor.

Definition at line 8 of file Fault_Tolerance_Service.inl.

00009   : ft_service_callback_ (0)
00010 {
00011 }

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Fault_Tolerance_Service::~TAO_Fault_Tolerance_Service void   ) 
 

Dtor.

Definition at line 18 of file Fault_Tolerance_Service.cpp.

References ft_service_callback_.

00019 {
00020   delete this->ft_service_callback_;
00021 }


Member Function Documentation

void TAO_Fault_Tolerance_Service::init TAO_ORB_Core orb_core  ) 
 

Initialise the internal data structures.

Definition at line 24 of file Fault_Tolerance_Service.cpp.

References TAO_Services_Activate::activate_services(), and ft_service_callback_.

Referenced by TAO_ORB_Core::services_callbacks_init().

00025 {
00026   // Look in to the svc conf stuff to get an instance of the
00027   // FT_Service.
00028   if (this->ft_service_callback_ == 0)
00029     {
00030       TAO_Services_Activate *service =
00031         ACE_Dynamic_Service <TAO_Services_Activate>::instance ("FT_ClientService_Activate");
00032 
00033       // Activate the callback
00034       if (service)
00035         this->ft_service_callback_ = service->activate_services (orb_core);
00036     }
00037 
00038   return;
00039 }

ACE_INLINE TAO_Service_Callbacks * TAO_Fault_Tolerance_Service::service_callback void   ) 
 

Return the underlying callback object.

Definition at line 14 of file Fault_Tolerance_Service.inl.

References ft_service_callback_.

Referenced by TAO_ORB_Core::hash_service(), TAO_ORB_Core::is_profile_equivalent(), TAO_ORB_Core::object_is_nil(), TAO_ORB_Core::service_profile_selection(), TAO_ORB_Core::service_raise_comm_failure(), and TAO_ORB_Core::service_raise_transient_failure().

00015 {
00016   return this->ft_service_callback_;
00017 }


Member Data Documentation

TAO_Service_Callbacks* TAO_Fault_Tolerance_Service::ft_service_callback_ [private]
 

hook to callback on to the service

Definition at line 61 of file Fault_Tolerance_Service.h.

Referenced by init(), service_callback(), and ~TAO_Fault_Tolerance_Service().


The documentation for this class was generated from the following files:
Generated on Sun Jan 27 13:14:38 2008 for TAO by doxygen 1.3.6