1 #include "Push_Handler.h"
4 TAO_LB_Push_Handler::TAO_LB_Push_Handler (
5 CosLoadBalancing::LoadMonitor_ptr monitor
,
6 const PortableGroup::Location
& location
,
7 CosLoadBalancing::LoadManager_ptr manager
)
8 : monitor_ (CosLoadBalancing::LoadMonitor::_duplicate (monitor
)),
10 manager_ (CosLoadBalancing::LoadManager::_duplicate (manager
))
15 TAO_LB_Push_Handler::handle_timeout (
16 const ACE_Time_Value
& /* current_time */,
17 const void * /* arg */)
21 CosLoadBalancing::LoadList_var loads
=
22 this->monitor_
->loads ();
24 // ORBSVCS_DEBUG ((LM_DEBUG,
31 this->manager_
->push_loads (this->location_
,
34 catch (const CORBA::Exception
& ex
)
36 // Catch the exception and ignore it.
39 if (TAO_debug_level
> 0)
40 ex
._tao_print_exception ("(%P|%t) Push_Handler::handle_timeout()\n");