From 1d548515ebcc0fecee1bc83c1a46505f07757170 Mon Sep 17 00:00:00 2001 From: "William R. Otte" Date: Wed, 11 Feb 2009 14:59:08 +0000 Subject: ChangeLogTag: Wed Feb 11 14:46:15 UTC 2009 William R. Otte --- CIAO/examples/Hello/Hello_Base/Hello_Base.mpc | 4 +- CIAO/examples/Hello/ReDaC-Usage.html | 308 ---------------- CIAO/examples/Hello/Receiver/Receiver.mpc | 6 +- CIAO/examples/Hello/Receiver/Receiver_exec.cpp | 15 +- CIAO/examples/Hello/Receiver/Receiver_exec.h | 7 +- CIAO/examples/Hello/Sender/Sender.mpc | 8 +- CIAO/examples/Hello/Sender/Sender_exec.cpp | 43 +-- CIAO/examples/Hello/Sender/Sender_exec.h | 7 +- CIAO/examples/Hello/Sender/starter.cpp | 4 +- CIAO/examples/Hello/descriptors/DeploymentPlan.cdp | 343 ++++++++++++------ CIAO/examples/Hello/descriptors/Hello.cid | 93 ----- CIAO/examples/Hello/descriptors/Hello.cpd | 13 - CIAO/examples/Hello/descriptors/Libraries.iad | 8 - CIAO/examples/Hello/descriptors/NodeManagerMap.dat | 4 +- CIAO/examples/Hello/descriptors/Receiver.ccd | 34 -- CIAO/examples/Hello/descriptors/Receiver.cid | 24 -- CIAO/examples/Hello/descriptors/Receiver.cpd | 14 - CIAO/examples/Hello/descriptors/Receiver_Exec.iad | 29 -- CIAO/examples/Hello/descriptors/Receiver_Stub.iad | 14 - CIAO/examples/Hello/descriptors/Receiver_Svnt.iad | 29 -- CIAO/examples/Hello/descriptors/Sender.ccd | 48 --- CIAO/examples/Hello/descriptors/Sender.cid | 24 -- CIAO/examples/Hello/descriptors/Sender.cpd | 14 - CIAO/examples/Hello/descriptors/Sender_Exec.iad | 29 -- CIAO/examples/Hello/descriptors/Sender_Stub.iad | 14 - CIAO/examples/Hello/descriptors/Sender_Svnt.iad | 29 -- CIAO/examples/Hello/descriptors/run_test.pl | 27 +- .../Hello/descriptors_ReDaC/deploymentplan.cdp | 222 ------------ .../Hello/descriptors_ReDaC/deploymentplan_add.cdp | 267 -------------- .../descriptors_ReDaC/deploymentplan_remove.cdp | 223 ------------ .../Hello/descriptors_events/NodeManagerMap.dat | 2 - .../descriptors_events/NodeManagerMapTwoHosts.dat | 2 - .../NodeManagerMap_collocated.dat | 1 - CIAO/examples/Hello/descriptors_events/README | 145 -------- .../Hello/descriptors_events/RunEventTest.pm | 212 ----------- .../ciao-events-example-collocated.ced | 14 - .../ciao-events-example-with-federation.ced | 48 --- .../ciao-events-example-with-filters.ced | 51 --- .../descriptors_events/ciao-events-example.ced | 14 - .../ciao-events-federation-mcast.ced | 58 --- .../ciao-events-federation-udp-collocated.ced | 47 --- .../ciao-events-federation-udp-two-hosts.ced | 50 --- .../ciao-events-federation-udp.ced | 49 --- .../descriptors_events/deploymentplan_events.cdp | 260 -------------- .../deploymentplan_events_collocated.cdp | 260 -------------- .../deploymentplan_federation.cdp | 233 ------------ .../deploymentplan_federation_mcast.cdp | 231 ------------ .../deploymentplan_federation_udp.cdp | 246 ------------- .../deploymentplan_federation_udp_collocated.cdp | 246 ------------- .../deploymentplan_federation_udp_two_hosts.cdp | 246 ------------- .../deploymentplan_multiple_senders.cdp | 395 --------------------- .../deploymentplan_with_filters.cdp | 278 --------------- CIAO/examples/Hello/descriptors_events/rtec.conf | 1 - .../Hello/descriptors_events/run_NodeDaemons.pl | 40 --- .../descriptors_events/run_NodeDaemons_svc_conf.pl | 42 --- .../descriptors_events/run_NodeDaemons_with_ip.pl | 40 --- CIAO/examples/Hello/descriptors_events/run_test.pl | 49 --- .../descriptors_events/run_test_collocated.pl | 12 - .../Hello/descriptors_events/run_test_federated.pl | 12 - .../Hello/descriptors_events/run_test_filtered.pl | 12 - .../Hello/descriptors_events/run_test_multicast.pl | 12 - .../run_test_multiple_senders.pl | 199 ----------- .../Hello/descriptors_events/run_test_simple.pl | 12 - .../Hello/descriptors_events/run_test_udp.pl | 12 - .../descriptors_events/run_test_udp_collocated.pl | 12 - .../deploymentplan.cdp | 224 ------------ .../deploymentplan_shared_components.cdp | 229 ------------ 67 files changed, 294 insertions(+), 5606 deletions(-) delete mode 100644 CIAO/examples/Hello/ReDaC-Usage.html delete mode 100644 CIAO/examples/Hello/descriptors/Hello.cid delete mode 100644 CIAO/examples/Hello/descriptors/Hello.cpd delete mode 100644 CIAO/examples/Hello/descriptors/Libraries.iad delete mode 100644 CIAO/examples/Hello/descriptors/Receiver.ccd delete mode 100644 CIAO/examples/Hello/descriptors/Receiver.cid delete mode 100644 CIAO/examples/Hello/descriptors/Receiver.cpd delete mode 100644 CIAO/examples/Hello/descriptors/Receiver_Exec.iad delete mode 100644 CIAO/examples/Hello/descriptors/Receiver_Stub.iad delete mode 100644 CIAO/examples/Hello/descriptors/Receiver_Svnt.iad delete mode 100644 CIAO/examples/Hello/descriptors/Sender.ccd delete mode 100644 CIAO/examples/Hello/descriptors/Sender.cid delete mode 100644 CIAO/examples/Hello/descriptors/Sender.cpd delete mode 100644 CIAO/examples/Hello/descriptors/Sender_Exec.iad delete mode 100644 CIAO/examples/Hello/descriptors/Sender_Stub.iad delete mode 100644 CIAO/examples/Hello/descriptors/Sender_Svnt.iad delete mode 100644 CIAO/examples/Hello/descriptors_ReDaC/deploymentplan.cdp delete mode 100644 CIAO/examples/Hello/descriptors_ReDaC/deploymentplan_add.cdp delete mode 100644 CIAO/examples/Hello/descriptors_ReDaC/deploymentplan_remove.cdp delete mode 100644 CIAO/examples/Hello/descriptors_events/NodeManagerMap.dat delete mode 100644 CIAO/examples/Hello/descriptors_events/NodeManagerMapTwoHosts.dat delete mode 100644 CIAO/examples/Hello/descriptors_events/NodeManagerMap_collocated.dat delete mode 100644 CIAO/examples/Hello/descriptors_events/README delete mode 100755 CIAO/examples/Hello/descriptors_events/RunEventTest.pm delete mode 100644 CIAO/examples/Hello/descriptors_events/ciao-events-example-collocated.ced delete mode 100644 CIAO/examples/Hello/descriptors_events/ciao-events-example-with-federation.ced delete mode 100644 CIAO/examples/Hello/descriptors_events/ciao-events-example-with-filters.ced delete mode 100644 CIAO/examples/Hello/descriptors_events/ciao-events-example.ced delete mode 100644 CIAO/examples/Hello/descriptors_events/ciao-events-federation-mcast.ced delete mode 100644 CIAO/examples/Hello/descriptors_events/ciao-events-federation-udp-collocated.ced delete mode 100644 CIAO/examples/Hello/descriptors_events/ciao-events-federation-udp-two-hosts.ced delete mode 100644 CIAO/examples/Hello/descriptors_events/ciao-events-federation-udp.ced delete mode 100644 CIAO/examples/Hello/descriptors_events/deploymentplan_events.cdp delete mode 100644 CIAO/examples/Hello/descriptors_events/deploymentplan_events_collocated.cdp delete mode 100644 CIAO/examples/Hello/descriptors_events/deploymentplan_federation.cdp delete mode 100644 CIAO/examples/Hello/descriptors_events/deploymentplan_federation_mcast.cdp delete mode 100644 CIAO/examples/Hello/descriptors_events/deploymentplan_federation_udp.cdp delete mode 100644 CIAO/examples/Hello/descriptors_events/deploymentplan_federation_udp_collocated.cdp delete mode 100644 CIAO/examples/Hello/descriptors_events/deploymentplan_federation_udp_two_hosts.cdp delete mode 100644 CIAO/examples/Hello/descriptors_events/deploymentplan_multiple_senders.cdp delete mode 100644 CIAO/examples/Hello/descriptors_events/deploymentplan_with_filters.cdp delete mode 100644 CIAO/examples/Hello/descriptors_events/rtec.conf delete mode 100755 CIAO/examples/Hello/descriptors_events/run_NodeDaemons.pl delete mode 100755 CIAO/examples/Hello/descriptors_events/run_NodeDaemons_svc_conf.pl delete mode 100644 CIAO/examples/Hello/descriptors_events/run_NodeDaemons_with_ip.pl delete mode 100755 CIAO/examples/Hello/descriptors_events/run_test.pl delete mode 100755 CIAO/examples/Hello/descriptors_events/run_test_collocated.pl delete mode 100755 CIAO/examples/Hello/descriptors_events/run_test_federated.pl delete mode 100755 CIAO/examples/Hello/descriptors_events/run_test_filtered.pl delete mode 100755 CIAO/examples/Hello/descriptors_events/run_test_multicast.pl delete mode 100755 CIAO/examples/Hello/descriptors_events/run_test_multiple_senders.pl delete mode 100755 CIAO/examples/Hello/descriptors_events/run_test_simple.pl delete mode 100755 CIAO/examples/Hello/descriptors_events/run_test_udp.pl delete mode 100755 CIAO/examples/Hello/descriptors_events/run_test_udp_collocated.pl delete mode 100644 CIAO/examples/Hello/descriptors_shared_components/deploymentplan.cdp delete mode 100644 CIAO/examples/Hello/descriptors_shared_components/deploymentplan_shared_components.cdp (limited to 'CIAO/examples/Hello') diff --git a/CIAO/examples/Hello/Hello_Base/Hello_Base.mpc b/CIAO/examples/Hello/Hello_Base/Hello_Base.mpc index 01fcc996184..3fd5fcd83a8 100644 --- a/CIAO/examples/Hello/Hello_Base/Hello_Base.mpc +++ b/CIAO/examples/Hello/Hello_Base/Hello_Base.mpc @@ -14,7 +14,7 @@ project(Hello_Base_idl_gen) : taoidldefaults, anytypecode { } } -project(Hello_Base_stub) : ciao_client_dnc { +project(Hello_Base_stub) : ccm_stub { avoids += ace_for_tao after += Hello_Base_idl_gen libs += @@ -40,7 +40,7 @@ project(Hello_Base_stub) : ciao_client_dnc { } -project(Hello_Base_skel) : ciao_component_dnc { +project(Hello_Base_skel) : ccm_svnt { avoids += ace_for_tao after += Hello_Base_stub sharedname = Hello_Base_skel diff --git a/CIAO/examples/Hello/ReDaC-Usage.html b/CIAO/examples/Hello/ReDaC-Usage.html deleted file mode 100644 index eb9b8c729b7..00000000000 --- a/CIAO/examples/Hello/ReDaC-Usage.html +++ /dev/null @@ -1,308 +0,0 @@ - - - - - - - - ReDaC Service Usage - - - - - - -
-

Simple Tutorial for using ReDaC (Redeployment and Reconfiguration)

- - -Prerequisite:
- - -
- - -
Before you proceed further, please read the step-by-step tutorial -page first.
- - -
- - -
Note: -
- - - - - -
-

Example Description

- - -We will use the Hello example to illustrate how one could use ReDaC -service to perform redeployment and reconfiguration. -
-

Initial Deployment

- - -Below steps are required for the initial deployment of your application, -which is performed by DAnCE. The below steps are different from those -presented in the step-by-step -tutorial page in the sense that we pass different command line options -to the Plan_Launcher -client:
- - - - - -
-

Redeployment and Reconfiguration

- - -Basically, you could use ReDaC service in two ways.
- - -
    - - -
  1. Use ReDaC service directly -through DAnCE's Plan_Launcher -client
  2. - - -
  3. Use ReDaC -service programmatically -by writing your own client
  4. - - -
- - -This tutorial illustrates how exactly you could use ReDaC.
- - -
- - -Use ReDaC service through -Plan_Launcher  of DAnCE:
- - - - - -
- - -
NOTE:  By -using ReDaC through Plan_Launcher, as a user you must provide a new -DeploymentPlan (.cdp) XML file, which captures the new deployment and -configuration settings of your application, and the Plan_UUID of the -new DeploymentPlan should be the same as the one of the old -(running) DeploymentPlan. Otherwise, DAnCE will think you want to -deploy a totally different deployment plan, instead of applying some -changes to the existing plan. One could use CoSMIC MDD tool to create such a deployment plan XML file.
- -
- - -
- - -Use ReDaC service programmatically: - - - -
The IDL signature of this operation is as follows:
- -
- -    void perform_redeployment (in DeploymentPlan new_plan)
- -      raises (PlanError,
- -              InstallationFailure,
- -              UnknownImplId,
- -              ImplEntryPointNotFound,
- -              InvalidConnection,
- -              InvalidProperty,
- -              ::Components::RemoveFailure);

- -
- - -
-
In order to simplify the creation of a the "new_plan", we are implementing a utility class which allows a developer to easily manipulate a deployment plan data structure.
- - -
-Email: -
ciao-users@cse.wustl.edu
- - - - diff --git a/CIAO/examples/Hello/Receiver/Receiver.mpc b/CIAO/examples/Hello/Receiver/Receiver.mpc index 94054fa4ce1..6a0a3cfa2c5 100644 --- a/CIAO/examples/Hello/Receiver/Receiver.mpc +++ b/CIAO/examples/Hello/Receiver/Receiver.mpc @@ -32,7 +32,7 @@ project(Hello_Receiver_cidl_gen) : ciaocidldefaults, taoidldefaults { } } -project(Hello_Receiver_stub) : ciao_client_dnc { +project(Hello_Receiver_stub) : ccm_stub { avoids += ace_for_tao after += Hello_Receiver_idl_gen Hello_Base_stub libs += Hello_Base_stub @@ -57,7 +57,7 @@ project(Hello_Receiver_stub) : ciao_client_dnc { } } -project(Hello_Receiver_exec) : ciao_component_dnc { +project(Hello_Receiver_exec) : ciao_executor { avoids += ace_for_tao after += Hello_Receiver_cidl_gen Hello_Receiver_stub sharedname = Hello_Receiver_exec @@ -85,7 +85,7 @@ project(Hello_Receiver_exec) : ciao_component_dnc { } -project(Hello_Receiver_svnt) : ciao_servant_dnc { +project(Hello_Receiver_svnt) : ciao_servant { avoids += ace_for_tao after += Hello_Base_skel Hello_Receiver_exec sharedname = Hello_Receiver_svnt diff --git a/CIAO/examples/Hello/Receiver/Receiver_exec.cpp b/CIAO/examples/Hello/Receiver/Receiver_exec.cpp index b2de2e9c7ab..ab2635814fc 100644 --- a/CIAO/examples/Hello/Receiver/Receiver_exec.cpp +++ b/CIAO/examples/Hello/Receiver/Receiver_exec.cpp @@ -36,7 +36,7 @@ namespace CIDL_Receiver_Impl { //Get the message from the Sender first. ACE_DEBUG ((LM_DEBUG, - "Receiver - Informed by the Sender with message [%s]\n", + "Receiver - Informed by the Sender with message [%C]\n", ev->data ())); Hello::ReadMessage_var rev @@ -48,7 +48,7 @@ namespace CIDL_Receiver_Impl CORBA::String_var str = rev->get_message (); ACE_DEBUG ((LM_DEBUG, - "Receiver - Got message from the server [%s] \n", + "Receiver - Got message from the server [%C]\n", str.in () )); } @@ -68,10 +68,10 @@ namespace CIDL_Receiver_Impl } void - Receiver_exec_i::ciao_preactivate () + Receiver_exec_i::configuration_complete () { ACE_DEBUG ((LM_DEBUG, - "Receiver_exec_i::ciao_preactivate\n")); + "Receiver_exec_i::configuration_complete\n")); } void @@ -80,13 +80,6 @@ namespace CIDL_Receiver_Impl ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::ccm_activate\n")); } - void - Receiver_exec_i::ciao_postactivate () - { - ACE_DEBUG ((LM_DEBUG, - "Receiver_exec_i::ciao_postactivate\n")); - } - void Receiver_exec_i::ccm_passivate () { diff --git a/CIAO/examples/Hello/Receiver/Receiver_exec.h b/CIAO/examples/Hello/Receiver/Receiver_exec.h index 2e1d473a34a..e24520126c7 100644 --- a/CIAO/examples/Hello/Receiver/Receiver_exec.h +++ b/CIAO/examples/Hello/Receiver/Receiver_exec.h @@ -58,15 +58,10 @@ namespace CIDL_Receiver_Impl // Operations from Components::SessionComponent virtual void set_session_context (::Components::SessionContext_ptr ctx); - virtual void ciao_preactivate (); + virtual void configuration_complete (); virtual void ccm_activate (); - - virtual void ciao_postactivate (); - - virtual void ccm_passivate (); - virtual void ccm_remove (); protected: diff --git a/CIAO/examples/Hello/Sender/Sender.mpc b/CIAO/examples/Hello/Sender/Sender.mpc index 0f26536a785..85f9fd94d1f 100644 --- a/CIAO/examples/Hello/Sender/Sender.mpc +++ b/CIAO/examples/Hello/Sender/Sender.mpc @@ -32,7 +32,7 @@ project(Hello_Sender_cidl_gen) : ciaocidldefaults, taoidldefaults { } } -project(Hello_Sender_stub) : ciao_client_dnc { +project(Hello_Sender_stub) : ccm_stub { avoids += ace_for_tao after += Hello_Sender_idl_gen Hello_Base_stub libs += Hello_Base_stub @@ -57,7 +57,7 @@ project(Hello_Sender_stub) : ciao_client_dnc { } } -project(Hello_Sender_exec) : ciao_component_dnc { +project(Hello_Sender_exec) : ciao_executor { avoids += ace_for_tao after += Hello_Sender_cidl_gen Hello_Sender_stub sharedname = Hello_Sender_exec @@ -85,7 +85,7 @@ project(Hello_Sender_exec) : ciao_component_dnc { } -project(Hello_Sender_svnt) : ciao_servant_dnc { +project(Hello_Sender_svnt) : ciao_servant { avoids += ace_for_tao after += Hello_Base_skel Hello_Sender_exec sharedname = Hello_Sender_svnt @@ -118,7 +118,7 @@ project(Hello_Sender_svnt) : ciao_servant_dnc { } } -project (Hello_starter) : ciao_client_dnc, valuetype { +project (Hello_starter) : ccm_stub, valuetype { avoids += ace_for_tao exename = starter after += Hello_Sender_stub diff --git a/CIAO/examples/Hello/Sender/Sender_exec.cpp b/CIAO/examples/Hello/Sender/Sender_exec.cpp index 05834007ace..e2c27d3e202 100644 --- a/CIAO/examples/Hello/Sender/Sender_exec.cpp +++ b/CIAO/examples/Hello/Sender/Sender_exec.cpp @@ -26,7 +26,7 @@ namespace CIDL_Sender_Impl char* Message_Impl::get_message () { - ACE_DEBUG ((LM_DEBUG, "Sender sending out message: [%s]\n", component_.message_.in ())); + ACE_DEBUG ((LM_EMERGENCY, "Sender sending out message: [%C]\n", component_.message_.in ())); return CORBA::string_dup (component_.message_.in ()); } @@ -50,7 +50,7 @@ namespace CIDL_Sender_Impl Sender_exec_i::hertz (CORBA::Long hertz) { this->hertz_ = hertz; - ACE_DEBUG ((LM_DEBUG, "Sender_exec_i::Hertz:%d\n", this->hertz_)); + ACE_DEBUG ((LM_EMERGENCY, "Sender_exec_i::Hertz:%d\n", this->hertz_)); } CORBA::Long @@ -75,7 +75,7 @@ namespace CIDL_Sender_Impl Hello::CCM_ReadMessage_ptr Sender_exec_i::get_push_message () { - ACE_DEBUG ((LM_DEBUG, + ACE_DEBUG ((LM_EMERGENCY, "Sender_exec.i::get_push_message called\n ")); return ( new Message_Impl (*this) ); } @@ -85,31 +85,31 @@ namespace CIDL_Sender_Impl { Hello::TimeOut_var event = new OBV_Hello::TimeOut; event->data ("ACE/TAO/CIAO"); - ACE_DEBUG ((LM_DEBUG, "Sender initiates the process.\n")); + ACE_DEBUG ((LM_EMERGENCY, "Sender initiates the process.\n")); this->context_->push_click_out (event.in ()); - ACE_DEBUG ((LM_DEBUG, "My current color is:")); + ACE_DEBUG ((LM_EMERGENCY, "My current color is:")); switch (this->color_) { case ::Hello::empty: - ACE_DEBUG ((LM_DEBUG, "ERROR: Enum attribute initialization failed.\n")); + ACE_DEBUG ((LM_EMERGENCY, "ERROR: Enum attribute initialization failed.\n")); break; case ::Hello::white: - ACE_DEBUG ((LM_DEBUG, "white\n")); + ACE_DEBUG ((LM_EMERGENCY, "white\n")); break; case ::Hello::red: - ACE_DEBUG ((LM_DEBUG, "red\n")); + ACE_DEBUG ((LM_EMERGENCY, "red\n")); break; case ::Hello::yellow: - ACE_DEBUG ((LM_DEBUG, "yellow\n")); + ACE_DEBUG ((LM_EMERGENCY, "yellow\n")); break; default: - ACE_DEBUG ((LM_DEBUG, "Unknown color!\n")); + ACE_DEBUG ((LM_EMERGENCY, "Unknown color!\n")); } } @@ -117,7 +117,7 @@ namespace CIDL_Sender_Impl void Sender_exec_i::set_session_context (::Components::SessionContext_ptr ctx) { - ACE_DEBUG ((LM_DEBUG, "Sender_exec_i::set_session_context\n")); + ACE_DEBUG ((LM_EMERGENCY, "Sender_exec_i::set_session_context\n")); this->context_ = ::Hello::CCM_Sender_Context::_narrow (ctx); @@ -129,36 +129,29 @@ namespace CIDL_Sender_Impl } void - Sender_exec_i::ciao_preactivate () + Sender_exec_i::configuration_complete () { - ACE_DEBUG ((LM_DEBUG, - "Sender_exec_i::ciao_preactivate\n")); + ACE_DEBUG ((LM_EMERGENCY, + "Sender_exec_i::configuration_complete\n")); } void Sender_exec_i::ccm_activate () { - ACE_DEBUG ((LM_DEBUG, + ACE_DEBUG ((LM_EMERGENCY, "Sender_exec_i::ccm_activate\n")); } - void - Sender_exec_i::ciao_postactivate () - { - ACE_DEBUG ((LM_DEBUG, - "Sender_exec_i::ciao_postactivate\n")); - } - void Sender_exec_i::ccm_passivate () { - ACE_DEBUG ((LM_DEBUG, "Sender_exec_i::ccm_passivate\n")); + ACE_DEBUG ((LM_EMERGENCY, "Sender_exec_i::ccm_passivate\n")); } void Sender_exec_i::ccm_remove () { - ACE_DEBUG ((LM_DEBUG, "Sender_exec_i::ccm_remove\n")); + ACE_DEBUG ((LM_EMERGENCY, "Sender_exec_i::ccm_remove\n")); } SenderHome_exec_i::SenderHome_exec_i () @@ -172,7 +165,7 @@ namespace CIDL_Sender_Impl ::Components::EnterpriseComponent_ptr SenderHome_exec_i::create () { - ACE_DEBUG ((LM_DEBUG, "(%P|%t) creating SenderHome \n")); + ACE_DEBUG ((LM_EMERGENCY, "(%P|%t) creating SenderHome \n")); ::Components::EnterpriseComponent_ptr retval = ::Components::EnterpriseComponent::_nil (); diff --git a/CIAO/examples/Hello/Sender/Sender_exec.h b/CIAO/examples/Hello/Sender/Sender_exec.h index 1a3d186dfc5..cf68e2b689f 100644 --- a/CIAO/examples/Hello/Sender/Sender_exec.h +++ b/CIAO/examples/Hello/Sender/Sender_exec.h @@ -95,12 +95,10 @@ namespace CIDL_Sender_Impl // Operations from Components::SessionComponent virtual void set_session_context (::Components::SessionContext_ptr ctx); - virtual void ciao_preactivate (); + virtual void configuration_complete (); virtual void ccm_activate (); - virtual void ciao_postactivate (); - virtual void ccm_passivate (); virtual void ccm_remove (); @@ -166,6 +164,9 @@ namespace CIDL_Sender_Impl create (); }; + extern "C" SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr + create_Hello_Sender_Impl (void); + extern "C" SENDER_EXEC_Export ::Components::HomeExecutorBase_ptr create_Hello_SenderHome_Impl (void); } diff --git a/CIAO/examples/Hello/Sender/starter.cpp b/CIAO/examples/Hello/Sender/starter.cpp index 1ce3ceced18..3900c541fc1 100644 --- a/CIAO/examples/Hello/Sender/starter.cpp +++ b/CIAO/examples/Hello/Sender/starter.cpp @@ -4,7 +4,7 @@ #include "ace/Get_Opt.h" // IOR file of the Sender -const char * ior = 0; +const ACE_TCHAR * ior = 0; const char * message = 0; int @@ -39,7 +39,7 @@ parse_args (int argc, ACE_TCHAR *argv[]) if (ior == 0) { - ior = "file://Sender.ior"; + ior = ACE_TEXT("file://Sender.ior"); } return 0; diff --git a/CIAO/examples/Hello/descriptors/DeploymentPlan.cdp b/CIAO/examples/Hello/descriptors/DeploymentPlan.cdp index 443ad7b0de3..8d22e0ea906 100644 --- a/CIAO/examples/Hello/descriptors/DeploymentPlan.cdp +++ b/CIAO/examples/Hello/descriptors/DeploymentPlan.cdp @@ -1,31 +1,181 @@ - - + + + Hello_Deployment_1 - 7A745844-C5AB-4402-8D3C-55B68A26B099 + - - Hello.ComponentImplementations.ReceiverImplementation.ReceiverMonolithicImpl + + + Hello_ReceiverHomeImplementation - _3D49EF00-0613-471E-A251-84263431CE61 - _B1AD305F-9124-4C36-8502-C5878C6841C7 - _6A3DCF45-7624-4AB1-95CA-A0DDF99053BB + + + + + home factory + + + tk_string + + + create_Hello_ReceiverHome_Impl + + + + + edu.vanderbilt.dre.CIAO.ServantEntrypoint + + + tk_string + + + create_Hello_ReceiverHome_Servant + + + + + edu.vanderbilt.dre.CIAO.ServantArtifact + + + tk_string + + + Hello_Receiver_svnt + + + + + edu.vanderbilt.dre.CIAO.ExecutorArtifact + + + tk_string + + + Hello_Receiver_exec + + + + + + + Hello_ReceiverComponentImplementation + + + + + + + Hello_SenderHomeImplementation + + + + + + home factory + + + tk_string + + + create_Hello_SenderHome_Impl + + + + + edu.vanderbilt.dre.CIAO.ServantEntrypoint + + + tk_string + + + create_Hello_SenderHome_Servant + + + + + edu.vanderbilt.dre.CIAO.ServantArtifact + + + tk_string + + + Hello_Sender_svnt + + + + + edu.vanderbilt.dre.CIAO.ExecutorArtifact + + + tk_string + + + Hello_Sender_exec + + + - - Hello.ComponentImplementations.SenderImplementation.SenderMonolithicImpl + + Hello_SenderComponentImplementation - _887DACE6-A0CD-4E0D-B84A-407B4FDB2D4A - _CB2D05F4-48C0-4567-9D59-534F461A81E7 - _E2E0B980-BA79-43FB-AFC3-788B979E0413 + + - - Hello.ComponentImplementations.Hello.Hello.Receiver + + Hello_ReceiverHome ReceiverNode + - _E91CFCB0-66F0-41A3-99CE-12AEDFACAC8E + - ComponentIOR + edu.vanderbilt.dre.DAnCE.InstanceIOR + + + tk_string + + + ReceiverHome.ior + + + + + edu.vanderbilt.dre.DAnCE.RegisterNaming + + + tk_string + + + ReceiverHome + + + + + + + Hello_ReceiverComponent + ReceiverNode + + + + + edu.vanderbilt.dre.DAnCE.ExplicitHome + + + tk_string + + + Hello_ReceiverHome + + + + + edu.vanderbilt.dre.DAnCE.InstanceIOR tk_string @@ -36,7 +186,7 @@ - RegisterNaming + edu.vanderbilt.dre.DAnCE.RegisterNaming tk_string @@ -48,30 +198,50 @@ - - Hello.ComponentImplementations.Hello.Hello.Sender + + Hello_SenderHome SenderNode + - _CE2EE8B8-BCF7-4E25-B3DB-0BFE5CED3A1C + - ComponentIOR + edu.vanderbilt.dre.DAnCE.InstanceIOR tk_string - Sender.ior + SenderHome.ior - RegisterNaming + edu.vanderbilt.dre.DAnCE.RegisterNaming tk_string - Sender + SenderHome + + + + + + + Hello_SenderComponent + SenderNode + + + + + edu.vanderbilt.dre.DAnCE.ExplicitHome + + + tk_string + + + Hello_SenderHome @@ -105,120 +275,87 @@ + + edu.vanderbilt.dre.DAnCE.InstanceIOR + + + tk_string + + + Sender.ior + + + + + edu.vanderbilt.dre.DAnCE.RegisterNaming + + + tk_string + + + Sender + + + - + - read_message_push_messageHello.ComponentImplementations.Hello.Hello.ReceiverHello.ComponentImplementations.Hello.Hello.Sender + MessageConnection read_message + false SimplexReceptacle - Hello.ComponentImplementations.Hello.Hello.Receiver + push_message + true Facet - Hello.ComponentImplementations.Hello.Hello.Sender + - click_out_click_inHello.ComponentImplementations.Hello.Hello.SenderHello.ComponentImplementations.Hello.Hello.Receiver + EventConnection click_out + false EventPublisher - Hello.ComponentImplementations.Hello.Hello.Sender + click_in + true EventConsumer - Hello.ComponentImplementations.Hello.Hello.Receiver + - - Hello.ImplementationArtifacts.ReceiverArtifacts.Receiver_stub + + + Hello_Receiver_exec - Hello_Receiver_stub + Hello_Receiver_exec - - - Hello.ImplementationArtifacts.ReceiverArtifacts.Receiver_svnt + + Hello_Receiver_svnt Hello_Receiver_svnt - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Servant - - - - - Hello.ImplementationArtifacts.ReceiverArtifacts.Receiver_exec + + Hello_Sender_exec - Hello_Receiver_exec - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Impl - - - - - - - Hello.ImplementationArtifacts.SenderArtifacts.Sender_stub - - - Hello_Sender_stub + Hello_Sender_exec - - - Hello.ImplementationArtifacts.SenderArtifacts.Sender_svnt + + Hello_Sender_svnt Hello_Sender_svnt - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Servant - - - - - - - Hello.ImplementationArtifacts.SenderArtifacts.Sender_exec - - - Hello_Sender_exec - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Impl - - - - + diff --git a/CIAO/examples/Hello/descriptors/Hello.cid b/CIAO/examples/Hello/descriptors/Hello.cid deleted file mode 100644 index f7abad71ded..00000000000 --- a/CIAO/examples/Hello/descriptors/Hello.cid +++ /dev/null @@ -1,93 +0,0 @@ - - - - effd4bd0-6db0-4c50-9bb7-db9decebae1c - - - Sender_Instance - - - - ComponentIOR - - - tk_string - - - Sender.ior - - - - - - local_message - - - tk_string - - - This is a test message passed in through XML. - - - - - - hertz - - - tk_long - - - 50 - - - - - - - - - Receiver_Instance - - - - ComponentIOR - - - tk_string - - - Receiver.ior - - - - - - - Messages - - read_message - - - - push_message - - - - - Events - - click_in - - - - click_out - - - - - diff --git a/CIAO/examples/Hello/descriptors/Hello.cpd b/CIAO/examples/Hello/descriptors/Hello.cpd deleted file mode 100644 index 52b0e9a6c1d..00000000000 --- a/CIAO/examples/Hello/descriptors/Hello.cpd +++ /dev/null @@ -1,13 +0,0 @@ - - - - 823e4287-f53c-4caa-8619-f3dfda4c4998 - - Hello - - - diff --git a/CIAO/examples/Hello/descriptors/Libraries.iad b/CIAO/examples/Hello/descriptors/Libraries.iad deleted file mode 100644 index 6112a23ca3b..00000000000 --- a/CIAO/examples/Hello/descriptors/Libraries.iad +++ /dev/null @@ -1,8 +0,0 @@ - - - - 6bae4fcd-c71c-44b4-a0d4-0e4199ce1a49 - $ACE_ROOT/lib/libACE - $ACE_ROOT/lib/libTAO - $ACE_ROOT/lib/libCIAO_DnC_Client - diff --git a/CIAO/examples/Hello/descriptors/NodeManagerMap.dat b/CIAO/examples/Hello/descriptors/NodeManagerMap.dat index 9880f37997e..69199c0a089 100644 --- a/CIAO/examples/Hello/descriptors/NodeManagerMap.dat +++ b/CIAO/examples/Hello/descriptors/NodeManagerMap.dat @@ -1,2 +1,2 @@ -SenderNode corbaloc:iiop:localhost:60001/NodeManager -ReceiverNode corbaloc:iiop:localhost:60002/NodeManager \ No newline at end of file +SenderNode corbaloc:iiop:localhost:60001/Sender.NodeManager +ReceiverNode corbaloc:iiop:localhost:60002/Receiver.NodeManager \ No newline at end of file diff --git a/CIAO/examples/Hello/descriptors/Receiver.ccd b/CIAO/examples/Hello/descriptors/Receiver.ccd deleted file mode 100644 index a5167d03e7a..00000000000 --- a/CIAO/examples/Hello/descriptors/Receiver.ccd +++ /dev/null @@ -1,34 +0,0 @@ - - - - 589462ed-e88f-4f96-a7a7-359cdc333d63 - IDL:Hello/Receiver:1.0 - IDL:Hello/Receiver:1.0 - Receiver.idl - - click_in - false - false - false - false - IDL:Hello/TimeOut:1.0 - IDL:Hello/TimeOut:1.0 - EventConsumer - - - - read_message - false - false - false - false - IDL:Hello/ReadMessage:1.0 - IDL:Hello/ReadMessage:1.0 - SimplexReceptacle - - - diff --git a/CIAO/examples/Hello/descriptors/Receiver.cid b/CIAO/examples/Hello/descriptors/Receiver.cid deleted file mode 100644 index 18d379e7eba..00000000000 --- a/CIAO/examples/Hello/descriptors/Receiver.cid +++ /dev/null @@ -1,24 +0,0 @@ - - - - 0a52c9de-7852-42e4-aac7-bf478169a21a - - - - Receiver_Stub - - - - Receiver_Svnt - - - - Receiver_Exec - - - - diff --git a/CIAO/examples/Hello/descriptors/Receiver.cpd b/CIAO/examples/Hello/descriptors/Receiver.cpd deleted file mode 100644 index 3cddb924834..00000000000 --- a/CIAO/examples/Hello/descriptors/Receiver.cpd +++ /dev/null @@ -1,14 +0,0 @@ - - - - a5923ef4-9c62-4458-9fa4-869b53d834ca - - - Receiver - - - diff --git a/CIAO/examples/Hello/descriptors/Receiver_Exec.iad b/CIAO/examples/Hello/descriptors/Receiver_Exec.iad deleted file mode 100644 index f039e8cd68b..00000000000 --- a/CIAO/examples/Hello/descriptors/Receiver_Exec.iad +++ /dev/null @@ -1,29 +0,0 @@ - - - - 412f8156-7913-4651-9110-f7a3f98c7a83 - Hello_Receiver_exec - - ACE - - - - Receiver_Stub - - - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Impl - - - - diff --git a/CIAO/examples/Hello/descriptors/Receiver_Stub.iad b/CIAO/examples/Hello/descriptors/Receiver_Stub.iad deleted file mode 100644 index f226d9b0d92..00000000000 --- a/CIAO/examples/Hello/descriptors/Receiver_Stub.iad +++ /dev/null @@ -1,14 +0,0 @@ - - - - 4d02c22b-768e-4d1a-bf07-76da2f5d1fbf - Hello_Receiver_stub - - ACE - - - diff --git a/CIAO/examples/Hello/descriptors/Receiver_Svnt.iad b/CIAO/examples/Hello/descriptors/Receiver_Svnt.iad deleted file mode 100644 index 535ccf10d8d..00000000000 --- a/CIAO/examples/Hello/descriptors/Receiver_Svnt.iad +++ /dev/null @@ -1,29 +0,0 @@ - - - - ad052b10-0806-43c7-9ccc-2dfeda0e0e03 - Hello_Receiver_svnt - - ACE - - - - Receiver_Stub - - - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Servant - - - - diff --git a/CIAO/examples/Hello/descriptors/Sender.ccd b/CIAO/examples/Hello/descriptors/Sender.ccd deleted file mode 100644 index cf07fe0ef75..00000000000 --- a/CIAO/examples/Hello/descriptors/Sender.ccd +++ /dev/null @@ -1,48 +0,0 @@ - - - - - 803f8fc7-55de-4a20-81eb-ae951d85b7f4 - IDL:Hello/Sender:1.0 - IDL:Hello/Sender:1.0 - - local_message - - tk_string - - - - supports - false - false - false - true - IDL:Hello/trigger:1.0 - Facet - - - click_out - false - false - false - true - IDL:Hello/TimeOut:1.0 - IDL:Hello/TimeOut:1.0 - EventPublisher - - - push_message - false - false - false - true - IDL:Hello/ReadMessage:1.0 - IDL:Hello/ReadMessage:1.0 - Facet - - - diff --git a/CIAO/examples/Hello/descriptors/Sender.cid b/CIAO/examples/Hello/descriptors/Sender.cid deleted file mode 100644 index c6e02fc2d25..00000000000 --- a/CIAO/examples/Hello/descriptors/Sender.cid +++ /dev/null @@ -1,24 +0,0 @@ - - - - 789e1be2-703f-4bd3-af50-b400eef91fd0 - - - - Sender_Stub - - - - Sender_Svnt - - - - Sender_Exec - - - - diff --git a/CIAO/examples/Hello/descriptors/Sender.cpd b/CIAO/examples/Hello/descriptors/Sender.cpd deleted file mode 100644 index df2c441be3f..00000000000 --- a/CIAO/examples/Hello/descriptors/Sender.cpd +++ /dev/null @@ -1,14 +0,0 @@ - - - - 07ebf947-2174-4a3b-bd37-bcb92986eaf4 - - - Sender - - - diff --git a/CIAO/examples/Hello/descriptors/Sender_Exec.iad b/CIAO/examples/Hello/descriptors/Sender_Exec.iad deleted file mode 100644 index a5d70fe8504..00000000000 --- a/CIAO/examples/Hello/descriptors/Sender_Exec.iad +++ /dev/null @@ -1,29 +0,0 @@ - - - - 5e4f2366-3810-4d4c-a269-5788a525cbe1 - Hello_Sender_exec - - ACE - - - - Sender_Stub - - - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Impl - - - - diff --git a/CIAO/examples/Hello/descriptors/Sender_Stub.iad b/CIAO/examples/Hello/descriptors/Sender_Stub.iad deleted file mode 100644 index 13c28534aaf..00000000000 --- a/CIAO/examples/Hello/descriptors/Sender_Stub.iad +++ /dev/null @@ -1,14 +0,0 @@ - - - - 93bbdf7d-d3f7-4227-bb75-b0562ac15b92 - Hello_Sender_stub - - ACE - - - diff --git a/CIAO/examples/Hello/descriptors/Sender_Svnt.iad b/CIAO/examples/Hello/descriptors/Sender_Svnt.iad deleted file mode 100644 index dd4a6f02027..00000000000 --- a/CIAO/examples/Hello/descriptors/Sender_Svnt.iad +++ /dev/null @@ -1,29 +0,0 @@ - - - - 04e4d246-e6eb-4b0e-8e32-60b996497cea - Hello_Receiver_svnt - - ACE - - - - Sender_Stub - - - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Servant - - - - diff --git a/CIAO/examples/Hello/descriptors/run_test.pl b/CIAO/examples/Hello/descriptors/run_test.pl index a3df657cab1..81811665eff 100755 --- a/CIAO/examples/Hello/descriptors/run_test.pl +++ b/CIAO/examples/Hello/descriptors/run_test.pl @@ -17,6 +17,7 @@ $ns_running = 0; $daemons = 2; @ports = ( 60001, 60002 ); @iorfiles = ( "NodeApp1.ior", "NodeApp2.ior" ); +@nodenames = ( "Sender", "Receiver" ); $status = 0; $dat_file = "NodeManagerMap.dat"; $cdp_file = "DeploymentPlan.cdp"; @@ -69,21 +70,21 @@ sub run_node_daemons { { $iorfile = $iorfiles[$i]; $port = $ports[$i]; - + $nodename = $nodenames[$i]; $iiop = "iiop://localhost:$port"; - $node_app = "$CIAO_ROOT/bin/NodeApplication"; + $node_app = "$CIAO_ROOT/bin/ciao_componentserver"; - $d_cmd = "$CIAO_ROOT/bin/NodeManager"; - $d_param = "-ORBEndpoint $iiop -s $node_app -o $iorfile -d 30"; + $d_cmd = "$DAnCE/bin/dance_node_manager"; + $d_param = "-ORBEndpoint $iiop -s $node_app -n $nodename=$iorfile -t 30 --instance-nc corbaloc:rir:/NameService"; $Daemons[$i] = new PerlACE::Process ($d_cmd, $d_param); $result = $Daemons[$i]->Spawn (); push(@processes, $Daemons[$i]); if (PerlACE::waitforfile_timed ($iorfile, - $PerlACE::wait_interval_for_process_creation) == -1) { + 30) == -1) { print STDERR - "ERROR: The ior file of node daemon $i could not be found\n"; + "ERROR: The ior $iorfile file of node daemon $i could not be found\n"; for (; $i >= 0; --$i) { $Daemons[$i]->Kill (); $Daemons[$i]->TimedWait (1); } @@ -130,12 +131,12 @@ $daemons_running = 1; # Invoke execution manager. print "Invoking execution manager\n"; -$EM = new PerlACE::Process ("$CIAO_ROOT/bin/Execution_Manager", - "-o EM.ior -i $dat_file"); +$EM = new PerlACE::Process ("$DAnCE/bin/dance_execution_manager", + "-eEM.ior --node-map $dat_file"); $EM->Spawn (); if (PerlACE::waitforfile_timed ("EM.ior", - $PerlACE::wait_interval_for_process_creation) == -1) { + $PerlACE::wait_interval_for_process_creation) == -1) { print STDERR "ERROR: The ior file of execution manager could not be found\n"; kill_open_processes (); @@ -147,8 +148,8 @@ $em_running = 1; # Invoke executor - start the application -. print "Invoking executor - start the application -\n"; $E = - new PerlACE::Process ("$CIAO_ROOT/bin/plan_launcher", - "-p DeploymentPlan.cdp -k file://EM.ior -o DAM.ior"); + new PerlACE::Process ("$DAnCE/bin/dance_plan_launcher", + "-x DeploymentPlan.cdp -k file://EM.ior"); $E->SpawnWaitKill (5000); @@ -179,8 +180,8 @@ if ($result != 0) { # Invoke executor - stop the application -. print "Invoking executor - stop the application -\n"; $E = - new PerlACE::Process ("$CIAO_ROOT/bin/plan_launcher", - "-k file://EM.ior -i file://DAM.ior"); + new PerlACE::Process ("$DAnCE/bin/dance_plan_launcher", + "-k file://EM.ior -x DeploymentPlan.cdp -q"); $E->SpawnWaitKill (3000); print "Executor returned.\n"; diff --git a/CIAO/examples/Hello/descriptors_ReDaC/deploymentplan.cdp b/CIAO/examples/Hello/descriptors_ReDaC/deploymentplan.cdp deleted file mode 100644 index 083484ca185..00000000000 --- a/CIAO/examples/Hello/descriptors_ReDaC/deploymentplan.cdp +++ /dev/null @@ -1,222 +0,0 @@ - - - - Hello_Plan_UUID_0001 - - - - c0965470-7b83-11d9-9669-0800200c9a66 - - IDL:BasicSP/EC:1.0 - - read_message - IDL:Hello/ReadMessage:1.0 - IDL:Hello/ReadMessage:1.0 - false - false - true - false - SimplexReceptacle - - - - - Hello-Sender-mdd - - Hello-Sender_exec - Hello-Sender_svnt - - - - - Hello-Receiver-mdd - - Hello-Receiver_exec - Hello-Receiver_svnt - - - - - Hello-Sender-idd - SenderNode - - Hello-Sender-mdd - - - - ComponentIOR - - - tk_string - - - Sender.ior - - - - - - - local_message - - - tk_string - - - This is a test message passed in through XML. - - - - - - - color - - - tk_enum - - COLOR_SELECTION - IDL:Hello/COLOR_SELECTION:1.0 - empty - white - red - yellow - - - - yellow - - - - - - - Hello-Receiver-idd - SenderNode - - Hello-Receiver-mdd - - ComponentIOR - - - tk_string - - - Receiver.ior - - - - - - - - hello_event_connection - - click_out - EventPublisher - Hello-Sender-idd - - - click_in - EventConsumer - Hello-Receiver-idd - - - - - hello_facet_connection - - push_message - Facet - Hello-Sender-idd - - - read_message - SimplexReceptacle - Hello-Receiver-idd - - - - - - Sender_exec - - - Hello_Sender_exec - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Impl - - - - - - - Sender_svnt - - - Hello_Sender_svnt - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Servant - - - - - - - Receiver_exec - - - Hello_Receiver_exec - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Impl - - - - - - - Receiver_svnt - - - Hello_Receiver_svnt - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Servant - - - - - diff --git a/CIAO/examples/Hello/descriptors_ReDaC/deploymentplan_add.cdp b/CIAO/examples/Hello/descriptors_ReDaC/deploymentplan_add.cdp deleted file mode 100644 index af8f50026e8..00000000000 --- a/CIAO/examples/Hello/descriptors_ReDaC/deploymentplan_add.cdp +++ /dev/null @@ -1,267 +0,0 @@ - - - - Hello_Plan_UUID_0001 - - - - c0965470-7b83-11d9-9669-0800200c9a66 - - IDL:BasicSP/EC:1.0 - - read_message - IDL:Hello/ReadMessage:1.0 - IDL:Hello/ReadMessage:1.0 - false - false - true - false - SimplexReceptacle - - - - - Hello-Sender-mdd - - Hello-Sender_exec - Hello-Sender_svnt - - - - - Hello-Receiver-mdd - - Hello-Receiver_exec - Hello-Receiver_svnt - - - - - Hello-Sender-idd - SenderNode - - Hello-Sender-mdd - - - - ComponentIOR - - - tk_string - - - Sender.ior - - - - - - - local_message - - - tk_string - - - This is a test message passed in through XML. - - - - - - - color - - - tk_enum - - COLOR_SELECTION - IDL:Hello/COLOR_SELECTION:1.0 - empty - white - red - yellow - - - - yellow - - - - - - - Hello-Receiver-idd - SenderNode - - Hello-Receiver-mdd - - ComponentIOR - - - tk_string - - - Receiver.ior - - - - - - - Hello-Receiver-idd-UPDATE-XXXXXXXXX - ReceiverNode - - Hello-Receiver-mdd - - ComponentIOR - - - tk_string - - - Receiver_2.ior - - - - - - - hello_event_connection - - click_out - EventPublisher - Hello-Sender-idd - - - click_in - EventConsumer - Hello-Receiver-idd - - - - - hello_facet_connection - - push_message - Facet - Hello-Sender-idd - - - read_message - SimplexReceptacle - Hello-Receiver-idd - - - - - hello_event_connection_new - - click_out - EventPublisher - Hello-Sender-idd - - - click_in - EventConsumer - Hello-Receiver-idd-UPDATE-XXXXXXXX - - - - - hello_facet_connection_new - - push_message - Facet - Hello-Sender-idd - - - read_message - SimplexReceptacle - Hello-Receiver-idd-UPDATE-XXXXXXXX - - - - - - Sender_exec - - - Hello_Sender_exec - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Impl - - - - - - - Sender_svnt - - - Hello_Sender_svnt - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Servant - - - - - - - Receiver_exec - - - Hello_Receiver_exec - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Impl - - - - - - - Receiver_svnt - - - Hello_Receiver_svnt - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Servant - - - - - diff --git a/CIAO/examples/Hello/descriptors_ReDaC/deploymentplan_remove.cdp b/CIAO/examples/Hello/descriptors_ReDaC/deploymentplan_remove.cdp deleted file mode 100644 index 79cc923d154..00000000000 --- a/CIAO/examples/Hello/descriptors_ReDaC/deploymentplan_remove.cdp +++ /dev/null @@ -1,223 +0,0 @@ - - - - Hello_Plan_UUID_0001 - - - - c0965470-7b83-11d9-9669-0800200c9a66 - - IDL:BasicSP/EC:1.0 - - read_message - IDL:Hello/ReadMessage:1.0 - IDL:Hello/ReadMessage:1.0 - false - false - true - false - SimplexReceptacle - - - - - Hello-Sender-mdd - - Hello-Sender_exec - Hello-Sender_svnt - - - - - Hello-Receiver-mdd - - Hello-Receiver_exec - Hello-Receiver_svnt - - - - - Hello-Sender-idd - SenderNode - - Hello-Sender-mdd - - - - ComponentIOR - - - tk_string - - - Sender.ior - - - - - - - local_message - - - tk_string - - - This is a test message passed in through XML. - - - - - - - color - - - tk_enum - - COLOR_SELECTION - IDL:Hello/COLOR_SELECTION:1.0 - empty - white - red - yellow - - - - yellow - - - - - - - - Hello-Receiver-idd-UPDATE-XXXXXXXXX - ReceiverNode - - Hello-Receiver-mdd - - ComponentIOR - - - tk_string - - - Receiver_2.ior - - - - - - - - hello_event_connection_new - - click_out - EventPublisher - Hello-Sender-idd - - - click_in - EventConsumer - Hello-Receiver-idd-UPDATE-XXXXXXXX - - - - - hello_facet_connection_new - - push_message - Facet - Hello-Sender-idd - - - read_message - SimplexReceptacle - Hello-Receiver-idd-UPDATE-XXXXXXXX - - - - - - Sender_exec - - - Hello_Sender_exec - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Impl - - - - - - - Sender_svnt - - - Hello_Sender_svnt - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Servant - - - - - - - Receiver_exec - - - Hello_Receiver_exec - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Impl - - - - - - - Receiver_svnt - - - Hello_Receiver_svnt - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Servant - - - - - diff --git a/CIAO/examples/Hello/descriptors_events/NodeManagerMap.dat b/CIAO/examples/Hello/descriptors_events/NodeManagerMap.dat deleted file mode 100644 index 9880f37997e..00000000000 --- a/CIAO/examples/Hello/descriptors_events/NodeManagerMap.dat +++ /dev/null @@ -1,2 +0,0 @@ -SenderNode corbaloc:iiop:localhost:60001/NodeManager -ReceiverNode corbaloc:iiop:localhost:60002/NodeManager \ No newline at end of file diff --git a/CIAO/examples/Hello/descriptors_events/NodeManagerMapTwoHosts.dat b/CIAO/examples/Hello/descriptors_events/NodeManagerMapTwoHosts.dat deleted file mode 100644 index 54066c67ce0..00000000000 --- a/CIAO/examples/Hello/descriptors_events/NodeManagerMapTwoHosts.dat +++ /dev/null @@ -1,2 +0,0 @@ -SenderNode corbaloc:iiop:localhost:60001/NodeManager -ReceiverNode corbaloc:iiop:129.59.129.181:60002/NodeManager \ No newline at end of file diff --git a/CIAO/examples/Hello/descriptors_events/NodeManagerMap_collocated.dat b/CIAO/examples/Hello/descriptors_events/NodeManagerMap_collocated.dat deleted file mode 100644 index 3aa4d0922e0..00000000000 --- a/CIAO/examples/Hello/descriptors_events/NodeManagerMap_collocated.dat +++ /dev/null @@ -1 +0,0 @@ -SenderNode corbaloc:iiop:localhost:60001/NodeManager diff --git a/CIAO/examples/Hello/descriptors_events/README b/CIAO/examples/Hello/descriptors_events/README deleted file mode 100644 index 924893bbf2c..00000000000 --- a/CIAO/examples/Hello/descriptors_events/README +++ /dev/null @@ -1,145 +0,0 @@ -Event Descriptors for Hello Example -=================================== - -This folder contains several deployemnts to demonstrate and test the -functionality of rt event channel integration into CIAO/DAnCE. -Please see $CIAO_ROOT/docs/schema/CIAOEvents.txt for a detailed description -how to configure descriptor files accordingly. - -The rest of this file describes the rule of the files in this directory. - -single files and their role: ----------------------------- - -./run_test.pl : script that executes all available tests - -./run_NodeDaemons.pl : script to launch two empty NodeApplications -./run_NodeDaemons_svc_conf.pl : starts two node NodeApplications on the - localhost interface and loads rtec.conf on - startup -./run_NodeDaemons_with_ip.pl : starts two node NodeApplications under the - IP address and not on the localhost interface - -./NodeManagerMap.dat : contains ip addresses for SenderNode and - ReceiverNode (both on localhost) -./NodeManagerMap_collocated.dat : contains an ip address for a single - SenderNode (on localhost) -./NodeManagerMapTwoHosts.dat : contains ip addresses for SenderNode - (on localhost) and ReceiverNode - (on real ip address) - -./rtec.conf : example for a service configurator file - for the event service - - -existing test cases: --------------------- - -./ciao-events-example.ced -./deploymentplan_events.cdp -./run_test_simple.pl - - Uses the standard event service and connects one sender to one - receiver. In the standard configuration, used here, the EventChannel - is running collocated within the NodeApplication "SenderNode", where - the sender component is located: - SenderNode[Sender --> ES] --> ReceiverNode[Receiver] - -./ciao-events-example-collocated.ced -./deploymentplan_events_collocated.cdp -./run_test_collocated.pl: - - This example modifies the standard example by deploying all components - within one node: - SenderNode[Sender --> ES --> Receiver] - -./ciao-events-example-with-federation.ced -./deploymentplan_federation.cdp -./run_test_federated.pl: - - In this example, two Event Services ES_01 and ES_02 are federated. - The Sender Event Port is then connected to the first service, while - the Receiver gets its events from the second service. - All entities are collocated in one node process: - SenderNode[Sender --> ES_01 --> ES_02 --> Receiver] - - (problem: - Receiver - Informed by the Sender with message [ACE/TAO/CIAO] - CORBA EXCEPTION caught - (27698|3072210624) EXCEPTION, RTEventServiceConsumer_impl::push() - - system exception, ID 'IDL:omg.org/CORBA/BAD_INV_ORDER:1.0' - Unknown vendor minor code id (0), minor code = 0, completed = NO - ) - -./ciao-events-example-with-filters.ced -./deploymentplan_with_filters.cdp -./run_test_filtered.pl: - - This example applies a filter to the EventService connection on the - receiver side. In this case the filter contains a disjunction group - of two sender component sources. - SenderNode[Sender --> ES -{Filter}-> Receiver] - -./ciao-events-federation-mcast.ced -./deploymentplan_federation_mcast.cdp -./run_test_multicast.pl: - - To test collocated use of multicast federation of event channels - use this example. It deploys sender and receiver in the same - node and connects them through two eventchannels, using udp - multicast to communicate: - SenderNode[Sender --> ES_01 --> udp_sender -UDP{224.9.9.2:1234}-> - udp_mcast_receiver --> ES_02 --> Receiver] - - - (unresolved failure: - Create a receiver object with addr_serv_id: addr_serv_1 - (20850|3072210624) EXCEPTION, NodeApplication_Impl::finishLaunch - - system exception, ID 'IDL:omg.org/CORBA/UNKNOWN:1.0' - OMG minor code (1), described as 'Unlisted user exception received by c - lient.', completed = MAYBE - ) - -./ciao-events-federation-udp.ced -./deploymentplan_federation_udp.cdp -./run_test_udp.pl: - - In this example, udp communication is used to send the event - from one sender node to a receiver node: - SenderNode[Sender --> ES --> udp_sender] -UDP{localhost:1234}-> - ReceiverNode[udp_receiver --> ES_02 --> Receiver] - -./ciao-events-federation-udp-collocated.ced -./deploymentplan_federation_udp_collocated.cdp -./run_test_udp_collocated.pl: - - Same example, as the above udp example, but deployed on a - single node application and therefore collocated: - SenderNode[Sender --> ES_01 --> udp_sender -UDP{localhost:1234}-> - udp_receiver --> ES_02 --> Receiver] - -./ciao-events-federation-udp-two-hosts.ced -./deploymentplan_federation_udp_two_hosts.cdp - - this test is not yet automated, because the nodes are - supposed to be deployed on two different host machines: - SenderNode[Sender --> ES_01 --> udp_sender] - -UDP{129.59.129.181:1234}-> - ReceiverNode[udp_receiver --> ES_02 --> ReceiverNode] - -./ciao-events-example.ced -./deploymentplan_multiple_senders.cdp -./run_test_multiple_senders.pl: - - This example extends the standard example by adding two more sender - components to the SenderNode: - [Sender01 --> ] - SenderNode[Sender02 --> ES ] --> ReceiverNode[Receiver] - [Sender03 --> ] - - ------- - -author: Friedhelm Wolf (fwolf@dre.vanderbilt.edu) diff --git a/CIAO/examples/Hello/descriptors_events/RunEventTest.pm b/CIAO/examples/Hello/descriptors_events/RunEventTest.pm deleted file mode 100755 index 615cc0ee317..00000000000 --- a/CIAO/examples/Hello/descriptors_events/RunEventTest.pm +++ /dev/null @@ -1,212 +0,0 @@ -# $Id$ -# -*- perl -*- - -package RunEventTest; - -use lib "$ENV{'ACE_ROOT'}/bin"; -use PerlACE::Run_Test; - -$CIAO_ROOT = "$ENV{'CIAO_ROOT'}"; -$TAO_ROOT = "$ENV{'TAO_ROOT'}"; -$DAnCE = "$ENV{'CIAO_ROOT'}/DAnCE"; -$daemons_running = 0; -$em_running = 0; -$ns_running = 0; -$status = 0; -$dat_file = "NodeManagerMap.dat"; -$cdp_file = "flattened_deploymentplan_events.cdp"; -$controller_exec = "$CIAO_ROOT/examples/Hello/Sender/starter"; -$sender_ior = "Sender.ior"; -$receiver_ior = "Receiver.ior"; -$nodes; -$E = 0; -$EM = 0; - -$nsior = PerlACE::LocalFile ("ns.ior"); -unlink $nsior; - -sub parse_dat_file { - my $node_list; # array of hashes, containing node info - my $lines = 0; - - # read .dat file and parse it for node name, ip and port - open (my $fh, @_[0]) or die "could not open @_[0]"; - while(<$fh>) { - if (m{(\w+)\s+corbaloc:iiop:(\w*):([0-9]*)/NodeManager}) { - # store the three values in the according row - # of the array of hashest - $node_list->[$lines]->{"node"} = $1; - $node_list->[$lines]->{"ip"} = $2; - $node_list->[$lines++]->{"port"} = $3; - } - } - close ($fh) or die "could not close @_[0]"; - - return $node_list; -} - -# Delete if there are any .ior files. -sub delete_ior_files { - for ($i = 0; $i < scalar(@$nodes); ++$i) { - unlink $nodes->[$i]->{"node"} . ".ior"; - } - unlink PerlACE::LocalFile ("EM.ior"); - unlink PerlACE::LocalFile ($receiver_ior); - unlink PerlACE::LocalFile ($sender_ior); - unlink PerlACE::LocalFile ("DAM.ior"); - unlink PerlACE::LocalFile ("ns.ior"); -} - -sub kill_node_daemons { - for ($i = 0; $i < scalar(@$nodes); ++$i) { - $Daemons[$i]->Kill (); $Daemons[$i]->TimedWait (1); - } -} - -sub kill_open_processes { - if ($daemons_running == 1) { - kill_node_daemons (); - } - - if ($em_running == 1) { - $EM->Kill (); - $EM->TimedWait (1); - } - - if ($ns_running == 1) { - $NS->Kill (); - $NS->TimedWait (1); - } - -} - -sub run_node_daemons { - for ($i = 0; $i < scalar(@$nodes); ++$i) - { - $iorfile = $nodes->[$i]->{"node"} . ".ior"; - $iiop = "iiop://" . $nodes->[$i]->{"ip"} . ":" . $nodes->[$i]->{"port"}; - $node_app = "$CIAO_ROOT/bin/NodeApplication"; - - $d_cmd = "$CIAO_ROOT/bin/NodeManager"; - $d_param = "-ORBEndpoint $iiop -s $node_app -o $iorfile -d 30"; - - print $d_cmd . " " . $d_param . "\n"; - $Daemons[$i] = new PerlACE::Process ($d_cmd, $d_param); - $result = $Daemons[$i]->Spawn (); - push(@processes, $Daemons[$i]); - - if (PerlACE::waitforfile_timed ($iorfile, - $PerlACE::wait_interval_for_process_creation) == -1) { - print STDERR - "ERROR: The ior file of node daemon $i could not be found\n"; - for (; $i >= 0; --$i) { - $Daemons[$i]->Kill (); $Daemons[$i]->TimedWait (1); - } - return -1; - } - } - return 0; -} - - -sub run_test { - # first argument will be interpreted as .cdp file - $cdp_file = shift; - # second argument will be interpreted as .dat file - $dat_file = shift; - - $nodes = parse_dat_file ($dat_file); - - delete_ior_files (); - - # Invoke naming service - $NS = new PerlACE::Process ("$TAO_ROOT/orbsvcs/Naming_Service/Naming_Service", "-m 0 -ORBEndpoint iiop://localhost:60003 -o ns.ior"); - $NS->Spawn (); - - print STDERR "Starting Naming Service\n"; - - if (PerlACE::waitforfile_timed ($nsior, $PerlACE::wait_interval_for_process_creation) == -1){ - print STDERR "ERROR: cannot find naming service IOR file\n"; - $NS->Kill (); - return 1; - } - - $ns_running = 1; - - # Invoke node daemons. - print "Invoking node daemons\n"; - $status = run_node_daemons (); - - if ($status != 0) { - print STDERR "ERROR: Unable to execute the node daemons\n"; - kill_open_processes (); - return 1; - } - - $daemons_running = 1; - - # Invoke execution manager. - print "Invoking execution manager\n"; - $EM = new PerlACE::Process ("$CIAO_ROOT/bin/Execution_Manager", - "-o EM.ior -i $dat_file"); - $EM->Spawn (); - - if (PerlACE::waitforfile_timed ("EM.ior", - $PerlACE::wait_interval_for_process_creation) == -1) { - print STDERR - "ERROR: The ior file of execution manager could not be found\n"; - kill_open_processes (); - return 1; - } - - $em_running = 1; - - # Invoke executor - start the application -. - print "Invoking executor - start the application -\n"; - $E = - new PerlACE::Process ("$CIAO_ROOT/bin/plan_launcher", - "-p $cdp_file -k file://EM.ior -o DAM.ior"); - - $E->SpawnWaitKill (5000); - - if (PerlACE::waitforfile_timed ( - $receiver_ior, - $PerlACE::wait_interval_for_process_creation) == -1) { - print STDERR "ERROR: The ior file of receiver could not be found\n"; - kill_open_processes (); - return 1; - } - - if (PerlACE::waitforfile_timed ($sender_ior, - $PerlACE::wait_interval_for_process_creation) == -1) { - print STDERR "ERROR: The ior file of sender could not be found\n"; - kill_open_processes (); - return 1; - } - - print "Invoking the controller\n"; - $controller = new PerlACE::Process ("$controller_exec", "-k file://$sender_ior"); - $result = $controller->SpawnWaitKill (3000); - - if ($result != 0) { - print STDERR "ERROR: The controller returned $result\n"; - $status = 1; - } - - # Invoke executor - stop the application -. - print "Invoking executor - stop the application -\n"; - $E = - new PerlACE::Process ("$CIAO_ROOT/bin/plan_launcher", - "-k file://EM.ior -i file://DAM.ior"); - $E->SpawnWaitKill (3000); - - print "Executor returned.\n"; - print "Shutting down rest of the processes.\n"; - - delete_ior_files (); - kill_open_processes (); - - return $status; -} - -1; diff --git a/CIAO/examples/Hello/descriptors_events/ciao-events-example-collocated.ced b/CIAO/examples/Hello/descriptors_events/ciao-events-example-collocated.ced deleted file mode 100644 index 1166a034caf..00000000000 --- a/CIAO/examples/Hello/descriptors_events/ciao-events-example-collocated.ced +++ /dev/null @@ -1,14 +0,0 @@ - - - - ES_01 - SenderNode - RTEC - svc.conf - - - diff --git a/CIAO/examples/Hello/descriptors_events/ciao-events-example-with-federation.ced b/CIAO/examples/Hello/descriptors_events/ciao-events-example-with-federation.ced deleted file mode 100644 index 930439f44d5..00000000000 --- a/CIAO/examples/Hello/descriptors_events/ciao-events-example-with-federation.ced +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - ES_01 - SenderNode - RTEC - dummy.conf - - - - addr_serv_0 - 1234 -
localhost
-
- - - upd_sender_1 - addr_serv_0 - -
- - - - ES_02 - SenderNode - RTEC - dummy.conf - - - addr_serv_1 - 1234 -
localhost
-
- - upd_receiver_1 - addr_serv_1 - false - 1234 - -
- -
diff --git a/CIAO/examples/Hello/descriptors_events/ciao-events-example-with-filters.ced b/CIAO/examples/Hello/descriptors_events/ciao-events-example-with-filters.ced deleted file mode 100644 index affc0e49dc7..00000000000 --- a/CIAO/examples/Hello/descriptors_events/ciao-events-example-with-filters.ced +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - ES_01 - SenderNode - RTEC - svc.conf - - - my_filter_01 - DISJUNCTION - Hello-Sender-idd_click_out - Hello-Sender-idd-02_click_out - - - - my_filter_02 - DISJUNCTION - Hello-Sender-idd_click_out - - - - my_filter_03 - CONJUNCTION - Hello-Sender-idd_click_out - Hello-Sender-idd-02_click_out - - - - my_filter_04 - CONJUNCTION - Hello-Sender-idd_click_out - - - - - - - ES_02 - SenderNode - RTEC - svc.conf - - - diff --git a/CIAO/examples/Hello/descriptors_events/ciao-events-example.ced b/CIAO/examples/Hello/descriptors_events/ciao-events-example.ced deleted file mode 100644 index 1166a034caf..00000000000 --- a/CIAO/examples/Hello/descriptors_events/ciao-events-example.ced +++ /dev/null @@ -1,14 +0,0 @@ - - - - ES_01 - SenderNode - RTEC - svc.conf - - - diff --git a/CIAO/examples/Hello/descriptors_events/ciao-events-federation-mcast.ced b/CIAO/examples/Hello/descriptors_events/ciao-events-federation-mcast.ced deleted file mode 100644 index 9fa450602ba..00000000000 --- a/CIAO/examples/Hello/descriptors_events/ciao-events-federation-mcast.ced +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - ES_01 - SenderNode - RTEC - dummy.conf - - - my_filter - DISJUNCTION - Hello-Sender-idd_click_out - - - - - addr_serv_0 - 1234 -
224.9.9.2
-
- - - upd_sender_1 - addr_serv_0 - -
- - - - - ES_02 - SenderNode - RTEC - dummy.conf - - - addr_serv_1 - 1234 -
224.9.9.2
-
- - upd_receiver_1 - addr_serv_1 - true - - - 1234 - -
- - -
diff --git a/CIAO/examples/Hello/descriptors_events/ciao-events-federation-udp-collocated.ced b/CIAO/examples/Hello/descriptors_events/ciao-events-federation-udp-collocated.ced deleted file mode 100644 index 89e85b5b21d..00000000000 --- a/CIAO/examples/Hello/descriptors_events/ciao-events-federation-udp-collocated.ced +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - ES_01 - SenderNode - RTEC - dummy.conf - - - - addr_serv_0 - 1234 -
localhost
-
- - - upd_sender_1 - addr_serv_0 - -
- - - ES_02 - SenderNode - RTEC - dummy.conf - - - addr_serv_1 - 1234 -
localhost
-
- - upd_receiver_1 - addr_serv_1 - false - 1234 - -
- -
diff --git a/CIAO/examples/Hello/descriptors_events/ciao-events-federation-udp-two-hosts.ced b/CIAO/examples/Hello/descriptors_events/ciao-events-federation-udp-two-hosts.ced deleted file mode 100644 index 5f65ab8375f..00000000000 --- a/CIAO/examples/Hello/descriptors_events/ciao-events-federation-udp-two-hosts.ced +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - ES_01 - SenderNode - RTEC - dummy.conf - - - - addr_serv_0 - 1234 -
129.59.129.181
-
- - - upd_sender_1 - addr_serv_0 - -
- - - - - ES_02 - ReceiverNode - RTEC - dummy.conf - - - addr_serv_1 - 1234 -
129.59.129.181
-
- - upd_receiver_1 - addr_serv_1 - false - 1234 - -
- -
\ No newline at end of file diff --git a/CIAO/examples/Hello/descriptors_events/ciao-events-federation-udp.ced b/CIAO/examples/Hello/descriptors_events/ciao-events-federation-udp.ced deleted file mode 100644 index 3d2a9d3fbb4..00000000000 --- a/CIAO/examples/Hello/descriptors_events/ciao-events-federation-udp.ced +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - ES_01 - SenderNode - RTEC - dummy.conf - - - - addr_serv_0 - 1234 -
localhost
-
- - - upd_sender_1 - addr_serv_0 - -
- - - - - ES_02 - ReceiverNode - RTEC - dummy.conf - - - addr_serv_1 - 1234 -
localhost
-
- - upd_receiver_1 - addr_serv_1 - false - 1234 - -
- -
diff --git a/CIAO/examples/Hello/descriptors_events/deploymentplan_events.cdp b/CIAO/examples/Hello/descriptors_events/deploymentplan_events.cdp deleted file mode 100644 index a64e501402f..00000000000 --- a/CIAO/examples/Hello/descriptors_events/deploymentplan_events.cdp +++ /dev/null @@ -1,260 +0,0 @@ - - - - Hello_Plan_UUID_0001 - - - - c0965470-7b83-11d9-9669-0800200c9a66 - - IDL:BasicSP/EC:1.0 - - read_message - IDL:Hello/ReadMessage:1.0 - IDL:Hello/ReadMessage:1.0 - false - false - true - false - SimplexReceptacle - - - - - Hello-Sender-mdd - - Hello-Sender_exec - Hello-Sender_svnt - - - - - Hello-Receiver-mdd - - Hello-Receiver_exec - Hello-Receiver_svnt - - - - - Hello-Sender-idd - SenderNode - - Hello-Sender-mdd - - - - ComponentIOR - - - tk_string - - - Sender.ior - - - - - - - local_message - - - tk_string - - - This is a test message passed in through XML. - - - - - - - color - - - tk_enum - - COLOR_SELECTION - IDL:Hello/COLOR_SELECTION:1.0 - empty - white - red - yellow - - - - yellow - - - - - - - Hello-Receiver-idd - ReceiverNode - - Hello-Receiver-mdd - - ComponentIOR - - - tk_string - - - Receiver.ior - - - - - - - - hello_facet_connection - - push_message - Facet - Hello-Sender-idd - - - read_message - SimplexReceptacle - Hello-Receiver-idd - - - - - - - hello_event_ec_publisher_connection - - click_out - EventPublisher - Hello-Sender-idd - - - ES_01 - - - - - hello_event_ec_consumer_connection - - click_in - EventConsumer - Hello-Receiver-idd - - - ES_01 - - - - - - Sender_exec - - - Hello_Sender_exec - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Impl - - - - - - - Hello_Sender_svnt - - - Hello_Sender_svnt - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Servant - - - - - - - Receiver_exec - - - Hello_Receiver_exec - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Impl - - - - - - - Hello_Receiver_svnt - - - Hello_Receiver_svnt - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Servant - - - - - - - CIAOEvents - - - tk_string - - - ciao-events-example.ced - - - - diff --git a/CIAO/examples/Hello/descriptors_events/deploymentplan_events_collocated.cdp b/CIAO/examples/Hello/descriptors_events/deploymentplan_events_collocated.cdp deleted file mode 100644 index 79796d9177b..00000000000 --- a/CIAO/examples/Hello/descriptors_events/deploymentplan_events_collocated.cdp +++ /dev/null @@ -1,260 +0,0 @@ - - - - Hello_Plan_UUID_0001 - - - - c0965470-7b83-11d9-9669-0800200c9a66 - - IDL:BasicSP/EC:1.0 - - read_message - IDL:Hello/ReadMessage:1.0 - IDL:Hello/ReadMessage:1.0 - false - false - true - false - SimplexReceptacle - - - - - Hello-Sender-mdd - - Hello-Sender_exec - Hello-Sender_svnt - - - - - Hello-Receiver-mdd - - Hello-Receiver_exec - Hello-Receiver_svnt - - - - - Hello-Sender-idd - SenderNode - - Hello-Sender-mdd - - - - ComponentIOR - - - tk_string - - - Sender.ior - - - - - - - local_message - - - tk_string - - - This is a test message passed in through XML. - - - - - - - color - - - tk_enum - - COLOR_SELECTION - IDL:Hello/COLOR_SELECTION:1.0 - empty - white - red - yellow - - - - yellow - - - - - - - Hello-Receiver-idd - SenderNode - - Hello-Receiver-mdd - - ComponentIOR - - - tk_string - - - Receiver.ior - - - - - - - - hello_facet_connection - - push_message - Facet - Hello-Sender-idd - - - read_message - SimplexReceptacle - Hello-Receiver-idd - - - - - - - hello_event_ec_publisher_connection - - click_out - EventPublisher - Hello-Sender-idd - - - ES_01 - - - - - hello_event_ec_consumer_connection - - click_in - EventConsumer - Hello-Receiver-idd - - - ES_01 - - - - - - Sender_exec - - - Hello_Sender_exec - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Impl - - - - - - - Sender_svnt - - - Hello_Sender_svnt - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Servant - - - - - - - Receiver_exec - - - Hello_Receiver_exec - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Impl - - - - - - - Receiver_svnt - - - Hello_Receiver_svnt - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Servant - - - - - - - CIAOEvents - - - tk_string - - - ciao-events-example-collocated.ced - - - - diff --git a/CIAO/examples/Hello/descriptors_events/deploymentplan_federation.cdp b/CIAO/examples/Hello/descriptors_events/deploymentplan_federation.cdp deleted file mode 100644 index 423f9f65a2f..00000000000 --- a/CIAO/examples/Hello/descriptors_events/deploymentplan_federation.cdp +++ /dev/null @@ -1,233 +0,0 @@ - - - - Hello_Plan_UUID_0001 - - - - c0965470-7b83-11d9-9669-0800200c9a66 - - IDL:BasicSP/EC:1.0 - - read_message - IDL:Hello/ReadMessage:1.0 - IDL:Hello/ReadMessage:1.0 - false - false - true - false - SimplexReceptacle - - - - - Hello-Sender-mdd - - Hello-Sender_exec - Hello-Sender_svnt - - - - - Hello-Receiver-mdd - - Hello-Receiver_exec - Hello-Receiver_svnt - - - - - - Hello-Sender-idd - SenderNode - - Hello-Sender-mdd - - - - ComponentIOR - - - tk_string - - - Sender.ior - - - - - - - local_message - - - tk_string - - - This is a test message passed in through XML. - - - - - - - color - - - tk_enum - - COLOR_SELECTION - IDL:Hello/COLOR_SELECTION:1.0 - empty - white - red - yellow - - - - yellow - - - - - - - Hello-Receiver-idd - SenderNode - - Hello-Receiver-mdd - - ComponentIOR - - - tk_string - - - Receiver.ior - - - - - - - - hello_event_ec_publisher_connection - - click_out - EventPublisher - Hello-Sender-idd - - - ES_01 - - - - - - hello_event_ec_consumer_connection - - click_in - EventConsumer - Hello-Receiver-idd - - - ES_02 - - - - - - - Sender_exec - - - Hello_Sender_exec - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Impl - - - - - - - Sender_svnt - - - Hello_Sender_svnt - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Servant - - - - - - - Receiver_exec - - - Hello_Receiver_exec - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Impl - - - - - - - Receiver_svnt - - - Hello_Receiver_svnt - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Servant - - - - - - - CIAOEvents - - - tk_string - - - ciao-events-example-with-federation.ced - - - - diff --git a/CIAO/examples/Hello/descriptors_events/deploymentplan_federation_mcast.cdp b/CIAO/examples/Hello/descriptors_events/deploymentplan_federation_mcast.cdp deleted file mode 100644 index 4bfddce8258..00000000000 --- a/CIAO/examples/Hello/descriptors_events/deploymentplan_federation_mcast.cdp +++ /dev/null @@ -1,231 +0,0 @@ - - - - Hello_Plan_UUID_0001 - - - - c0965470-7b83-11d9-9669-0800200c9a66 - - IDL:BasicSP/EC:1.0 - - read_message - IDL:Hello/ReadMessage:1.0 - IDL:Hello/ReadMessage:1.0 - false - false - true - false - SimplexReceptacle - - - - - Hello-Sender-mdd - - Hello-Sender_exec - Hello-Sender_svnt - - - - - Hello-Receiver-mdd - - Hello-Receiver_exec - Hello-Receiver_svnt - - - - - - Hello-Sender-idd - SenderNode - - Hello-Sender-mdd - - - - ComponentIOR - - - tk_string - - - Sender.ior - - - - - - - local_message - - - tk_string - - - This is a test message passed in through XML. - - - - - - - color - - - tk_enum - - COLOR_SELECTION - IDL:Hello/COLOR_SELECTION:1.0 - empty - white - red - yellow - - - - yellow - - - - - - - Hello-Receiver-idd - SenderNode - - Hello-Receiver-mdd - - ComponentIOR - - - tk_string - - - Receiver.ior - - - - - - - - hello_event_ec_publisher_connection - - click_out - EventPublisher - Hello-Sender-idd - - - ES_01 - - - - - hello_event_ec_consumer_connection - - click_in - EventConsumer - Hello-Receiver-idd - - - ES_02 - - - - - - Sender_exec - - - Hello_Sender_exec - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Impl - - - - - - - Sender_svnt - - - Hello_Sender_svnt - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Servant - - - - - - - Receiver_exec - - - Hello_Receiver_exec - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Impl - - - - - - - Receiver_svnt - - - Hello_Receiver_svnt - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Servant - - - - - - - CIAOEvents - - - tk_string - - - ciao-events-federation-mcast.ced - - - - diff --git a/CIAO/examples/Hello/descriptors_events/deploymentplan_federation_udp.cdp b/CIAO/examples/Hello/descriptors_events/deploymentplan_federation_udp.cdp deleted file mode 100644 index 7ee891285a8..00000000000 --- a/CIAO/examples/Hello/descriptors_events/deploymentplan_federation_udp.cdp +++ /dev/null @@ -1,246 +0,0 @@ - - - - Hello_Plan_UUID_0001 - - - - c0965470-7b83-11d9-9669-0800200c9a66 - - IDL:BasicSP/EC:1.0 - - read_message - IDL:Hello/ReadMessage:1.0 - IDL:Hello/ReadMessage:1.0 - false - false - true - false - SimplexReceptacle - - - - - Hello-Sender-mdd - - Hello-Sender_exec - Hello-Sender_svnt - - - - - Hello-Receiver-mdd - - Hello-Receiver_exec - Hello-Receiver_svnt - - - - - - Hello-Sender-idd - SenderNode - - Hello-Sender-mdd - - - - ComponentIOR - - - tk_string - - - Sender.ior - - - - - - - local_message - - - tk_string - - - This is a test message passed in through XML. - - - - - - - color - - - tk_enum - - COLOR_SELECTION - IDL:Hello/COLOR_SELECTION:1.0 - empty - white - red - yellow - - - - yellow - - - - - - - Hello-Receiver-idd - ReceiverNode - - Hello-Receiver-mdd - - ComponentIOR - - - tk_string - - - Receiver.ior - - - - - - - hello_facet_connection - - push_message - Facet - Hello-Sender-idd - - - read_message - SimplexReceptacle - Hello-Receiver-idd - - - - - - hello_event_ec_publisher_connection - - click_out - EventPublisher - Hello-Sender-idd - - - ES_01 - - - - - - hello_event_ec_consumer_connection - - click_in - EventConsumer - Hello-Receiver-idd - - - ES_02 - - - - - - Sender_exec - - - Hello_Sender_exec - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Impl - - - - - - - Hello_Sender_svnt - - - Hello_Sender_svnt - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Servant - - - - - - - Hello_Receiver_exec - - - Hello_Receiver_exec - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Impl - - - - - - - Hello_Receiver_svnt - - - Hello_Receiver_svnt - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Servant - - - - - - - CIAOEvents - - - tk_string - - - ciao-events-federation-udp.ced - - - - diff --git a/CIAO/examples/Hello/descriptors_events/deploymentplan_federation_udp_collocated.cdp b/CIAO/examples/Hello/descriptors_events/deploymentplan_federation_udp_collocated.cdp deleted file mode 100644 index 0d254e2214e..00000000000 --- a/CIAO/examples/Hello/descriptors_events/deploymentplan_federation_udp_collocated.cdp +++ /dev/null @@ -1,246 +0,0 @@ - - - - Hello_Plan_UUID_0001 - - - - c0965470-7b83-11d9-9669-0800200c9a66 - - IDL:BasicSP/EC:1.0 - - read_message - IDL:Hello/ReadMessage:1.0 - IDL:Hello/ReadMessage:1.0 - false - false - true - false - SimplexReceptacle - - - - - Hello-Sender-mdd - - Hello-Sender_exec - Hello-Sender_svnt - - - - - Hello-Receiver-mdd - - Hello-Receiver_exec - Hello-Receiver_svnt - - - - - - Hello-Sender-idd - SenderNode - - Hello-Sender-mdd - - - - ComponentIOR - - - tk_string - - - Sender.ior - - - - - - - local_message - - - tk_string - - - This is a test message passed in through XML. - - - - - - - color - - - tk_enum - - COLOR_SELECTION - IDL:Hello/COLOR_SELECTION:1.0 - empty - white - red - yellow - - - - yellow - - - - - - - Hello-Receiver-idd - SenderNode - - Hello-Receiver-mdd - - ComponentIOR - - - tk_string - - - Receiver.ior - - - - - - - hello_facet_connection - - push_message - Facet - Hello-Sender-idd - - - read_message - SimplexReceptacle - Hello-Receiver-idd - - - - - - hello_event_ec_publisher_connection - - click_out - EventPublisher - Hello-Sender-idd - - - ES_01 - - - - - - hello_event_ec_consumer_connection - - click_in - EventConsumer - Hello-Receiver-idd - - - ES_02 - - - - - - Sender_exec - - - Hello_Sender_exec - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Impl - - - - - - - Sender_svnt - - - Hello_Sender_svnt - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Servant - - - - - - - Receiver_exec - - - Hello_Receiver_exec - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Impl - - - - - - - Hello_Receiver_svnt - - - Hello_Receiver_svnt - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Servant - - - - - - - CIAOEvents - - - tk_string - - - ciao-events-federation-udp-collocated.ced - - - - diff --git a/CIAO/examples/Hello/descriptors_events/deploymentplan_federation_udp_two_hosts.cdp b/CIAO/examples/Hello/descriptors_events/deploymentplan_federation_udp_two_hosts.cdp deleted file mode 100644 index d7a0c7fcf00..00000000000 --- a/CIAO/examples/Hello/descriptors_events/deploymentplan_federation_udp_two_hosts.cdp +++ /dev/null @@ -1,246 +0,0 @@ - - - - Hello_Plan_UUID_0001 - - - - c0965470-7b83-11d9-9669-0800200c9a66 - - IDL:BasicSP/EC:1.0 - - read_message - IDL:Hello/ReadMessage:1.0 - IDL:Hello/ReadMessage:1.0 - false - false - true - false - SimplexReceptacle - - - - - Hello-Sender-mdd - - Hello-Sender_exec - Hello-Sender_svnt - - - - - Hello-Receiver-mdd - - Hello-Receiver_exec - Hello-Receiver_svnt - - - - - - Hello-Sender-idd - SenderNode - - Hello-Sender-mdd - - - - ComponentIOR - - - tk_string - - - Sender.ior - - - - - - - local_message - - - tk_string - - - This is a test message passed in through XML. - - - - - - - color - - - tk_enum - - COLOR_SELECTION - IDL:Hello/COLOR_SELECTION:1.0 - empty - white - red - yellow - - - - yellow - - - - - - - Hello-Receiver-idd - ReceiverNode - - Hello-Receiver-mdd - - ComponentIOR - - - tk_string - - - Receiver.ior - - - - - - - hello_facet_connection - - push_message - Facet - Hello-Sender-idd - - - read_message - SimplexReceptacle - Hello-Receiver-idd - - - - - - hello_event_ec_publisher_connection - - click_out - EventPublisher - Hello-Sender-idd - - - ES_01 - - - - - - hello_event_ec_consumer_connection - - click_in - EventConsumer - Hello-Receiver-idd - - - ES_02 - - - - - - Sender_exec - - - Hello_Sender_exec - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Impl - - - - - - - Sender_svnt - - - Hello_Sender_svnt - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Servant - - - - - - - Receiver_exec - - - Hello_Receiver_exec - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Impl - - - - - - - Receiver_svnt - - - Hello_Receiver_svnt - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Servant - - - - - - - CIAOEvents - - - tk_string - - - ciao-events-federation-udp-two-hosts.ced - - - - diff --git a/CIAO/examples/Hello/descriptors_events/deploymentplan_multiple_senders.cdp b/CIAO/examples/Hello/descriptors_events/deploymentplan_multiple_senders.cdp deleted file mode 100644 index ff2ac89bf8f..00000000000 --- a/CIAO/examples/Hello/descriptors_events/deploymentplan_multiple_senders.cdp +++ /dev/null @@ -1,395 +0,0 @@ - - - - Hello_Plan_UUID_0001 - - - - c0965470-7b83-11d9-9669-0800200c9a66 - - IDL:BasicSP/EC:1.0 - - read_message - IDL:Hello/ReadMessage:1.0 - IDL:Hello/ReadMessage:1.0 - false - false - true - false - SimplexReceptacle - - - - - Hello-Sender-mdd - - Hello-Sender_exec - Hello-Sender_svnt - - - - - Hello-Receiver-mdd - - Hello-Receiver_exec - Hello-Receiver_svnt - - - - - Hello-Sender-idd-01 - SenderNode - - Hello-Sender-mdd - - - - ComponentIOR - - - tk_string - - - Sender01.ior - - - - - - - local_message - - - tk_string - - - This is a test message passed in through XML. - - - - - - - color - - - tk_enum - - COLOR_SELECTION - IDL:Hello/COLOR_SELECTION:1.0 - empty - white - red - yellow - - - - yellow - - - - - - - Hello-Sender-idd-02 - SenderNode - - Hello-Sender-mdd - - - - ComponentIOR - - - tk_string - - - Sender02.ior - - - - - - - local_message - - - tk_string - - - This is a test message from Sender 02 passed in through XML. - - - - - - - color - - - tk_enum - - COLOR_SELECTION - IDL:Hello/COLOR_SELECTION:1.0 - empty - white - red - yellow - - - - red - - - - - - - - Hello-Sender-idd-03 - SenderNode - - Hello-Sender-mdd - - - - ComponentIOR - - - tk_string - - - Sender03.ior - - - - - - - local_message - - - tk_string - - - This is a test message from Sender 03 passed in through XML. - - - - - - - color - - - tk_enum - - COLOR_SELECTION - IDL:Hello/COLOR_SELECTION:1.0 - empty - white - red - yellow - - - - white - - - - - - - Hello-Receiver-idd - ReceiverNode - - Hello-Receiver-mdd - - ComponentIOR - - - tk_string - - - Receiver.ior - - - - - - - - hello_facet_connection - - push_message - Facet - Hello-Sender-idd-01 - - - read_message - SimplexReceptacle - Hello-Receiver-idd - - - - - - - hello_event_ec_publisher_connection_01 - - click_out - EventPublisher - Hello-Sender-idd-01 - - - ES_01 - - - - - hello_event_ec_publisher_connection_02 - - click_out - EventPublisher - Hello-Sender-idd-02 - - - ES_01 - - - - - hello_event_ec_publisher_connection_03 - - click_out - EventPublisher - Hello-Sender-idd-03 - - - ES_01 - - - - - hello_event_ec_consumer_connection_01 - - click_in - EventConsumer - Hello-Receiver-idd - - - ES_01 - - - - - - - - Hello_Sender_exec - - - Hello_Sender_exec - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Impl - - - - - - - Hello_Sender_svnt - - - Hello_Sender_svnt - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Servant - - - - - - - Hello_Receiver_exec - - - Hello_Receiver_exec - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Impl - - - - - - - Receiver_svnt - - - Hello_Receiver_svnt - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Servant - - - - - - - CIAOEvents - - - tk_string - - - ciao-events-example.ced - - - - diff --git a/CIAO/examples/Hello/descriptors_events/deploymentplan_with_filters.cdp b/CIAO/examples/Hello/descriptors_events/deploymentplan_with_filters.cdp deleted file mode 100644 index 7f776924945..00000000000 --- a/CIAO/examples/Hello/descriptors_events/deploymentplan_with_filters.cdp +++ /dev/null @@ -1,278 +0,0 @@ - - - - Hello_Plan_UUID_0001 - - - - c0965470-7b83-11d9-9669-0800200c9a66 - - IDL:BasicSP/EC:1.0 - - read_message - IDL:Hello/ReadMessage:1.0 - IDL:Hello/ReadMessage:1.0 - false - false - true - false - SimplexReceptacle - - - - - Hello-Sender-mdd - - Hello-Sender_exec - Hello-Sender_svnt - - - - - Hello-Receiver-mdd - - Hello-Receiver_exec - Hello-Receiver_svnt - - - - - Hello-Sender-idd - SenderNode - - Hello-Sender-mdd - - - - ComponentIOR - - - tk_string - - - Sender.ior - - - - - - - local_message - - - tk_string - - - This is a test message passed in through XML. - - - - - - - color - - - tk_enum - - COLOR_SELECTION - IDL:Hello/COLOR_SELECTION:1.0 - empty - white - red - yellow - - - - yellow - - - - - - - Hello-Receiver-idd - SenderNode - - Hello-Receiver-mdd - - ComponentIOR - - - tk_string - - - Receiver.ior - - - - - - - - hello_facet_connection - - push_message - Facet - Hello-Sender-idd - - - read_message - SimplexReceptacle - Hello-Receiver-idd - - - - - - - hello_event_ec_publisher_connection - - click_out - EventPublisher - Hello-Sender-idd - - - ES_01 - - - - - hello_event_ec_consumer_connection - - - - EventFilter - my_filter_01 - - EventFilter - - - tk_string - - - my_filter_01 - - - - - - - click_in - EventConsumer - Hello-Receiver-idd - - - ES_01 - - - - - - Sender_exec - - - Hello_Sender_exec - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Impl - - - - - - - Sender_svnt - - - Hello_Sender_svnt - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Servant - - - - - - - Hello_Receiver_exec - - - Hello_Receiver_exec - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Impl - - - - - - - Receiver_svnt - - - Hello_Receiver_svnt - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Servant - - - - - - - CIAOEvents - - - tk_string - - - ciao-events-example-with-filters.ced - - - - diff --git a/CIAO/examples/Hello/descriptors_events/rtec.conf b/CIAO/examples/Hello/descriptors_events/rtec.conf deleted file mode 100644 index fbbadf78b0c..00000000000 --- a/CIAO/examples/Hello/descriptors_events/rtec.conf +++ /dev/null @@ -1 +0,0 @@ -static EC_Factory "-ECobserver basic" diff --git a/CIAO/examples/Hello/descriptors_events/run_NodeDaemons.pl b/CIAO/examples/Hello/descriptors_events/run_NodeDaemons.pl deleted file mode 100755 index 8d76c400579..00000000000 --- a/CIAO/examples/Hello/descriptors_events/run_NodeDaemons.pl +++ /dev/null @@ -1,40 +0,0 @@ -eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' - & eval 'exec perl -S $0 $argv:q' - if 0; - -# $Id$ -# -*- perl -*- - -use lib "$ENV{ACE_ROOT}/bin"; -use PerlACE::Run_Test; - -$status = 0; -$iorfile1 = PerlACE::LocalFile ("NodeApp1.ior"); -$iorfile2 = PerlACE::LocalFile ("NodeApp2.ior"); - -#for ($iter = 0; $iter <= $#ARGV; $iter++) { -# if ($ARGV[$iter] eq "-h" || $ARGV[$iter] eq "-?") { -# print "Run_Test Perl script for NodeApplicationTest \n\n"; -# print "run_test \n"; -# print "\n"; -# print "-h -- prints this information\n"; -# exit 0; -# } -#} - - -unlink $iorfile1; -unlink $iorfile2; - -$CIAO_ROOT=$ENV{'CIAO_ROOT'}; - -$SV1 = new PerlACE::Process ("$CIAO_ROOT/bin/NodeManager", - "-ORBEndpoint iiop://localhost:60001 -s $CIAO_ROOT/DAnCE/NodeApplication/NodeApplication -d 500"); - -$SV2 = new PerlACE::Process ("$CIAO_ROOT/bin/NodeManager", - "-ORBEndpoint iiop://localhost:60002 -s $CIAO_ROOT/DAnCE/NodeApplication/NodeApplication -d 500"); - -$SV1->Spawn (); -$SV2->Spawn (); - -sleep (99999999999); diff --git a/CIAO/examples/Hello/descriptors_events/run_NodeDaemons_svc_conf.pl b/CIAO/examples/Hello/descriptors_events/run_NodeDaemons_svc_conf.pl deleted file mode 100755 index 8cdc79b11bd..00000000000 --- a/CIAO/examples/Hello/descriptors_events/run_NodeDaemons_svc_conf.pl +++ /dev/null @@ -1,42 +0,0 @@ -eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' - & eval 'exec perl -S $0 $argv:q' - if 0; - -# $Id$ -# -*- perl -*- - -$ACE_ROOT=$ENV{'ACE_ROOT'}; - -use lib "$ENV{'ACE_ROOT'}/bin"; -use PerlACE::Run_Test; - -$status = 0; -$iorfile1 = PerlACE::LocalFile ("NodeApp1.ior"); -$iorfile2 = PerlACE::LocalFile ("NodeApp2.ior"); - -#for ($iter = 0; $iter <= $#ARGV; $iter++) { -# if ($ARGV[$iter] eq "-h" || $ARGV[$iter] eq "-?") { -# print "Run_Test Perl script for NodeApplicationTest \n\n"; -# print "run_test \n"; -# print "\n"; -# print "-h -- prints this information\n"; -# exit 0; -# } -#} - - -unlink $iorfile1; -unlink $iorfile2; - -$CIAO_ROOT=$ENV{'CIAO_ROOT'}; - -$SV1 = new PerlACE::Process ("$CIAO_ROOT/bin/NodeManager", - "-ORBEndpoint iiop://localhost:60001 -s $CIAO_ROOT/DAnCE/NodeApplication/NodeApplication -c rtec.conf"); - -$SV2 = new PerlACE::Process ("$CIAO_ROOT/bin/NodeManager", - "-ORBEndpoint iiop://localhost:60002 -s $CIAO_ROOT/DAnCE/NodeApplication/NodeApplication -c rtec.conf"); - -$SV1->Spawn (); -$SV2->Spawn (); - -sleep (99999999999); diff --git a/CIAO/examples/Hello/descriptors_events/run_NodeDaemons_with_ip.pl b/CIAO/examples/Hello/descriptors_events/run_NodeDaemons_with_ip.pl deleted file mode 100644 index 24d630d66f6..00000000000 --- a/CIAO/examples/Hello/descriptors_events/run_NodeDaemons_with_ip.pl +++ /dev/null @@ -1,40 +0,0 @@ -eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' - & eval 'exec perl -S $0 $argv:q' - if 0; - -# $Id$ -# -*- perl -*- - -use lib "$ENV{ACE_ROOT}/bin"; -use PerlACE::Run_Test; - -$status = 0; -$iorfile1 = PerlACE::LocalFile ("NodeApp1.ior"); -$iorfile2 = PerlACE::LocalFile ("NodeApp2.ior"); - -#for ($iter = 0; $iter <= $#ARGV; $iter++) { -# if ($ARGV[$iter] eq "-h" || $ARGV[$iter] eq "-?") { -# print "Run_Test Perl script for NodeApplicationTest \n\n"; -# print "run_test \n"; -# print "\n"; -# print "-h -- prints this information\n"; -# exit 0; -# } -#} - - -unlink $iorfile1; -unlink $iorfile2; - -$CIAO_ROOT=$ENV{'CIAO_ROOT'}; - -$SV1 = new PerlACE::Process ("$CIAO_ROOT/bin/NodeManager", - "-ORBEndpoint iiop://129.59.129.181:60001 -s $CIAO_ROOT/DAnCE/NodeApplication/NodeApplication -d 500"); - -$SV2 = new PerlACE::Process ("$CIAO_ROOT/bin/NodeManager", - "-ORBEndpoint iiop://129.59.129.181:60002 -s $CIAO_ROOT/DAnCE/NodeApplication/NodeApplication -d 500"); - -$SV1->Spawn (); -$SV2->Spawn (); - -sleep (99999999999); diff --git a/CIAO/examples/Hello/descriptors_events/run_test.pl b/CIAO/examples/Hello/descriptors_events/run_test.pl deleted file mode 100755 index f01bafa0505..00000000000 --- a/CIAO/examples/Hello/descriptors_events/run_test.pl +++ /dev/null @@ -1,49 +0,0 @@ -eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' - & eval 'exec perl -S $0 $argv:q' - if 0; - -# $Id$ -# -*- perl -*- - -use RunEventTest; - -# run_test_simple -$result = RunEventTest::run_test ( - "deploymentplan_events.cdp", - "NodeManagerMap.dat"); - -# run_test_collocated -$result += RunEventTest::run_test ( - "deploymentplan_events_collocated.cdp", - "NodeManagerMap_collocated.dat"); - -# run_test_federated -$result += RunEventTest::run_test ( - "deploymentplan_federation.cdp", - "NodeManagerMap_collocated.dat"); - -# run_test_filtered -$result += RunEventTest::run_test ( - "deploymentplan_with_filters.cdp", - "NodeManagerMap_collocated.dat"); - -# run_test_multicast -# this test is not running successfully and is therefore skipped here -#$result += RunEventTest::run_test ( -# "deploymentplan_federation_mcast.cdp", -# "NodeManagerMap_collocated.dat"); - -# run_test_udp -$result += RunEventTest::run_test ( - "deploymentplan_federation_udp.cdp", - "NodeManagerMap.dat"); - -# run_test_udp_collocated -$result += RunEventTest::run_test ( - "deploymentplan_federation_udp_collocated.cdp", - "NodeManagerMap_collocated.dat"); - -# run_test_multiple_senders is not yet integrated - -exit $result - diff --git a/CIAO/examples/Hello/descriptors_events/run_test_collocated.pl b/CIAO/examples/Hello/descriptors_events/run_test_collocated.pl deleted file mode 100755 index c7d3e7c3dc4..00000000000 --- a/CIAO/examples/Hello/descriptors_events/run_test_collocated.pl +++ /dev/null @@ -1,12 +0,0 @@ -eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' - & eval 'exec perl -S $0 $argv:q' - if 0; - -# $Id$ -# -*- perl -*- - -use RunEventTest; - -exit RunEventTest::run_test ( - "deploymentplan_events_collocated.cdp", - "NodeManagerMap_collocated.dat"); diff --git a/CIAO/examples/Hello/descriptors_events/run_test_federated.pl b/CIAO/examples/Hello/descriptors_events/run_test_federated.pl deleted file mode 100755 index 9d08455ce2e..00000000000 --- a/CIAO/examples/Hello/descriptors_events/run_test_federated.pl +++ /dev/null @@ -1,12 +0,0 @@ -eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' - & eval 'exec perl -S $0 $argv:q' - if 0; - -# $Id$ -# -*- perl -*- - -use RunEventTest; - -exit RunEventTest::run_test ( - "deploymentplan_federation.cdp", - "NodeManagerMap_collocated.dat"); diff --git a/CIAO/examples/Hello/descriptors_events/run_test_filtered.pl b/CIAO/examples/Hello/descriptors_events/run_test_filtered.pl deleted file mode 100755 index d1371af7219..00000000000 --- a/CIAO/examples/Hello/descriptors_events/run_test_filtered.pl +++ /dev/null @@ -1,12 +0,0 @@ -eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' - & eval 'exec perl -S $0 $argv:q' - if 0; - -# $Id$ -# -*- perl -*- - -use RunEventTest; - -exit RunEventTest::run_test ( - "deploymentplan_with_filters.cdp", - "NodeManagerMap_collocated.dat"); diff --git a/CIAO/examples/Hello/descriptors_events/run_test_multicast.pl b/CIAO/examples/Hello/descriptors_events/run_test_multicast.pl deleted file mode 100755 index 6d06589e3d2..00000000000 --- a/CIAO/examples/Hello/descriptors_events/run_test_multicast.pl +++ /dev/null @@ -1,12 +0,0 @@ -eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' - & eval 'exec perl -S $0 $argv:q' - if 0; - -# $Id$ -# -*- perl -*- - -use RunEventTest; - -exit RunEventTest::run_test ( - "deploymentplan_federation_mcast.cdp", - "NodeManagerMap_collocated.dat"); diff --git a/CIAO/examples/Hello/descriptors_events/run_test_multiple_senders.pl b/CIAO/examples/Hello/descriptors_events/run_test_multiple_senders.pl deleted file mode 100755 index adac10d680c..00000000000 --- a/CIAO/examples/Hello/descriptors_events/run_test_multiple_senders.pl +++ /dev/null @@ -1,199 +0,0 @@ -eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' - & eval 'exec perl -S $0 $argv:q' - if 0; - -# $Id$ -# -*- perl -*- - -use lib "$ENV{'ACE_ROOT'}/bin"; -use PerlACE::Run_Test; - -$CIAO_ROOT = "$ENV{'CIAO_ROOT'}"; -$TAO_ROOT = "$ENV{'TAO_ROOT'}"; -$DAnCE = "$ENV{'CIAO_ROOT'}/DAnCE"; -$daemons_running = 0; -$em_running = 0; -$ns_running = 0; -$daemons = 2; -@ports = ( 60001, 60002 ); -@iorfiles = ( "NodeApp1.ior", "NodeApp2.ior" ); -@senderiors = ( "Sender01.ior", "Sender02.ior", "Sender03.ior"); -$status = 0; -$dat_file = "NodeManagerMap.dat"; -$cdp_file = "deploymentplan_multiple_senders.cdp"; -$controller_exec = "$CIAO_ROOT/examples/Hello/Sender/starter"; - -$nsior = PerlACE::LocalFile ("ns.ior"); - -unlink $nsior; - -$E = 0; -$EM = 0; - -# Delete if there are any .ior files. -sub delete_ior_files { - for ($i = 0; $i < $daemons; ++$i) { - unlink $iorfiles[$i]; - } - unlink PerlACE::LocalFile ("EM.ior"); - unlink PerlACE::LocalFile ("Receiver.ior"); - - for ($r = 0; $r < @senderiors; ++$r) { - unlink PerlACE::LocalFile ($senderiors[$r]); - } - - unlink PerlACE::LocalFile ("DAM.ior"); - unlink PerlACE::LocalFile ("ns.ior"); -} - -sub kill_node_daemons { - for ($i = 0; $i < $daemons; ++$i) { - $Daemons[$i]->Kill (); $Daemons[$i]->TimedWait (1); - } -} - -sub kill_open_processes { - if ($daemons_running == 1) { - kill_node_daemons (); - } - - if ($em_running == 1) { - $EM->Kill (); - $EM->TimedWait (1); - } - - if ($ns_running == 1) { - $NS->Kill (); - $NS->TimedWait (1); - } -} - -sub run_node_daemons { - for ($i = 0; $i < $daemons; ++$i) - { - $iorfile = $iorfiles[$i]; - $port = $ports[$i]; - - $iiop = "iiop://localhost:$port"; - $node_app = "$CIAO_ROOT/bin/NodeApplication"; - - $d_cmd = "$CIAO_ROOT/bin/NodeManager"; - $d_param = "-ORBEndpoint $iiop -s $node_app -o $iorfile -d 30"; - - $Daemons[$i] = new PerlACE::Process ($d_cmd, $d_param); - $result = $Daemons[$i]->Spawn (); - push(@processes, $Daemons[$i]); - - if (PerlACE::waitforfile_timed ($iorfile, - $PerlACE::wait_interval_for_process_creation) == -1) { - print STDERR - "ERROR: The ior file of node daemon $i could not be found\n"; - for (; $i >= 0; --$i) { - $Daemons[$i]->Kill (); $Daemons[$i]->TimedWait (1); - } - return -1; - } - } - return 0; -} - -delete_ior_files (); - -# Invoke naming service - -$NS = new PerlACE::Process ("$TAO_ROOT/orbsvcs/Naming_Service/Naming_Service", "-m 0 -ORBEndpoint iiop://localhost:60003 -o ns.ior"); - -$NS->Spawn (); - -print STDERR "Starting Naming Service\n"; - -if (PerlACE::waitforfile_timed ($nsior, $PerlACE::wait_interval_for_process_creation) == -1) -{ - print STDERR "ERROR: cannot find naming service IOR file\n"; - $NS->Kill (); - exit 1; -} - -$ns_running = 1; - -# Set up NamingService environment -$ENV{"NameServiceIOR"} = "corbaloc:iiop:localhost:60003/NameService"; - -# Invoke node daemons. -print "Invoking node daemons\n"; -$status = run_node_daemons (); - -if ($status != 0) { - print STDERR "ERROR: Unable to execute the node daemons\n"; - kill_open_processes (); - exit 1; -} - -$daemons_running = 1; - -# Invoke execution manager. -print "Invoking execution manager\n"; -$EM = new PerlACE::Process ("$CIAO_ROOT/bin/Execution_Manager", - "-o EM.ior -i $dat_file"); -$EM->Spawn (); - -if (PerlACE::waitforfile_timed ("EM.ior", - $PerlACE::wait_interval_for_process_creation) == -1) { - print STDERR - "ERROR: The ior file of execution manager could not be found\n"; - kill_open_processes (); - exit 1; -} - -$em_running = 1; - -# Invoke executor - start the application -. -print "Invoking executor - start the application -\n"; -$E = - new PerlACE::Process ("$CIAO_ROOT/bin/plan_launcher", - "-p $cdp_file -k file://EM.ior -o DAM.ior"); - -$E->SpawnWaitKill (5000); - -if (PerlACE::waitforfile_timed ( - "Receiver.ior", - $PerlACE::wait_interval_for_process_creation) == -1) { - print STDERR "ERROR: The ior file of receiver could not be found\n"; - kill_open_processes (); - exit 1; -} - -for ($si = 0; $si < @senderiors; ++$si) { - if (PerlACE::waitforfile_timed ($senderiors[$si], - $PerlACE::wait_interval_for_process_creation) == -1) { - print STDERR "ERROR: The file " . $senderiors[$si] . " could not be found\n"; - kill_open_processes (); - exit 1; - } -} - -for ($si = 0; $si < @senderiors; ++$si) { - print "Invoking the controller for sender $si\n"; - $controller = new PerlACE::Process ("$controller_exec", "-k file://" . $senderiors[$si]); - $result = $controller->SpawnWaitKill (3000); - - if ($result != 0) { - print STDERR "ERROR: The controller returned $result\n"; - $status = 1; - } -} - -# Invoke executor - stop the application -. -print "Invoking executor - stop the application -\n"; -$E = - new PerlACE::Process ("$CIAO_ROOT/bin/plan_launcher", - "-k file://EM.ior -i file://DAM.ior"); -$E->SpawnWaitKill (3000); - -print "Executor returned.\n"; -print "Shutting down rest of the processes.\n"; - -delete_ior_files (); -kill_open_processes (); - -exit $status; diff --git a/CIAO/examples/Hello/descriptors_events/run_test_simple.pl b/CIAO/examples/Hello/descriptors_events/run_test_simple.pl deleted file mode 100755 index c678aa29545..00000000000 --- a/CIAO/examples/Hello/descriptors_events/run_test_simple.pl +++ /dev/null @@ -1,12 +0,0 @@ -eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' - & eval 'exec perl -S $0 $argv:q' - if 0; - -# $Id$ -# -*- perl -*- - -use RunEventTest; - -exit RunEventTest::run_test ( - "deploymentplan_events.cdp", - "NodeManagerMap.dat"); diff --git a/CIAO/examples/Hello/descriptors_events/run_test_udp.pl b/CIAO/examples/Hello/descriptors_events/run_test_udp.pl deleted file mode 100755 index c84f30dcd30..00000000000 --- a/CIAO/examples/Hello/descriptors_events/run_test_udp.pl +++ /dev/null @@ -1,12 +0,0 @@ -eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' - & eval 'exec perl -S $0 $argv:q' - if 0; - -# $Id$ -# -*- perl -*- - -use RunEventTest; - -exit RunEventTest::run_test ( - "deploymentplan_federation_udp.cdp", - "NodeManagerMap.dat"); diff --git a/CIAO/examples/Hello/descriptors_events/run_test_udp_collocated.pl b/CIAO/examples/Hello/descriptors_events/run_test_udp_collocated.pl deleted file mode 100755 index d45d68c238e..00000000000 --- a/CIAO/examples/Hello/descriptors_events/run_test_udp_collocated.pl +++ /dev/null @@ -1,12 +0,0 @@ -eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' - & eval 'exec perl -S $0 $argv:q' - if 0; - -# $Id$ -# -*- perl -*- - -use RunEventTest; - -exit RunEventTest::run_test ( - "deploymentplan_federation_udp_collocated.cdp", - "NodeManagerMap_collocated.dat"); diff --git a/CIAO/examples/Hello/descriptors_shared_components/deploymentplan.cdp b/CIAO/examples/Hello/descriptors_shared_components/deploymentplan.cdp deleted file mode 100644 index f2e55b93539..00000000000 --- a/CIAO/examples/Hello/descriptors_shared_components/deploymentplan.cdp +++ /dev/null @@ -1,224 +0,0 @@ - - - - Hello_Plan_UUID_0001 - - - - c0965470-7b83-11d9-9669-0800200c9a66 - - IDL:BasicSP/EC:1.0 - - read_message - IDL:Hello/ReadMessage:1.0 - IDL:Hello/ReadMessage:1.0 - false - false - true - false - SimplexReceptacle - - - - - Hello-Sender-mdd - - Hello-Sender_exec - Hello-Sender_svnt - - - - - Hello-Receiver-mdd - - Hello-Receiver_exec - Hello-Receiver_svnt - - - - - Hello-Sender-idd - SenderNode - - Hello-Sender-mdd - - - - ComponentIOR - - - tk_string - - - Sender.ior - - - - - - - local_message - - - tk_string - - - This is a test message passed in through XML. - - - - - - - color - - - tk_enum - - COLOR_SELECTION - IDL:Hello/COLOR_SELECTION:1.0 - empty - white - red - yellow - - - - yellow - - - - - - - Hello-Receiver-idd - ReceiverNode - - Hello-Receiver-mdd - - ComponentIOR - - - tk_string - - - Receiver.ior - - - - - - - - hello_event_connection - - click_out - EventPublisher - Hello-Sender-idd - - - click_in - EventConsumer - Hello-Receiver-idd - - - - - - - - Sender_exec - - - Hello_Sender_exec - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Impl - - - - - - - Sender_svnt - - - Hello_Sender_svnt - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Servant - - - - - - - Receiver_exec - - - Hello_Receiver_exec - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Impl - - - - - - - Receiver_svnt - - - Hello_Receiver_svnt - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Servant - - - - - diff --git a/CIAO/examples/Hello/descriptors_shared_components/deploymentplan_shared_components.cdp b/CIAO/examples/Hello/descriptors_shared_components/deploymentplan_shared_components.cdp deleted file mode 100644 index 912bab194c5..00000000000 --- a/CIAO/examples/Hello/descriptors_shared_components/deploymentplan_shared_components.cdp +++ /dev/null @@ -1,229 +0,0 @@ - - - - Hello_Plan_UUID_0002 - - - - c0965470-7b83-11d9-9669-0800200c9a66 - - IDL:BasicSP/EC:1.0 - - read_message - IDL:Hello/ReadMessage:1.0 - IDL:Hello/ReadMessage:1.0 - false - false - true - false - SimplexReceptacle - - - - - Hello-Sender-mdd - - Hello-Sender_exec - Hello-Sender_svnt - - - - - Hello-Receiver-mdd - - Hello-Receiver_exec - Hello-Receiver_svnt - - - - - Hello-Sender-idd-new-component - SenderNode - - Hello-Sender-mdd - - - - ComponentIOR - - - tk_string - - - Sender_new_component.ior - - - - - - - local_message - - - tk_string - - - This is a test message passed in through XML. - - - - - - - color - - - tk_enum - - COLOR_SELECTION - IDL:Hello/COLOR_SELECTION:1.0 - empty - white - red - yellow - - - - yellow - - - - - - - Hello-Receiver-idd - ReceiverNode - - Hello-Receiver-mdd - - ComponentIOR - - - tk_string - - - - Receiver_new_component.ior - - - - - - - - hello_event_connection - - click_out - EventPublisher - Hello-Sender-idd-new-component - - - click_in - EventConsumer - Hello-Receiver-idd - - - - - - hello_facet_connection - - push_message - Facet - Hello-Sender-idd-new-component - - - read_message - SimplexReceptacle - Hello-Receiver-idd - - - - - - - Sender_exec - - - Hello_Sender_exec - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Impl - - - - - - - Sender_svnt - - - Hello_Sender_svnt - - entryPoint - - - tk_string - - - create_Hello_SenderHome_Servant - - - - - - - Receiver_exec - - - Hello_Receiver_exec - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Impl - - - - - - - Receiver_svnt - - - Hello_Receiver_svnt - - entryPoint - - - tk_string - - - create_Hello_ReceiverHome_Servant - - - - - -- cgit v1.2.1