import "Session_Container.idl";
Public Member Functions | |
Session_Container (CORBA::ORB_ptr o, Deployment::CIAO_Container_i *container_impl, bool static_config_flag=false, const Static_Config_EntryPoints_Maps *static_entrypts_maps=0, const char *name=0, const CORBA::PolicyList *more_policies=0) | |
virtual | ~Session_Container (void) |
virtual Components::CCMHome_ptr | install_home (const char *primary_artifact, const char *entry_point, const char *servant_artifact, const char *servant_entrypoint, const char *name) |
Simply installing a home executor into the component. | |
virtual void | uninstall_home (Components::CCMHome_ptr homeref) |
virtual Components::CCMObject_ptr | install_component (const char *primary_artifact, const char *entry_point, const char *servant_artifact, const char *servant_entrypoint, const char *name) |
virtual void | activate_component (Components::CCMObject_ptr compref) |
Activate component. | |
virtual void | passivate_component (Components::CCMObject_ptr compref) |
virtual void | uninstall_component (Components::CCMObject_ptr compref) |
virtual void | uninstall_servant (PortableServer::Servant objref, Container_Types::OA_Type type, PortableServer::ObjectId_out oid) |
Uninstall a servant. | |
virtual CORBA::Object_ptr | install_servant (PortableServer::Servant p, Container_Types::OA_Type type, PortableServer::ObjectId_out oid) |
Install a servant for component or home. | |
virtual CORBA::Object_ptr | get_objref (PortableServer::Servant p) |
Get an object reference to a component or home from the servant. | |
void | uninstall (CORBA::Object_ptr objref, Container_Types::OA_Type t) |
Uninstall a servant for component or home. | |
void | uninstall (PortableServer::Servant svt, Container_Types::OA_Type t) |
Uninstall a servant for component or home. | |
virtual void | add_servant_to_map (PortableServer::ObjectId &oid, Dynamic_Component_Servant_Base *servant) |
virtual void | delete_servant_from_map (PortableServer::ObjectId &oid) |
virtual void | deactivate_facet (const PortableServer::ObjectId &oid) |
virtual CORBA::Object_ptr | get_home_objref (PortableServer::Servant p) |
CORBA::Object_ptr | generate_reference (const char *obj_id, const char *repo_id, Container_Types::OA_Type t) |
::CIAO::Servant_Activator_ptr | ports_servant_activator (void) |
Protected Attributes | |
unsigned long | number_ |
const bool | static_config_flag_ |
const Static_Config_EntryPoints_Maps * | static_entrypts_maps_ |
Servant_Activator_var | sa_ |
Static Protected Attributes | |
static ACE_Atomic_Op < TAO_SYNCH_MUTEX, unsigned long > | serial_number_ |
Private Member Functions | |
virtual void | init (const char *name=0, const CORBA::PolicyList *more_policies=0) |
Initialize the container with a name. | |
void | create_component_POA (const char *name, const CORBA::PolicyList *p, PortableServer::POA_ptr root) |
Create POA for the component. | |
void | create_facet_consumer_POA (const char *name, const CORBA::PolicyList *p, PortableServer::POA_ptr root) |
Create POA for the facets and consumers alone. | |
Session_Container (void) | |
Not allowed to be. |
CIAO::Session_Container::Session_Container | ( | CORBA::ORB_ptr | o, | |
Deployment::CIAO_Container_i * | container_impl, | |||
bool | static_config_flag = false , |
|||
const Static_Config_EntryPoints_Maps * | static_entrypts_maps = 0 , |
|||
const char * | name = 0 , |
|||
const CORBA::PolicyList * | more_policies = 0 | |||
) |
CIAO::Session_Container::~Session_Container | ( | void | ) | [virtual] |
CIAO::Session_Container::Session_Container | ( | void | ) | [private] |
Not allowed to be.
void CIAO::Session_Container::activate_component | ( | Components::CCMObject_ptr | compref | ) | [virtual] |
Activate component.
void CIAO::Session_Container::add_servant_to_map | ( | PortableServer::ObjectId & | oid, | |
Dynamic_Component_Servant_Base * | servant | |||
) | [virtual] |
void CIAO::Session_Container::create_component_POA | ( | const char * | name, | |
const CORBA::PolicyList * | p, | |||
PortableServer::POA_ptr | root | |||
) | [private] |
Create POA for the component.
This is the POA that is returned to the component applications if they need one.
void CIAO::Session_Container::create_facet_consumer_POA | ( | const char * | name, | |
const CORBA::PolicyList * | p, | |||
PortableServer::POA_ptr | root | |||
) | [private] |
Create POA for the facets and consumers alone.
void CIAO::Session_Container::deactivate_facet | ( | const PortableServer::ObjectId & | oid | ) | [virtual] |
Implemented in CIAO::Swapping_Container.
void CIAO::Session_Container::delete_servant_from_map | ( | PortableServer::ObjectId & | oid | ) | [virtual] |
CORBA::Object_ptr CIAO::Session_Container::generate_reference | ( | const char * | obj_id, | |
const char * | repo_id, | |||
Container_Types::OA_Type | t | |||
) |
Analog of the POA method that creates an object reference from an object id string.
CORBA::Object_ptr CIAO::Session_Container::get_home_objref | ( | PortableServer::Servant | p | ) | [virtual] |
Implemented in CIAO::Swapping_Container.
CORBA::Object_ptr CIAO::Session_Container::get_objref | ( | PortableServer::Servant | p | ) | [virtual] |
Get an object reference to a component or home from the servant.
Implements CIAO::Container_i.
Implemented in CIAO::Swapping_Container.
void CIAO::Session_Container::init | ( | const char * | name = 0 , |
|
const CORBA::PolicyList * | more_policies = 0 | |||
) | [private, virtual] |
Initialize the container with a name.
Implements CIAO::Container_i.
Implemented in CIAO::Swapping_Container.
Components::CCMObject_ptr CIAO::Session_Container::install_component | ( | const char * | primary_artifact, | |
const char * | entry_point, | |||
const char * | servant_artifact, | |||
const char * | servant_entrypoint, | |||
const char * | name | |||
) | [virtual] |
Implements CIAO::Container_i.
Components::CCMHome_ptr CIAO::Session_Container::install_home | ( | const char * | primary_artifact, | |
const char * | entry_point, | |||
const char * | servant_artifact, | |||
const char * | servant_entrypoint, | |||
const char * | name | |||
) | [virtual] |
Simply installing a home executor into the component.
This operation install a home executor into the component. It requires the name of the DLLs to executor and the servant glue code, and the entry points to the respective DLLs. Currently, we don't try to manage the lifetime of DLL objects, but we should at some later point.
Home | objref of the installed home. Install a new home |
Implements CIAO::Container_i.
CORBA::Object_ptr CIAO::Session_Container::install_servant | ( | PortableServer::Servant | p, | |
Container_Types::OA_Type | type, | |||
PortableServer::ObjectId_out | oid | |||
) | [virtual] |
Install a servant for component or home.
Implements CIAO::Container_i.
Implemented in CIAO::Swapping_Container.
void CIAO::Session_Container::passivate_component | ( | Components::CCMObject_ptr | compref | ) | [virtual] |
CIAO::Servant_Activator_ptr CIAO::Session_Container::ports_servant_activator | ( | void | ) |
Return the servant activator factory that activates the servants for facets and consumers.
Implements CIAO::Container.
void CIAO::Session_Container::uninstall | ( | PortableServer::Servant | svt, | |
Container_Types::OA_Type | t | |||
) |
Uninstall a servant for component or home.
void CIAO::Session_Container::uninstall | ( | CORBA::Object_ptr | objref, | |
Container_Types::OA_Type | t | |||
) |
Uninstall a servant for component or home.
void CIAO::Session_Container::uninstall_component | ( | Components::CCMObject_ptr | compref | ) | [virtual] |
Implements CIAO::Container_i.
void CIAO::Session_Container::uninstall_home | ( | Components::CCMHome_ptr | homeref | ) | [virtual] |
Implements CIAO::Container_i.
void CIAO::Session_Container::uninstall_servant | ( | PortableServer::Servant | objref, | |
Container_Types::OA_Type | type, | |||
PortableServer::ObjectId_out | oid | |||
) | [virtual] |
unsigned long CIAO::Session_Container::number_ [protected] |
Implemented in CIAO::Swapping_Container.
Servant_Activator_var CIAO::Session_Container::sa_ [protected] |
The servant activator factory used to activate facets and consumer servants.
ACE_Atomic_Op< TAO_SYNCH_MUTEX, unsigned long > CIAO::Session_Container::serial_number_ [static, protected] |
Static variable to store the highest number we have given out until now
Implemented in CIAO::Swapping_Container.
const bool CIAO::Session_Container::static_config_flag_ [protected] |
const Static_Config_EntryPoints_Maps* CIAO::Session_Container::static_entrypts_maps_ [protected] |