TAO_Implementation_Repository  2.1.2
Public Member Functions | Private Types | Private Member Functions | Private Attributes
ImR_Activator_i Class Reference

IMR Activator Interface. More...

#include <ImR_Activator_i.h>

Inheritance diagram for ImR_Activator_i:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ImR_Activator_i (void)
void start_server (const char *name, const char *cmdline, const char *dir, const ImplementationRepository::EnvironmentList &env)
void shutdown (void)
int init (Activator_Options &opts)
 Initialize the Server state - parsing arguments and waiting.
int fini (void)
 Cleans up any state created by init*.
int run (void)
 Runs the orb.
void shutdown (bool wait_for_completion)
 Shutdown the orb.
- Public Member Functions inherited from POA_ImplementationRepository::Activator
 Activator (const Activator &rhs)
virtual ~Activator (void)
virtual ::CORBA::Boolean _is_a (const char *logical_type_id)
virtual void _dispatch (TAO_ServerRequest &req, TAO::Portable_Server::Servant_Upcall *servant_upcall)
::ImplementationRepository::Activator_this (void)
virtual const char * _interface_repository_id (void) const
virtual void start_server (const char *name, const char *cmdline, const char *dir, const ::ImplementationRepository::EnvironmentList &env)=0
- Public Member Functions inherited from TAO_ServantBase
virtual ~TAO_ServantBase (void)
virtual PortableServer::POA_ptr _default_POA (void)
virtual CORBA::Boolean _non_existent (void)
virtual CORBA::InterfaceDef_ptr _get_interface (void)
virtual CORBA::Object_ptr _get_component (void)
virtual char * _repository_id (void)
virtual TAO_Stub_create_stub (void)
virtual int _find (const char *opname, TAO_Skeleton &skelfunc, const size_t length=0)
virtual int _find (const char *opname, TAO_Collocated_Skeleton &skelfunc, TAO::Collocation_Strategy st, const size_t length=0)
virtual void _collocated_dispatch (::CORBA::Object_ptr obj,::CORBA::Object_out forward_obj, bool &is_forwarded, TAO::Argument **args, int num_args, const char *op, size_t op_len, TAO::Collocation_Strategy strategy)
virtual void _add_ref (void)
virtual void _remove_ref (void)
virtual CORBA::ULong _refcount_value (void) const
- Public Member Functions inherited from TAO_Abstract_ServantBase
virtual ~TAO_Abstract_ServantBase (void)
- Public Member Functions inherited from ACE_Event_Handler
virtual ~ACE_Event_Handler (void)
virtual ACE_HANDLE get_handle (void) const
virtual void set_handle (ACE_HANDLE)
virtual int priority (void) const
virtual void priority (int priority)
virtual int handle_input (ACE_HANDLE fd=ACE_INVALID_HANDLE)
virtual int handle_output (ACE_HANDLE fd=ACE_INVALID_HANDLE)
virtual int handle_exception (ACE_HANDLE fd=ACE_INVALID_HANDLE)
virtual int handle_timeout (const ACE_Time_Value &current_time, const void *act=0)
virtual int handle_close (ACE_HANDLE handle, ACE_Reactor_Mask close_mask)
virtual int handle_signal (int signum, siginfo_t *=0, ucontext_t *=0)
virtual int resume_handler (void)
virtual int handle_qos (ACE_HANDLE=ACE_INVALID_HANDLE)
virtual int handle_group_qos (ACE_HANDLE=ACE_INVALID_HANDLE)
virtual void reactor (ACE_Reactor *reactor)
virtual ACE_Reactorreactor (void) const
virtual
ACE_Reactor_Timer_Interface
reactor_timer_interface (void) const
virtual Reference_Count add_reference (void)
virtual Reference_Count remove_reference (void)
Reference_Counting_Policyreference_counting_policy (void)

Private Types

typedef
ACE_Hash_Map_Manager_Ex< pid_t,
ACE_CString, ACE_Hash_pid_t,
ACE_Equal_To_pid_t,
ACE_Null_Mutex
ProcessMap

Private Member Functions

int init_with_orb (CORBA::ORB_ptr orb, const Activator_Options &opts)
void register_with_imr (ImplementationRepository::Activator_ptr activator)
int handle_exit (ACE_Process *process)

Private Attributes

ACE_Process_Manager process_mgr_
PortableServer::POA_var root_poa_
PortableServer::POA_var imr_poa_
ImplementationRepository::Locator_var locator_
CORBA::Long registration_token_
CORBA::ORB_var orb_
unsigned int debug_
bool notify_imr_
ACE_CString name_
ProcessMap process_map_
int env_buf_len_
 The default environment buffer length.
int max_env_vars_
 Maximum number of environment variables.

Additional Inherited Members

- Public Types inherited from POA_ImplementationRepository::Activator
typedef
::ImplementationRepository::Activator 
_stub_type
 Useful for template programming.
typedef
::ImplementationRepository::Activator_ptr 
_stub_ptr_type
typedef
::ImplementationRepository::Activator_var 
_stub_var_type
- Public Types inherited from TAO_ServantBase
- Public Types inherited from ACE_Event_Handler
typedef long Reference_Count
- Static Public Member Functions inherited from POA_ImplementationRepository::Activator
static void start_server_skel (TAO_ServerRequest &server_request, TAO::Portable_Server::Servant_Upcall *servant_upcall, TAO_ServantBase *servant)
static void shutdown_skel (TAO_ServerRequest &server_request, TAO::Portable_Server::Servant_Upcall *servant_upcall, TAO_ServantBase *servant)
- Static Public Member Functions inherited from TAO_ServantBase
static void _is_a_skel (TAO_ServerRequest &req, TAO::Portable_Server::Servant_Upcall *servant_upcall, TAO_ServantBase *servant)
static void _is_a_thru_poa_skel (TAO_ServerRequest &server_request, TAO::Portable_Server::Servant_Upcall *servant_upcall, TAO_ServantBase *servant)
static void _non_existent_skel (TAO_ServerRequest &req, TAO::Portable_Server::Servant_Upcall *servant_upcall, TAO_ServantBase *servant)
static void _non_existent_thru_poa_skel (TAO_ServerRequest &server_request, TAO::Portable_Server::Servant_Upcall *servant_upcall, TAO_ServantBase *servant)
static void _interface_skel (TAO_ServerRequest &req, TAO::Portable_Server::Servant_Upcall *servant_upcall, TAO_ServantBase *servant)
static void _component_skel (TAO_ServerRequest &req, TAO::Portable_Server::Servant_Upcall *servant_upcall, TAO_ServantBase *servant)
static void _component_thru_poa_skel (TAO_ServerRequest &server_request, TAO::Portable_Server::Servant_Upcall *servant_upcall, TAO_ServantBase *servant)
static void _repository_id_skel (TAO_ServerRequest &req, TAO::Portable_Server::Servant_Upcall *servant_upcall, TAO_ServantBase *servant)
static void _repository_id_thru_poa_skel (TAO_ServerRequest &server_request, TAO::Portable_Server::Servant_Upcall *servant_upcall, TAO_ServantBase *servant)
- Static Public Member Functions inherited from ACE_Event_Handler
static ACE_THR_FUNC_RETURN read_adapter (void *event_handler)
static int register_stdin_handler (ACE_Event_Handler *eh, ACE_Reactor *reactor, ACE_Thread_Manager *thr_mgr, int flags=THR_DETACHED)
static int remove_stdin_handler (ACE_Reactor *reactor, ACE_Thread_Manager *thr_mgr)
- Public Attributes inherited from ACE_Event_Handler
 LO_PRIORITY
 HI_PRIORITY
 NULL_MASK
 READ_MASK
 WRITE_MASK
 EXCEPT_MASK
 ACCEPT_MASK
 CONNECT_MASK
 TIMER_MASK
 QOS_MASK
 GROUP_QOS_MASK
 SIGNAL_MASK
 ALL_EVENTS_MASK
 RWE_MASK
 DONT_CALL
 ACE_EVENT_HANDLER_NOT_RESUMED
 ACE_REACTOR_RESUMES_HANDLER
 ACE_APPLICATION_RESUMES_HANDLER
- Protected Types inherited from ACE_Event_Handler
typedef ACE_Atomic_Op
< ACE_SYNCH_MUTEX,
Reference_Count
Atomic_Reference_Count
- Protected Member Functions inherited from POA_ImplementationRepository::Activator
 Activator (void)
- Protected Member Functions inherited from TAO_ServantBase
 TAO_ServantBase (void)
 TAO_ServantBase (const TAO_ServantBase &)
TAO_ServantBaseoperator= (const TAO_ServantBase &)
void synchronous_upcall_dispatch (TAO_ServerRequest &req, TAO::Portable_Server::Servant_Upcall *servant_upcall, TAO_ServantBase *derived_this)
void asynchronous_upcall_dispatch (TAO_ServerRequest &req, TAO::Portable_Server::Servant_Upcall *servant_upcall, TAO_ServantBase *derived_this)
- Protected Member Functions inherited from TAO_Abstract_ServantBase
 TAO_Abstract_ServantBase (void)
 TAO_Abstract_ServantBase (const TAO_Abstract_ServantBase &)
TAO_Abstract_ServantBaseoperator= (const TAO_Abstract_ServantBase &)
- Protected Member Functions inherited from ACE_Event_Handler
 ACE_Event_Handler (ACE_Reactor *=0, int priority=ACE_Event_Handler::LO_PRIORITY)
- Protected Attributes inherited from ACE_Event_Handler
Atomic_Reference_Count reference_count_

Detailed Description

IMR Activator Interface.

This class provides the interface for the various activities that can be done by the ImR_Activator.


Member Typedef Documentation


Constructor & Destructor Documentation

ImR_Activator_i::ImR_Activator_i ( void  )

Member Function Documentation

int ImR_Activator_i::fini ( void  )

Cleans up any state created by init*.

int ImR_Activator_i::handle_exit ( ACE_Process process)
privatevirtual

Reimplemented from ACE_Event_Handler.

int ImR_Activator_i::init ( Activator_Options opts)

Initialize the Server state - parsing arguments and waiting.

int ImR_Activator_i::init_with_orb ( CORBA::ORB_ptr  orb,
const Activator_Options opts 
)
private
void ImR_Activator_i::register_with_imr ( ImplementationRepository::Activator_ptr  activator)
private
int ImR_Activator_i::run ( void  )

Runs the orb.

void ImR_Activator_i::shutdown ( void  )
virtual
void ImR_Activator_i::shutdown ( bool  wait_for_completion)

Shutdown the orb.

void ImR_Activator_i::start_server ( const char *  name,
const char *  cmdline,
const char *  dir,
const ImplementationRepository::EnvironmentList &  env 
)

Member Data Documentation

unsigned int ImR_Activator_i::debug_
private
int ImR_Activator_i::env_buf_len_
private

The default environment buffer length.

PortableServer::POA_var ImR_Activator_i::imr_poa_
private
ImplementationRepository::Locator_var ImR_Activator_i::locator_
private
int ImR_Activator_i::max_env_vars_
private

Maximum number of environment variables.

ACE_CString ImR_Activator_i::name_
private
bool ImR_Activator_i::notify_imr_
private
CORBA::ORB_var ImR_Activator_i::orb_
private
ProcessMap ImR_Activator_i::process_map_
private
ACE_Process_Manager ImR_Activator_i::process_mgr_
private
CORBA::Long ImR_Activator_i::registration_token_
private

We're given a token when registering with the locator, which we must use when unregistering.

PortableServer::POA_var ImR_Activator_i::root_poa_
private

The documentation for this class was generated from the following files: