3 #if !defined(__ACE_INLINE__)
5 #endif /* __ACE_INLINE__ */
7 #include "ace/OS_NS_unistd.h"
10 Callback_i::shutdown (CORBA::Boolean is_clean
)
14 ACE_DEBUG ((LM_DEBUG
, "Performing catastrophic shutdown\n"));
19 this->orb_
->shutdown (false);
21 ACE_DEBUG ((LM_DEBUG
, "Shutdown: Performed clean shutdown\n"));
24 // ****************************************************************
27 Simple_Server_i::test_method (CORBA::Boolean do_callback
,
28 CORBA::Boolean is_clean
,
29 Callback_ptr callback
)
33 ACE_DEBUG ((LM_DEBUG
, "Callback to shutdown client (%d)\n",
35 callback
->shutdown (is_clean
);
37 ACE_Time_Value
tv (0, 20000);
43 Simple_Server_i::shutdown_now (CORBA::Boolean is_clean
)
47 ACE_DEBUG ((LM_DEBUG
, "Performing catastrophic shutdown\n"));
52 ACE_DEBUG ((LM_DEBUG
, "shutdown_now:Performing clean shutdown\n"));
53 this->orb_
->shutdown (false);
57 Simple_Server_i::shutdown ()
59 this->orb_
->shutdown (false);
62 // ****************************************************************
65 Middle_i::test_method (CORBA::Boolean do_callback
,
66 CORBA::Boolean is_clean
,
67 Callback_ptr callback
)
72 this->server_
->test_method (0,
77 this->server_
->test_method (do_callback
,
83 this->server_
->test_method (0,
92 Middle_i::shutdown_now (CORBA::Boolean is_clean
)
94 this->server_
->shutdown_now (is_clean
);
102 this->server_
->shutdown ();
104 catch (const CORBA::Exception
&)
109 this->orb_
->shutdown (false);