diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:11 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:11 +0000 |
commit | 6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (patch) | |
tree | da50d054f9c761c3f6a5923f6979e93306c56d68 /TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ORBInitializer.cpp | |
parent | 0e555b9150d38e3b3473ba325b56db2642e6352b (diff) | |
download | ATCD-6b846cf03c0bcbd8c276cb0af61a181e5f98eaae.tar.gz |
Repo restructuring
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ORBInitializer.cpp')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ORBInitializer.cpp | 140 |
1 files changed, 0 insertions, 140 deletions
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ORBInitializer.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ORBInitializer.cpp deleted file mode 100644 index 3e2a732dd62..00000000000 --- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ORBInitializer.cpp +++ /dev/null @@ -1,140 +0,0 @@ -// -*- C++ -*- -// -// $Id$ - -#include "orbsvcs/FaultTolerance/FT_ORBInitializer.h" -#include "orbsvcs/FaultTolerance/FT_PolicyFactory.h" -#include "orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.h" -#include "orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.h" -#include "orbsvcs/FT_CORBA_ORBC.h" -#include "tao/Exception.h" - - -ACE_RCSID (FaultTolerance, - FT_ORBInitializer, - "$Id$") - -TAO_BEGIN_VERSIONED_NAMESPACE_DECL - -void -TAO_FT_ORBInitializer::pre_init ( - PortableInterceptor::ORBInitInfo_ptr - ACE_ENV_ARG_DECL_NOT_USED) - ACE_THROW_SPEC ((CORBA::SystemException)) -{ -} - -void -TAO_FT_ORBInitializer::post_init ( - PortableInterceptor::ORBInitInfo_ptr info - ACE_ENV_ARG_DECL) - ACE_THROW_SPEC ((CORBA::SystemException)) -{ - this->register_policy_factories (info - ACE_ENV_ARG_PARAMETER); - ACE_CHECK; - - this->register_server_request_interceptors (info - ACE_ENV_ARG_PARAMETER); - ACE_CHECK; - - this->register_client_request_interceptors (info - ACE_ENV_ARG_PARAMETER); - ACE_CHECK; -} - -void -TAO_FT_ORBInitializer::register_policy_factories ( - PortableInterceptor::ORBInitInfo_ptr info - ACE_ENV_ARG_DECL) - ACE_THROW_SPEC ((CORBA::SystemException)) -{ - // Register the FTCORBA policy factories. - - PortableInterceptor::PolicyFactory_ptr temp_factory = - PortableInterceptor::PolicyFactory::_nil (); - PortableInterceptor::PolicyFactory_var policy_factory; - - // This policy factory is used for all FTCORBA related policies. - - ACE_NEW_THROW_EX (temp_factory, - TAO_FT_PolicyFactory, - CORBA::NO_MEMORY ( - CORBA::SystemException::_tao_minor_code ( - TAO::VMCID, - ENOMEM), - CORBA::COMPLETED_NO)); - ACE_CHECK; - - policy_factory = temp_factory; - - // Bind the same policy factory to all RTCORBA related policy - // types since a single policy factory is used to create each of - // the different types of RTCORBA policies. - - CORBA::PolicyType type = FT::REQUEST_DURATION_POLICY; - info->register_policy_factory (type, - policy_factory.in () - ACE_ENV_ARG_PARAMETER); - ACE_CHECK; - - type = FT::HEARTBEAT_POLICY; - info->register_policy_factory (type, - policy_factory.in () - ACE_ENV_ARG_PARAMETER); - ACE_CHECK; - - type = FT::HEARTBEAT_ENABLED_POLICY; - info->register_policy_factory (type, - policy_factory.in () - ACE_ENV_ARG_PARAMETER); - ACE_CHECK; - - // Transfer ownership of the policy factory to the registry. - (void) policy_factory._retn (); -} - -void -TAO_FT_ORBInitializer::register_server_request_interceptors ( - PortableInterceptor::ORBInitInfo_ptr info - ACE_ENV_ARG_DECL) - ACE_THROW_SPEC ((CORBA::SystemException)) -{ - PortableInterceptor::ServerRequestInterceptor_ptr sri = - PortableInterceptor::ServerRequestInterceptor::_nil (); - - ACE_NEW_THROW_EX (sri, - TAO::FT_ServerRequest_Interceptor, - CORBA::NO_MEMORY ()); - - PortableInterceptor::ServerRequestInterceptor_var - server_interceptor = sri; - - info->add_server_request_interceptor (server_interceptor.in () - ACE_ENV_ARG_PARAMETER); - ACE_CHECK; -} - - -void -TAO_FT_ORBInitializer::register_client_request_interceptors ( - PortableInterceptor::ORBInitInfo_ptr info - ACE_ENV_ARG_DECL) - ACE_THROW_SPEC ((CORBA::SystemException)) -{ - PortableInterceptor::ClientRequestInterceptor_ptr cri = - PortableInterceptor::ClientRequestInterceptor::_nil (); - - ACE_NEW_THROW_EX (cri, - TAO::FT_ClientRequest_Interceptor, - CORBA::NO_MEMORY ()); - - PortableInterceptor::ClientRequestInterceptor_var - client_interceptor = cri; - - info->add_client_request_interceptor (client_interceptor.in () - ACE_ENV_ARG_PARAMETER); - ACE_CHECK; -} - -TAO_END_VERSIONED_NAMESPACE_DECL |