diff options
Diffstat (limited to 'TAO/tests/Faults/test_i.cpp')
-rw-r--r-- | TAO/tests/Faults/test_i.cpp | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/TAO/tests/Faults/test_i.cpp b/TAO/tests/Faults/test_i.cpp deleted file mode 100644 index 64864155998..00000000000 --- a/TAO/tests/Faults/test_i.cpp +++ /dev/null @@ -1,67 +0,0 @@ -// $Id$ - -#include "test_i.h" - -#if !defined(__ACE_INLINE__) -#include "test_i.i" -#endif /* __ACE_INLINE__ */ - -ACE_RCSID(Failure, test_i, "$Id$") - -void -Callback_i::shutdown (CORBA::Boolean is_clean, - CORBA::Environment &ACE_TRY_ENV) - ACE_THROW_SPEC ((CORBA::SystemException)) -{ - if (is_clean == 0) - { - ACE_DEBUG ((LM_DEBUG, "Performing catastrophic shutdown\n%a")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "Performing clean shutdown\n")); - this->orb_->shutdown (0, ACE_TRY_ENV); - } -} - -CORBA::Long -Simple_Server_i::test_method (CORBA::Boolean do_callback, - CORBA::Boolean is_clean, - Callback_ptr callback, - CORBA::Environment& ACE_TRY_ENV) - ACE_THROW_SPEC ((CORBA::SystemException)) -{ - if (do_callback) - { - ACE_DEBUG ((LM_DEBUG, "Callback to shutdown client (%d)\n", - is_clean)); - callback->shutdown (is_clean, ACE_TRY_ENV); - ACE_CHECK_RETURN (0); - } - ACE_Time_Value tv (0, 50000); - ACE_OS::sleep (tv); - return 0; -} - -void -Simple_Server_i::shutdown_now (CORBA::Boolean is_clean, - CORBA::Environment& ACE_TRY_ENV) - ACE_THROW_SPEC ((CORBA::SystemException)) -{ - if (is_clean == 0) - { - ACE_DEBUG ((LM_DEBUG, "Performing catastrophic shutdown %a\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "Performing clean shutdown\n")); - this->orb_->shutdown (0, ACE_TRY_ENV); - } -} - -void -Simple_Server_i::shutdown (CORBA::Environment& ACE_TRY_ENV) - ACE_THROW_SPEC ((CORBA::SystemException)) -{ - this->orb_->shutdown (0, ACE_TRY_ENV); -} |