summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/Notify_Service/Notify_Server.cpp
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:11 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:11 +0000
commit6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (patch)
treeda50d054f9c761c3f6a5923f6979e93306c56d68 /TAO/orbsvcs/Notify_Service/Notify_Server.cpp
parent0e555b9150d38e3b3473ba325b56db2642e6352b (diff)
downloadATCD-6b846cf03c0bcbd8c276cb0af61a181e5f98eaae.tar.gz
Repo restructuring
Diffstat (limited to 'TAO/orbsvcs/Notify_Service/Notify_Server.cpp')
-rw-r--r--TAO/orbsvcs/Notify_Service/Notify_Server.cpp73
1 files changed, 0 insertions, 73 deletions
diff --git a/TAO/orbsvcs/Notify_Service/Notify_Server.cpp b/TAO/orbsvcs/Notify_Service/Notify_Server.cpp
deleted file mode 100644
index 2e74141b15d..00000000000
--- a/TAO/orbsvcs/Notify_Service/Notify_Server.cpp
+++ /dev/null
@@ -1,73 +0,0 @@
-// $Id$
-
-#include "Notify_Service.h"
-
-// Must include this file to get a static initializer
-#include "tao/Valuetype/Valuetype_Adapter_Impl.h"
-
-#include "ace/OS_main.h"
-
-#include "orbsvcs/Shutdown_Utilities.h"
-#include "tao/debug.h"
-
-
-class Notify_Service_Shutdown_Functor
- : public Shutdown_Functor
-{
-public:
- Notify_Service_Shutdown_Functor (TAO_Notify_Service_Driver& svc);
-
- void operator() (int which_signal);
-
-private:
- TAO_Notify_Service_Driver& svc_;
-};
-
-Notify_Service_Shutdown_Functor::Notify_Service_Shutdown_Functor (TAO_Notify_Service_Driver& svc)
- : svc_ (svc)
-{
-}
-
-void
-Notify_Service_Shutdown_Functor::operator() (int which_signal)
-{
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG,
- "shutting down on signal %d\n", which_signal));
- (void) this->svc_.shutdown ();
-}
-
-// Driver function for the TAO Notify Service.
-
-int
-ACE_TMAIN (int argc, ACE_TCHAR *argv[])
-{
- TAO_Notify_Service_Driver notify_service;
-
- Notify_Service_Shutdown_Functor killer (notify_service);
- Service_Shutdown kill_contractor (killer);
-
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY_NEW_ENV
- {
- int result = notify_service.init (argc, argv ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (result == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT("Failed to initialize the Notification Service.\n")),
- 1);
-
- notify_service.run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- ACE_TEXT("Failed to run the Notification Service\n"));
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}