Fault_Tolerance_Service.cpp

Go to the documentation of this file.
00001 #include "tao/Fault_Tolerance_Service.h"
00002 #include "tao/Services_Activate.h"
00003 #include "tao/ORB_Core.h"
00004 #include "tao/Client_Strategy_Factory.h"
00005 
00006 #include "ace/Dynamic_Service.h"
00007 
00008 #if !defined (__ACE_INLINE__)
00009 # include "tao/Fault_Tolerance_Service.inl"
00010 #endif /* __ACE_INLINE__ */
00011 
00012 ACE_RCSID (tao,
00013            Fault_Tolerance_Service,
00014            "$Id: Fault_Tolerance_Service.cpp 74168 2006-08-22 09:51:53Z smcqueen $")
00015 
00016 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00017 
00018 TAO_Fault_Tolerance_Service::~TAO_Fault_Tolerance_Service (void)
00019 {
00020   delete this->ft_service_callback_;
00021 }
00022 
00023 void
00024 TAO_Fault_Tolerance_Service::init (TAO_ORB_Core *orb_core)
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 }
00040 
00041 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Sun Jan 27 13:07:32 2008 for TAO by doxygen 1.3.6