CIAO::ServerActivator_Impl Class Reference

Servant implementation for Components::Deployment::ServerActivator. More...

#include <ServerActivator_Impl.h>

Inheritance diagram for CIAO::ServerActivator_Impl:

Inheritance graph
Collaboration diagram for CIAO::ServerActivator_Impl:

Collaboration graph
List of all members.

Public Member Functions

 ServerActivator_Impl (CORBA::ORB_ptr o, PortableServer::POA_ptr p)
virtual ~ServerActivator_Impl (void)
virtual PortableServer::POA_ptr _default_POA (void)
const char * _ciao_get_ior (void)

Public Attributes

int virtual init(const char
*server_location, CORBA::ULong
delay, const char *installation_ior,
const char *default_svcconf,
const char *svcconf_map_file,
const char *extra_cmdline_flags
ACE_THROW_SPEC((CORBA Components::Deployment::ComponentServer_ptr
virtual create_component_server(const Components::ConfigValues
virtual remove_component_server(Components::Deployment::ComponentServer_ptr
ACE_THROW_SPEC((CORBA Components::Deployment::ComponentServers
ACE_THROW_SPEC((CORBA Components::Deployment::ServerActivator_pt 
_ciao_get_objref )(void)
 Components::Deployment::ServerActivator defined attributes/operations.

Protected Types

typedef CIAO::ServerActivator_Impl::CS_config CompServ_Config_Info
typedef ACE_Hash_Map_Manager_Ex<
ACE_CString, ACE_CString,
ACE_Hash< ACE_CString >,
ACE_Equal_To< ACE_CString >,

Protected Member Functions

int init_svcconf_map (const char *map_file)
const char * lookup_svcconf_pathname (const char *hint) const

Protected Attributes

CORBA::String_var server_path_
 location of the ComponentServer.
CORBA::ORB_var orb_
 Keep a pointer to the managing ORB serving this servant.
PortableServer::POA_var poa_
 Keep a pointer to the managing POA.
PortableServer::POA_var callback_poa_
 Child poa that uses active object map.
CORBA::String_var installation_ior_
 Cached the IOR string to ComponentInstallation Interface.
CORBA::ULong spawn_delay_
Components::Deployment::ServerActivator_var objref_
 Cache a object reference to this servant.
CORBA::String_var ior_
 Cache the ior of the previous reference.
 Synchronize access to the object set.
ACE_CString default_svcconf_file_
 Default svc.conf filename.
ACE_CString extra_flags_
 Extra command line flags.
SVCCONF_MAP svc_conf_map_
 Map of (canonical svc.conf id, svc.conf) mapping.
Object_Set< Components::Deployment::ComponentServer,
Components::Deployment::ComponentServer_var > 
 Keep a list of managed ComponentServer objects.


struct  CS_config

Detailed Description

Servant implementation for Components::Deployment::ServerActivator.

This class implements the Components::Deployment::ServerActivator interface as defined by the CCM spcification. As the interface implies, this is actually part of the deployment interface and is used to manage the lifecycle of containers running on the server.

Member Typedef Documentation

typedef struct CIAO::ServerActivator_Impl::CS_config CIAO::ServerActivator_Impl::CompServ_Config_Info [protected]

Contains the information extracted from create_component_server's ConfigValue argument that ServerActivation cares.

typedef ACE_Hash_Map_Manager_Ex<ACE_CString, ACE_CString, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex> CIAO::ServerActivator_Impl::SVCCONF_MAP [protected]

Constructor & Destructor Documentation

ACE_INLINE CIAO::ServerActivator_Impl::ServerActivator_Impl CORBA::ORB_ptr  o,
PortableServer::POA_ptr  p


CIAO::ServerActivator_Impl::~ServerActivator_Impl void   )  [virtual]


Member Function Documentation

ACE_INLINE const char * CIAO::ServerActivator_Impl::_ciao_get_ior void   ) 

PortableServer::POA_ptr CIAO::ServerActivator_Impl::_default_POA void   )  [virtual]

Get the containing POA. This operation does *not* increase the reference count of the POA.

int CIAO::ServerActivator_Impl::init_svcconf_map const char *  map_file  )  [protected]

Initialize svc_conf_map_ with the supplied filename.

const char * CIAO::ServerActivator_Impl::lookup_svcconf_pathname const char *  hint  )  const [protected]

Returns the pathname to the effective svc.conf file based on "hint." It may return the default svc.conf file when there's no hint (hint == 0) and we do have a default svc.conf path.

Member Data Documentation

ACE_INLINE::Components::Deployment::ServerActivator_ptr CIAO::ServerActivator_Impl::_ciao_get_objref

Components::Deployment::ServerActivator defined attributes/operations.

Return the cached ServerActivator object reference. Do not release this object reference, or put it into an var.

PortableServer::POA_var CIAO::ServerActivator_Impl::callback_poa_ [protected]

Child poa that uses active object map.

Object_Set<Components::Deployment::ComponentServer, Components::Deployment::ComponentServer_var> CIAO::ServerActivator_Impl::cs_set_ [protected]

Keep a list of managed ComponentServer objects.

ACE_CString CIAO::ServerActivator_Impl::default_svcconf_file_ [protected]

Default svc.conf filename.

ACE_CString CIAO::ServerActivator_Impl::extra_flags_ [protected]

Extra command line flags.

CORBA::String_var CIAO::ServerActivator_Impl::installation_ior_ [protected]

Cached the IOR string to ComponentInstallation Interface.

CORBA::String_var CIAO::ServerActivator_Impl::ior_ [protected]

Cache the ior of the previous reference.

TAO_SYNCH_MUTEX CIAO::ServerActivator_Impl::lock_ [protected]

Synchronize access to the object set.

Components::Deployment::ServerActivator_var CIAO::ServerActivator_Impl::objref_ [protected]

Cache a object reference to this servant.

CORBA::ORB_var CIAO::ServerActivator_Impl::orb_ [protected]

Keep a pointer to the managing ORB serving this servant.

PortableServer::POA_var CIAO::ServerActivator_Impl::poa_ [protected]

Keep a pointer to the managing POA.

CORBA::String_var CIAO::ServerActivator_Impl::server_path_ [protected]

location of the ComponentServer.

Parse the ConfigValue arguement of the function create_component_server and extractg the information into

CORBA::ULong CIAO::ServerActivator_Impl::spawn_delay_ [protected]

Specify the time in second ServerActivator will wait for a child ComponentServer to callback. Default is 5 second.

SVCCONF_MAP CIAO::ServerActivator_Impl::svc_conf_map_ [protected]

Map of (canonical svc.conf id, svc.conf) mapping.

The documentation for this class was generated from the following files:
Generated on Wed Nov 23 16:42:42 2005 for CIAO by  doxygen 1.4.5