diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2010-06-18 14:41:53 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2010-06-18 14:41:53 +0000 |
commit | ff85f8bbe257861e5bc13bb953f7968e4bf38957 (patch) | |
tree | 04253be1a3ca669a6b5149e93cadd40c3862fe89 /ciao/ComponentServer/CIAO_ComponentInstallation_Impl.cpp | |
parent | 1576f18f4563b78b9c534866f894217dbda4a116 (diff) | |
download | ATCD-remove_componentserver.tar.gz |
Fri Jun 18 14:40:25 UTC 2010 William R. Otte <wotte@dre.vanderbilt.edu>remove_componentserver
* DAnCE/LocalityManager/Daemon/Locality_Manager.mpc:
* DAnCE/LocalityManager/Handler/LocalityHandler.mpc:
* DAnCE/LocalityManager/Scheduler/Scheduler.mpc:
* MPC/config/ciao_deployment_handlers.mpb:
* ciao/ComponentServer/CIAO_Base.mpc:
* ciao/ComponentServer/Client_init.h:
* ciao/ComponentServer/Server_init.h:
* ciao/Containers/Session/Session_Container.cpp:
* ciao/Containers/Session/Session_Container.mpc:
* ciao/Deployment/Handlers/CIAO_Deployment_Handlers.mpc:
* tests/CIF/Common/CIF_Common.mpc:
* tests/CIF/Receptacle/Receptacle.mpc:
* MPC/config/ciao_componentserver_stub.mpb:
* MPC/config/ciao_componentserver_svnt.mpb:
* MPC/config/ciao_cs_client.mpb:
* ciao/ComponentServer/CIAO_CS_Client.idl:
* ciao/ComponentServer/CIAO_ComponentInstallation_Impl.h:
* ciao/ComponentServer/CIAO_ComponentInstallation_Impl.cpp:
* ciao/ComponentServer/CIAO_ComponentServer.cpp:
* ciao/ComponentServer/CIAO_ComponentServer.idl:
* ciao/ComponentServer/CIAO_ComponentServer.mpc:
* ciao/ComponentServer/CIAO_ComponentServer_Impl.h:
* ciao/ComponentServer/CIAO_ComponentServer_Impl.cpp:
* ciao/ComponentServer/CIAO_ComponentServer_Task.h:
* ciao/ComponentServer/CIAO_ComponentServer_Task.cpp:
* ciao/ComponentServer/CIAO_Container_Impl.h:
* ciao/ComponentServer/CIAO_Container_Impl.cpp:
* ciao/ComponentServer/CIAO_RTComponentServer.cpp:
* ciao/ComponentServer/CIAO_RTComponentServer_Task.h:
* ciao/ComponentServer/CIAO_RTComponentServer_Task.cpp:
* ciao/ComponentServer/CIAO_ServerActivator_Impl.h:
* ciao/ComponentServer/CIAO_ServerActivator_Impl.cpp:
* tests/CIAO_ComponentServer:
* tests/CIAO_ComponentServer/Activator:
* tests/CIAO_ComponentServer/Activator/Activator.mpc:
* tests/CIAO_ComponentServer/Activator/client.cpp:
* tests/CIAO_ComponentServer/Activator/run_test.pl:
* tests/CIAO_ComponentServer/Basic:
* tests/CIAO_ComponentServer/Basic/Basic.mpc:
* tests/CIAO_ComponentServer/Basic/client.cpp:
* tests/CIAO_ComponentServer/Basic/run_test.pl:
* tests/CIAO_ComponentServer/Local_Facet:
* tests/CIAO_ComponentServer/Local_Facet/Local_Facet.idl:
* tests/CIAO_ComponentServer/Local_Facet/Local_Facet.mpc:
* tests/CIAO_ComponentServer/Local_Facet/Local_Facet_exec.h:
* tests/CIAO_ComponentServer/Local_Facet/Local_Facet_exec.cpp:
* tests/CIAO_ComponentServer/Local_Facet/client.cpp:
* tests/CIAO_ComponentServer/Local_Facet/run_test.pl:
* tests/CIAO_ComponentServer/SimpleComponent:
* tests/CIAO_ComponentServer/SimpleComponent/SimpleComponent.idl:
* tests/CIAO_ComponentServer/SimpleComponent/SimpleComponent.mpc:
* tests/CIAO_ComponentServer/SimpleComponent/SimpleComponent_exec.h:
* tests/CIAO_ComponentServer/SimpleComponent/SimpleComponent_exec.cpp:
* tests/CIAO_ComponentServer/SimpleComponent/client.cpp:
* tests/CIAO_ComponentServer/SimpleComponent/run_test.pl:
Initial work to remove CIAO ComponentServer
Diffstat (limited to 'ciao/ComponentServer/CIAO_ComponentInstallation_Impl.cpp')
-rw-r--r-- | ciao/ComponentServer/CIAO_ComponentInstallation_Impl.cpp | 129 |
1 files changed, 0 insertions, 129 deletions
diff --git a/ciao/ComponentServer/CIAO_ComponentInstallation_Impl.cpp b/ciao/ComponentServer/CIAO_ComponentInstallation_Impl.cpp deleted file mode 100644 index 4e6b323ccdb..00000000000 --- a/ciao/ComponentServer/CIAO_ComponentInstallation_Impl.cpp +++ /dev/null @@ -1,129 +0,0 @@ -// $Id$ - -#include "CIAO_ComponentInstallation_Impl.h" -#include "ciao/Logger/Log_Macros.h" - -namespace CIAO -{ - namespace Deployment - { - - ComponentInstallation_Impl::ComponentInstallation_Impl() - { - CIAO_TRACE ("ComponentInstallation_Impl::ComponentInstallation_Impl"); - } - - ComponentInstallation_Impl::~ComponentInstallation_Impl() - { - CIAO_TRACE ("ComponentInstallation_Impl::~ComponentInstallation_Impl"); - } - - void - ComponentInstallation_Impl::install (const char * implUUID, const char * component_loc) - { - CIAO_TRACE ("ComponentInstallation_Impl::install"); - - CIAO_DEBUG (6, (LM_DEBUG, CLINFO "ComponentInstallation_Impl::install - " - "implUUID %C, component_loc %C\n", implUUID, component_loc)); - - ACE_CString location = component_loc; - - if (0 == this->locations_.find (implUUID)) - { - this->locations_.bind (implUUID, location); - } - else - { - CIAO_DEBUG (6, (LM_DEBUG, CLINFO "ComponentInstallation_Impl::install - Location for artifact %C " - "already present, replacing.\n", - implUUID)); - this->locations_.rebind (implUUID, location); - } - } - - - void - ComponentInstallation_Impl::replace (const char *uuid, const char *loc) - { - CIAO_TRACE ("ComponentInstallation_Impl::replace"); - - this->locations_.rebind (uuid, loc); - } - - void - ComponentInstallation_Impl::remove (const char *uuid) - { - CIAO_TRACE ("ComponentInstallation_Impl::remove"); - this->locations_.unbind (uuid); - } - - char * - ComponentInstallation_Impl::get_implementation (const char * implUUID) - { - CIAO_TRACE ("ComponentInstallation_Impl::get_implementation"); - - ACE_CString s; - if (0 == this->locations_.find (implUUID, s)) - { - CIAO_DEBUG (6, (LM_DEBUG, CLINFO "ComponentInstallation_Impl::get_implementation - " - "ComponentInstallation_Impl::get_implementation for UUID %C, location %C\n", - implUUID, s.c_str())); - - return CORBA::string_dup (s.c_str()); - } - else - { - CIAO_ERROR (1, (LM_ERROR, CLINFO "ComponentInstallation_Impl::get_implementation - " - "cannot find location for specified implementation UUID %C\n", implUUID)); - throw ::Components::Deployment::UnknownImplId(); - return 0; - } - } - - - char * - ComponentInstallation_Impl::get_valuetypefactory_location (const char * implUUID, - const char * repid) - { - CIAO_TRACE ("ComponentInstallation_Impl::get_valuetypefactory_location"); - - ACE_CString key = ComponentInstallation_Impl::valuefactory_key (implUUID, repid); - ACE_CString s; - if (0 == this->locations_.find (implUUID, s)) - { - CIAO_DEBUG (6, (LM_DEBUG, CLINFO "ComponentInstallation_Impl::get_valuetypefactory_location - " - "UUID:\"%C\" repid:\"%C\" -> location:\"%C\"\n", implUUID, repid, s.c_str())); - return CORBA::string_dup (s.c_str()); - } - else - { - CIAO_ERROR (1, (LM_ERROR, CLINFO "ComponentInstallation_Impl::get_valuetypefactory_location - " - "cannot find location for implementation UUID %C and repid %C.\n", implUUID, repid)); - throw ::Components::Deployment::InstallationFailure(); - return 0; - } - return 0; - } - - - void - ComponentInstallation_Impl::install_valuetypefactory_location (const char * implUUID, - const char * repid, - const char * loc) - { - CIAO_TRACE ("ComponentInstallation_Impl::install_valuetypefactory_location"); - ACE_CString key = ComponentInstallation_Impl::valuefactory_key (implUUID, repid); - if (0 != this->locations_.find (key)) - { - ACE_CString location = loc; - this->locations_.bind (implUUID, location); - } - else - { - // I don't certaint that we should throw exception here - //throw ::Components::Deployment::InstallationFailure(); - } - } - } -} - |