/* -*- C++ -*- */ // $Id$ // ============================================================================ // // = FILENAME // Logging_Service.h // // = AUTHOR // Pradeep Gore // // = DESCRIPTION // Telecom Log Service front end. // // ============================================================================ #ifndef LOGGING_SERVICE_H #define LOGGING_SERVICE_H #include "orbsvcs/CosNamingC.h" #include "orbsvcs/DsLogAdminC.h" #include "orbsvcs/Log/BasicLogFactory_i.h" class Logging_Service { // = TITLE // Logging_Service // // = DESCRIPTION // Implementation of the Telecom Log Service public: // = Initialization and termination methods. Logging_Service (void); // Constructor. virtual ~Logging_Service (void); // Destructor. int parse_args (int argc, char *argv []); // Parses the command line arguments. void startup (int argc, char *argv[], CORBA::Environment &ACE_TRY_ENV); // Initializes the Telecom Log Service. // Returns 0 on success, -1 on error. int run (void); // run the Telecom Log Service. // Returns 0 on success, -1 on error. void shutdown (CORBA::Environment &ACE_TRY_ENV = TAO_default_environment ()); // Shutdown the Telecom Log Service. // Returns 0 on success, -1 on error. protected: void init_ORB (int& argc, char *argv [], CORBA::Environment &ACE_TRY_ENV); // initialize the ORB. void resolve_naming_service (CORBA::Environment &ACE_TRY_ENV); // Resolve the naming service. // = Data members const char* basic_log_factory_name_; // The Log Factory name. BasicLogFactory_i basic_log_factory_; // The Basic 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 /* LOGGING_SERVICE_H */