summaryrefslogtreecommitdiff
path: root/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty')
-rw-r--r--CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Base/TE_ResetTopic_Base.idl24
-rw-r--r--CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Base/TE_ResetTopic_Base.mpc24
-rw-r--r--CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Connector/TE_ResetTopic_Connector.idl25
-rw-r--r--CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Connector/TE_ResetTopic_Connector.mpc146
-rw-r--r--CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Sender/SenderDriver.cpp92
-rw-r--r--CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Sender/TE_ResetTopic_Sender.idl27
-rw-r--r--CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Sender/TE_ResetTopic_Sender.mpc164
-rw-r--r--CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Sender/TE_ResetTopic_Sender_exec.cpp385
-rw-r--r--CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Sender/TE_ResetTopic_Sender_exec.h145
-rw-r--r--CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/descriptors/Plan.cdp338
-rwxr-xr-xCIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/descriptors/run_test.pl264
11 files changed, 0 insertions, 1634 deletions
diff --git a/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Base/TE_ResetTopic_Base.idl b/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Base/TE_ResetTopic_Base.idl
deleted file mode 100644
index 6d757cd12fd..00000000000
--- a/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Base/TE_ResetTopic_Base.idl
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * @file TE_ResetTopic_Base.idl
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef TE_RESETTOPIC_BASE_IDL
-#define TE_RESETTOPIC_BASE_IDL
-
-#pragma ndds typesupport "Base/TE_ResetTopic_BaseSupport.h"
-#pragma opendds typesupport "Base/TE_ResetTopic_BaseTypeSupportImpl.h"
-
-#pragma DCPS_DATA_TYPE "TE_ResetTopicTest"
-#pragma DCPS_DATA_KEY "TE_ResetTopicTest key"
-
-struct TE_ResetTopicTest {
- string key; //@key
- long iteration;
-};
-
-#if defined DDS4CCM_NEEDS_SEQUENCES_DEFINED
-typedef sequence<TE_ResetTopicTest> TE_ResetTopicTestSeq;
-#endif
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Base/TE_ResetTopic_Base.mpc b/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Base/TE_ResetTopic_Base.mpc
deleted file mode 100644
index 61e2f2252cd..00000000000
--- a/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Base/TE_ResetTopic_Base.mpc
+++ /dev/null
@@ -1,24 +0,0 @@
-project (TE_ResetTopicBase_stub) : taoidldefaults, dds4ccm_ts_default {
- sharedname = TE_ResetTopicBase_stub
- dynamicflags += TE_RESETTOPIC_BASE_STUB_BUILD_DLL
- libout = ../lib
-
- idlflags += -SS -Sci \
- -Wb,stub_export_macro=TE_RESETTOPIC_BASE_STUB_Export \
- -Wb,stub_export_include=ResetTopic_Base_stub_export.h
-
- IDL_Files {
- idlflags += -Gxhst
- TE_ResetTopic_Base.idl
- }
-
- opendds_ts_flags += --export=TE_RESETTOPIC_BASE_STUB_Export
-
- DDSGenerator_Files {
- TE_ResetTopic_Base.idl
- }
-
- Source_Files {
- }
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Connector/TE_ResetTopic_Connector.idl b/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Connector/TE_ResetTopic_Connector.idl
deleted file mode 100644
index c3fd7df6416..00000000000
--- a/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Connector/TE_ResetTopic_Connector.idl
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * @file TE_ResetTopic_Connector.idl
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef TE_RESETTOPIC_CONNECTOR_IDL_
-#define TE_RESETTOPIC_CONNECTOR_IDL_
-
-#include <Components.idl>
-#include <ccm_dds.idl>
-
-#include "Base/TE_ResetTopic_Base.idl"
-
-#pragma ciao lem "Connector/TE_ResetTopic_ConnectorE.idl"
-
-#if (CIAO_DDS4CCM_OPENDDS==1)
-# include "Base/TE_ResetTopic_BaseTypeSupport.idl"
-#endif
-
-module TE_ResetTopic
-{
- module ::CCM_DDS::Typed < ::TE_ResetTopicTest, ::TE_ResetTopicTestSeq> TE_ResetTopicTestConnector;
-};
-
-#endif /* TE_ResetTopic_CONNECTOR_IDL_ */
diff --git a/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Connector/TE_ResetTopic_Connector.mpc b/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Connector/TE_ResetTopic_Connector.mpc
deleted file mode 100644
index dfbb50208a0..00000000000
--- a/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Connector/TE_ResetTopic_Connector.mpc
+++ /dev/null
@@ -1,146 +0,0 @@
-// This file is generated with "generate_component_mpc.pl -p TE_ResetTopicBase -l .. -o ../lib -u DDS TE_ResetTopic_Connector"
-
-project (TE_ResetTopicConnector_idl_gen) : connectoridldefaults, dds4ccm {
- after += DDS4CCM_idl_gen TE_ResetTopicBase_stub
- custom_only = 1
- idlflags += -Wb,stub_export_macro=TE_RESETTOPIC_CONNECTOR_STUB_Export \
- -Wb,stub_export_include=ResetTopic_Connector_stub_export.h \
- -Wb,skel_export_macro=TE_RESETTOPIC_CONNECTOR_SVNT_Export \
- -Wb,skel_export_include=ResetTopic_Connector_svnt_export.h \
- -Wb,svnt_export_macro=TE_RESETTOPIC_CONNECTOR_SVNT_Export \
- -Wb,svnt_export_include=ResetTopic_Connector_svnt_export.h \
- -Wb,conn_export_macro=TE_RESETTOPIC_CONNECTOR_CONN_Export \
- -Wb,conn_export_include=ResetTopic_Connector_conn_export.h \
- -I ..
-
- IDL_Files {
- TE_ResetTopic_Connector.idl
- }
-}
-
-project (TE_ResetTopicConnector_lem_gen) : ciaoidldefaults, dds4ccm {
- custom_only = 1
- after += TE_ResetTopicConnector_idl_gen
- idlflags += -Wb,stub_export_macro=TE_RESETTOPIC_CONNECTOR_LEM_STUB_Export \
- -Wb,stub_export_include=TE_ResetTopic_Connector_lem_stub_export.h \
- -SS -Gxhst \
- -I ..
-
- IDL_Files {
- TE_ResetTopic_ConnectorE.idl
- }
-}
-
-project (TE_ResetTopicConnector_lem_stub) : ccm_svnt, dds4ccm_lem_stub {
- after += TE_ResetTopicConnector_lem_gen TE_ResetTopicConnector_stub \
- TE_ResetTopicBase_stub
- libs += TE_ResetTopicBase_stub TE_ResetTopicConnector_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = TE_ResetTopicConnector_lem_stub
- dynamicflags += TE_RESETTOPIC_CONNECTOR_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- TE_ResetTopic_ConnectorEC.cpp
- }
-
- Header_Files {
- TE_ResetTopic_ConnectorEC.h
- TE_ResetTopic_Connector_lem_stub_export.h
- }
-
- Inline_Files {
- TE_ResetTopic_ConnectorEC.inl
- }
-}
-
-project (TE_ResetTopicConnector_stub) : ccm_stub, dds4ccm_base {
- after += TE_ResetTopicConnector_idl_gen TE_ResetTopicBase_stub
- libs += TE_ResetTopicBase_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = TE_ResetTopicConnector_stub
- dynamicflags += TE_RESETTOPIC_CONNECTOR_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- TE_ResetTopic_ConnectorC.cpp
- }
-
- Header_Files {
- TE_ResetTopic_ConnectorC.h
- TE_ResetTopic_Connector_stub_export.h
- }
-
- Inline_Files {
- TE_ResetTopic_ConnectorC.inl
- }
-}
-
-project (TE_ResetTopicConnector_exec) : ciao_executor, dds4ccm_impl {
- after += TE_ResetTopicConnector_lem_stub TE_ResetTopicConnector_stub \
- TE_ResetTopicBase_stub
- sharedname = TE_ResetTopicConnector_exec
- libs += TE_ResetTopicConnector_stub TE_ResetTopicConnector_lem_stub \
- TE_ResetTopicBase_stub TE_ResetTopicBase_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += TE_RESETTOPIC_CONNECTOR_CONN_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- TE_ResetTopic_Connector_conn.cpp
- }
-
- Header_Files {
- TE_ResetTopic_Connector_conn.h
- TE_ResetTopic_Connector_conn_export.h
- }
-
- Inline_Files {
- }
-}
-
-
-project (TE_ResetTopicConnector_svnt) : ciao_servant, dds4ccm_impl {
- after += TE_ResetTopicConnector_lem_stub TE_ResetTopicConnector_exec \
- TE_ResetTopicConnector_stub
- sharedname = TE_ResetTopicConnector_svnt
- libs += TE_ResetTopicConnector_stub \
- TE_ResetTopicConnector_lem_stub \
- TE_ResetTopicBase_stub \
- TE_ResetTopicConnector_exec
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += TE_RESETTOPIC_CONNECTOR_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- TE_ResetTopic_ConnectorS.cpp
- TE_ResetTopic_Connector_svnt.cpp
- }
-
- Header_Files {
- TE_ResetTopic_ConnectorS.h
- TE_ResetTopic_Connector_svnt.h
- TE_ResetTopic_Connector_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
-
diff --git a/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Sender/SenderDriver.cpp b/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Sender/SenderDriver.cpp
deleted file mode 100644
index fe3281faba3..00000000000
--- a/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Sender/SenderDriver.cpp
+++ /dev/null
@@ -1,92 +0,0 @@
-/*
- * @file SenderDriver.cpp
- *
- * @author Marcel Smit
- */
-
-
-#include "TE_ResetTopic_SenderC.h"
-#include "ace/streams.h"
-#include "ace/Get_Opt.h"
-
-const ACE_TCHAR *sender_ior = ACE_TEXT ("file://Sender.ior");
-const ACE_TCHAR *topic_name = ACE_TEXT ("");
-
-int
-parse_args (int argc, ACE_TCHAR *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, ACE_TEXT("ek:n:"));
- int c;
-
- while ((c = get_opts ()) != -1)
- {
- switch (c)
- {
- case 'k':
- sender_ior = get_opts.opt_arg ();
- break;
-
- case 'n':
- topic_name = get_opts.opt_arg ();
- break;
-
- case 'e':
- topic_name = "";
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s\n"
- "-k <Sender IOR> (default is file://Sender.ior)\n"
- "-n <new topic>\n"
- "-e <clearing topic name>\n"
- "\n",
- argv [0]),
- -1);
- }
- }
-
- return 0;
-}
-
-
-int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
-{
- try
- {
- // initialize the ORB
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv);
- if (parse_args (argc, argv) != 0)
- {
- return -1;
- }
-
- // create the factory object reference,
- CORBA::Object_var sender_obj =
- orb->string_to_object (sender_ior);
-
- // downcast the object reference to the appropriate type
- ::TE_ResetTopic::Sender_var sender =
- ::TE_ResetTopic::Sender::_narrow (sender_obj.in ());
-
- if (CORBA::is_nil (sender.in ()))
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Unable to acquire 'Sender' objref\n"),
- -1);
- }
- sender->set_new_topic (topic_name);
-
- orb->destroy ();
- }
- catch (const CORBA::Exception& ex)
- {
- ex._tao_print_exception ("Who is the culprit in the SenderDriver?\n");
- ACE_ERROR_RETURN ((LM_ERROR,
- "Uncaught CORBA exception\n"),
- 1);
- }
- return 0;
-}
diff --git a/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Sender/TE_ResetTopic_Sender.idl b/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Sender/TE_ResetTopic_Sender.idl
deleted file mode 100644
index 91e45c7c88c..00000000000
--- a/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Sender/TE_ResetTopic_Sender.idl
+++ /dev/null
@@ -1,27 +0,0 @@
-/**
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef TE_RESETTOPIC_SENDER_IDL
-#define TE_RESETTOPIC_SENDER_IDL
-
-#include "Connector/TE_ResetTopic_Connector.idl"
-
-module TE_ResetTopic
-{
- interface ChangeTopicInterface
- {
- void set_new_topic (in string topic_name);
- };
-
- component Sender supports ChangeTopicInterface
- {
- port TE_ResetTopicTestConnector::DDS_Write info_write;
- port TE_ResetTopicTestConnector::DDS_Update info_update;
-
- attribute unsigned short iterations;
- attribute unsigned short keys;
- };
-};
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Sender/TE_ResetTopic_Sender.mpc b/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Sender/TE_ResetTopic_Sender.mpc
deleted file mode 100644
index 4a4b30c044b..00000000000
--- a/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Sender/TE_ResetTopic_Sender.mpc
+++ /dev/null
@@ -1,164 +0,0 @@
-// This file is generated with "generate_component_mpc.pl -p TE_ResetTopicBase -l ../lib -o ../lib -c controller -u DDS Sender"
-
-project (TE_ResetTopicSender_idl_gen) : componentidldefaults, dds4ccm {
- after += TE_ResetTopicConnector_idl_gen
- custom_only = 1
- idlflags += -Wb,stub_export_macro=SENDER_STUB_Export \
- -Wb,stub_export_include=Sender_stub_export.h \
- -Wb,skel_export_macro=SENDER_SVNT_Export \
- -Wb,skel_export_include=Sender_svnt_export.h \
- -Wb,svnt_export_macro=SENDER_SVNT_Export \
- -Wb,svnt_export_include=Sender_svnt_export.h \
- -Wb,exec_export_macro=SENDER_EXEC_Export \
- -Wb,exec_export_include=Sender_exec_export.h \
- -I ..
-
- IDL_Files {
- TE_ResetTopic_Sender.idl
- }
-}
-
-project (TE_ResetTopicSender_lem_gen) : ciaoidldefaults, dds4ccm {
- after += TE_ResetTopicSender_idl_gen
- custom_only = 1
- idlflags += -Wb,stub_export_macro=SENDER_LEM_STUB_Export \
- -Wb,stub_export_include=Sender_lem_stub_export.h \
- -SS -Gxhst -I $CIAO_ROOT/connectors -I ..
-
- IDL_Files {
- TE_ResetTopic_SenderE.idl
- }
-}
-
-project (TE_ResetTopicSender_lem_stub) : ccm_svnt, dds4ccm_base {
- after += TE_ResetTopicSender_lem_gen TE_ResetTopicSender_stub TE_ResetTopicBase_stub
- libs += TE_ResetTopicBase_stub Sender_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = Sender_lem_stub
- dynamicflags += SENDER_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- TE_ResetTopic_SenderEC.cpp
- }
-
- Header_Files {
- TE_ResetTopic_SenderEC.h
- Sender_lem_stub_export.h
- }
-
- Inline_Files {
- TE_ResetTopic_SenderEC.inl
- }
-}
-
-project (TE_ResetTopicSender_stub) : ccm_stub, dds4ccm_base {
- after += TE_ResetTopicSender_idl_gen TE_ResetTopicBase_stub TE_ResetTopicConnector_stub
- libs += TE_ResetTopicBase_stub TE_ResetTopicConnector_stub
- includes += ..
- libpaths += ../lib
- libout = ../lib
- sharedname = Sender_stub
- dynamicflags += SENDER_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- TE_ResetTopic_SenderC.cpp
- }
-
- Header_Files {
- TE_ResetTopic_SenderC.h
- Sender_stub_export.h
- }
-
- Inline_Files {
- TE_ResetTopic_SenderC.inl
- }
-}
-
-project (TE_ResetTopicSender_exec) : ciao_executor, dds4ccm_lem_stub {
- after += TE_ResetTopicSender_lem_stub TE_ResetTopicSender_stub \
- TE_ResetTopicConnector_lem_stub TE_ResetTopicConnector_stub
- sharedname = Sender_exec
- libs += Sender_stub Sender_lem_stub TE_ResetTopicBase_stub \
- TE_ResetTopicConnector_lem_stub TE_ResetTopicConnector_stub
- libpaths += ../lib
- includes += ..
- libout = ../lib
- dynamicflags += SENDER_EXEC_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- TE_ResetTopic_Sender_exec.cpp
- }
-
- Header_Files {
- TE_ResetTopic_Sender_exec.h
- Sender_exec_export.h
- }
-
- Inline_Files {
- }
-}
-
-
-project (TE_ResetTopicSender_svnt) : ciao_servant, dds4ccm_lem_stub, dds4ccm_skel {
- after += TE_ResetTopicBase_stub TE_ResetTopicSender_lem_stub TE_ResetTopicConnector_stub \
- TE_ResetTopicConnector_svnt TE_ResetTopicConnector_lem_stub
- sharedname = Sender_svnt
- libs += Sender_stub Sender_lem_stub \
- TE_ResetTopicBase_stub TE_ResetTopicConnector_stub TE_ResetTopicConnector_svnt TE_ResetTopicConnector_lem_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += SENDER_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- TE_ResetTopic_SenderS.cpp
- TE_ResetTopic_Sender_svnt.cpp
- }
-
- Header_Files {
- TE_ResetTopic_SenderS.h
- TE_ResetTopic_Sender_svnt.h
- Sender_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
-project (TE_ResetTopicSender_Driver) : ccm_stub, valuetype, dds4ccm_lem_stub {
- exename = SenderDriver
- after += TE_ResetTopicSender_stub TE_ResetTopicConnector_stub
- libs += Sender_stub TE_ResetTopicBase_stub TE_ResetTopicConnector_stub
-
- includes += ..
- libpaths += ../lib
-
- exeout = ../lib
- IDL_Files {
- }
-
- Source_Files {
- SenderDriver.cpp
- }
-
- Header_Files {
- }
-
- Inline_Files {
- }
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Sender/TE_ResetTopic_Sender_exec.cpp b/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Sender/TE_ResetTopic_Sender_exec.cpp
deleted file mode 100644
index c132f64a7ef..00000000000
--- a/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Sender/TE_ResetTopic_Sender_exec.cpp
+++ /dev/null
@@ -1,385 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.2
- * 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 "TE_ResetTopic_Sender_exec.h"
-#include "tao/ORB_Core.h"
-#include "ace/Reactor.h"
-
-namespace CIAO_TE_ResetTopic_Sender_Impl
-{
-
- /**
- * Timeout_Handler
- */
-
- Timeout_Handler::Timeout_Handler (Sender_exec_i &callback)
- : callback_ (callback)
- {
- }
-
- int
- Timeout_Handler::handle_timeout (const ACE_Time_Value &, const void *)
- {
- // Notify the subscribers
- this->callback_.start_event_test ();
- return 0;
- }
-
- /**
- * Component Executor Implementation Class: Sender_exec_i
- */
-
- Sender_exec_i::Sender_exec_i (void)
- : iterations_ (0)
- , keys_ (0)
- , to_handler_ (0)
- , topic_name_ ("TopicI")
- , old_topic_name_ ("TopicI")
- {
- ACE_NEW_THROW_EX (this->to_handler_,
- Timeout_Handler (*this),
- ::CORBA::INTERNAL ());
- }
-
- Sender_exec_i::~Sender_exec_i (void)
- {
- delete this->to_handler_;
- }
-
- // Supported operations and attributes.
- ACE_Reactor*
- Sender_exec_i::reactor (void)
- {
- ACE_Reactor* reactor = 0;
- ::CORBA::Object_var ccm_object =
- this->ciao_context_->get_CCM_object();
- if (! ::CORBA::is_nil (ccm_object.in ()))
- {
- ::CORBA::ORB_var orb = ccm_object->_get_orb ();
- if (! ::CORBA::is_nil (orb.in ()))
- {
- reactor = orb->orb_core ()->reactor ();
- }
- }
- if (reactor == 0)
- {
- throw ::CORBA::INTERNAL ();
- }
- return reactor;
- }
-
- void Sender_exec_i::set_new_topic (const char * topic_name)
- {
- ACE_GUARD (TAO_SYNCH_RECURSIVE_MUTEX, guard, this->topic_name_lock_);
-
- this->old_topic_name_ = this->topic_name_;
- this->topic_name_ = topic_name;
- ACE_DEBUG ((LM_DEBUG, "Sender_exec_i::set_new_topic - "
- "New topic name set <%C>\n",
- topic_name));
- }
-
- void
- Sender_exec_i::create_samples (void)
- {
- for (CORBA::UShort i = 1; i < this->keys_ + 1; ++i)
- {
- char key[7];
- TE_ResetTopicTest *new_key = new TE_ResetTopicTest;
- ACE_OS::sprintf (key, "KEY_%d", i);
- new_key->key = CORBA::string_dup(key);
- new_key->iteration = 0;
- this->tests_[key] = new_key;
-
- ::TE_ResetTopic::TE_ResetTopicTestConnector::Updater_var updater =
- this->ciao_context_->get_connection_info_update_data();
-
- updater->create_one (*new_key);
- ACE_DEBUG ((LM_DEBUG, "Sender_exec_i::create_samples - "
- "Sample <%C> created\n",
- key));
- }
- }
-
- void
- Sender_exec_i::set_topic_name (const char * topic_name)
- {
- if (ACE_OS::strcmp (topic_name, this->old_topic_name_.c_str()) != 0)
- {
- this->old_topic_name_ = topic_name;
- this->set_topic_name_writer (topic_name);
- this->set_topic_name_updater (topic_name);
- }
- }
-
- void
- Sender_exec_i::set_topic_name_writer (const char * topic_name)
- {
- try
- {
- ACE_DEBUG ((LM_DEBUG, "Sender_exec_i::set_topic_name_writer - "
- "Setting topic to <%C>\n",
- topic_name));
- ::TE_ResetTopic::TE_ResetTopicTestConnector:: Writer_var writer =
- this->ciao_context_->get_connection_info_write_data ();
- if (::CORBA::is_nil (writer.in ()))
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Sender_exec_i::set_topic_name_writer - "
- "Unable to get writer interface\n"));
- throw ::CORBA::INTERNAL ();
- }
- ::CORBA::Object_var cmp = writer->_get_component ();
- if (::CORBA::is_nil (cmp.in ()))
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Sender_exec_i::set_topic_name_writer - "
- "Unable to get component interface\n"));
- throw ::CORBA::INTERNAL ();
- }
- ::TE_ResetTopic::TE_ResetTopicTestConnector::CCM_DDS_Event_var conn =
- ::TE_ResetTopic::TE_ResetTopicTestConnector::CCM_DDS_Event::_narrow (cmp.in ());
- if (::CORBA::is_nil (conn.in ()))
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Sender_exec_i::set_topic_name_writer - "
- "Unable to narrow connector interface\n"));
- throw ::CORBA::INTERNAL ();
- }
- {
- ACE_GUARD (TAO_SYNCH_RECURSIVE_MUTEX, guard, this->topic_name_lock_);
- conn->topic_name (topic_name);
- }
- }
- catch (const ::CCM_DDS::NonChangeable &)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Sender_exec_i::set_topic_name_writer - "
- "Caught NonChangeable exception.\n"));
- }
- }
-
- void
- Sender_exec_i::set_topic_name_updater (const char * topic_name)
- {
- try
- {
- ACE_DEBUG ((LM_DEBUG, "Sender_exec_i::set_topic_name_updater - "
- "Setting topic to <%C>\n",
- topic_name));
- ::TE_ResetTopic::TE_ResetTopicTestConnector:: Updater_var updater =
- this->ciao_context_->get_connection_info_update_data ();
- if (::CORBA::is_nil (updater.in ()))
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Sender_exec_i::set_topic_name_updater - "
- "Unable to get updater interface\n"));
- throw ::CORBA::INTERNAL ();
- }
- ::CORBA::Object_var cmp = updater->_get_component ();
- if (::CORBA::is_nil (cmp.in ()))
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Sender_exec_i::set_topic_name_updater - "
- "Unable to get component interface\n"));
- throw ::CORBA::INTERNAL ();
- }
- ::TE_ResetTopic::TE_ResetTopicTestConnector::CCM_DDS_State_var conn =
- ::TE_ResetTopic::TE_ResetTopicTestConnector::CCM_DDS_State::_narrow (cmp.in ());
- if (::CORBA::is_nil (conn.in ()))
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Sender_exec_i::set_topic_name_updater - "
- "Unable to narrow connector interface\n"));
- throw ::CORBA::INTERNAL ();
- }
- {
- ACE_GUARD (TAO_SYNCH_RECURSIVE_MUTEX, guard, this->topic_name_lock_);
- conn->topic_name (topic_name);
- }
- this->create_samples ();
- }
- catch (const ::CCM_DDS::NonChangeable &)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Sender_exec_i::set_topic_name_updater - "
- "Caught NonChangeable exception.\n"));
- }
- }
-
- void
- Sender_exec_i::start_event_test (void)
- {
- // Set the topic name on the connector first. Therefor we need to
- // get to the connector first.
- ACE_DEBUG ((LM_DEBUG, "Sender_exec_i::start_event_test - Start\n"));
-
- try
- {
- for (::CORBA::UShort key = 1; key < this->keys_ + 1; ++key)
- {
- TE_ResetTopicTest sample;
- char tmp[7];
- ACE_OS::sprintf (tmp, "KEY_%d", key);
- sample.key = CORBA::string_dup(tmp);
-
- for (::CORBA::UShort iter = 1; iter < this->iterations_ + 1; ++iter)
- {
- this->set_topic_name (this->topic_name_.c_str ());
- ::TE_ResetTopic::TE_ResetTopicTestConnector:: Writer_var writer =
- this->ciao_context_->get_connection_info_write_data ();
- sample.iteration = iter;
- writer->write_one (sample, ::DDS::HANDLE_NIL);
-
- ACE_DEBUG ((LM_DEBUG, "Sender_exec_i::start_event_test - "
- "Sample for topic <%C> written : key <%C> - iteration <%d>\n",
- this->topic_name_.c_str (), tmp, iter));
-
- ACE_Time_Value tv (0, 5000);
- ACE_OS::sleep (tv);
- }
- }
- for (Sample_Table::iterator iter = this->tests_.begin ();
- iter != this->tests_.end ();
- ++iter)
- {
- for (::CORBA::UShort i = 1; i < this->iterations_ + 1; ++i)
- {
- this->set_topic_name (this->topic_name_.c_str ());
- ::TE_ResetTopic::TE_ResetTopicTestConnector:: Updater_var updater =
- this->ciao_context_->get_connection_info_update_data ();
- iter->second->iteration = i;
- updater->update_one (iter->second, ::DDS::HANDLE_NIL);
-
- ACE_DEBUG ((LM_DEBUG, "Sender_exec_i::start_event_test - "
- "Sample for topic <%C> updated : key <%C> - iteration <%d>\n",
- this->topic_name_.c_str (),
- iter->second->key.in (),
- i));
-
- ACE_Time_Value tv (0, 5000);
- ACE_OS::sleep (tv);
- }
- }
- }
- catch (const ::CORBA::BAD_INV_ORDER & ex)
- {
- if (this->topic_name_.empty())
- ACE_DEBUG ((LM_DEBUG, "Expected BAD_INV_ORDER caught\n"));
- else
- ex._tao_print_exception("ERROR:");
- }
- catch (const ::CORBA::Exception & ex)
- {
- ex._tao_print_exception("ERROR:");
- }
- catch (...)
- {
- ACE_ERROR ((LM_ERROR, "Sender_exec_i::start_event_test - "
- "ERROR: Unexpected and unknown exception caught.\n"));
- }
- }
-
- // Component attributes and port operations.
-
- ::CORBA::UShort
- Sender_exec_i::iterations (void)
- {
- return this->iterations_;
- }
-
- void
- Sender_exec_i::iterations (
- const ::CORBA::UShort iterations)
- {
- this->iterations_ = iterations;
- }
-
- ::CORBA::UShort
- Sender_exec_i::keys (void)
- {
- return this->keys_;
- }
-
- void
- Sender_exec_i::keys (
- const ::CORBA::UShort keys)
- {
- this->keys_ = keys;
- }
-
- // Operations from Components::SessionComponent.
-
- void
- Sender_exec_i::set_session_context (
- ::Components::SessionContext_ptr ctx)
- {
- this->ciao_context_ =
- ::TE_ResetTopic::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->create_samples ();
- if (this->reactor ()->schedule_timer (
- this->to_handler_,
- 0,
- ACE_Time_Value (5, 0),
- ACE_Time_Value (5, 0)) == -1)
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("Sender_exec_i::start : ")
- ACE_TEXT ("Error scheduling timer")));
- }
- }
-
- void
- Sender_exec_i::ccm_passivate (void)
- {
- this->reactor()->cancel_timer(this->to_handler_);
- }
-
- void
- Sender_exec_i::ccm_remove (void)
- {
- /* Your code here. */
- }
-
- extern "C" SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_TE_ResetTopic_Sender_Impl (void)
- {
- ::Components::EnterpriseComponent_ptr retval =
- ::Components::EnterpriseComponent::_nil ();
-
- ACE_NEW_NORETURN (
- retval,
- Sender_exec_i);
-
- return retval;
- }
-}
diff --git a/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Sender/TE_ResetTopic_Sender_exec.h b/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Sender/TE_ResetTopic_Sender_exec.h
deleted file mode 100644
index f7152f8cdb5..00000000000
--- a/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/Sender/TE_ResetTopic_Sender_exec.h
+++ /dev/null
@@ -1,145 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.2
- * 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_TE_RESETTOPIC_SENDER_EXEC_YSJ9S8_H_
-#define CIAO_TE_RESETTOPIC_SENDER_EXEC_YSJ9S8_H_
-
-#include /**/ "ace/pre.h"
-
-#include "TE_ResetTopic_SenderEC.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include /**/ "Sender_exec_export.h"
-#include "tao/LocalObject.h"
-
-#include <map>
-
-namespace CIAO_TE_ResetTopic_Sender_Impl
-{
- class Sender_exec_i;
-
- /**
- * Timeout_Handler
- */
- class Timeout_Handler :
- public ACE_Event_Handler
- {
- public:
- Timeout_Handler (Sender_exec_i &callback);
- /// Handle the timeout.
- virtual int handle_timeout (const ACE_Time_Value &tv,
- const void *arg);
- private:
- /// Maintains a handle that actually process the event
- Sender_exec_i &callback_;
- };
-
- /**
- * 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. */
- virtual void set_new_topic (const char * topic_name);
- //@}
-
- //@{
- /** Component attributes and port operations. */
-
- virtual ::CORBA::UShort iterations (void);
-
- virtual void iterations (::CORBA::UShort iterations);
-
- virtual ::CORBA::UShort keys (void);
-
- virtual void keys (::CORBA::UShort keys);
- //@}
-
- //@{
- /** 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. */
- void set_topic_name (const char * topic_name);
- void set_topic_name_writer (const char * topic_name);
- void set_topic_name_updater (const char * topic_name);
- void start_event_test (void);
- //@}
-
- private:
- ::TE_ResetTopic::CCM_Sender_Context_var ciao_context_;
-
- //@{
- /** Component attributes. */
-
- ::CORBA::UShort iterations_;
-
- ::CORBA::UShort keys_;
- //@}
-
- //@{
- /** User defined members. */
- Timeout_Handler *to_handler_;
- ACE_CString topic_name_, old_topic_name_;
-
- TAO_SYNCH_RECURSIVE_MUTEX topic_name_lock_;
-
- typedef std::map<ACE_CString, TE_ResetTopicTest_var> Sample_Table;
-
- Sample_Table tests_;
- //@}
-
- //@{
- /** User defined private operations. */
- void create_samples (void);
- //@}
-
- /// Get the ACE_Reactor
- ACE_Reactor* reactor (void);
- };
-
- extern "C" SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_TE_ResetTopic_Sender_Impl (void);
-}
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/descriptors/Plan.cdp b/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/descriptors/Plan.cdp
deleted file mode 100644
index 6c3375f91f0..00000000000
--- a/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/descriptors/Plan.cdp
+++ /dev/null
@@ -1,338 +0,0 @@
-<!-- -->
-<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">
- <label>ResetTopic_Depl_1</label>
- <UUID>ResetTopic_Depl_1</UUID>
-
- <implementation xmi:id="ResetTopic_EventConnectorImplementation">
- <name>ResetTopic_EventConnectorImplementation</name>
- <source/>
- <artifact xmi:idref="ResetTopic_Connector_ExecArtifact" />
- <artifact xmi:idref="ResetTopic_Connector_SvntArtifact" />
- <execParameter>
- <name>component factory</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_TE_ResetTopic_TE_ResetTopicTestConnector_DDS_Event_Impl</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_TE_ResetTopic_TE_ResetTopicTestConnector_DDS_Event_Servant</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>TE_ResetTopic_Connector_svnt</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>TE_ResetTopic_Connector_exec</string>
- </value>
- </value>
- </execParameter>
- </implementation>
-
- <implementation xmi:id="ResetTopic_StateConnectorImplementation">
- <name>ResetTopic_StateConnectorImplementation</name>
- <source/>
- <artifact xmi:idref="ResetTopic_Connector_ExecArtifact" />
- <artifact xmi:idref="ResetTopic_Connector_SvntArtifact" />
- <execParameter>
- <name>component factory</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_TE_ResetTopic_TE_ResetTopicTestConnector_DDS_State_Impl</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_TE_ResetTopic_TE_ResetTopicTestConnector_DDS_State_Servant</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>TE_ResetTopic_Connector_svnt</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>TE_ResetTopic_Connector_exec</string>
- </value>
- </value>
- </execParameter>
- </implementation>
-
- <implementation xmi:id="SenderComponentImplementation">
- <name>SenderComponentImplementation</name>
- <source/>
- <artifact xmi:idref="Sender_ExecArtifact" />
- <artifact xmi:idref="Sender_SvntArtifact" />
- <execParameter>
- <name>component factory</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_TE_ResetTopic_Sender_Impl</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_TE_ResetTopic_Sender_Servant</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Sender_svnt</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Sender_exec</string>
- </value>
- </value>
- </execParameter>
- </implementation>
-
- <instance xmi:id="ResetTopic_SenderEventConnectorInstance">
- <name>ResetTopic_SenderEventConnectorInstance</name>
- <node>SenderNode</node>
- <source/>
- <implementation xmi:idref="ResetTopic_EventConnectorImplementation" />
- <configProperty>
- <name>topic_name</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>TopicI</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <instance xmi:id="ResetTopic_SenderStateConnectorInstance">
- <name>ResetTopic_SenderStateConnectorInstance</name>
- <node>SenderNode</node>
- <source/>
- <implementation xmi:idref="ResetTopic_StateConnectorImplementation" />
- <configProperty>
- <name>topic_name</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>TopicI</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <instance xmi:id="SenderComponentInstance">
- <name>SenderComponent</name>
- <node>SenderNode</node>
- <source/>
- <implementation xmi:idref="SenderComponentImplementation" />
- <configProperty>
- <name>rate</name>
- <value>
- <type>
- <kind>tk_ushort</kind>
- </type>
- <value>
- <ushort>15</ushort>
- </value>
- </value>
- </configProperty>
- <configProperty>
- <name>keys</name>
- <value>
- <type>
- <kind>tk_ushort</kind>
- </type>
- <value>
- <ushort>5</ushort>
- </value>
- </value>
- </configProperty>
- <configProperty>
- <name>iterations</name>
- <value>
- <type>
- <kind>tk_ushort</kind>
- </type>
- <value>
- <ushort>10</ushort>
- </value>
- </value>
- </configProperty>
- <configProperty>
- <name>edu.vanderbilt.dre.DAnCE.InstanceIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Sender.ior</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <connection>
- <name>writer_connection</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>info_write_data</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="SenderComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>supplier_data</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="ResetTopic_SenderEventConnectorInstance" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>updater_connection</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>info_update_data</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="SenderComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>observable_data</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="ResetTopic_SenderStateConnectorInstance" />
- </internalEndpoint>
- </connection>
-
- <artifact xmi:id="Sender_ExecArtifact">
- <name>Sender_exec</name>
- <source/>
- <node/>
- <location>Sender_exec</location>
- </artifact>
- <artifact xmi:id="Sender_SvntArtifact">
- <name>Sender_svnt</name>
- <source/>
- <node/>
- <location>Sender_svnt</location>
- </artifact>
- <artifact xmi:id="Sender_StubArtifact">
- <name>Sender_stub</name>
- <source/>
- <node/>
- <location>Sender_stub</location>
- </artifact>
- <artifact xmi:id="ResetTopic_Connector_ExecArtifact">
- <name>TE_ResetTopic_Connector_exec</name>
- <source/>
- <node/>
- <location>TE_ResetTopicConnector_exec</location>
- </artifact>
- <artifact xmi:id="ResetTopic_Connector_SvntArtifact">
- <name>TE_ResetTopic_Connector_svnt</name>
- <source/>
- <node/>
- <location>TE_ResetTopicConnector_svnt</location>
- </artifact>
- <artifact xmi:id="Receiver_ExecArtifact">
- <name>Receiver_exec</name>
- <source/>
- <node/>
- <location>Receiver_exec</location>
- </artifact>
- <artifact xmi:id="Receiver_SvntArtifact">
- <name>Receiver_svnt</name>
- <source/>
- <node/>
- <location>Receiver_svnt</location>
- </artifact>
- <artifact xmi:id="Receiver_StubArtifact">
- <name>Receiver_stub</name>
- <source/>
- <node/>
- <location>Receiver_stub</location>
- </artifact>
-</Deployment:DeploymentPlan>
diff --git a/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/descriptors/run_test.pl b/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/descriptors/run_test.pl
deleted file mode 100755
index 54d573aae7b..00000000000
--- a/CIAO/connectors/dds4ccm/tests/ResetTopic/ToEmpty/descriptors/run_test.pl
+++ /dev/null
@@ -1,264 +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 = 1;
-@ports = ( 60001 );
-@iorbases = ( "SenderNode.ior" );
-@iorfiles = 0;
-@nodenames = ( "SenderNode" );
-
-# 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");
-
-$ns_status = $NS->Spawn ();
-
-if ($ns_status != 0) {
- print STDERR "ERROR: Unable to execute the naming service\n";
- kill_open_processes ();
- exit 1;
-}
-
-print STDERR "Starting Naming Service with -ORBEndpoint iiop://localhost:60003 -o ns.ior\n";
-
-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 (2 * $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 10 seconds before clearing the topic name\n";
-sleep (10);
-
-$S = $tg_executor->CreateProcess ("../lib/SenderDriver", "-e");
-$driver_status = $S->SpawnWaitKill (2 * $tg_executor->ProcessStartWaitInterval ());
-if ($driver_status != 0) {
- print STDERR "ERROR: unable to launch driver\n";
- kill_open_processes ();
- exit 1;
-}
-
-print "Sleeping 10 seconds before setting the topic name again\n";
-sleep (10);
-
-$S = $tg_executor->CreateProcess ("../lib/SenderDriver", "-n TopicIII");
-$driver_status = $S->SpawnWaitKill (2 * $tg_executor->ProcessStartWaitInterval ());
-if ($driver_status != 0) {
- print STDERR "ERROR: unable to launch driver\n";
- kill_open_processes ();
- exit 1;
-}
-
-print "Sleeping 10 seconds before stopping\n";
-sleep (10);
-
-# 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 ($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;