3 #include "tao/ORB_Core.h"
5 #include "tao/Transport_Cache_Manager.h"
6 #include "tao/Thread_Lane_Resources.h"
8 #if !defined(__ACE_INLINE__)
10 #endif /* __ACE_INLINE__ */
14 Callback_i::shutdown ()
16 ACE_DEBUG ((LM_DEBUG
, "Performing clean shutdown\n"));
17 this->orb_
->shutdown (false);
21 Callback_i::callback_method ()
23 if (TAO_debug_level
> 0)
24 ACE_DEBUG ((LM_DEBUG
, "Callback method called\n"));
28 // ****************************************************************
31 Simple_Server_i::test_method (CORBA::Boolean do_callback
43 Simple_Server_i::callback_object (Callback_ptr callback
46 // Store the callback object
47 this->callback_
= Callback::_duplicate (callback
);
51 Simple_Server_i::call_client ()
53 size_t pre_call_connections
=
54 this->orb_
->orb_core ()->lane_resources ().transport_cache ().current_size ();
58 for (int times
= 0; times
< this->no_iterations_
; ++times
)
60 this->callback_
->callback_method ();
62 size_t cur_connections
=
63 this->orb_
->orb_core()->lane_resources().transport_cache().current_size ();
65 if (cur_connections
> pre_call_connections
)
68 "(%P|%t) TEST OUTPUT: expected to find %d "
69 "connections in the transport cache, but found "
70 "%d instead. Aborting.\n",
78 this->callback_
->shutdown ();
89 Simple_Server_i::shutdown ()
91 this->orb_
->shutdown (false);