summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/Event_Service/Event_Service.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/Event_Service/Event_Service.h')
-rw-r--r--TAO/orbsvcs/Event_Service/Event_Service.h105
1 files changed, 0 insertions, 105 deletions
diff --git a/TAO/orbsvcs/Event_Service/Event_Service.h b/TAO/orbsvcs/Event_Service/Event_Service.h
deleted file mode 100644
index 89de50f53be..00000000000
--- a/TAO/orbsvcs/Event_Service/Event_Service.h
+++ /dev/null
@@ -1,105 +0,0 @@
-/* -*- C++ -*- */
-// $Id$
-//
-// ============================================================================
-//
-// = DESCRIPTION
-// The TAO event service implementation.
-//
-// ============================================================================
-
-#ifndef EC_EVENT_SERVICE_H
-#define EC_EVENT_SERVICE_H
-
-#include "orbsvcs/RtecEventChannelAdminS.h"
-#include "orbsvcs/RtecSchedulerS.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-class TAO_Module_Factory;
-
-class Event_Service : public POA_RtecEventChannelAdmin::EventChannel
-{
- //
- // = TITLE
- // This class decorates an Event Channel implementation, but in a
- // very simple way: destroy() also shutdowns the ORB.
- //
- // = DESCRIPTION
- // The Event_Channel implementations should not shutdown the ORB
- // by default, but in this case, where the Event_Channel is
- // (almost) the only service on the host, it makes more sense to
- // do so.
- //
-public:
- Event_Service (void);
- virtual ~Event_Service (void);
-
- int run (int argc, char* argv[]);
- // Run the event service.
-
- // = The RtecEventChannelAdmin::Event_Channel methods
- virtual RtecEventChannelAdmin::ConsumerAdmin_ptr
- for_consumers (CORBA::Environment &)
- ACE_THROW_SPEC ((CORBA::SystemException));
- virtual RtecEventChannelAdmin::SupplierAdmin_ptr
- for_suppliers (CORBA::Environment &)
- ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void destroy (CORBA::Environment &)
- ACE_THROW_SPEC ((CORBA::SystemException));
- virtual RtecEventChannelAdmin::Observer_Handle
- append_observer (RtecEventChannelAdmin::Observer_ptr observer,
- CORBA::Environment &env)
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- RtecEventChannelAdmin::EventChannel::SYNCHRONIZATION_ERROR,
- RtecEventChannelAdmin::EventChannel::CANT_APPEND_OBSERVER));
- virtual void remove_observer (RtecEventChannelAdmin::Observer_Handle,
- CORBA::Environment &env)
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- RtecEventChannelAdmin::EventChannel::SYNCHRONIZATION_ERROR,
- RtecEventChannelAdmin::EventChannel::CANT_REMOVE_OBSERVER));
-
-private:
- int parse_args (int argc, char* argv[]);
- // parse the command line args
-
- enum {
- ES_NEW, // Use the Service Configurator to find factory
- ES_OLD_REACTIVE, // Reactive dispatching, old EC.
- ES_OLD_MT // Prioritized dispatching, old EC.
- };
-
-private:
- TAO_Module_Factory *module_factory_;
- // The module factory for the EC.
-
- POA_RtecScheduler::Scheduler *sched_impl_;
- // The Scheduler implementation.
-
- POA_RtecEventChannelAdmin::EventChannel *ec_impl_;
- // The Event Channel implementation.
-
- const char* service_name_;
- // The name we use to bind with the NameService
-
- const char* ior_file_name_;
- // The name of the file were we output the Event_Service IOR.
-
- const char* pid_file_name_;
- // The name of a file where the process stores its pid
-
- int event_service_type_;
- // The type of event service we will use
-
- int global_scheduler_;
- // Should we use a global scheduler or a local one?
-
- CORBA::ORB_var orb_;
- // A reference to the ORB, to shut it down properly.
-};
-
-#endif /* EC_EVENT_SERVICE_H */