DAnCE::NodeApplication_Impl Class Reference

#include <NodeApplication_Impl.h>

Collaboration diagram for DAnCE::NodeApplication_Impl:
Collaboration graph
[legend]

List of all members.

Classes

struct  ComponentServer
struct  Container
struct  Instance

Public Types

enum  ERequestType { eCreateComponentServer, eCreateContainer, eInstallHome, eCreateComponentWithConfigValues }
enum  EInstanceType { eHome, eComponent, eHomedComponent, eInvalid }
enum  EComponentState {
  eUninstalled, eInstalled, eConfigured, eActive,
  ePassive, eRemoved, eInvalidState
}

Public Member Functions

 NodeApplication_Impl (CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, const ::Deployment::DeploymentPlan &plan, const ACE_CString &node_name, const PROPERTY_MAP &properties)
virtual ~NodeApplication_Impl ()
virtual void finishLaunch (const ::Deployment::Connections &providedReference,::CORBA::Boolean start)
virtual void start (void)
::Deployment::ConnectionsgetAllConnections (void)
void init_components (void)
void configuration_complete_components (void)
void passivate_components (void)
void remove_components (void)

Protected Types

typedef ACE_Array< InstanceINSTANCES
typedef ACE_Array< Instance * > INSTANCE_PTRS
typedef ACE_Array< ContainerCONTAINERS
typedef ACE_Array
< ComponentServer
COMPONENTSERVERS
typedef std::map< std::string,
int > 
ColocationMap

Protected Member Functions

void init (void)
EInstanceType get_instance_type (const ::Deployment::Properties &prop) const
ColocationMap create_colocation_groups (void)
void create_component_server (size_t index)
void create_container (size_t server, size_t container)
void install_home (Container &cont, Instance &inst)
void install_component (Container &cont, Instance &inst)
void install_homed_component (Container &cont, Instance &inst)
void store_instance_ior (Instance &inst)
bool is_local_facet (const ::Deployment::PlanConnectionDescription &conn)
Components::Cookie * connect_receptacle (const ::Deployment::PlanConnectionDescription &conn, Components::CCMObject_ptr facet, const ACE_CString &facet_name, CORBA::Object_ptr receptacle, const ACE_CString &receptacle_name, CIAO::Deployment::Container_ptr cont)
Components::Cookie * connect_receptacle_ext (Components::CCMObject_ptr inst, const ACE_CString &port_name, CORBA::Object_ptr facet)
void connect_emitter (Components::CCMObject_ptr inst, const ACE_CString &port_name, CORBA::Object_ptr consumer)
void connect_emitter_ext (Components::CCMObject_ptr inst, const ACE_CString &port_name, CORBA::Object_ptr consumer)
Components::Cookie * connect_publisher (Components::CCMObject_ptr inst, const ACE_CString &port_name, CORBA::Object_ptr consumer)

Protected Attributes

CORBA::ORB_var orb_
PortableServer::POA_var poa_
const
::Deployment::DeploymentPlan
plan_
auto_ptr
< CIAO::Deployment::CIAO_ServerActivator_i > 
activator_
ACE_CString node_name_
PROPERTY_MAP properties_
COMPONENTSERVERS servers_
INSTANCE_PTRS instances_
CosNaming::NamingContext_var instance_nc_

Member Typedef Documentation

typedef std::map<std::string, int> DAnCE::NodeApplication_Impl::ColocationMap [protected]

Member Enumeration Documentation

Enumerator:
eUninstalled 
eInstalled 
eConfigured 
eActive 
ePassive 
eRemoved 
eInvalidState 
Enumerator:
eHome 
eComponent 
eHomedComponent 
eInvalid 
Enumerator:
eCreateComponentServer 
eCreateContainer 
eInstallHome 
eCreateComponentWithConfigValues 

Constructor & Destructor Documentation

NodeApplication_Impl::NodeApplication_Impl ( CORBA::ORB_ptr  orb,
PortableServer::POA_ptr  poa,
const ::Deployment::DeploymentPlan plan,
const ACE_CString node_name,
const PROPERTY_MAP properties 
)
NodeApplication_Impl::~NodeApplication_Impl (  )  [virtual]

Member Function Documentation

void NodeApplication_Impl::configuration_complete_components ( void   ) 
void NodeApplication_Impl::connect_emitter ( Components::CCMObject_ptr  inst,
const ACE_CString port_name,
CORBA::Object_ptr  consumer 
) [protected]
void NodeApplication_Impl::connect_emitter_ext ( Components::CCMObject_ptr  inst,
const ACE_CString port_name,
CORBA::Object_ptr  consumer 
) [protected]
Components::Cookie * NodeApplication_Impl::connect_publisher ( Components::CCMObject_ptr  inst,
const ACE_CString port_name,
CORBA::Object_ptr  consumer 
) [protected]
Components::Cookie * NodeApplication_Impl::connect_receptacle ( const ::Deployment::PlanConnectionDescription conn,
Components::CCMObject_ptr  facet,
const ACE_CString facet_name,
CORBA::Object_ptr  receptacle,
const ACE_CString receptacle_name,
CIAO::Deployment::Container_ptr  cont 
) [protected]
Components::Cookie * NodeApplication_Impl::connect_receptacle_ext ( Components::CCMObject_ptr  inst,
const ACE_CString port_name,
CORBA::Object_ptr  facet 
) [protected]
NodeApplication_Impl::ColocationMap NodeApplication_Impl::create_colocation_groups ( void   )  [protected]

Creates colocation groups for all components in this node's deployment. Resulting map has mappings of component ids to appropriate server. As a postcondition, the size of the servers_ array is increased appropriately.

void NodeApplication_Impl::create_component_server ( size_t  index  )  [protected]
void NodeApplication_Impl::create_container ( size_t  server,
size_t  container 
) [protected]
void NodeApplication_Impl::finishLaunch ( const ::Deployment::Connections providedReference,
::CORBA::Boolean  start 
) [virtual]
NodeApplication_Impl::EInstanceType NodeApplication_Impl::get_instance_type ( const ::Deployment::Properties prop  )  const [protected]
Deployment::Connections * NodeApplication_Impl::getAllConnections ( void   ) 
void NodeApplication_Impl::init ( void   )  [protected]
void NodeApplication_Impl::init_components ( void   ) 
void NodeApplication_Impl::install_component ( Container cont,
Instance inst 
) [protected]
void NodeApplication_Impl::install_home ( Container cont,
Instance inst 
) [protected]
void NodeApplication_Impl::install_homed_component ( Container cont,
Instance inst 
) [protected]
bool NodeApplication_Impl::is_local_facet ( const ::Deployment::PlanConnectionDescription conn  )  [protected]
void NodeApplication_Impl::passivate_components ( void   ) 
void NodeApplication_Impl::remove_components ( void   ) 
void NodeApplication_Impl::start ( void   )  [virtual]
void NodeApplication_Impl::store_instance_ior ( Instance inst  )  [protected]

Member Data Documentation

auto_ptr<CIAO::Deployment::CIAO_ServerActivator_i> DAnCE::NodeApplication_Impl::activator_ [protected]
CosNaming::NamingContext_var DAnCE::NodeApplication_Impl::instance_nc_ [protected]
PortableServer::POA_var DAnCE::NodeApplication_Impl::poa_ [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by  doxygen 1.6.2