diff options
Diffstat (limited to 'TAO/orbsvcs/ImplRepo_Service/ImplRepo_i.h')
-rw-r--r-- | TAO/orbsvcs/ImplRepo_Service/ImplRepo_i.h | 41 |
1 files changed, 28 insertions, 13 deletions
diff --git a/TAO/orbsvcs/ImplRepo_Service/ImplRepo_i.h b/TAO/orbsvcs/ImplRepo_Service/ImplRepo_i.h index 9c3466006f0..49d5b0c4509 100644 --- a/TAO/orbsvcs/ImplRepo_Service/ImplRepo_i.h +++ b/TAO/orbsvcs/ImplRepo_Service/ImplRepo_i.h @@ -17,7 +17,7 @@ // // ============================================================================ -#ifndef IMPLREPO_I_H +#if !defined (IMPLREPO_I_H) #define IMPLREPO_I_H #include "orbsvcs/ImplRepoS.h" @@ -47,7 +47,7 @@ public: virtual CORBA::Boolean unknown_adapter (PortableServer::POA_ptr parent, const char *name, - CORBA_Environment &ACE_TRY_ENV + CORBA_Environment &ACE_TRY_ENV = CORBA_Environment::default_environment ()); // Called by the POA when the incoming requested object/POA isn't found. This will // create POAs when needed and will also put a DSI object (IR_Forwarder) in that POA @@ -73,9 +73,9 @@ public: // = Interface methods virtual CORBA::Object_ptr activate_object (CORBA::Object_ptr obj, - CORBA_Environment &ACE_TRY_ENV + CORBA_Environment &ACE_TRY_ENV = CORBA_Environment::default_environment ()); - // Starts up the server containing the object <obj> if not already running. + // Starts up the server containing the object <obj> if not already running. virtual Implementation_Repository::INET_Addr *activate_server (const char *server, CORBA::Environment &env); @@ -83,40 +83,40 @@ public: virtual void register_server (const char *server, const Implementation_Repository::Process_Options &options, - CORBA_Environment &ACE_TRY_ENV + CORBA_Environment &ACE_TRY_ENV = CORBA_Environment::default_environment ()); - // Adds the server to the repository and registers the startup information about + // Adds the server to the repository and registers the startup information about // the server <server>. virtual void reregister_server (const char *server, const Implementation_Repository::Process_Options &options, - CORBA_Environment &ACE_TRY_ENV + CORBA_Environment &ACE_TRY_ENV = CORBA_Environment::default_environment ()); // Updates the startup information about the server <server>. virtual void remove_server (const char *server, - CORBA_Environment &ACE_TRY_ENV + CORBA_Environment &ACE_TRY_ENV = CORBA_Environment::default_environment ()); // Removes the server <server> from the repository. - virtual Implementation_Repository::INET_Addr + virtual Implementation_Repository::INET_Addr *server_is_running (const char *server, const Implementation_Repository::INET_Addr &addr, CORBA::Object_ptr ping, - CORBA_Environment &ACE_TRY_ENV + CORBA_Environment &ACE_TRY_ENV = CORBA_Environment::default_environment ()); // Called by the server to update transient information such as current location of // the <server> and its ping object. virtual void server_is_shutting_down (const char * server, - CORBA_Environment &ACE_TRY_ENV + CORBA_Environment &ACE_TRY_ENV = CORBA_Environment::default_environment ()); // What the server should call before it shutsdown. // = Other methods - int init (int argc, char **argv, - CORBA_Environment &ACE_TRY_ENV + int init (int argc, char **argv, + CORBA_Environment &ACE_TRY_ENV = CORBA_Environment::default_environment ()); // Initialize the Server state - parsing arguments and waiting. @@ -139,9 +139,18 @@ private: Repository repository_; // Repository containing information about each server. + int parse_args (void); + // Parses the commandline arguments. + + int read_ior (char *filename); + // Reads the IOR of the real server from the file. + TAO_ORB_Manager orb_manager_; // The ORB manager. + FILE *ior_output_file_; + // File where the IOR of the server object is stored. + char *server_key_; // Key of the obj ref of the server. @@ -153,6 +162,12 @@ private: char **argv_; // The command line arguments. + + unsigned int debug_level_; + // Debug level for the IR. + // 0 - Quiet + // 1 - Trace messages + // 2 - Detailed messages }; class IR_Forwarder: public PortableServer::DynamicImplementation |