diff options
author | stanleyk <stanleyk@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2013-02-05 21:11:03 +0000 |
---|---|---|
committer | stanleyk <stanleyk@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2013-02-05 21:11:03 +0000 |
commit | 5e030faf84086ab02059fcbcc3faed224bd57b95 (patch) | |
tree | 3a62df45ac6ccf599fb07cf6a03d672456ce2e3d /TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp | |
parent | 9d296f7fa51116ff7040ecb2ad18612cd94b5fd1 (diff) | |
download | ATCD-5e030faf84086ab02059fcbcc3faed224bd57b95.tar.gz |
Merge in OCI_Reliability_Enhancements branch.
Diffstat (limited to 'TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp')
-rw-r--r-- | TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp b/TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp index d87476130f8..23ad5469001 100644 --- a/TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp +++ b/TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp @@ -5,6 +5,7 @@ Server_Info::Server_Info ( const ACE_CString& serverId, const ACE_CString& server_name, + bool jacorbs, const ACE_CString& aname, const ACE_CString& cmdline, const ImplementationRepository::EnvironmentList& env, @@ -16,6 +17,7 @@ Server_Info::Server_Info ImplementationRepository::ServerObject_ptr svrobj) : server_id (serverId) , name (server_name) + , jacorb_server( jacorbs) , activator (aname) , cmdline( cmdline) , env_vars (env) @@ -32,12 +34,22 @@ Server_Info::Server_Info } ImplementationRepository::ServerInformation* -Server_Info::createImRServerInfo (void) +Server_Info::createImRServerInfo (void) const { ImplementationRepository::ServerInformation* info; - ACE_NEW_THROW_EX (info, ImplementationRepository::ServerInformation, CORBA::NO_MEMORY ()); + ACE_NEW_THROW_EX (info, + ImplementationRepository::ServerInformation, + CORBA::NO_MEMORY ()); + + info->startup.command_line = cmdline.c_str (); + if (jacorb_server) + { + ACE_CString jacorb_name (ACE_TEXT ("JACORB:") + name); + info->server = jacorb_name.c_str(); + } + else + info->server = name.c_str(); - info->server = name.c_str (); info->startup.command_line = cmdline.c_str (); info->startup.environment = env_vars; info->startup.working_directory = dir.c_str (); @@ -63,5 +75,6 @@ Server_Info::reset (void) partial_ior = ""; last_ping = ACE_Time_Value::zero; server = ImplementationRepository::ServerObject::_nil (); - // start_count = 0; Note : We can't do this, because it would be reset during startup. + // start_count = 0; Note : We can't do this, because it would + // be reset during startup. } |