#include "ImR_Activator_i.h"
#include "Activator_Options.h"
#include "tao/ORB_Core.h"
#include "ace/Reactor.h"
#include "ace/ARGV.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_stdio.h"
#include "ace/os_include/os_netdb.h"
Include dependency graph for ImR_Activator_i.cpp:
Go to the source code of this file.
Functions | |
ACE_CString | getHostName () |
PortableServer::POA_ptr | createPersistentPOA (PortableServer::POA_ptr root_poa, const char *poa_name) |
|
Definition at line 31 of file ImR_Activator_i.cpp. References CORBA::Policy::_duplicate(), ACE_CHECK_RETURN, ACE_ENV_ARG_PARAMETER, ACE_ENV_SINGLE_ARG_PARAMETER, and TAO::unbounded_object_reference_sequence< Policy, Policy_var >::length().
00032 { 00033 PortableServer::LifespanPolicy_var life = 00034 root_poa->create_lifespan_policy (PortableServer::PERSISTENT ACE_ENV_ARG_PARAMETER); 00035 ACE_CHECK_RETURN (PortableServer::POA::_nil ()); 00036 00037 PortableServer::IdAssignmentPolicy_var assign = 00038 root_poa->create_id_assignment_policy (PortableServer::USER_ID ACE_ENV_ARG_PARAMETER); 00039 ACE_CHECK_RETURN (PortableServer::POA::_nil ()); 00040 00041 CORBA::PolicyList pols; 00042 pols.length (2); 00043 pols[0] = PortableServer::LifespanPolicy::_duplicate (life.in ()); 00044 pols[1] = PortableServer::IdAssignmentPolicy::_duplicate (assign.in ()); 00045 00046 PortableServer::POAManager_var mgr = root_poa->the_POAManager (); 00047 PortableServer::POA_var poa = 00048 root_poa->create_POA(poa_name, mgr.in (), pols ACE_ENV_ARG_PARAMETER); 00049 ACE_CHECK_RETURN(PortableServer::POA::_nil ()); 00050 00051 life->destroy (ACE_ENV_SINGLE_ARG_PARAMETER); 00052 ACE_CHECK_RETURN (PortableServer::POA::_nil ()); 00053 assign->destroy (ACE_ENV_SINGLE_ARG_PARAMETER); 00054 ACE_CHECK_RETURN (PortableServer::POA::_nil ()); 00055 00056 return poa._retn (); 00057 } |
|
Definition at line 15 of file ImR_Activator_i.cpp. References ACE_CString, ACE_OS::hostname(), and MAXHOSTNAMELEN. Referenced by ImR_Activator_i::ImR_Activator_i().
00016 { 00017 char host_name[MAXHOSTNAMELEN]; 00018 ACE_OS::hostname (host_name, MAXHOSTNAMELEN); 00019 return ACE_CString (host_name); 00020 } |