summaryrefslogtreecommitdiff
path: root/CIAO/connectors/ami4ccm/tests/NoReplyH
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/connectors/ami4ccm/tests/NoReplyH')
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoReplyH/.gitignore1
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoReplyH/Base/.gitignore11
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoReplyH/Base/NoReplyH.idl35
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoReplyH/Base/NoReplyH.mpc191
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoReplyH/Receiver/.gitignore5
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoReplyH/Receiver/NoReplyH_Receiver.idl16
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoReplyH/Receiver/NoReplyH_Receiver.mpc132
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoReplyH/Receiver/NoReplyH_Receiver_exec.cpp210
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoReplyH/Receiver/NoReplyH_Receiver_exec.h142
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoReplyH/Sender/.gitignore5
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoReplyH/Sender/NoReplyH_Sender.idl19
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoReplyH/Sender/NoReplyH_Sender.mpc132
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoReplyH/Sender/NoReplyH_Sender_exec.cpp325
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoReplyH/Sender/NoReplyH_Sender_exec.h181
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoReplyH/descriptors/Plan.cdp374
-rwxr-xr-xCIAO/connectors/ami4ccm/tests/NoReplyH/descriptors/run_test.pl243
16 files changed, 0 insertions, 2022 deletions
diff --git a/CIAO/connectors/ami4ccm/tests/NoReplyH/.gitignore b/CIAO/connectors/ami4ccm/tests/NoReplyH/.gitignore
deleted file mode 100644
index 502167fa0b8..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoReplyH/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/lib
diff --git a/CIAO/connectors/ami4ccm/tests/NoReplyH/Base/.gitignore b/CIAO/connectors/ami4ccm/tests/NoReplyH/Base/.gitignore
deleted file mode 100644
index 66f8fa622be..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoReplyH/Base/.gitignore
+++ /dev/null
@@ -1,11 +0,0 @@
-/NoReplyHA.idl
-/NoReplyHAE.idl
-/NoReplyHA_conn.cpp
-/NoReplyHA_conn.h
-/NoReplyHE.idl
-/NoReplyH_conn_export.h
-/NoReplyH_exec_export.h
-/NoReplyH_lem_stub_export.h
-/NoReplyH_skel_export.h
-/NoReplyH_stub_export.h
-/NoReplyH_svnt_export.h
diff --git a/CIAO/connectors/ami4ccm/tests/NoReplyH/Base/NoReplyH.idl b/CIAO/connectors/ami4ccm/tests/NoReplyH/Base/NoReplyH.idl
deleted file mode 100644
index 92f94d76872..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoReplyH/Base/NoReplyH.idl
+++ /dev/null
@@ -1,35 +0,0 @@
-#ifndef NOREPLYH_IDL
-#define NOREPLYH_IDL
-
-#pragma ciao lem "Base/NoReplyHE.idl"
-#pragma ciao ami4ccm interface "NoReplyH::MyFoo"
-#pragma ciao lem "Base/NoReplyHAE.idl"
-#pragma ciao ami4ccm idl "Base/NoReplyHA.idl"
-
-module NoReplyH
-{
- exception InternalError
- {
- long id;
- string error_string;
- };
-
- // Sender/Receiver interface
- interface MyFoo
- {
- long foo (in string in_str, out string answer)
- raises (InternalError);
- void hello (out long answer)
- raises (InternalError);
-
- attribute short rw_attrib
- getraises (InternalError)
- setraises (InternalError);
-
- readonly attribute short ro_attrib
- raises (InternalError);
- };
-};
-
-#endif
-
diff --git a/CIAO/connectors/ami4ccm/tests/NoReplyH/Base/NoReplyH.mpc b/CIAO/connectors/ami4ccm/tests/NoReplyH/Base/NoReplyH.mpc
deleted file mode 100644
index 2beb75478e4..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoReplyH/Base/NoReplyH.mpc
+++ /dev/null
@@ -1,191 +0,0 @@
-project(AMI_NoReplyH_idl_gen) : componentidldefaults, ami, ami4ccm_stub {
- custom_only = 1
- idlflags += -Wb,stub_export_macro=NOREPLYH_STUB_Export \
- -Wb,stub_export_include=NoReplyH_stub_export.h \
- -Wb,skel_export_macro=NOREPLYH_SKEL_Export \
- -Wb,skel_export_include=NoReplyH_skel_export.h \
- -Wb,conn_export_macro=NOREPLYH_CONN_Export \
- -Wb,conn_export_include=NoReplyH_conn_export.h \
- -Wb,exec_export_macro=NOREPLYH_EXEC_Export \
- -Wb,exec_export_include=NoReplyH_exec_export.h \
- -I.. -GM -Gxhcn
-
- IDL_Files {
- NoReplyH.idl
- }
-}
-
-project(AMI_NoReplyH_lem_gen) : ciaoidldefaults {
- after += AMI_NoReplyH_idl_gen AMI_NoReplyH_lema_gen
- custom_only = 1
- idlflags += -Wb,export_macro=NOREPLYH_LEM_STUB_Export \
- -Wb,export_include=NoReplyH_lem_stub_export.h \
- -I.. -SS -Gxhst
-
- IDL_Files {
- NoReplyHE.idl
- }
-}
-
-project(AMI_NoReplyH_lema_gen) : ciaoidldefaults, typecode {
- after += AMI_NoReplyH_idl_gen
- custom_only = 1
- idlflags += -Wb,stub_export_macro=NOREPLYH_STUB_Export \
- -Wb,stub_export_include=NoReplyH_stub_export.h \
- -Wb,conn_export_macro=NOREPLYH_CONN_Export \
- -Wb,conn_export_include=NoReplyH_conn_export.h \
- -Wb,svnt_export_macro=NOREPLYH_SVNT_Export \
- -Wb,svnt_export_include=NoReplyH_svnt_export.h \
- -Wb,skel_export_macro=NOREPLYH_SKEL_Export \
- -Wb,skel_export_include=NoReplyH_skel_export.h \
- -I.. -Gsv -Gcn -Glem -GC -Gxhst -Gxhsv
-
- IDL_Files {
- NoReplyHA.idl
- }
-}
-
-project(AMI_NoReplyH_lemae_gen) : ciaoidldefaults {
- after += AMI_NoReplyH_lema_gen
- custom_only = 1
- idlflags += -Wb,stub_export_macro=NOREPLYH_LEM_STUB_Export \
- -Wb,stub_export_include=NoReplyH_lem_stub_export.h \
- -I.. -SS
-
- IDL_Files {
- NoReplyHAE.idl
- }
-}
-
-project(AMI_NoReplyH_stub) : ccm_stub, ami, ami4ccm_stub {
- after += AMI_NoReplyH_lem_gen
- libs +=
- libout = ../lib
- libpaths += ../lib
- includes += ..
-
- sharedname = NoReplyH_stub
- dynamicflags += NOREPLYH_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- NoReplyHC.cpp
- NoReplyHAC.cpp
- }
-
- Header_Files {
- NoReplyHC.h
- NoReplyH_stub_export.h
-}
-
- Inline_Files {
- NoReplyHC.inl
- }
-}
-
-project(AMI_NoReplyH_lem_stub) : ccm_executor, ami, ami4ccm_lem_stub {
- after += AMI_NoReplyH_lem_gen AMI_NoReplyH_stub AMI_NoReplyH_lemae_gen AMI_NoReplyH_skel
- libs += NoReplyH_stub NoReplyH_skel
- libout = ../lib
- libpaths += ../lib
- includes += ..
-
- sharedname = NoReplyH_lem_stub
- dynamicflags += NOREPLYH_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- NoReplyHEC.cpp
- NoReplyHAEC.cpp
- }
-
- Header_Files {
- NoReplyHEC.h
- NoReplyH_lem_stub_export.h
-}
-
- Inline_Files {
- NoReplyHEC.inl
- }
-}
-
-project(AMI_NoReplyH_skel) : ciao_executor, ami, ami4ccm_servant {
- after += AMI_NoReplyH_stub
- sharedname = NoReplyH_skel
- libs += NoReplyH_stub
- libout = ../lib
- libpaths += ../lib
- includes += ..
-
- dynamicflags += NOREPLYH_SKEL_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- NoReplyHS.cpp
- NoReplyHAS.cpp
- }
-
- Header_Files {
- NoReplyHS.h
-
- NoReplyH_skel_export.h
- }
-
- Inline_Files {
- }
-}
-
-project(AMI_NoReplyH_conn) : ciao_executor, ami, ami4ccm_lem_stub {
- after += AMI_NoReplyH_lem_stub NoReplyH_Base_AMI_stub AMI_NoReplyH_skel AMI_NoReplyH_lema_gen AMI_NoReplyH_lemae_gen
- sharedname = NoReplyH_conn
- libs += NoReplyH_stub NoReplyH_skel NoReplyH_lem_stub
- libpaths += ../lib
- libout = ../lib
- dynamicflags += NOREPLYH_CONN_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- NoReplyHA_conn.cpp
- }
-
- Header_Files {
- NoReplyHA_conn.h
- NoReplyH_conn_export.h
- }
-
- Inline_Files {
- }
-}
-
-project(AMI_NoReplyH_svnt) : ciao_servant, ami, ami4ccm_servant {
- after += AMI_NoReplyH_lem_stub NoReplyH_Base_AMI_stub AMI_NoReplyH_skel AMI_NoReplyH_lema_gen AMI_NoReplyH_lemae_gen AMI_NoReplyH_conn
- sharedname = NoReplyH_svnt
- libs += NoReplyH_stub NoReplyH_skel NoReplyH_lem_stub NoReplyH_conn
- libpaths += ../lib
- libout = ../lib
- dynamicflags += NOREPLYH_SVNT_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- NoReplyHA_svnt.cpp
- }
-
- Header_Files {
- NoReplyHA_svnt.h
- NoReplyHA_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
diff --git a/CIAO/connectors/ami4ccm/tests/NoReplyH/Receiver/.gitignore b/CIAO/connectors/ami4ccm/tests/NoReplyH/Receiver/.gitignore
deleted file mode 100644
index bdd29919c85..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoReplyH/Receiver/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-/NoReplyH_ReceiverE.idl
-/NoReplyH_Receiver_exec_export.h
-/NoReplyH_Receiver_lem_stub_export.h
-/NoReplyH_Receiver_stub_export.h
-/NoReplyH_Receiver_svnt_export.h
diff --git a/CIAO/connectors/ami4ccm/tests/NoReplyH/Receiver/NoReplyH_Receiver.idl b/CIAO/connectors/ami4ccm/tests/NoReplyH/Receiver/NoReplyH_Receiver.idl
deleted file mode 100644
index 69973ed826a..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoReplyH/Receiver/NoReplyH_Receiver.idl
+++ /dev/null
@@ -1,16 +0,0 @@
-#ifndef NOREPLYH_RECEIVER_IDL
-#define NOREPLYH_RECEIVER_IDL
-
-#include <Components.idl>
-
-#include "Base/NoReplyH.idl"
-
-module NoReplyH
-{
- component Receiver
- {
- /// Provides
- provides MyFoo do_my_foo;
- };
-};
-#endif
diff --git a/CIAO/connectors/ami4ccm/tests/NoReplyH/Receiver/NoReplyH_Receiver.mpc b/CIAO/connectors/ami4ccm/tests/NoReplyH/Receiver/NoReplyH_Receiver.mpc
deleted file mode 100644
index 0455c415edd..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoReplyH/Receiver/NoReplyH_Receiver.mpc
+++ /dev/null
@@ -1,132 +0,0 @@
-// This file is generated with "generate_component_mpc.pl -p NoReplyH_Base NoReplyH_Receiver"
-
-project(AMI_NoReplyH_Base_Receiver_idl_gen) : componentidldefaults {
- custom_only = 1
- after += AMI_NoReplyH_idl_gen
- idlflags += -Wb,stub_export_macro=NOREPLYH_RECEIVER_STUB_Export \
- -Wb,stub_export_include=NoReplyH_Receiver_stub_export.h \
- -Wb,skel_export_macro=NOREPLYH_RECEIVER_SVNT_Export \
- -Wb,skel_export_include=NoReplyH_Receiver_svnt_export.h \
- -Wb,exec_export_macro=NOREPLYH_RECEIVER_EXEC_Export \
- -Wb,exec_export_include=NoReplyH_Receiver_exec_export.h \
- -Glem -I..
-
- IDL_Files {
- NoReplyH_Receiver.idl
- }
-}
-
-project(AMI_NoReplyH_Base_Receiver_lem_gen) : ciaoidldefaults {
- after += AMI_NoReplyH_Base_Receiver_idl_gen
- custom_only = 1
- idlflags += -Wb,stub_export_macro=NOREPLYH_RECEIVER_LEM_STUB_Export \
- -Wb,stub_export_include=NoReplyH_Receiver_lem_stub_export.h \
- -SS -Gxhst -I..
-
- IDL_Files {
- NoReplyH_ReceiverE.idl
- }
-}
-
-project(AMI_NoReplyH_Base_Receiver_l_stub) : ccm_svnt, messaging {
- after += AMI_NoReplyH_Base_Receiver_lem_gen AMI_NoReplyH_Base_Receiver_stub AMI_NoReplyH_stub
- libs += NoReplyH_stub NoReplyH_Receiver_stub
- libpaths += ../lib
- libout = ../lib
- sharedname = NoReplyH_Receiver_lem_stub
- dynamicflags += NOREPLYH_RECEIVER_LEM_STUB_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- NoReplyH_ReceiverEC.cpp
- }
-
- Header_Files {
- NoReplyH_ReceiverEC.h
- NoReplyH_Receiver_lem_stub_export.h
- }
-
- Inline_Files {
- NoReplyH_ReceiverEC.inl
- }
-}
-
-project(AMI_NoReplyH_Base_Receiver_stub) : ccm_stub, messaging {
- after += AMI_NoReplyH_Base_Receiver_idl_gen AMI_NoReplyH_stub
- libs += NoReplyH_stub
- libpaths += ../lib
- libout = ../lib
- sharedname = NoReplyH_Receiver_stub
- dynamicflags += NOREPLYH_RECEIVER_STUB_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- NoReplyH_ReceiverC.cpp
- }
-
- Header_Files {
- NoReplyH_ReceiverC.h
- NoReplyH_Receiver_stub_export.h
- }
-
- Inline_Files {
- NoReplyH_ReceiverC.inl
- }
-}
-
-project(AMI_NoReplyH_Base_Receiver_exec) : ciao_executor, messaging {
- after += AMI_NoReplyH_Base_Receiver_l_stub AMI_NoReplyH_Base_Receiver_stub AMI_NoReplyH_stub AMI_NoReplyH_lem_stub
- sharedname = NoReplyH_Receiver_exec
- libs += NoReplyH_Receiver_stub NoReplyH_Receiver_lem_stub NoReplyH_stub NoReplyH_lem_stub
- libpaths += ../lib
- libout = ../lib
- dynamicflags += NOREPLYH_RECEIVER_EXEC_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- NoReplyH_Receiver_exec.cpp
- }
-
- Header_Files {
- NoReplyH_Receiver_exec.h
- NoReplyH_Receiver_exec_export.h
- }
-
- Inline_Files {
- }
-}
-
-project(AMI_NoReplyH_Base_Receiver_svnt) : ciao_servant, messaging {
- after += AMI_NoReplyH_Base_skel AMI_NoReplyH_Base_Receiver_l_stub AMI_NoReplyH_stub AMI_NoReplyH_skel AMI_NoReplyH_lem_stub
- sharedname = NoReplyH_Receiver_svnt
- libs += NoReplyH_Receiver_stub NoReplyH_Receiver_lem_stub \
- NoReplyH_skel \
- NoReplyH_stub NoReplyH_lem_stub
- libpaths += ../lib
- libout = ../lib
- dynamicflags += NOREPLYH_RECEIVER_SVNT_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- NoReplyH_ReceiverS.cpp
- NoReplyH_Receiver_svnt.cpp
- }
-
- Header_Files {
- NoReplyH_ReceiverS.h
- NoReplyH_Receiver_svnt.h
- NoReplyH_Receiver_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
diff --git a/CIAO/connectors/ami4ccm/tests/NoReplyH/Receiver/NoReplyH_Receiver_exec.cpp b/CIAO/connectors/ami4ccm/tests/NoReplyH/Receiver/NoReplyH_Receiver_exec.cpp
deleted file mode 100644
index afdbef89d97..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoReplyH/Receiver/NoReplyH_Receiver_exec.cpp
+++ /dev/null
@@ -1,210 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-
-#include "NoReplyH_Receiver_exec.h"
-#include "ace/OS_NS_unistd.h"
-
-namespace CIAO_NoReplyH_Receiver_Impl
-{
-
- /**
- * Facet Executor Implementation Class: do_my_foo_exec_i
- */
-
- do_my_foo_exec_i::do_my_foo_exec_i (
- ::NoReplyH::CCM_Receiver_Context_ptr ctx,
- Atomic_UShort &calls)
- : ciao_context_ (
- ::NoReplyH::CCM_Receiver_Context::_duplicate (ctx)),
- attrib_ (0),
- calls_(calls)
- {
- }
-
- do_my_foo_exec_i::~do_my_foo_exec_i (void)
- {
- }
-
- // Operations from ::NoReplyH::MyFoo
-
- ::CORBA::Long
- do_my_foo_exec_i::foo (const char * in_str,
- ::CORBA::String_out answer)
- {
- ++this->calls_;
- if (ACE_OS::strlen (in_str) == 0)
- {
- NoReplyH::InternalError ex (42, "Hello world");
- throw ex;
- }
- else
- {
- ACE_OS::sleep (ACE_OS::rand () % 2);
- answer = CORBA::string_dup ("This is my answer : Hi");
- return 1;
- }
- }
-
- void
- do_my_foo_exec_i::hello (::CORBA::Long_out answer)
- {
- ++this->calls_;
- ACE_OS::sleep (ACE_OS::rand () % 2);
- answer = 4;
- }
-
- ::CORBA::Short
- do_my_foo_exec_i::rw_attrib (void)
- {
- ++this->calls_;
- ACE_OS::sleep (ACE_OS::rand () % 2);
- return 2;
- }
-
- void
- do_my_foo_exec_i::rw_attrib (::CORBA::Short rw_attrib)
- {
- ++this->calls_;
- if (rw_attrib == 0)
- {
- NoReplyH::InternalError ex (42, "Hello world");
- throw ex;
- }
- else
- {
- ACE_OS::sleep (ACE_OS::rand () % 2);
- }
- }
-
- ::CORBA::Short
- do_my_foo_exec_i::ro_attrib (void)
- {
- ++this->calls_;
- return 3;
- }
-
- /**
- * Component Executor Implementation Class: Receiver_exec_i
- */
-
- Receiver_exec_i::Receiver_exec_i (void)
- :calls_(0)
- {
- }
-
- Receiver_exec_i::~Receiver_exec_i (void)
- {
- }
-
- // Supported operations and attributes.
-
- // Component attributes and port operations.
-
- ::NoReplyH::CCM_MyFoo_ptr
- Receiver_exec_i::get_do_my_foo (void)
- {
- if ( ::CORBA::is_nil (this->ciao_do_my_foo_.in ()))
- {
- do_my_foo_exec_i *tmp = 0;
- ACE_NEW_RETURN (
- tmp,
- do_my_foo_exec_i (
- this->ciao_context_.in (),
- this->calls_),
- ::NoReplyH::CCM_MyFoo::_nil ());
-
- this->ciao_do_my_foo_ = tmp;
- }
-
- return
- ::NoReplyH::CCM_MyFoo::_duplicate (
- this->ciao_do_my_foo_.in ());
- }
-
- // Operations from Components::SessionComponent.
-
- void
- Receiver_exec_i::set_session_context (
- ::Components::SessionContext_ptr ctx)
- {
- this->ciao_context_ =
- ::NoReplyH::CCM_Receiver_Context::_narrow (ctx);
-
- if ( ::CORBA::is_nil (this->ciao_context_.in ()))
- {
- throw ::CORBA::INTERNAL ();
- }
- }
-
- void
- Receiver_exec_i::configuration_complete (void)
- {
- /* Your code here. */
- }
-
- void
- Receiver_exec_i::ccm_activate (void)
- {
- /* Your code here. */
- }
-
- void
- Receiver_exec_i::ccm_passivate (void)
- {
- /* Your code here. */
- }
-
- void
- Receiver_exec_i::ccm_remove (void)
- {
- if (this->calls_.value() != 10)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: not received the expected number of"
- "calls"
- "Expected: 10, Received: %u.\n",
- this->calls_.value()));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "OK: Receiver received the expected "
- "number of calls. "
- "Expected: 10, Received: %u.\n",
- this->calls_.value()));
- }
- }
-
- extern "C" NOREPLYH_RECEIVER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_NoReplyH_Receiver_Impl (void)
- {
- ::Components::EnterpriseComponent_ptr retval =
- ::Components::EnterpriseComponent::_nil ();
-
- ACE_NEW_NORETURN (
- retval,
- Receiver_exec_i);
-
- return retval;
- }
-}
diff --git a/CIAO/connectors/ami4ccm/tests/NoReplyH/Receiver/NoReplyH_Receiver_exec.h b/CIAO/connectors/ami4ccm/tests/NoReplyH/Receiver/NoReplyH_Receiver_exec.h
deleted file mode 100644
index bbfc6add7a5..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoReplyH/Receiver/NoReplyH_Receiver_exec.h
+++ /dev/null
@@ -1,142 +0,0 @@
- // -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-#ifndef CIAO_NOREPLYH_RECEIVER_EXEC_G46GZJ_H_
-#define CIAO_NOREPLYH_RECEIVER_EXEC_G46GZJ_H_
-
-#include /**/ "ace/pre.h"
-
-#include "NoReplyH_ReceiverEC.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include /**/ "NoReplyH_Receiver_exec_export.h"
-#include "tao/LocalObject.h"
-
-namespace CIAO_NoReplyH_Receiver_Impl
-{
- typedef ACE_Atomic_Op <TAO_SYNCH_MUTEX, CORBA::UShort > Atomic_UShort;
-
- /**
- * Provider Executor Implementation Class: do_my_foo_exec_i
- */
-
- class do_my_foo_exec_i
- : public virtual ::NoReplyH::CCM_MyFoo,
- public virtual ::CORBA::LocalObject
- {
- public:
- do_my_foo_exec_i (
- ::NoReplyH::CCM_Receiver_Context_ptr ctx, Atomic_UShort &);
- virtual ~do_my_foo_exec_i (void);
-
- //@{
- /** Operations and attributes from NoReplyH::MyFoo. */
-
- virtual
- ::CORBA::Long foo (const char * in_str,
- ::CORBA::String_out answer);
-
- virtual
- void hello (::CORBA::Long_out answer);
-
- virtual
- ::CORBA::Short rw_attrib (void);
-
- virtual
- void rw_attrib (::CORBA::Short rw_attrib);
-
- virtual
- ::CORBA::Short ro_attrib (void);
- //@}
-
- private:
- ::NoReplyH::CCM_Receiver_Context_var ciao_context_;
- CORBA::Long attrib_;
- Atomic_UShort &calls_;
- };
-
- /**
- * Component Executor Implementation Class: Receiver_exec_i
- */
-
- class Receiver_exec_i
- : public virtual Receiver_Exec,
- public virtual ::CORBA::LocalObject
- {
- public:
- Receiver_exec_i (void);
- virtual ~Receiver_exec_i (void);
-
- //@{
- /** Supported operations and attributes. */
- //@}
-
- //@{
- /** Component attributes and port operations. */
-
- virtual ::NoReplyH::CCM_MyFoo_ptr
- get_do_my_foo (void);
- //@}
-
- //@{
- /** Operations from Components::SessionComponent. */
- virtual void set_session_context (::Components::SessionContext_ptr ctx);
- virtual void configuration_complete (void);
- virtual void ccm_activate (void);
- virtual void ccm_passivate (void);
- virtual void ccm_remove (void);
- //@}
-
- //@{
- /** User defined public operations. */
- //@}
-
- private:
- ::NoReplyH::CCM_Receiver_Context_var ciao_context_;
-
- //@{
- /** Component attributes. */
- ::NoReplyH::CCM_MyFoo_var ciao_do_my_foo_;
- //@}
-
- //@{
- /** User defined members. */
- Atomic_UShort calls_;
- //@}
-
- //@{
- /** User defined private operations. */
- //@}
- };
-
- extern "C" NOREPLYH_RECEIVER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_NoReplyH_Receiver_Impl (void);
-}
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/CIAO/connectors/ami4ccm/tests/NoReplyH/Sender/.gitignore b/CIAO/connectors/ami4ccm/tests/NoReplyH/Sender/.gitignore
deleted file mode 100644
index 744d3810a46..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoReplyH/Sender/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-/NoReplyH_SenderE.idl
-/NoReplyH_Sender_exec_export.h
-/NoReplyH_Sender_lem_stub_export.h
-/NoReplyH_Sender_stub_export.h
-/NoReplyH_Sender_svnt_export.h
diff --git a/CIAO/connectors/ami4ccm/tests/NoReplyH/Sender/NoReplyH_Sender.idl b/CIAO/connectors/ami4ccm/tests/NoReplyH/Sender/NoReplyH_Sender.idl
deleted file mode 100644
index 6558b429398..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoReplyH/Sender/NoReplyH_Sender.idl
+++ /dev/null
@@ -1,19 +0,0 @@
-#ifndef NOREPLYH_SENDER_IDL
-#define NOREPLYH_SENDER_IDL
-
-#include <Components.idl>
-
-#include "Base/NoReplyH.idl"
-
-#pragma ciao ami4ccm receptacle "NoReplyH::Sender::run_my_foo"
-
-module NoReplyH
-{
- component Sender
- {
- /// For synchronous invocation
- uses MyFoo run_my_foo;
- };
-};
-
-#endif
diff --git a/CIAO/connectors/ami4ccm/tests/NoReplyH/Sender/NoReplyH_Sender.mpc b/CIAO/connectors/ami4ccm/tests/NoReplyH/Sender/NoReplyH_Sender.mpc
deleted file mode 100644
index 9ea5f80ec14..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoReplyH/Sender/NoReplyH_Sender.mpc
+++ /dev/null
@@ -1,132 +0,0 @@
-// This file is generated with "generate_component_mpc.pl -p NoReplyH_Base NoReplyH_Sender"
-
-project(AMI_NoReplyH_Base_Sender_idl_gen) : componentidldefaults {
- after += AMI_NoReplyH_idl_gen
- custom_only = 1
- idlflags += -Wb,stub_export_macro=NOREPLYH_SENDER_STUB_Export \
- -Wb,stub_export_include=NoReplyH_Sender_stub_export.h \
- -Wb,skel_export_macro=NOREPLYH_SENDER_SVNT_Export \
- -Wb,skel_export_include=NoReplyH_Sender_svnt_export.h \
- -Wb,exec_export_macro=NOREPLYH_SENDER_EXEC_Export \
- -Wb,exec_export_include=NoReplyH_Sender_exec_export.h \
- -I.. -GC
-
- IDL_Files {
- NoReplyH_Sender.idl
- }
-}
-
-project(AMI_NoReplyH_Base_Sender_lem_gen) : ciaoidldefaults {
- after += AMI_NoReplyH_Base_Sender_idl_gen
- custom_only = 1
- idlflags += -Wb,stub_export_macro=NOREPLYH_SENDER_LEM_STUB_Export \
- -Wb,stub_export_include=NoReplyH_Sender_lem_stub_export.h \
- -SS -Gxhst -I..
-
- IDL_Files {
- NoReplyH_SenderE.idl
- }
-}
-
-project(AMI_NoReplyH_Base_Sender_lem_stub) : ccm_svnt, ami {
- after += AMI_NoReplyH_Base_Sender_lem_gen AMI_NoReplyH_stub Conn_NoReplyH_Base_stub
- libs += NoReplyH_stub
- libpaths += ../lib
- libout = ../lib
- sharedname = NoReplyH_Sender_lem_stub
- dynamicflags += NOREPLYH_SENDER_LEM_STUB_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- NoReplyH_SenderEC.cpp
- }
-
- Header_Files {
- NoReplyH_SenderEC.h
- NoReplyH_Sender_lem_stub_export.h
- }
-
- Inline_Files {
- NoReplyH_SenderEC.inl
- }
-}
-
-project(AMI_NoReplyH_Base_Sender_stub) : ccm_stub, ami {
- after += AMI_NoReplyH_Base_Sender_idl_gen AMI_NoReplyH_Base_stub AMI_NoReplyH_stub Conn_NoReplyH_Base_stub
- libs += NoReplyH_stub
- libpaths += ../lib
- libout = ../lib
- sharedname = NoReplyH_Sender_stub
- dynamicflags += NOREPLYH_SENDER_STUB_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- NoReplyH_SenderC.cpp
- }
-
- Header_Files {
- NoReplyH_SenderC.h
- NoReplyH_Sender_stub_export.h
- }
-
- Inline_Files {
- NoReplyH_SenderC.inl
- }
-}
-
-project(AMI_NoReplyH_Base_Sender_exec) : ciao_executor, ami, ami4ccm_stub {
- after += AMI_NoReplyH_Base_Sender_lem_stub AMI_NoReplyH_Base_Sender_stub AMI_NoReplyH_Base_exec Conn_NoReplyH_Base_stub AMI_NoReplyH_lem_stub
- sharedname = NoReplyH_Sender_exec
- libs += NoReplyH_Sender_stub NoReplyH_Sender_lem_stub NoReplyH_stub NoReplyH_stub NoReplyH_lem_stub
- libpaths += ../lib
- libout = ../lib
- dynamicflags += NOREPLYH_SENDER_EXEC_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- NoReplyH_Sender_exec.cpp
- }
-
- Header_Files {
- NoReplyH_Sender_exec.h
- NoReplyH_Sender_exec_export.h
- }
-
- Inline_Files {
- }
-}
-
-project(AMI_NoReplyH_Base_Sender_svnt) : ciao_servant, ami {
- after += AMI_NoReplyH_Base_skel AMI_NoReplyH_Base_Sender_lem_stub AMI_NoReplyH_Base_Sender_stub AMI_NoReplyH_Base_exec AMI_NoReplyH_skel
- sharedname = NoReplyH_Sender_svnt
- libs += NoReplyH_Sender_stub NoReplyH_Sender_lem_stub \
- NoReplyH_skel \
- NoReplyH_stub
- libpaths += ../lib
- libout = ../lib
- dynamicflags += NOREPLYH_SENDER_SVNT_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- NoReplyH_SenderS.cpp
- NoReplyH_Sender_svnt.cpp
- }
-
- Header_Files {
- NoReplyH_SenderS.h
- NoReplyH_Sender_svnt.h
- NoReplyH_Sender_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
diff --git a/CIAO/connectors/ami4ccm/tests/NoReplyH/Sender/NoReplyH_Sender_exec.cpp b/CIAO/connectors/ami4ccm/tests/NoReplyH/Sender/NoReplyH_Sender_exec.cpp
deleted file mode 100644
index 7bdb81d812a..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoReplyH/Sender/NoReplyH_Sender_exec.cpp
+++ /dev/null
@@ -1,325 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-
-#include "NoReplyH_Sender_exec.h"
-#include "ace/OS_NS_unistd.h"
-
-
-namespace CIAO_NoReplyH_Sender_Impl
-{
- //============================================================
- // Worker thread for asynchronous invocations for MyFoo
- //============================================================
- asynch_foo_generator::asynch_foo_generator (
- ::NoReplyH::CCM_Sender_Context_ptr context,
- Atomic_UShort &nr_received_back)
- : context_(::NoReplyH::CCM_Sender_Context::_duplicate (context)),
- nr_received_back_(nr_received_back)
- {
- }
-
- int asynch_foo_generator::svc ()
- {
- ACE_OS::sleep (3);
- ::NoReplyH::AMI4CCM_MyFoo_var my_foo_ami_ =
- this->context_->get_connection_sendc_run_my_foo();
-
- if (CORBA::is_nil (my_foo_ami_))
- {
- ACE_ERROR ((LM_ERROR, "ERROR Sender (ASYNCH) :\tfoo_ami is NIL !\n"));
- return 1;
- }
- else
- {
- ::NoReplyH::AMI4CCM_MyFooReplyHandler_var cb =
- new AMI4CCM_MyFooReplyHandler_run_my_foo_i (
- this->nr_received_back_);
-
- //Invoke Asynchronous calls
- //test with replyhandler.
- my_foo_ami_->sendc_foo ( cb.in (),
- "Do something asynchronous");
-
- //test without replyhandlers.
- my_foo_ami_->sendc_foo ( NoReplyH::AMI4CCM_MyFooReplyHandler::_nil (),
- "Do something asynchronous with no replyhandler");
- my_foo_ami_->sendc_hello (
- NoReplyH::AMI4CCM_MyFooReplyHandler::_nil ());
- my_foo_ami_->sendc_get_rw_attrib (
- NoReplyH::AMI4CCM_MyFooReplyHandler::_nil ());
- my_foo_ami_->sendc_set_rw_attrib (
- NoReplyH::AMI4CCM_MyFooReplyHandler::_nil (), 15);
- my_foo_ami_->sendc_get_ro_attrib (
- NoReplyH::AMI4CCM_MyFooReplyHandler::_nil ());
- }
- //Invoke Asynchronous calls to test exception handling
- //without replyhandlers.
- my_foo_ami_->sendc_foo (
- NoReplyH::AMI4CCM_MyFooReplyHandler::_nil (), "");
- my_foo_ami_->sendc_set_rw_attrib (
- NoReplyH::AMI4CCM_MyFooReplyHandler::_nil (), 0);
-
- return 0;
- }
-
- //============================================================
- // Worker thread for synchronous invocations for MyFoo
- //============================================================
- synch_foo_generator::synch_foo_generator (
- ::NoReplyH::CCM_Sender_Context_ptr context)
- : context_(::NoReplyH::CCM_Sender_Context::_duplicate (context))
-
- {
- }
-
- int synch_foo_generator::svc ()
- {
- ACE_OS::sleep (3);
- ::NoReplyH::MyFoo_var my_foo_ami_ =
- this->context_->get_connection_run_my_foo ();
-
- //run some synch calls
- try
- {
- CORBA::Short rw_attrib = my_foo_ami_->rw_attrib ();
- ACE_DEBUG ((LM_DEBUG, "OK: SYNCH rw_attrib() returns %u.\n",
- rw_attrib));
- }
- catch (const NoReplyH::InternalError& )
- {
- ACE_ERROR ((LM_ERROR, "ERROR: SYNCH rw_attrib(): "
- "Unexpected return.\n"));
- }
- try
- {
- CORBA::Short ro_attrib = my_foo_ami_->ro_attrib ();
- ACE_DEBUG ((LM_DEBUG, "OK: SYNCH ro_attrib() returns %u.\n",
- ro_attrib));
- }
- catch (const NoReplyH::InternalError& )
- {
- ACE_ERROR ((LM_ERROR, "ERROR: SYNCH ro_attrib(): "
- "Unexpected return.\n"));
- }
- catch (const CORBA::Exception& ex)
- {
- ex._tao_print_exception ("ERROR: Caught unexpected except:");
- }
- return 0;
- }
- /**
- * Component Executor Implementation Class: Sender_exec_i
- */
-
- Sender_exec_i::Sender_exec_i (void) :
- asynch_foo_gen(0),
- synch_foo_gen(0),
- nr_received_back_(0)
- {
- }
-
- Sender_exec_i::~Sender_exec_i (void)
- {
- }
-
- // Supported operations and attributes.
-
- // Component attributes and port operations.
-
- // Operations from Components::SessionComponent.
-
- void
- Sender_exec_i::set_session_context (
- ::Components::SessionContext_ptr ctx)
- {
- this->ciao_context_ =
- ::NoReplyH::CCM_Sender_Context::_narrow (ctx);
-
- if ( ::CORBA::is_nil (this->ciao_context_.in ()))
- {
- throw ::CORBA::INTERNAL ();
- }
- }
-
- void
- Sender_exec_i::configuration_complete (void)
- {
- /* Your code here. */
- }
-
- void
- Sender_exec_i::ccm_activate (void)
- {
- this->asynch_foo_gen =
- new asynch_foo_generator (this->ciao_context_.in (),
- this->nr_received_back_);
- this->asynch_foo_gen->activate (THR_NEW_LWP | THR_JOINABLE, 1);
-
- this->synch_foo_gen =
- new synch_foo_generator (this->ciao_context_.in());
- this->synch_foo_gen->activate (THR_NEW_LWP | THR_JOINABLE, 1);
- }
-
- void
- Sender_exec_i::ccm_passivate (void)
- {
- /* Your code here. */
- }
-
- void
- Sender_exec_i::ccm_remove (void)
- {
- if(this->nr_received_back_.value() != 1)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Sender doesn't received the expected "
- "number of callbacks"
- "Expected: 1, Received: %u.\n",
- this->nr_received_back_.value()));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "OK: Sender received the expected number of "
- "callbacks: %u.\n",
- this->nr_received_back_.value()));
- }
- delete this->asynch_foo_gen;
- this->asynch_foo_gen = 0;
- delete this->synch_foo_gen;
- this->synch_foo_gen = 0;
- }
-
-
- AMI4CCM_MyFooReplyHandler_run_my_foo_i::AMI4CCM_MyFooReplyHandler_run_my_foo_i (
- Atomic_UShort &nr_received_back)
- : nr_received_back_(nr_received_back)
- {
- }
-
- AMI4CCM_MyFooReplyHandler_run_my_foo_i::~AMI4CCM_MyFooReplyHandler_run_my_foo_i (void)
- {
- }
-
- void
- AMI4CCM_MyFooReplyHandler_run_my_foo_i::foo (
- ::CORBA::Long /* ami_return_val */,
- const char * answer)
- {
- ++this->nr_received_back_;
- ACE_DEBUG ((LM_DEBUG, "OK: ASYNCH foo() returns answer: %C.\n",
- answer));
- }
-
- void
- AMI4CCM_MyFooReplyHandler_run_my_foo_i::foo_excep (
- ::CCM_AMI::ExceptionHolder_ptr /* excep_holder */)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: MI4CCM_MyFooReplyHandler_i::foo_excep: "
- "Unexpected return.\n"));
- }
-
- void
- AMI4CCM_MyFooReplyHandler_run_my_foo_i::hello (
- ::CORBA::Long /* answer */)
- {
- // never should come here in this test.
- ACE_ERROR ((LM_ERROR, "ERROR: MI4CCM_MyFooReplyHandler_i::hello: "
- "Unexpected return.\n"));
- }
-
- void
- AMI4CCM_MyFooReplyHandler_run_my_foo_i::hello_excep (
- ::CCM_AMI::ExceptionHolder_ptr /* excep_holder */)
- {
- // never should come here in this test.
- ACE_ERROR ((LM_ERROR, "ERROR: MI4CCM_MyFooReplyHandler_i::hello_excep: "
- "Unexpected return.\n"));
- }
-
- void
- AMI4CCM_MyFooReplyHandler_run_my_foo_i::get_rw_attrib (
- ::CORBA::Short /* rw_attrib */)
- {
- // never should come here in this test.
- ACE_ERROR ((LM_ERROR, "ERROR: MI4CCM_MyFooReplyHandler_i::get_rw_attrib: "
- "Unexpected return.\n"));
- }
-
- void
- AMI4CCM_MyFooReplyHandler_run_my_foo_i::get_rw_attrib_excep (
- ::CCM_AMI::ExceptionHolder_ptr /* excep_holder */)
- {
- // never should come here in this test.
- ACE_ERROR ((LM_ERROR, "ERROR: MI4CCM_MyFooReplyHandler_i::get_rw_attrib_excep: "
- "Unexpected return.\n"));
- }
-
- void
- AMI4CCM_MyFooReplyHandler_run_my_foo_i::set_rw_attrib (void)
- {
- // never should come here in this test.
- ACE_ERROR ((LM_ERROR, "ERROR: MI4CCM_MyFooReplyHandler_i::set_rw_attrib: "
- "Unexpected return.\n"));
- }
-
- void
- AMI4CCM_MyFooReplyHandler_run_my_foo_i::set_rw_attrib_excep (
- ::CCM_AMI::ExceptionHolder_ptr /* excep_holder */)
- {
- // never should come here in this test.
- ACE_ERROR ((LM_ERROR, "ERROR: MI4CCM_MyFooReplyHandler_i::set_rw_attrib_excep: "
- "Unexpected return.\n"));
- }
-
- void
- AMI4CCM_MyFooReplyHandler_run_my_foo_i::get_ro_attrib (
- ::CORBA::Short /* ro_attrib */)
- {
- // never should come here in this test.
- ACE_ERROR ((LM_ERROR, "ERROR: MI4CCM_MyFooReplyHandler_i::get_ro_attrib: "
- "Unexpected return.\n"));
- }
-
- void
- AMI4CCM_MyFooReplyHandler_run_my_foo_i::get_ro_attrib_excep (
- ::CCM_AMI::ExceptionHolder_ptr /* excep_holder */)
- {
- // never should come here in this test.
- ACE_ERROR ((LM_ERROR, "ERROR: MI4CCM_MyFooReplyHandler_i::get_ro_attrib_excep: "
- "Unexpected return.\n"));
- }
-
- extern "C" NOREPLYH_SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_NoReplyH_Sender_Impl (void)
- {
- ::Components::EnterpriseComponent_ptr retval =
- ::Components::EnterpriseComponent::_nil ();
-
- ACE_NEW_NORETURN (
- retval,
- Sender_exec_i);
-
- return retval;
- }
-}
diff --git a/CIAO/connectors/ami4ccm/tests/NoReplyH/Sender/NoReplyH_Sender_exec.h b/CIAO/connectors/ami4ccm/tests/NoReplyH/Sender/NoReplyH_Sender_exec.h
deleted file mode 100644
index b1ca991cab8..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoReplyH/Sender/NoReplyH_Sender_exec.h
+++ /dev/null
@@ -1,181 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-#ifndef CIAO_NOREPLYH_SENDER_EXEC_5F9YOB_H_
-#define CIAO_NOREPLYH_SENDER_EXEC_5F9YOB_H_
-
-#include /**/ "ace/pre.h"
-
-#include "NoReplyH_SenderEC.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include /**/ "NoReplyH_Sender_exec_export.h"
-#include "tao/LocalObject.h"
-#include "ace/Task.h"
-
-namespace CIAO_NoReplyH_Sender_Impl
-{
- typedef ACE_Atomic_Op <TAO_SYNCH_MUTEX, CORBA::UShort > Atomic_UShort;
-
- /// Worker thread for asynchronous invocations
- class asynch_foo_generator : public virtual ACE_Task_Base
- {
- public:
- asynch_foo_generator (::NoReplyH::CCM_Sender_Context_ptr context,
- Atomic_UShort &nr_received_back);
-
- virtual int svc (void);
-
- private:
- ::NoReplyH::CCM_Sender_Context_var context_;
- Atomic_UShort &nr_received_back_;
- };
-
- /// Worker thread for synchronous invocations
- class synch_foo_generator : public virtual ACE_Task_Base
- {
- public:
- synch_foo_generator (::NoReplyH::CCM_Sender_Context_ptr context);
-
- virtual int svc (void);
-
- private:
- ::NoReplyH::CCM_Sender_Context_var context_;
- };
- /**
- * Component Executor Implementation Class: Sender_exec_i
- */
-
- class Sender_exec_i
- : public virtual Sender_Exec,
- public virtual ::CORBA::LocalObject
- {
- public:
- Sender_exec_i (void);
- virtual ~Sender_exec_i (void);
-
- //@{
- /** Supported operations and attributes. */
-
- //@}
-
- //@{
- /** Component attributes and port operations. */
- //@}
-
- //@{
- /** Operations from Components::SessionComponent. */
- virtual void set_session_context (::Components::SessionContext_ptr ctx);
- virtual void configuration_complete (void);
- virtual void ccm_activate (void);
- virtual void ccm_passivate (void);
- virtual void ccm_remove (void);
- //@}
-
- //@{
- /** User defined public operations. */
-
- //@}
-
- private:
- ::NoReplyH::CCM_Sender_Context_var ciao_context_;
-
- //@{
- /** Component attributes. */
- //@}
-
- //@{
- /** User defined members. */
- asynch_foo_generator* asynch_foo_gen;
- synch_foo_generator* synch_foo_gen;
- Atomic_UShort nr_received_back_;
- //@}
-
- //@{
- /** User defined private operations. */
-
- //@}
- };
- class AMI4CCM_MyFooReplyHandler_run_my_foo_i
- : public ::NoReplyH::CCM_AMI4CCM_MyFooReplyHandler,
- public virtual ::CORBA::LocalObject
- {
- public:
- AMI4CCM_MyFooReplyHandler_run_my_foo_i (Atomic_UShort &);
- virtual ~AMI4CCM_MyFooReplyHandler_run_my_foo_i (void);
-
- virtual void
- foo (
- ::CORBA::Long ami_return_val,
- const char * answer);
-
- virtual void
- foo_excep (
- ::CCM_AMI::ExceptionHolder_ptr excep_holder);
-
- virtual void
- hello (
- ::CORBA::Long answer);
-
- virtual void
- hello_excep (
- ::CCM_AMI::ExceptionHolder_ptr excep_holder);
-
- virtual void
- get_rw_attrib (
- ::CORBA::Short rw_attrib);
-
- virtual void
- get_rw_attrib_excep (
- ::CCM_AMI::ExceptionHolder_ptr excep_holder);
-
- virtual void
- set_rw_attrib (void);
-
- virtual void
- set_rw_attrib_excep (
- ::CCM_AMI::ExceptionHolder_ptr excep_holder);
-
- virtual void
- get_ro_attrib (
- ::CORBA::Short ro_attrib);
-
- virtual void
- get_ro_attrib_excep (
- ::CCM_AMI::ExceptionHolder_ptr excep_holder);
- private:
- Atomic_UShort &nr_received_back_;
-
- };
-
- extern "C" NOREPLYH_SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_NoReplyH_Sender_Impl (void);
- }
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/CIAO/connectors/ami4ccm/tests/NoReplyH/descriptors/Plan.cdp b/CIAO/connectors/ami4ccm/tests/NoReplyH/descriptors/Plan.cdp
deleted file mode 100644
index 4ef231a4614..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoReplyH/descriptors/Plan.cdp
+++ /dev/null
@@ -1,374 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
-<!-- -->
-<Deployment:DeploymentPlan xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
-
- <UUID>6D382DAE-9024-4C4D-B91B-A0F9176AFACF</UUID>
-
- <implementation xmi:id="NoReplyH_ReceiverHomeImplementation">
- <name>NoReplyH_ReceiverHomeImplementation</name>
- <source/>
- <artifact xmi:idref="NoReplyH_Receiver_ExecArtifact"/>
- <artifact xmi:idref="NoReplyH_Receiver_SvntArtifact"/>
- <execParameter>
- <name>component factory</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_NoReplyH_Receiver_Impl</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>NoReplyH.ImplementationArtifacts.ReceiverArtifacts.Receiver_exec</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_NoReplyH_Receiver_Servant</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>NoReplyH.ImplementationArtifacts.ReceiverArtifacts.Receiver_svnt</string>
- </value>
- </value>
- </execParameter>
- </implementation>
-
- <implementation xmi:id="NoReplyH_SenderHomeImplementation">
- <name>NoReplyH_SenderHomeImplementation</name>
- <source/>
- <artifact xmi:idref="NoReplyH_Sender_ExecArtifact"/>
- <artifact xmi:idref="NoReplyH_Sender_SvntArtifact"/>
- <execParameter>
- <name>component factory</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_NoReplyH_Sender_Impl</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>NoReplyH.ImplementationArtifacts.SenderArtifacts.Sender_exec</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_NoReplyH_Sender_Servant</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>NoReplyH.ImplementationArtifacts.SenderArtifacts.Sender_svnt</string>
- </value>
- </value>
- </execParameter>
- </implementation>
-
- <implementation xmi:id="NoReplyH_AMIHomeImplementation">
- <name>NoReplyH_AMIHomeImplementation</name>
- <source/>
- <artifact xmi:idref="NoReplyH_AMI_ExecArtifact"/>
- <artifact xmi:idref="NoReplyH_AMI_SvntArtifact"/>
- <execParameter>
- <name>component factory</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_NoReplyH_AMI4CCM_MyFoo_Connector_Impl</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>NoReplyH.ImplementationArtifacts.AMIArtifacts.AMI_exec</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_NoReplyH_AMI4CCM_MyFoo_Connector_AMI4CCM_Connector_Servant</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>NoReplyH.ImplementationArtifacts.AMIArtifacts.AMI_svnt</string>
- </value>
- </value>
- </execParameter>
- </implementation>
-
- <instance xmi:id="NoReplyH.ComponentImplementations.NoReplyHImplementation.NoReplyH.Receiver">
- <name>NoReplyH.ComponentImplementations.NoReplyHImplementation.NoReplyH.Receiver</name>
- <node>Receiver</node>
- <source/>
- <implementation xmi:idref="NoReplyH_ReceiverHomeImplementation"/>
- <configProperty>
- <name>edu.vanderbilt.dre.DAnCE.InstanceIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Receiver.ior</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <instance xmi:id="NoReplyH.ComponentImplementations.NoReplyHImplementation.NoReplyH.Sender">
- <name>NoReplyH.ComponentImplementations.NoReplyHImplementation.NoReplyH.Sender</name>
- <node>Sender</node>
- <source/>
- <implementation xmi:idref="NoReplyH_SenderHomeImplementation"/>
- <configProperty>
- <name>edu.vanderbilt.dre.DAnCE.InstanceIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Sender.ior</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <instance xmi:id="NoReplyH.ComponentImplementations.NoReplyHImplementation.NoReplyH.AMI">
- <name>NoReplyH.ComponentImplementations.NoReplyHImplementation.NoReplyH.AMI</name>
- <node>Sender</node>
- <source/>
- <implementation xmi:idref="NoReplyH_AMIHomeImplementation"/>
- <configProperty>
- <name>edu.vanderbilt.dre.DAnCE.InstanceIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>AMI.ior</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <connection>
- <name>run_asynch_foo_connection</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>sendc_run_my_foo</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="NoReplyH.ComponentImplementations.NoReplyHImplementation.NoReplyH.Sender" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>ami4ccm_port_ami4ccm_provides</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="NoReplyH.ComponentImplementations.NoReplyHImplementation.NoReplyH.AMI" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>do_foo_connection</name>
- <internalEndpoint>
- <portName>do_my_foo</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="NoReplyH.ComponentImplementations.NoReplyHImplementation.NoReplyH.Receiver" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>ami4ccm_port_ami4ccm_uses</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="NoReplyH.ComponentImplementations.NoReplyHImplementation.NoReplyH.AMI" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>synch_foo_connection</name>
- <internalEndpoint>
- <portName>do_my_foo</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="NoReplyH.ComponentImplementations.NoReplyHImplementation.NoReplyH.Receiver" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>run_my_foo</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="NoReplyH.ComponentImplementations.NoReplyHImplementation.NoReplyH.Sender" />
- </internalEndpoint>
- </connection>
-
- <artifact xmi:id="NoReplyH_AMI_SvntArtifact">
- <name>NoReplyH.ImplementationArtifacts.AMIArtifacts.AMI_svnt</name>
- <source/>
- <node/>
- <location>NoReplyH_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_NoReplyH_AMI4CCM_MyFoo_Connector_AMI4CCM_Connector_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact xmi:id="NoReplyH_AMI_ExecArtifact">
- <name>NoReplyH.ImplementationArtifacts.AMIArtifacts.AMI_exec</name>
- <source/>
- <node/>
- <location>NoReplyH_conn</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_NoReplyH_AMI_MyFoo_Connector_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact xmi:id="NoReplyH_Receiver_SvntArtifact">
- <name>NoReplyH.ImplementationArtifacts.ReceiverArtifacts.Receiver_svnt</name>
- <source/>
- <node/>
- <location>NoReplyH_Receiver_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_NoReplyH_AMI_ReceiverHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact xmi:id="NoReplyH_Receiver_ExecArtifact">
- <name>NoReplyH.ImplementationArtifacts.ReceiverArtifacts.Receiver_exec</name>
- <source/>
- <node/>
- <location>NoReplyH_Receiver_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_NoReplyH_AMI_ReceiverHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact xmi:id="NoReplyH_Sender_SvntArtifact">
- <name>NoReplyH.ImplementationArtifacts.SenderArtifacts.Sender_svnt</name>
- <source/>
- <node/>
- <location>NoReplyH_Sender_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_NoReplyH_AMI_SenderHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact xmi:id="NoReplyH_Sender_ExecArtifact">
- <name>NoReplyH.ImplementationArtifacts.SenderArtifacts.Sender_exec</name>
- <source/>
- <node/>
- <location>NoReplyH_Sender_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_NoReplyH_AMI_SenderHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
-</Deployment:DeploymentPlan>
diff --git a/CIAO/connectors/ami4ccm/tests/NoReplyH/descriptors/run_test.pl b/CIAO/connectors/ami4ccm/tests/NoReplyH/descriptors/run_test.pl
deleted file mode 100755
index 8acd07c277c..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoReplyH/descriptors/run_test.pl
+++ /dev/null
@@ -1,243 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# -*- perl -*-
-
-use lib "$ENV{'ACE_ROOT'}/bin";
-use PerlACE::TestTarget;
-
-$CIAO_ROOT = "$ENV{'CIAO_ROOT'}";
-$TAO_ROOT = "$ENV{'TAO_ROOT'}";
-$DANCE_ROOT = "$ENV{'DANCE_ROOT'}";
-
-$daemons_running = 0;
-$em_running = 0;
-$ns_running = 0;
-
-$nr_daemon = 3;
-@ports = ( 60000, 60001 );
-@iorbases = ( "Sender.ior", "Receiver.ior", "AMI.ior" );
-@iorfiles = 0;
-@nodenames = ( "Sender", "Receiver" );
-
-# ior files other than daemon
-$ior_nsbase = "ns.ior";
-$ior_nsfile = 0;
-$ior_embase = "EM.ior";
-$ior_emfile = 0;
-
-# Processes
-$E = 0;
-$EM = 0;
-$NS = 0;
-@DEAMONS = 0;
-
-# targets
-@tg_daemons = 0;
-$tg_naming = 0;
-$tg_exe_man = 0;
-$tg_executor = 0;
-
-$status = 0;
-$cdp_file = "Plan.cdp";
-
-sub create_targets {
- # naming service
- $tg_naming = PerlACE::TestTarget::create_target (1) || die "Create target for ns failed\n";
- $tg_naming->AddLibPath ('../lib');
- # daemon
- for ($i = 0; $i < $nr_daemon; ++$i) {
- $tg_daemons[$i] = PerlACE::TestTarget::create_target ($i+1) || die "Create target for daemon $i failed\n";
- $tg_daemons[$i]->AddLibPath ('../lib');
- }
- # execution manager
- $tg_exe_man = PerlACE::TestTarget::create_target (1) || die "Create target for EM failed\n";
- $tg_exe_man->AddLibPath ('../lib');
- # executor (plan_launcher)
- $tg_executor = PerlACE::TestTarget::create_target (1) || die "Create target for executor failed\n";
- $tg_executor->AddLibPath ('../lib');
-}
-
-sub init_ior_files {
- $ior_nsfile = $tg_naming->LocalFile ($ior_nsbase);
- $ior_emfile = $tg_exe_man->LocalFile ($ior_embase);
- for ($i = 0; $i < $nr_daemon; ++$i) {
- $iorfiles[$i] = $tg_daemons[$i]->LocalFile ($iorbases[$i]);
- }
- delete_ior_files ();
-}
-
-# Delete if there are any .ior files.
-sub delete_ior_files {
- for ($i = 0; $i < $nr_daemon; ++$i) {
- $tg_daemons[$i]->DeleteFile ($iorbases[$i]);
- }
- $tg_naming->DeleteFile ($ior_nsbase);
- $tg_exe_man->DeleteFile ($ior_embase);
- for ($i = 0; $i < $nr_daemon; ++$i) {
- $iorfiles[$i] = $tg_daemons[$i]->LocalFile ($iorbases[$i]);
- }
-}
-
-sub kill_node_daemon {
- for ($i = 0; $i < $nr_daemon; ++$i) {
- $DEAMONS[$i]->Kill (); $DEAMONS[$i]->TimedWait (1);
- }
-}
-
-sub kill_open_processes {
- if ($daemons_running == 1) {
- kill_node_daemon ();
- }
-
- if ($em_running == 1) {
- $EM->Kill (); $EM->TimedWait (1);
- }
-
- if ($ns_running == 1) {
- $NS->Kill (); $NS->TimedWait (1);
- }
- # in case shutdown did not perform as expected
- $tg_executor->KillAll ('dance_locality_manager');
-}
-
-sub run_node_daemons {
- for ($i = 0; $i < $nr_daemon; ++$i) {
- $iorbase = $iorbases[$i];
- $iorfile = $iorfiles[$i];
- $port = $ports[$i];
- $nodename = $nodenames[$i];
- $iiop = "iiop://localhost:$port";
- $node_app = $tg_daemons[$i]->GetArchDir("$DANCE_ROOT/bin/") . "dance_locality_manager";
-
- $d_cmd = "$DANCE_ROOT/bin/dance_node_manager";
- $d_param = "-ORBEndpoint $iiop -s $node_app -n $nodename=$iorfile -t 30 --domain-nc corbaloc:rir:/NameService";
-
- print "Run dance_node_manager with $d_param\n";
-
- $DEAMONS[$i] = $tg_daemons[$i]->CreateProcess ($d_cmd, $d_param);
- $DEAMONS[$i]->Spawn ();
-
- if ($tg_daemons[$i]->WaitForFileTimed($iorbase,
- $tg_daemons[$i]->ProcessStartWaitInterval ()) == -1) {
- print STDERR
- "ERROR: The ior $iorfile file of node daemon $i could not be found\n";
- for (; $i >= 0; --$i) {
- $DEAMONS[$i]->Kill (); $DEAMONS[$i]->TimedWait (1);
- }
- return -1;
- }
- }
- return 0;
-}
-
-create_targets ();
-init_ior_files ();
-
-# Invoke naming service
-
-$NS = $tg_naming->CreateProcess ("$TAO_ROOT/orbsvcs/Naming_Service/tao_cosnaming", " -ORBEndpoint iiop://localhost:60003 -o $ior_nsfile");
-
-print STDERR "Starting Naming Service with -ORBEndpoint iiop://localhost:60003 -o ns.ior\n";
-
-$ns_status = $NS->Spawn ();
-
-if ($ns_status != 0) {
- print STDERR "ERROR: Unable to execute the naming service\n";
- kill_open_processes ();
- exit 1;
-}
-
-if ($tg_naming->WaitForFileTimed ($ior_nsbase,
- $tg_naming->ProcessStartWaitInterval ()) == -1) {
- print STDERR "ERROR: cannot find naming service IOR file\n";
- $NS->Kill (); $NS->TimedWait (1);
- exit 1;
-}
-
-$ns_running = 1;
-# Set up NamingService environment
-$ENV{"NameServiceIOR"} = "corbaloc:iiop:localhost:60003/NameService";
-
-# Invoke node daemon.
-print "Invoking node daemon\n";
-$status = run_node_daemons ();
-
-if ($status != 0) {
- print STDERR "ERROR: Unable to execute the node daemon\n";
- kill_open_processes ();
- exit 1;
-}
-
-$daemons_running = 1;
-
-# Invoke execution manager.
-print "Invoking execution manager (dance_execution_manager.exe) with -e$ior_emfile\n";
-$EM = $tg_exe_man->CreateProcess ("$DANCE_ROOT/bin/dance_execution_manager",
- "-e$ior_emfile --domain-nc corbaloc:rir:/NameService");
-$em_status = $EM->Spawn ();
-
-if ($em_status != 0) {
- print STDERR "ERROR: dance_execution_manager returned $em_status";
- exit 1;
-}
-
-if ($tg_exe_man->WaitForFileTimed ($ior_embase,
- $tg_exe_man->ProcessStartWaitInterval ()) == -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 - launch the application -\n";
-
-print "Start dance_plan_launcher.exe with -x $cdp_file -k file://$ior_emfile\n";
-$E = $tg_executor->CreateProcess ("$DANCE_ROOT/bin/dance_plan_launcher",
- "-x $cdp_file -k file://$ior_emfile");
-
-$pl_status = $E->SpawnWaitKill (3 * $tg_executor->ProcessStartWaitInterval ());
-
-if ($pl_status != 0) {
- print STDERR "ERROR: dance_plan_launcher returned $pl_status\n";
- kill_open_processes ();
- exit 1;
-}
-
-for ($i = 0; $i < $nr_daemon; ++$i) {
- if ($tg_daemons[$i]->WaitForFileTimed ($iorbases[$i],
- $tg_daemons[$i]->ProcessStopWaitInterval ()) == -1) {
- print STDERR "ERROR: The ior file of daemon $i could not be found\n";
- kill_open_processes ();
- exit 1;
- }
-}
-
-print "Sleeping 30 seconds to allow task to complete\n";
-sleep (30);
-
-# Invoke executor - stop the application -.
-print "Invoking executor - stop the application -\n";
-print "by running dance_plan_launcher.exe with -k file://$ior_emfile -x $cdp_file\n";
-
-$E = $tg_executor->CreateProcess ("$DANCE_ROOT/bin/dance_plan_launcher",
- "-k file://$ior_emfile -x $cdp_file -s");
-$pl_status = $E->SpawnWaitKill ( 2 * $tg_executor->ProcessStartWaitInterval ());
-
-if ($pl_status != 0) {
- print STDERR "ERROR: dance_plan_launcher returned $pl_status\n";
- kill_open_processes ();
- exit 1;
-}
-
-print "Executor returned.\n";
-print "Shutting down rest of the processes.\n";
-
-delete_ior_files ();
-kill_open_processes ();
-
-exit $status;