Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / performance-tests / LoadBalancing / LBPerf / CPU / ORBInitializer.cpp
bloba6c520ab1b1e1ed6dfbab64ce1417e9318979fee
1 #include "ORBInitializer.h"
2 #include "orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.h"
3 #include "tao/ORB_Constants.h"
5 ORBInitializer::ORBInitializer ()
6 : load_alert_ ()
10 void
11 ORBInitializer::pre_init (
12 PortableInterceptor::ORBInitInfo_ptr)
16 void
17 ORBInitializer::post_init (
18 PortableInterceptor::ORBInitInfo_ptr info)
20 PortableInterceptor::ServerRequestInterceptor_ptr reject_interceptor;
21 ACE_NEW_THROW_EX (reject_interceptor,
22 TAO_LB_ServerRequestInterceptor (this->load_alert_),
23 CORBA::NO_MEMORY (
24 CORBA::SystemException::_tao_minor_code (
25 TAO::VMCID,
26 ENOMEM),
27 CORBA::COMPLETED_NO));
29 PortableInterceptor::ServerRequestInterceptor_var safe_reject_interceptor =
30 reject_interceptor;
32 info->add_server_request_interceptor (safe_reject_interceptor.in ());
36 TAO_LB_LoadAlert &
37 ORBInitializer::load_alert ()
39 return this->load_alert_;