#include "ImR_Locator_i.h"
#include "utils.h"
#include "Iterator.h"
#include "INS_Locator.h"
#include "orbsvcs/Time_Utilities.h"
#include "tao/IORTable/IORTable.h"
#include "tao/PortableServer/PortableServer.h"
#include "tao/ORB_Core.h"
#include "tao/default_ports.h"
#include "tao/Messaging/Messaging.h"
#include "tao/AnyTypeCode/Any.h"
#include "ace/ARGV.h"
#include "ace/OS_NS_sys_time.h"
#include "ace/Vector_T.h"
Include dependency graph for ImR_Locator_i.cpp:
Go to the source code of this file.
Functions | |
PortableServer::POA_ptr | createPersistentPOA (PortableServer::POA_ptr root_poa, const char *poa_name) |
Variables | |
const int | DEFAULT_START_LIMIT = 1 |
const int | PING_RETRY_SCHEDULE [] = {0, 10, 100, 500, 1000, 1000, 1000, 1000, 5000, 5000} |
const ACE_Time_Value | DEFAULT_SERVER_TIMEOUT (0, 10 *1000) |
const ACE_Time_Value | DEFAULT_SHUTDOWN_TIMEOUT (0, 5000 *1000) |
|
Definition at line 33 of file ImR_Locator_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(). Referenced by ImR_Locator_i::init_with_orb().
00033 { 00034 00035 PortableServer::LifespanPolicy_var life = 00036 root_poa->create_lifespan_policy (PortableServer::PERSISTENT ACE_ENV_ARG_PARAMETER); 00037 ACE_CHECK_RETURN (PortableServer::POA::_nil ()); 00038 00039 PortableServer::IdAssignmentPolicy_var assign = 00040 root_poa->create_id_assignment_policy (PortableServer::USER_ID ACE_ENV_ARG_PARAMETER); 00041 ACE_CHECK_RETURN (PortableServer::POA::_nil ()); 00042 00043 CORBA::PolicyList pols; 00044 pols.length (2); 00045 pols[0] = PortableServer::LifespanPolicy::_duplicate (life.in ()); 00046 pols[1] = PortableServer::IdAssignmentPolicy::_duplicate (assign.in ()); 00047 00048 PortableServer::POAManager_var mgr = root_poa->the_POAManager (); 00049 PortableServer::POA_var poa = 00050 root_poa->create_POA (poa_name, mgr.in (), pols ACE_ENV_ARG_PARAMETER); 00051 ACE_CHECK_RETURN (PortableServer::POA::_nil ()); 00052 00053 life->destroy (ACE_ENV_SINGLE_ARG_PARAMETER); 00054 ACE_CHECK_RETURN (PortableServer::POA::_nil ()); 00055 assign->destroy (ACE_ENV_SINGLE_ARG_PARAMETER); 00056 ACE_CHECK_RETURN (PortableServer::POA::_nil ()); 00057 00058 return poa._retn (); 00059 } |
|
Referenced by ImR_Locator_i::connect_server(). |
|
Referenced by ImR_Locator_i::shutdown_server(). |
|
Definition at line 21 of file ImR_Locator_i.cpp. Referenced by ImR_Locator_i::server_is_running(). |
|
Definition at line 23 of file ImR_Locator_i.cpp. Referenced by ImR_Locator_i::is_alive(). |