#include <Execution_Manager_Impl.h>
Collaboration diagram for CIAO::Execution_Manager::Execution_Manager_Impl:
Public Member Functions | |
Execution_Manager_Impl (CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, const char *init_file) | |
Constructor. | |
virtual Deployment::DomainApplicationManager_ptr | preparePlan (const Deployment::DeploymentPlan &plan, CORBA::Boolean commitResources) throw (CORBA::SystemException, Deployment::ResourceNotAvailable, Deployment::PlanError, Deployment::StartError) |
virtual Deployment::DomainApplicationManagers * | getManagers () throw (CORBA::SystemException) |
virtual Deployment::DomainApplicationManager_ptr | getManager (const char *plan_uuid) throw (CORBA::SystemException, Deployment::PlanNotExist) |
virtual void | destroyManager (Deployment::DomainApplicationManager_ptr manager) throw (CORBA::SystemException, Deployment::StopError) |
virtual void | destroyManagerByPlan (const char *plan_uuid) throw (::CORBA::SystemException, ::Deployment::StopError) |
virtual void | shutdown () throw (CORBA::SystemException) |
virtual void | perform_redeployment (const Deployment::DeploymentPlan &plan) throw (::CORBA::SystemException, ::Deployment::PlanError, ::Deployment::InstallationFailure, ::Deployment::UnknownImplId, ::Deployment::ImplEntryPointNotFound, ::Deployment::InvalidConnection, ::Deployment::InvalidProperty, ::Components::RemoveFailure) |
virtual Deployment::DeploymentPlan * | getPlan (const char *plan_uuid) throw (::CORBA::SystemException) |
virtual void | finalize_global_binding (const Component_Binding_Info &binding, CORBA::Boolean add_connection) throw ( ::CORBA::SystemException, ::Deployment::InvalidConnection) |
****************** C++ Methods ************************* | |
virtual void | passivate_shared_components (const Component_Binding_Info &binding) throw (CORBA::SystemException, Deployment::StartError) |
virtual void | activate_shared_components (const Component_Binding_Info &binding) throw (CORBA::SystemException, Deployment::StartError) |
virtual void | add_shared_component (const Component_Binding_Info &binding) |
virtual void | remove_shared_component (const Component_Binding_Info &binding) |
Remove shared component. | |
virtual bool | is_component_running (const char *name, const char *plan_uuid) |
Protected Member Functions | |
virtual Deployment::NodeApplication_ptr | find_node_application (const Component_Binding_Info &binding) throw ( ::CORBA::SystemException, ::Deployment::InvalidConnection) |
Return the NodeApplication hosting the given biding. | |
virtual | ~Execution_Manager_Impl (void) |
Destructor. | |
Protected Attributes | |
CORBA::ORB_var | orb_ |
Cached ORB pointer. | |
PortableServer::POA_var | poa_ |
Cached POA pointer. | |
ACE_CString const | init_file_ |
Path to the initialization file. | |
DAM_Map | map_ |
A map which caches the DomainApplicationManager object ref. | |
ACE_Unbounded_Set< Component_Binding_Info > | shared_components_ |
A set of shared components and their location info. |
CIAO::Execution_Manager::Execution_Manager_Impl::Execution_Manager_Impl | ( | CORBA::ORB_ptr | orb, | |
PortableServer::POA_ptr | poa, | |||
const char * | init_file | |||
) |
Constructor.
CIAO::Execution_Manager::Execution_Manager_Impl::~Execution_Manager_Impl | ( | void | ) | [protected, virtual] |
Destructor.
void CIAO::Execution_Manager::Execution_Manager_Impl::activate_shared_components | ( | const Component_Binding_Info & | binding | ) | throw (CORBA::SystemException, Deployment::StartError) [virtual] |
void CIAO::Execution_Manager::Execution_Manager_Impl::add_shared_component | ( | const Component_Binding_Info & | binding | ) | [virtual] |
Add shared component information. This call will be made by DomainApplicationManager.
void CIAO::Execution_Manager::Execution_Manager_Impl::destroyManager | ( | Deployment::DomainApplicationManager_ptr | manager | ) | throw (CORBA::SystemException, Deployment::StopError) [virtual] |
void CIAO::Execution_Manager::Execution_Manager_Impl::destroyManagerByPlan | ( | const char * | plan_uuid | ) | throw (::CORBA::SystemException, ::Deployment::StopError) [virtual] |
void CIAO::Execution_Manager::Execution_Manager_Impl::finalize_global_binding | ( | const Component_Binding_Info & | binding, | |
CORBA::Boolean | add_connection | |||
) | throw ( ::CORBA::SystemException, ::Deployment::InvalidConnection) [virtual] |
****************** C++ Methods *************************
If input <add_connection> is true, then it will add new connections which are across different assemblies. Otherwise it will remove the specified connections of this component.
@GD: Later we can add another method which could accept a list of bindings and do the batch job.
Deployment::NodeApplication_ptr CIAO::Execution_Manager::Execution_Manager_Impl::find_node_application | ( | const Component_Binding_Info & | binding | ) | throw ( ::CORBA::SystemException, ::Deployment::InvalidConnection) [protected, virtual] |
Return the NodeApplication hosting the given biding.
Deployment::DomainApplicationManager_ptr CIAO::Execution_Manager::Execution_Manager_Impl::getManager | ( | const char * | plan_uuid | ) | throw (CORBA::SystemException, Deployment::PlanNotExist) [virtual] |
Deployment::DomainApplicationManagers * CIAO::Execution_Manager::Execution_Manager_Impl::getManagers | ( | ) | throw (CORBA::SystemException) [virtual] |
Deployment::DeploymentPlan * CIAO::Execution_Manager::Execution_Manager_Impl::getPlan | ( | const char * | plan_uuid | ) | throw (::CORBA::SystemException) [virtual] |
bool CIAO::Execution_Manager::Execution_Manager_Impl::is_component_running | ( | const char * | name, | |
const char * | plan_uuid | |||
) | [virtual] |
If the input component <name> was found in the internal cached shared component list, and the plan_uuid also matches, then this member function returns <true>, otherwise it returns <false>.
void CIAO::Execution_Manager::Execution_Manager_Impl::passivate_shared_components | ( | const Component_Binding_Info & | binding | ) | throw (CORBA::SystemException, Deployment::StartError) [virtual] |
void CIAO::Execution_Manager::Execution_Manager_Impl::perform_redeployment | ( | const Deployment::DeploymentPlan & | plan | ) | throw (::CORBA::SystemException, ::Deployment::PlanError, ::Deployment::InstallationFailure, ::Deployment::UnknownImplId, ::Deployment::ImplEntryPointNotFound, ::Deployment::InvalidConnection, ::Deployment::InvalidProperty, ::Components::RemoveFailure) [virtual] |
Deployment::DomainApplicationManager_ptr CIAO::Execution_Manager::Execution_Manager_Impl::preparePlan | ( | const Deployment::DeploymentPlan & | plan, | |
CORBA::Boolean | commitResources | |||
) | throw (CORBA::SystemException, Deployment::ResourceNotAvailable, Deployment::PlanError, Deployment::StartError) [virtual] |
Template methods from ExecutionManagerDaemon, please see $CIAO_ROOT/ciao/Deployment.idl for documentation
@ TODO:Need to check the return value......
void CIAO::Execution_Manager::Execution_Manager_Impl::remove_shared_component | ( | const Component_Binding_Info & | binding | ) | [virtual] |
Remove shared component.
void CIAO::Execution_Manager::Execution_Manager_Impl::shutdown | ( | ) | throw (CORBA::SystemException) [virtual] |
ACE_CString const CIAO::Execution_Manager::Execution_Manager_Impl::init_file_ [protected] |
Path to the initialization file.
A map which caches the DomainApplicationManager object ref.
Cached ORB pointer.
Cached POA pointer.
ACE_Unbounded_Set<Component_Binding_Info> CIAO::Execution_Manager::Execution_Manager_Impl::shared_components_ [protected] |
A set of shared components and their location info.