summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp')
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp53
1 files changed, 26 insertions, 27 deletions
diff --git a/TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp b/TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp
index 91f8d7fa1be..70ed15854f9 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp
@@ -14,53 +14,52 @@ Server_Info::Server_Info
const ACE_CString& server_ior,
ImplementationRepository::ServerObject_ptr svrobj
)
- : name (server_name)
- , activator (aname)
- , cmdline( cmdline)
- , env_vars (env)
- , dir (working_dir)
- , activation_mode (amode)
+ : name(server_name)
+ , activator(aname)
+ , cmdline(cmdline)
+ , env_vars(env)
+ , dir(working_dir)
+ , activation_mode(amode)
, start_limit (limit)
- , partial_ior (partial_ior)
- , ior (server_ior)
- , server(ImplementationRepository::ServerObject::_duplicate (svrobj))
- , start_count (0)
- , waiting_clients (0)
- , starting (false)
+ , partial_ior(partial_ior)
+ , ior(server_ior)
+ , server(ImplementationRepository::ServerObject::_duplicate(svrobj))
+ , start_count(0)
+ , waiting_clients(0)
+ , starting(false)
{
}
ImplementationRepository::ServerInformation*
-Server_Info::createImRServerInfo (ACE_ENV_SINGLE_ARG_DECL)
+Server_Info::createImRServerInfo(ACE_ENV_SINGLE_ARG_DECL)
{
ImplementationRepository::ServerInformation* info;
- ACE_NEW_THROW_EX (info, ImplementationRepository::ServerInformation, CORBA::NO_MEMORY ());
+ ACE_NEW_THROW_EX (info, ImplementationRepository::ServerInformation, CORBA::NO_MEMORY());
- info->server = name.c_str ();
- info->startup.command_line = cmdline.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 ();
+ info->startup.working_directory = dir.c_str();
info->startup.activation = activation_mode;
- info->startup.activator = activator.c_str ();
- if (start_count >= start_limit)
- {
- info->startup.start_limit = -start_limit;
- }
+ info->startup.activator = activator.c_str();
+ if (start_count >= start_limit) {
+ info->startup.start_limit = -start_limit;
+ }
else
- {
- info->startup.start_limit = start_limit;
- }
+ {
+ info->startup.start_limit = start_limit;
+ }
info->partial_ior = partial_ior.c_str();
return info;
}
void
-Server_Info::reset (void)
+Server_Info::reset(void)
{
ior = "";
partial_ior = "";
last_ping = ACE_Time_Value::zero;
- server = ImplementationRepository::ServerObject::_nil ();
+ server = ImplementationRepository::ServerObject::_nil();
// start_count = 0; Note : We can't do this, because it would be reset during startup.
}