summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.h')
-rw-r--r--TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.h80
1 files changed, 80 insertions, 0 deletions
diff --git a/TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.h b/TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.h
new file mode 100644
index 00000000000..41214cb5fb3
--- /dev/null
+++ b/TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.h
@@ -0,0 +1,80 @@
+/* -*- C++ -*- */
+// $Id$
+// ============================================================================
+//
+// = FILENAME
+// Event_Logging_Service.h
+//
+// = AUTHOR
+// D A Hanvey <d.hanvey@qub.ac.uk>
+//
+// = DESCRIPTION
+// Telecom EventLog Service front end.
+//
+// ============================================================================
+
+#ifndef EVENT_LOGGING_SERVICE_H
+#define EVENT_LOGGING_SERVICE_H
+
+#include "orbsvcs/CosNamingC.h"
+#include "orbsvcs/DsLogAdminC.h"
+#include "orbsvcs/DsEventLogAdminC.h"
+#include "orbsvcs/Log/EventLogFactory_i.h"
+
+class Event_Logging_Service
+{
+ // = TITLE
+ // Event_Logging_Service
+ //
+ // = DESCRIPTION
+ // Implementation of the Telecom EventLog Service
+
+ public:
+ // = Initialization and termination methods.
+ Event_Logging_Service (void);
+ // Constructor.
+
+ virtual ~Event_Logging_Service (void);
+ // Destructor.
+
+ int parse_args (int argc, char *argv []);
+ // Parses the command line arguments.
+
+ void startup (int argc, char *argv[]
+ ACE_ENV_ARG_DECL);
+ // Initializes the Telecom EventLog Service.
+ // Returns 0 on success, -1 on error.
+
+ int run (void);
+ // run the Telecom EventLog Service.
+ // Returns 0 on success, -1 on error.
+
+ void shutdown (ACE_ENV_SINGLE_ARG_DECL);
+ // Shutdown the Telecom Log Service.
+ // Returns 0 on success, -1 on error.
+
+protected:
+ void init_ORB (int& argc, char *argv []
+ ACE_ENV_ARG_DECL);
+ // initialize the ORB.
+
+ void resolve_naming_service (ACE_ENV_SINGLE_ARG_DECL);
+ // Resolve the naming service.
+
+ // = Data members
+ const char* event_log_factory_name_;
+ // The Log Factory name.
+
+ EventLogFactory_i event_log_factory_;
+ // The Event Log Factory.
+
+ CORBA::ORB_var orb_;
+ // The ORB that we use.
+
+ PortableServer::POA_var poa_;
+ // Reference to the root poa.
+
+ CosNaming::NamingContext_var naming_;
+ // A naming context.
+};
+#endif /* EVENT_LOGGING_SERVICE_H */