summaryrefslogtreecommitdiff
path: root/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput
diff options
context:
space:
mode:
Diffstat (limited to 'modules/CIAO/connectors/dds4ccm/performance-tests/Throughput')
-rw-r--r--modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Base/Throughput_Base.idl42
-rw-r--r--modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Base/Throughput_Base.mpc26
-rw-r--r--modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Connector/Throughput_Connector.idl27
-rw-r--r--modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Connector/Throughput_Connector.mpc145
-rw-r--r--modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Receiver/Throughput_Receiver.idl23
-rw-r--r--modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Receiver/Throughput_Receiver.mpc154
-rw-r--r--modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Receiver/Throughput_Receiver_exec.cpp255
-rw-r--r--modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Receiver/Throughput_Receiver_exec.h128
-rw-r--r--modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/SecConnector/Throughput_Sec_Connector.idl27
-rw-r--r--modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/SecConnector/Throughput_Sec_Connector.mpc144
-rw-r--r--modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Sender/Throughput_Sender.idl34
-rw-r--r--modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Sender/Throughput_Sender.mpc152
-rw-r--r--modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Sender/Throughput_Sender_exec.cpp454
-rw-r--r--modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Sender/Throughput_Sender_exec.h141
-rw-r--r--modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/descriptors/Plan_pub.cdp414
-rw-r--r--modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/descriptors/Plan_sub.cdp368
-rw-r--r--modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/descriptors/USER_QOS_PROFILES.xml136
-rw-r--r--modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/descriptors/run_test.pl252
18 files changed, 2922 insertions, 0 deletions
diff --git a/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Base/Throughput_Base.idl b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Base/Throughput_Base.idl
new file mode 100644
index 00000000000..80da6020c57
--- /dev/null
+++ b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Base/Throughput_Base.idl
@@ -0,0 +1,42 @@
+// $Id$
+
+/**
+ * @file Throughput_Base.idl
+ * @author Marijke Hengstmengel <mhengstmengel@remedy.nl>
+ */
+
+#ifndef THROUGHPUT_BASE_IDL
+#define THROUGHPUT_BASE_IDL
+
+#pragma ndds typesupport "Base/Throughput_BaseSupport.h"
+
+const short MAX_DATA_SEQUENCE_LENGTH = 8192;
+
+typedef enum ThroughputCommandKind
+{
+ THROUGHPUT_COMMAND_IDLE,
+ THROUGHPUT_COMMAND_START,
+ THROUGHPUT_COMMAND_COMPLETE
+} CommandKind;
+
+typedef sequence<octet, MAX_DATA_SEQUENCE_LENGTH> OctetSeq;
+
+struct ThroughputTest {
+ long key;
+ unsigned long long seq_num;
+ OctetSeq data;
+ };
+
+typedef sequence<ThroughputTest> ThroughputTestSeq;
+
+struct ThroughputCommand
+{
+ CommandKind command;
+ unsigned long data_length;
+ unsigned long long current_publisher_effort;
+ unsigned long long final_publisher_effort;
+};
+
+typedef sequence<ThroughputCommand> ThroughputCommandSeq;
+
+#endif
diff --git a/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Base/Throughput_Base.mpc b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Base/Throughput_Base.mpc
new file mode 100644
index 00000000000..22a9c1a798b
--- /dev/null
+++ b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Base/Throughput_Base.mpc
@@ -0,0 +1,26 @@
+// $Id$
+
+project (DDS_Throughput_Base_stub) : taoidldefaults, anytypecode, dds4ccm_ts_default {
+ sharedname = DDS_Throughput_Base_stub
+ dynamicflags += THROUGHPUT_BASE_STUB_BUILD_DLL
+ libout = ../lib
+
+ idlflags += -SS -Sci \
+ -Wb,stub_export_macro=THROUGHPUT_BASE_STUB_Export \
+ -Wb,stub_export_include=THROUGHPUT_Base_stub_export.h
+
+ IDL_Files {
+ idlflags += -Gxhst
+ Throughput_Base.idl
+ }
+
+ opendds_ts_flags += --export=THROUGHPUT_BASE_STUB_Export
+
+ DDSGenerator_Files {
+ Throughput_Base.idl
+ }
+
+ Source_Files {
+ }
+}
+
diff --git a/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Connector/Throughput_Connector.idl b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Connector/Throughput_Connector.idl
new file mode 100644
index 00000000000..4ecaf3d3b8c
--- /dev/null
+++ b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Connector/Throughput_Connector.idl
@@ -0,0 +1,27 @@
+// $Id$
+
+/**
+ * @file Throughput_Connector.idl
+ * @author Marijke Hengstmengel <mhengstmengel@remedy.nl>
+ *
+ * by-hand translation of the idl3p.
+ */
+
+#ifndef THROUGHPUT_CONNECTOR_IDL_
+#define THROUGHPUT_CONNECTOR_IDL_
+
+#include <Components.idl>
+#include "Base/Throughput_Base.idl"
+#include "connectors/dds4ccm/idl/ccm_dds.idl"
+
+#pragma ciao lem "Connector/Throughput_ConnectorE.idl"
+
+module Throughput
+{
+ module ::CCM_DDS::Typed < ::ThroughputTest, ::ThroughputTestSeq> ThroughputTestConn;
+ connector Throughput_Connector : ThroughputTestConn::DDS_Event
+ {
+ };
+};
+
+#endif /* Throughput_CONNECTOR_IDL_ */
diff --git a/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Connector/Throughput_Connector.mpc b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Connector/Throughput_Connector.mpc
new file mode 100644
index 00000000000..b0239dc5608
--- /dev/null
+++ b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Connector/Throughput_Connector.mpc
@@ -0,0 +1,145 @@
+// $Id$
+// This file is generated with "generate_component_mpc.pl -p DDS_Throughput_Base -l .. -o ../lib -u DDS Throughput_Connector"
+
+project(DDS_Throughput_Connector_idl_gen) : connectoridldefaults, dds4ccm {
+ after += DDS4CCM_idl_gen
+ custom_only = 1
+ idlflags += -Wb,stub_export_macro=THROUGHPUT_CONNECTOR_STUB_Export \
+ -Wb,stub_export_include=Throughput_Connector_stub_export.h \
+ -Wb,skel_export_macro=THROUGHPUT_CONNECTOR_SVNT_Export \
+ -Wb,skel_export_include=Throughput_Connector_svnt_export.h \
+ -Wb,svnt_export_macro=THROUGHPUT_CONNECTOR_SVNT_Export \
+ -Wb,svnt_export_include=Throughput_Connector_svnt_export.h \
+ -Wb,conn_export_macro=THROUGHPUT_CONNECTOR_CONN_Export \
+ -Wb,conn_export_include=Throughput_Connector_conn_export.h \
+ -I ..
+
+ IDL_Files {
+ Throughput_Connector.idl
+ }
+}
+
+project(DDS_Throughput_Connector_lem_gen) : ciaoidldefaults, dds4ccm {
+ custom_only = 1
+ after += DDS_Throughput_Connector_idl_gen
+ idlflags += -Wb,stub_export_macro=THROUGHPUT_CONNECTOR_LEM_STUB_Export \
+ -Wb,stub_export_include=Throughput_Connector_lem_stub_export.h \
+ -SS -Gxhst \
+ -I .. -I $(CIAO_ROOT)/connectors -I$(CIAO_ROOT)/connectors/dds4ccm/idl
+
+ IDL_Files {
+ Throughput_ConnectorE.idl
+ }
+}
+
+project(DDS_TP_Test_Connector_lem_stub) : ccm_svnt, dds4ccm_base {
+ after += DDS_Throughput_Connector_lem_gen DDS_Throughput_Connector_stub DDS_Throughput_Base_stub DDS4CCM_lem_stub
+ libs += DDS_Throughput_Base_stub DDS_Throughput_Connector_stub DDS4CCM_lem_stub
+ libpaths += ../lib
+ libout = ../lib
+ includes += ..
+ sharedname = DDS_TP_Test_Connector_lem_stub
+ dynamicflags = THROUGHPUT_CONNECTOR_LEM_STUB_BUILD_DLL
+
+ IDL_Files {
+ }
+
+ Source_Files {
+ Throughput_ConnectorEC.cpp
+ }
+
+ Header_Files {
+ Throughput_ConnectorEC.h
+ Throughput_Connector_lem_stub_export.h
+ }
+
+ Inline_Files {
+ Throughput_ConnectorEC.inl
+ }
+}
+
+project(DDS_Throughput_Connector_stub) : ccm_stub, dds4ccm_base {
+ after += DDS_Throughput_Connector_idl_gen DDS_Throughput_Base_stub
+ libs += DDS_Throughput_Base_stub
+ libpaths += ../lib
+ libout = ../lib
+ includes += ..
+ sharedname = DDS_Throughput_Connector_stub
+ dynamicflags = THROUGHPUT_CONNECTOR_STUB_BUILD_DLL
+
+ IDL_Files {
+ }
+
+ Source_Files {
+ Throughput_ConnectorC.cpp
+ }
+
+ Header_Files {
+ Throughput_ConnectorC.h
+ Throughput_Connector_stub_export.h
+ }
+
+ Inline_Files {
+ Throughput_ConnectorC.inl
+ }
+}
+
+project(DDS_Throughput_Connector_exec) : ciao_executor, dds4ccm_impl {
+ after += DDS_TP_Test_Connector_lem_stub DDS_Throughput_Connector_stub DDS4CCM_lem_stub
+ sharedname = DDS_Throughput_Connector_exec
+ libs += DDS_Throughput_Connector_stub DDS_TP_Test_Connector_lem_stub DDS_Throughput_Base_stub DDS4CCM_lem_stub
+ libpaths += ../lib
+ libout = ../lib
+ includes += ..
+ dynamicflags = THROUGHPUT_CONNECTOR_CONN_BUILD_DLL
+
+ IDL_Files {
+ }
+
+ Source_Files {
+ Throughput_Connector_conn.cpp
+ }
+
+ Header_Files {
+ Throughput_Connector_conn.h
+ Throughput_Connector_conn_export.h
+ }
+
+ Inline_Files {
+ }
+}
+
+
+project(DDS_Throughput_Connector_svnt) : ciao_servant, dds4ccm_skel {
+ after += DDS_TP_Test_Connector_lem_stub DDS_Throughput_Connector_exec DDS_Throughput_Connector_stub DDS4CCM_lem_stub
+ sharedname = DDS_Throughput_Connector_svnt
+ libs += DDS_Throughput_Connector_stub \
+ DDS_TP_Test_Connector_lem_stub \
+ DDS_Throughput_Base_stub \
+ DDS_Throughput_Connector_exec \
+ DDS4CCM_lem_stub
+ libpaths += ../lib
+ libout = ../lib
+ includes += ..
+ dynamicflags = THROUGHPUT_CONNECTOR_SVNT_BUILD_DLL
+
+ IDL_Files {
+ }
+
+ Source_Files {
+ Throughput_ConnectorS.cpp
+ Throughput_Connector_svnt.cpp
+ }
+
+ Header_Files {
+ Throughput_ConnectorS.h
+ Throughput_Connector_svnt.h
+ Throughput_Connector_svnt_export.h
+ }
+
+ Inline_Files {
+ Throughput_ConnectorS.inl
+ }
+}
+
+
diff --git a/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Receiver/Throughput_Receiver.idl b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Receiver/Throughput_Receiver.idl
new file mode 100644
index 00000000000..af7b9f8159e
--- /dev/null
+++ b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Receiver/Throughput_Receiver.idl
@@ -0,0 +1,23 @@
+// $Id$
+
+/**
+ * @file
+ * @author Marijke Hengstmengel <mhengstmengel@remedy.nl>
+ */
+
+#ifndef RECEIVER_IDL
+#define RECEIVER_IDL
+
+#include "Connector/Throughput_Connector.idl"
+#include "SecConnector/Throughput_Sec_Connector.idl"
+
+module Throughput
+{
+ component Receiver
+ {
+ port ThroughputTestConn::DDS_Listen info_listen;
+ port ThroughputCommandConn::DDS_Listen command_listen;
+ };
+};
+
+#endif
diff --git a/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Receiver/Throughput_Receiver.mpc b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Receiver/Throughput_Receiver.mpc
new file mode 100644
index 00000000000..6dd8175ec48
--- /dev/null
+++ b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Receiver/Throughput_Receiver.mpc
@@ -0,0 +1,154 @@
+// $Id$
+
+project(DDS_Throughput_Receiver_idl_gen) : componentidldefaults, dds4ccm {
+ custom_only = 1
+ after += DDS_Throughput_Connector_idl_gen DDS_Throughput_Sec_Connector_idl_gen
+ idlflags += -Wb,stub_export_macro=RECEIVER_STUB_Export \
+ -Wb,stub_export_include=Receiver_stub_export.h \
+ -Wb,skel_export_macro=RECEIVER_SVNT_Export \
+ -Wb,skel_export_include=Receiver_svnt_export.h \
+ -Wb,svnt_export_macro=RECEIVER_SVNT_Export \
+ -Wb,svnt_export_include=Receiver_svnt_export.h \
+ -Wb,exec_export_macro=RECEIVER_EXEC_Export \
+ -Wb,exec_export_include=Receiver_exec_export.h -I..
+
+ IDL_Files {
+ Throughput_Receiver.idl
+ }
+}
+
+project(DDS_Throughput_Receiver_lem_gen) : ciaoidldefaults, dds4ccm {
+ after += DDS_Throughput_Receiver_idl_gen
+ custom_only = 1
+ idlflags += -Wb,stub_export_macro=RECEIVER_LEM_STUB_Export \
+ -Wb,stub_export_include=Receiver_lem_stub_export.h \
+ -SS -Gxhst -I..
+
+ IDL_Files {
+ Throughput_ReceiverE.idl
+ }
+}
+
+project(DDS_Throughput_Receiver_lem_stub) : ccm_svnt, dds4ccm_base {
+ after += DDS_Throughput_Receiver_lem_gen DDS_Throughput_Receiver_stub \
+ DDS_Throughput_Connector_stub DDS_Throughput_Sec_Connector_stub DDS_Throughput_Base_stub
+ libs += Receiver_stub DDS_Throughput_Connector_stub DDS_Throughput_Sec_Connector_stub \
+ DDS_Throughput_Base_stub
+ libpaths += ../lib
+ libout = ../lib
+ includes += ..
+ sharedname = Receiver_lem_stub
+ dynamicflags = RECEIVER_LEM_STUB_BUILD_DLL
+
+ IDL_Files {
+ }
+
+ Source_Files {
+ Throughput_ReceiverEC.cpp
+ }
+
+ Header_Files {
+ Throughput_ReceiverEC.h
+ Receiver_lem_stub_export.h
+ }
+
+ Inline_Files {
+ Throughput_ReceiverEC.inl
+ }
+}
+
+project(DDS_Throughput_Receiver_stub) : ccm_stub, dds4ccm_base {
+ after += DDS_Throughput_Receiver_idl_gen DDS_Throughput_Connector_stub DDS_Throughput_Sec_Connector_stub \
+ DDS_Throughput_Base_stub DDS_Throughput_Connector_lem_gen DDS_TP_Sec_Connector_lem_gen
+ libs += DDS_Throughput_Connector_stub DDS_Throughput_Sec_Connector_stub DDS_Throughput_Base_stub
+ libpaths += ../lib
+ libout = ../lib
+ includes += ..
+ sharedname = Receiver_stub
+ dynamicflags = RECEIVER_STUB_BUILD_DLL
+
+ IDL_Files {
+ }
+
+ Source_Files {
+ Throughput_ReceiverC.cpp
+ }
+
+ Header_Files {
+ Throughput_ReceiverC.h
+ Receiver_stub_export.h
+ }
+
+ Inline_Files {
+ Throughput_ReceiverC.inl
+ }
+}
+
+project(DDS_Throughput_Receiver_exec) : ciao_executor, dds4ccm_base {
+ after += DDS_Throughput_Receiver_lem_stub DDS_Throughput_Receiver_stub \
+ DDS_Throughput_Base_stub DDS_Throughput_Connector_stub DDS_Throughput_Sec_Connector_stub \
+ DDS_TP_Test_Connector_lem_stub DDS_TP_Sec_Connector_lem_stub DDS4CCM_lem_stub
+ sharedname = Receiver_exec
+ libs += Receiver_stub Receiver_lem_stub DDS_Throughput_Base_stub \
+ DDS_Throughput_Connector_stub DDS_TP_Test_Connector_lem_stub \
+ DDS_Throughput_Sec_Connector_stub DDS_TP_Sec_Connector_lem_stub \
+ DDS4CCM_lem_stub
+ libpaths += ../lib
+ libout = ../lib
+ includes += ..
+ dynamicflags = RECEIVER_EXEC_BUILD_DLL
+
+ IDL_Files {
+ }
+
+ Source_Files {
+ Throughput_Receiver_exec.cpp
+ }
+
+ Header_Files {
+ Throughput_Receiver_exec.h
+ Receiver_exec_export.h
+ }
+
+ Inline_Files {
+ }
+}
+
+
+project(DDS_Throughput_Receiver_svnt) : ciao_servant, dds4ccm_base {
+ after += DDS_Throughput_Receiver_lem_stub DDS_Throughput_Base_stub \
+ DDS_Throughput_Connector_stub DDS_Throughput_Connector_svnt \
+ DDS_Throughput_Sec_Connector_stub DDS_Throughput_Sec_Connector_svnt \
+ DDS_Throughput_Receiver_exec DDS_TP_Test_Connector_lem_stub DDS_TP_Sec_Connector_lem_stub \
+ DDS4CCM_lem_stub DDS4CCM_skel
+ sharedname = Receiver_svnt
+ libs += Receiver_stub Receiver_lem_stub DDS_Throughput_Base_stub \
+ DDS_Throughput_Connector_stub DDS_Throughput_Connector_svnt \
+ DDS_Throughput_Sec_Connector_stub DDS_Throughput_Sec_Connector_svnt \
+ Receiver_exec DDS_TP_Test_Connector_lem_stub DDS_TP_Sec_Connector_lem_stub DDS4CCM_lem_stub \
+ DDS4CCM_skel
+ libpaths += ../lib
+ libout = ../lib
+ includes += ..
+ dynamicflags = RECEIVER_SVNT_BUILD_DLL
+
+ IDL_Files {
+ }
+
+ Source_Files {
+ Throughput_ReceiverS.cpp
+ Throughput_Receiver_svnt.cpp
+ }
+
+ Header_Files {
+ Throughput_ReceiverS.h
+ Throughput_Receiver_svnt.h
+ Receiver_svnt_export.h
+ }
+
+ Inline_Files {
+ Throughput_ReceiverS.inl
+ }
+}
+
+
diff --git a/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Receiver/Throughput_Receiver_exec.cpp b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Receiver/Throughput_Receiver_exec.cpp
new file mode 100644
index 00000000000..888b315e3e0
--- /dev/null
+++ b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Receiver/Throughput_Receiver_exec.cpp
@@ -0,0 +1,255 @@
+// -*- C++ -*-
+//
+// $Id$
+
+#include "Throughput_Receiver_exec.h"
+#include "ciao/Logger/Log_Macros.h"
+#include "ace/High_Res_Timer.h"
+
+namespace CIAO_Throughput_Receiver_Impl
+{
+ //============================================================
+ // ThroughputTest_Listener_exec_i
+ //============================================================
+ ThroughputTest_Listener_exec_i::ThroughputTest_Listener_exec_i (
+ Receiver_exec_i &callback)
+ : callback_ (callback)
+ {
+ }
+
+ ThroughputTest_Listener_exec_i::~ThroughputTest_Listener_exec_i (void)
+ {
+ }
+
+ void
+ ThroughputTest_Listener_exec_i::on_one_data (
+ const ThroughputTest & an_instance,
+ const ::CCM_DDS::ReadInfo & /*info*/)
+ {
+ this->callback_.record_data(const_cast<ThroughputTest&> (an_instance));
+ }
+
+ void
+ ThroughputTest_Listener_exec_i::on_many_data (
+ const ThroughputTestSeq & /*data_seq*/,
+ const ::CCM_DDS::ReadInfoSeq & /*info_seq*/)
+ {
+ }
+
+ //============================================================
+ // ThroughputCommand_Listener_exec_i
+ //============================================================
+ ThroughputCommand_Listener_exec_i::ThroughputCommand_Listener_exec_i (
+ Receiver_exec_i &callback)
+ : callback_ (callback)
+ {
+ }
+
+ ThroughputCommand_Listener_exec_i::~ThroughputCommand_Listener_exec_i (void)
+ {
+ }
+
+ void
+ ThroughputCommand_Listener_exec_i::on_one_data (
+ const ThroughputCommand & an_instance,
+ const ::CCM_DDS::ReadInfo & /*info*/)
+ {
+ this->callback_.handle_run (const_cast<ThroughputCommand&> (an_instance));
+ }
+
+ void
+ ThroughputCommand_Listener_exec_i::on_many_data (
+ const ThroughputCommandSeq & /*data_seq*/,
+ const ::CCM_DDS::ReadInfoSeq & /*info_seq*/)
+ {
+ }
+
+ //============================================================
+ // Receiver_exec_i
+ //============================================================
+ Receiver_exec_i::Receiver_exec_i (void)
+ : count_ (0L), // total count of all received messages
+ interval_time_(0L),
+ interval_messages_received_(0L),
+ interval_bytes_received_(0L),
+ interval_data_length_(0L),
+ run_(0),
+ first_time_ (0L),
+ messages_lost_(0),
+ log_(false)
+ {
+ }
+
+ Receiver_exec_i::~Receiver_exec_i (void)
+ {
+ }
+
+ void
+ Receiver_exec_i::start ()
+ {
+ ::CCM_DDS::DataListenerControl_var dlccmd =
+ this->context_->get_connection_command_listen_data_control ();
+ dlccmd->mode (::CCM_DDS::ONE_BY_ONE);
+ ::CCM_DDS::DataListenerControl_var dlc =
+ this->context_->get_connection_info_listen_data_control ();
+ dlc->mode (::CCM_DDS::ONE_BY_ONE);
+ }
+
+ void
+ Receiver_exec_i::reset_results()
+ {
+ this->interval_messages_received_ = 0;
+ this->interval_bytes_received_ = 0;
+ this->interval_time_=0;
+ this->seq_num_ = 0;
+ this->messages_lost_= 0;
+ }
+
+ void
+ Receiver_exec_i::handle_run(ThroughputCommand & an_instance)
+ {
+ if (an_instance.command == THROUGHPUT_COMMAND_START)
+ {
+ this->log_ = true;
+ this->reset_results();
+ this->interval_data_length_ = an_instance.data_length;
+ this->demand_ = an_instance.current_publisher_effort;
+ ACE_High_Res_Timer::gettimeofday_hr ().to_usec (this->first_time_);
+ }
+ if (an_instance.command == THROUGHPUT_COMMAND_COMPLETE)
+ {
+ this->log_ = false;
+ ACE_UINT64 last_time;
+ ACE_High_Res_Timer::gettimeofday_hr ().to_usec (last_time);
+ this->interval_time_ = (last_time - this->first_time_);
+ ++this->run_;
+ this->show_results();
+ }
+ }
+
+ void
+ Receiver_exec_i::record_data (ThroughputTest & an_instance)
+ {
+ ++this->count_; // total count of all received messages
+
+ if (this->log_.value ())
+ {
+ ++this->interval_messages_received_;
+ this->interval_bytes_received_ += this->interval_data_length_;
+ if (an_instance.seq_num != this->seq_num_)
+ {
+ ++this->messages_lost_;
+ /* Reset sequence number */
+ this->seq_num_ = an_instance.seq_num;
+ }
+ ++this->seq_num_;
+ }
+ }
+
+ void
+ Receiver_exec_i::show_results()
+ {
+ if ((this->count_ > 0) && (this->interval_time_ > 0))
+ {
+ double per_sec = (double)1000000/ this->interval_time_;
+ double mbps = (this->interval_bytes_received_* per_sec)* (8.0/1000.0/1000.0);
+
+ if(this->run_ == 1)
+ {
+ ACE_DEBUG((LM_DEBUG,
+ " bytes, demand, samples,sample/s, Mbit/s,lost samples\n"));
+ ACE_DEBUG((LM_DEBUG,
+ "------,-------,--------,--------,-------,------------\n"));
+ }
+ ACE_DEBUG((LM_DEBUG, "%6u,%7q,%8q,%8.1f,%7.1f,%7q\n",
+ this->interval_data_length_,
+ this->demand_,
+ this->interval_messages_received_,
+ this->interval_messages_received_* per_sec,
+ mbps,
+ this->messages_lost_));
+ }
+ }
+
+ ::Throughput::ThroughputTestConn::CCM_Listener_ptr
+ Receiver_exec_i::get_info_listen_data_listener (void)
+ {
+ return new ThroughputTest_Listener_exec_i (*this);
+ }
+
+ ::CCM_DDS::CCM_PortStatusListener_ptr
+ Receiver_exec_i::get_info_listen_status (void)
+ {
+ return ::CCM_DDS::CCM_PortStatusListener::_nil ();
+ }
+
+ ::Throughput::ThroughputCommandConn::CCM_Listener_ptr
+ Receiver_exec_i::get_command_listen_data_listener (void)
+ {
+ return new ThroughputCommand_Listener_exec_i (*this);
+ }
+
+ ::CCM_DDS::CCM_PortStatusListener_ptr
+ Receiver_exec_i::get_command_listen_status (void)
+ {
+ return ::CCM_DDS::CCM_PortStatusListener::_nil ();
+ }
+
+ void
+ Receiver_exec_i::set_session_context (
+ ::Components::SessionContext_ptr ctx)
+ {
+ this->context_ =
+ ::Throughput::CCM_Receiver_Context::_narrow (ctx);
+ if ( ::CORBA::is_nil (this->context_.in ()))
+ {
+ throw ::CORBA::INTERNAL ();
+ }
+ }
+
+ void
+ Receiver_exec_i::configuration_complete (void)
+ {
+ this->start();
+ }
+
+ void
+ Receiver_exec_i::ccm_activate (void)
+ {
+ }
+
+ void
+ Receiver_exec_i::ccm_passivate (void)
+ {
+ if (this->count_ > 0)
+ {
+ ACE_DEBUG((LM_DEBUG, "SUMMARY RECEIVER:\n "
+ "Number of samples received: %u \n",
+ this->count_));
+ }
+ else
+ {
+ ACE_ERROR ((LM_ERROR, "ERROR RECEIVER: "
+ "No samples received\n"));
+ }
+ }
+
+
+ void
+ Receiver_exec_i::ccm_remove (void)
+ {
+ }
+
+ extern "C" RECEIVER_EXEC_Export ::Components::EnterpriseComponent_ptr
+ create_Throughput_Receiver_Impl (void)
+ {
+ ::Components::EnterpriseComponent_ptr retval =
+ ::Components::EnterpriseComponent::_nil ();
+
+ ACE_NEW_NORETURN (
+ retval,
+ Receiver_exec_i);
+
+ return retval;
+ }
+}
diff --git a/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Receiver/Throughput_Receiver_exec.h b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Receiver/Throughput_Receiver_exec.h
new file mode 100644
index 00000000000..f758eabfc54
--- /dev/null
+++ b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Receiver/Throughput_Receiver_exec.h
@@ -0,0 +1,128 @@
+// -*- C++ -*-
+// $Id$
+
+#ifndef CIAO_RECEIVER_EXEC_H_
+#define CIAO_RECEIVER_EXEC_H_
+
+#include "Throughput_ReceiverEC.h"
+
+#include /**/ "Receiver_exec_export.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "tao/LocalObject.h"
+#include "ace/Reactor.h"
+#include "ace/Task.h"
+
+namespace CIAO_Throughput_Receiver_Impl
+{
+ class Receiver_exec_i;
+ typedef ACE_Atomic_Op <TAO_SYNCH_MUTEX, CORBA::Boolean> Atomic_Bool;
+
+ //============================================================
+ // ThroughputTest_Listener_exec_i
+ //============================================================
+ class RECEIVER_EXEC_Export ThroughputTest_Listener_exec_i
+ : public virtual ::Throughput::ThroughputTestConn::CCM_Listener,
+ public virtual ::CORBA::LocalObject
+ {
+ public:
+ ThroughputTest_Listener_exec_i (Receiver_exec_i &callback);
+ virtual ~ThroughputTest_Listener_exec_i (void);
+
+ virtual void
+ on_one_data (
+ const ThroughputTest & an_instance,
+ const ::CCM_DDS::ReadInfo & info);
+ virtual void
+ on_many_data (
+ const ThroughputTestSeq & an_instance,
+ const ::CCM_DDS::ReadInfoSeq & info);
+ private:
+ Receiver_exec_i &callback_;
+ };
+
+ //============================================================
+ // ThroughputCommand_Listener_exec_i
+ //============================================================
+ class RECEIVER_EXEC_Export ThroughputCommand_Listener_exec_i
+ : public virtual ::Throughput::ThroughputCommandConn::CCM_Listener,
+ public virtual ::CORBA::LocalObject
+ {
+ public:
+ ThroughputCommand_Listener_exec_i (Receiver_exec_i &callback);
+ virtual ~ThroughputCommand_Listener_exec_i (void);
+
+ virtual void
+ on_one_data (
+ const ThroughputCommand & an_instance,
+ const ::CCM_DDS::ReadInfo & info);
+ virtual void
+ on_many_data (
+ const ThroughputCommandSeq & an_instance,
+ const ::CCM_DDS::ReadInfoSeq & info);
+ private:
+ Receiver_exec_i &callback_;
+ };
+
+ //============================================================
+ // Receiver_exec_i
+ //============================================================
+ class RECEIVER_EXEC_Export Receiver_exec_i
+ : public virtual Receiver_Exec,
+ public virtual ::CORBA::LocalObject
+ {
+ public:
+ Receiver_exec_i (void);
+ virtual ~Receiver_exec_i (void);
+
+ void start ();
+ void reset_results (void);
+ void record_data (ThroughputTest & an_instance);
+ void handle_run (ThroughputCommand & an_instance);
+ void show_results (void);
+
+ virtual ::Throughput::ThroughputTestConn::CCM_Listener_ptr
+ get_info_listen_data_listener (void);
+
+ virtual ::CCM_DDS::CCM_PortStatusListener_ptr
+ get_info_listen_status (void);
+
+ virtual ::Throughput::ThroughputCommandConn::CCM_Listener_ptr
+ get_command_listen_data_listener (void);
+
+ virtual ::CCM_DDS::CCM_PortStatusListener_ptr
+ get_command_listen_status (void);
+
+ 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);
+
+ private:
+ ::Throughput::CCM_Receiver_Context_var context_;
+
+ CORBA::ULongLong count_;
+ ACE_UINT64 interval_time_;
+ CORBA::ULongLong interval_messages_received_;
+ CORBA::ULongLong interval_bytes_received_;
+ CORBA::ULong interval_data_length_;
+ CORBA::ULong run_;
+ ACE_UINT64 first_time_;
+ CORBA::ULongLong demand_;
+ CORBA::ULongLong seq_num_;
+ CORBA::ULongLong messages_lost_;
+ Atomic_Bool log_;
+ };
+
+ extern "C" RECEIVER_EXEC_Export ::Components::EnterpriseComponent_ptr
+ create_Throughput_Receiver_Impl (void);
+}
+
+#endif /* ifndef */
diff --git a/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/SecConnector/Throughput_Sec_Connector.idl b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/SecConnector/Throughput_Sec_Connector.idl
new file mode 100644
index 00000000000..0ec6de8e1c8
--- /dev/null
+++ b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/SecConnector/Throughput_Sec_Connector.idl
@@ -0,0 +1,27 @@
+// $Id$
+
+/**
+ * @file Throughput_Sec_Connector.idl
+ * @author Marijke Hengstmengel <mhengstmengel@remedy.nl>
+ *
+ * by-hand translation of the idl3p.
+ */
+
+#ifndef THROUGHPUT_SEC_CONNECTOR_IDL_
+#define THROUGHPUT_SEC_CONNECTOR_IDL_
+
+#include <Components.idl>
+#include "Base/Throughput_Base.idl"
+#include "connectors/dds4ccm/idl/ccm_dds.idl"
+
+#pragma ciao lem "SecConnector/Throughput_Sec_ConnectorE.idl"
+
+module Throughput
+{
+ module ::CCM_DDS::Typed < ::ThroughputCommand, ::ThroughputCommandSeq> ThroughputCommandConn;
+ connector Throughput_Sec_Connector : ThroughputCommandConn::DDS_Event
+ {
+ };
+};
+
+#endif /* Throughput_Sec_CONNECTOR_IDL_ */
diff --git a/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/SecConnector/Throughput_Sec_Connector.mpc b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/SecConnector/Throughput_Sec_Connector.mpc
new file mode 100644
index 00000000000..ffc3b1bbf17
--- /dev/null
+++ b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/SecConnector/Throughput_Sec_Connector.mpc
@@ -0,0 +1,144 @@
+// $Id$
+// This file is generated with "generate_component_mpc.pl -p DDS_Throughput_Base -l .. -o ../lib -u DDS Throughput_Sec_Connector"
+
+project(DDS_TP_Sec_Connector_idl_gen) : connectoridldefaults, dds4ccm {
+ after += DDS4CCM_idl_gen
+ custom_only = 1
+ idlflags += -Wb,stub_export_macro=THROUGHPUT_SEC_CONNECTOR_STUB_Export \
+ -Wb,stub_export_include=Throughput_Sec_Connector_stub_export.h \
+ -Wb,skel_export_macro=THROUGHPUT_SEC_CONNECTOR_SVNT_Export \
+ -Wb,skel_export_include=Throughput_Sec_Connector_svnt_export.h \
+ -Wb,svnt_export_macro=THROUGHPUT_SEC_CONNECTOR_SVNT_Export \
+ -Wb,svnt_export_include=Throughput_Sec_Connector_svnt_export.h \
+ -Wb,conn_export_macro=THROUGHPUT_SEC_CONNECTOR_CONN_Export \
+ -Wb,conn_export_include=Throughput_Sec_Connector_conn_export.h \
+ -I ..
+
+ IDL_Files {
+ Throughput_Sec_Connector.idl
+ }
+}
+
+project(DDS_TP_Sec_Connector_lem_gen) : ciaoidldefaults, dds4ccm {
+ custom_only = 1
+ after += DDS_TP_Sec_Connector_idl_gen
+ idlflags += -Wb,stub_export_macro=THROUGHPUT_SEC_CONNECTOR_LEM_STUB_Export \
+ -Wb,stub_export_include=Throughput_Sec_Connector_lem_stub_export.h \
+ -SS -Gxhst \
+ -I .. -I $(CIAO_ROOT)/connectors -I$(CIAO_ROOT)/connectors/dds4ccm/idl
+
+ IDL_Files {
+ Throughput_Sec_ConnectorE.idl
+ }
+}
+
+project(DDS_TP_Sec_Connector_lem_stub) : ccm_svnt, dds4ccm_base {
+ after += DDS_TP_Sec_Connector_lem_gen DDS_Throughput_Sec_Connector_stub DDS_Throughput_Base_stub DDS4CCM_lem_stub
+ libs += DDS_Throughput_Base_stub DDS_Throughput_Sec_Connector_stub DDS4CCM_lem_stub
+ libpaths += ../lib
+ libout = ../lib
+ includes += ..
+ sharedname = DDS_TP_Sec_Connector_lem_stub
+ dynamicflags = THROUGHPUT_SEC_CONNECTOR_LEM_STUB_BUILD_DLL
+
+ IDL_Files {
+ }
+
+ Source_Files {
+ Throughput_Sec_ConnectorEC.cpp
+ }
+
+ Header_Files {
+ Throughput_Sec_ConnectorEC.h
+ Throughput_Sec_Connector_lem_stub_export.h
+ }
+
+ Inline_Files {
+ Throughput_Sec_ConnectorEC.inl
+ }
+}
+
+project(DDS_Throughput_Sec_Connector_stub) : ccm_stub, dds4ccm_base {
+ after += DDS_TP_Sec_Connector_idl_gen DDS_Throughput_Base_stub
+ libs += DDS_Throughput_Base_stub
+ libpaths += ../lib
+ libout = ../lib
+ includes += ..
+ sharedname = DDS_Throughput_Sec_Connector_stub
+ dynamicflags = THROUGHPUT_SEC_CONNECTOR_STUB_BUILD_DLL
+
+ IDL_Files {
+ }
+
+ Source_Files {
+ Throughput_Sec_ConnectorC.cpp
+ }
+
+ Header_Files {
+ Throughput_Sec_ConnectorC.h
+ Throughput_Sec_Connector_stub_export.h
+ }
+
+ Inline_Files {
+ Throughput_Sec_ConnectorC.inl
+ }
+}
+
+project(DDS_Throughput_Sec_Connector_exec) : ciao_executor, dds4ccm_impl {
+ after += DDS_TP_Sec_Connector_lem_stub DDS_Throughput_Sec_Connector_stub DDS4CCM_lem_stub
+ sharedname = DDS_Throughput_Sec_Connector_exec
+ libs += DDS_Throughput_Sec_Connector_stub DDS_TP_Sec_Connector_lem_stub DDS_Throughput_Base_stub DDS4CCM_lem_stub
+ libpaths += ../lib
+ libout = ../lib
+ includes += ..
+ dynamicflags = THROUGHPUT_SEC_CONNECTOR_CONN_BUILD_DLL
+
+ IDL_Files {
+ }
+
+ Source_Files {
+ Throughput_Sec_Connector_conn.cpp
+ }
+
+ Header_Files {
+ Throughput_Sec_Connector_conn.h
+ Throughput_Sec_Connector_conn_export.h
+ }
+
+ Inline_Files {
+ }
+}
+
+project(DDS_Throughput_Sec_Connector_svnt) : ciao_servant, dds4ccm_skel {
+ after += DDS_TP_Sec_Connector_lem_stub DDS_Throughput_Sec_Connector_exec DDS_Throughput_Sec_Connector_stub DDS4CCM_lem_stub
+ sharedname = DDS_Throughput_Sec_Connector_svnt
+ libs += DDS_Throughput_Sec_Connector_stub \
+ DDS_TP_Sec_Connector_lem_stub \
+ DDS_Throughput_Base_stub \
+ DDS_Throughput_Sec_Connector_exec \
+ DDS4CCM_lem_stub
+ libpaths += ../lib
+ libout = ../lib
+ includes += ..
+ dynamicflags = THROUGHPUT_SEC_CONNECTOR_SVNT_BUILD_DLL
+
+ IDL_Files {
+ }
+
+ Source_Files {
+ Throughput_Sec_ConnectorS.cpp
+ Throughput_Sec_Connector_svnt.cpp
+ }
+
+ Header_Files {
+ Throughput_Sec_ConnectorS.h
+ Throughput_Sec_Connector_svnt.h
+ Throughput_Sec_Connector_svnt_export.h
+ }
+
+ Inline_Files {
+ Throughput_Sec_ConnectorS.inl
+ }
+}
+
+
diff --git a/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Sender/Throughput_Sender.idl b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Sender/Throughput_Sender.idl
new file mode 100644
index 00000000000..53e2a5f83fd
--- /dev/null
+++ b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Sender/Throughput_Sender.idl
@@ -0,0 +1,34 @@
+// $Id$
+
+/**
+ * @file
+ * @author Marijke Hengstmengel <mhengstmengel@remedy.nl>
+ *
+ * by-hand idl3 translation of sender components.
+ */
+
+#ifndef DDS_THROUGHPUT_SENDER_IDL
+#define DDS_THROUGHPUT_SENDER_IDL
+
+#include "Connector/Throughput_Connector.idl"
+#include "SecConnector/Throughput_Sec_Connector.idl"
+
+module Throughput
+{
+ component Sender
+ {
+ port ThroughputTestConn::DDS_Write info_write;
+ port ThroughputCommandConn::DDS_Write command_write;
+
+ provides CCM_DDS::ConnectorStatusListener connector_status;
+
+ attribute unsigned long start_load;
+ attribute unsigned long incr_load;
+ attribute unsigned long long max_load;
+ attribute unsigned short recover_time;
+ attribute unsigned short datalen; //minimal 24
+ attribute unsigned short number_of_sub; //number of subscribers
+ };
+};
+
+#endif
diff --git a/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Sender/Throughput_Sender.mpc b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Sender/Throughput_Sender.mpc
new file mode 100644
index 00000000000..7f1a332d958
--- /dev/null
+++ b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Sender/Throughput_Sender.mpc
@@ -0,0 +1,152 @@
+// $Id$
+// This file is generated with "generate_component_mpc.pl -p DDS_Throughput_Base -l ../lib -o ../lib -c controller -u DDS Sender"
+
+project(DDS_Throughput_Sender_idl_gen) : componentidldefaults, dds4ccm {
+ after += DDS_Throughput_Connector_idl_gen DDS_Throughput_Sec_Connector_idl_gen DDS_Starter_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 {
+ Throughput_Sender.idl
+ }
+}
+
+project(DDS_Throughput_Sender_lem_gen) : ciaoidldefaults, dds4ccm {
+ after += DDS_Throughput_Sender_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 {
+ Throughput_SenderE.idl
+ }
+}
+
+project(DDS_Throughput_Sender_lem_stub) : ccm_svnt, dds4ccm_base {
+ after += DDS_Throughput_Sender_lem_gen DDS_Throughput_Sender_stub \
+ DDS_Throughput_Base_stub
+ libs += DDS_Throughput_Base_stub Sender_stub
+ libpaths += ../lib
+ libout = ../lib
+ includes += ..
+ sharedname = Sender_lem_stub
+ dynamicflags = SENDER_LEM_STUB_BUILD_DLL
+
+ IDL_Files {
+ }
+
+ Source_Files {
+ Throughput_SenderEC.cpp
+ }
+
+ Header_Files {
+ Throughput_SenderEC.h
+ Sender_lem_stub_export.h
+ }
+
+ Inline_Files {
+ Throughput_SenderEC.inl
+ }
+}
+
+project(DDS_Throughput_Sender_stub) : ccm_stub, dds4ccm_base {
+ after += DDS_Throughput_Sender_idl_gen DDS_Throughput_Base_stub \
+ DDS_Throughput_Connector_stub DDS_Throughput_Sec_Connector_stub
+ libs += DDS_Throughput_Base_stub DDS_Throughput_Connector_stub DDS_Throughput_Sec_Connector_stub
+ includes += ..
+ libpaths += ../lib
+ libout = ../lib
+ sharedname = Sender_stub
+ dynamicflags = SENDER_STUB_BUILD_DLL
+
+ IDL_Files {
+ }
+
+ Source_Files {
+ Throughput_SenderC.cpp
+ }
+
+ Header_Files {
+ Throughput_SenderC.h
+ Sender_stub_export.h
+ }
+
+ Inline_Files {
+ Throughput_SenderC.inl
+ }
+}
+
+project(DDS_Throughput_Sender_exec) : ciao_executor, dds4ccm_base {
+ after += DDS_Throughput_Sender_lem_stub DDS_Throughput_Sender_stub \
+ DDS_TP_Test_Connector_lem_stub DDS_Throughput_Connector_stub \
+ DDS_TP_Sec_Connector_lem_stub DDS_Throughput_Sec_Connector_stub \
+ DDS4CCM_lem_stub
+ sharedname = Sender_exec
+ libs += Sender_stub Sender_lem_stub DDS_Throughput_Base_stub \
+ DDS_TP_Test_Connector_lem_stub DDS_Throughput_Connector_stub \
+ DDS_TP_Sec_Connector_lem_stub DDS_Throughput_Sec_Connector_stub \
+ DDS4CCM_lem_stub
+ libpaths += ../lib
+ includes += ..
+ libout = ../lib
+ dynamicflags = SENDER_EXEC_BUILD_DLL
+
+ IDL_Files {
+ }
+
+ Source_Files {
+ Throughput_Sender_exec.cpp
+ }
+
+ Header_Files {
+ Throughput_Sender_exec.h
+ Sender_exec_export.h
+ }
+
+ Inline_Files {
+ }
+}
+
+project(DDS_Throughput_Sender_svnt) : ciao_servant, dds4ccm_base {
+ after += DDS_Throughput_Base_stub DDS_Throughput_Sender_lem_stub \
+ DDS4CCM_lem_stub DDS4CCM_skel DDS_Throughput_Connector_stub DDS_Throughput_Sec_Connector_stub \
+ DDS_Throughput_Connector_svnt DDS_TP_Test_Connector_lem_stub \
+ DDS_Throughput_Sec_Connector_svnt DDS_TP_Sec_Connector_lem_stub
+ sharedname = Sender_svnt
+ libs += Sender_stub Sender_lem_stub DDS_Throughput_Base_stub DDS4CCM_lem_stub \
+ DDS4CCM_skel DDS_Throughput_Connector_stub DDS_Throughput_Connector_svnt \
+ DDS4CCM_skel DDS_Throughput_Sec_Connector_stub DDS_Throughput_Sec_Connector_svnt \
+ DDS_TP_Test_Connector_lem_stub DDS_TP_Sec_Connector_lem_stub
+ libpaths += ../lib
+ libout = ../lib
+ includes += ..
+ dynamicflags = SENDER_SVNT_BUILD_DLL
+
+ IDL_Files {
+ }
+
+ Source_Files {
+ Throughput_SenderS.cpp
+ Throughput_Sender_svnt.cpp
+ }
+
+ Header_Files {
+ Throughput_SenderS.h
+ Throughput_Sender_svnt.h
+ Sender_svnt_export.h
+ }
+
+ Inline_Files {
+ Throughput_SenderS.inl
+ }
+}
+
diff --git a/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Sender/Throughput_Sender_exec.cpp b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Sender/Throughput_Sender_exec.cpp
new file mode 100644
index 00000000000..4c8a63e6e32
--- /dev/null
+++ b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Sender/Throughput_Sender_exec.cpp
@@ -0,0 +1,454 @@
+// -*- C++ -*-
+// $Id$
+
+#include "Throughput_Sender_exec.h"
+#include "ciao/Logger/Log_Macros.h"
+#include "tao/ORB_Core.h"
+#include "ace/Timer_Queue.h"
+#include "ace/Reactor.h"
+#include "ace/High_Res_Timer.h"
+
+namespace CIAO_Throughput_Sender_Impl
+{
+ //============================================================
+ // Facet Executor Implementation Class: ConnectorStatusListener_exec_i
+ //============================================================
+ ConnectorStatusListener_exec_i::ConnectorStatusListener_exec_i (
+ int number_of_subscribers,
+ Sender_exec_i &callback)
+ : callback_ (callback),
+ number_of_subscribers_ (number_of_subscribers),
+ started_ (false)
+ {
+ }
+
+ ConnectorStatusListener_exec_i::~ConnectorStatusListener_exec_i (void)
+ {
+ }
+
+ // Operations from ::CCM_DDS::ConnectorStatusListener
+ void ConnectorStatusListener_exec_i::on_inconsistent_topic(
+ ::DDS::Topic_ptr /*the_topic*/,
+ const DDS::InconsistentTopicStatus & /*status*/)
+ {
+ }
+
+ void ConnectorStatusListener_exec_i::on_requested_incompatible_qos(
+ ::DDS::DataReader_ptr /*the_reader*/,
+ const DDS::RequestedIncompatibleQosStatus & /*status*/)
+ {
+ }
+
+ void ConnectorStatusListener_exec_i::on_sample_rejected(
+ ::DDS::DataReader_ptr /*the_reader*/,
+ const DDS::SampleRejectedStatus & /*status*/)
+ {
+ }
+
+ void ConnectorStatusListener_exec_i::on_offered_deadline_missed(
+ ::DDS::DataWriter_ptr /*the_writer*/,
+ const DDS::OfferedDeadlineMissedStatus & /*status*/)
+ {
+ }
+
+ void ConnectorStatusListener_exec_i::on_offered_incompatible_qos(
+ ::DDS::DataWriter_ptr /*the_writer*/,
+ const DDS::OfferedIncompatibleQosStatus & /*status*/)
+ {
+ }
+
+ void ConnectorStatusListener_exec_i::on_unexpected_status(
+ ::DDS::Entity_ptr the_entity,
+ ::DDS::StatusKind status_kind)
+ {
+ if (!CORBA::is_nil (the_entity) &&
+ status_kind == DDS::PUBLICATION_MATCHED_STATUS)
+ {
+ ::DDS::PublicationMatchedStatus_var stat;
+ DDS::DataWriter_var wr = ::DDS::DataWriter::_narrow(the_entity);
+ if(CORBA::is_nil(wr.in ()))
+ {
+ throw ::CORBA::INTERNAL ();
+ }
+ ::DDS::ReturnCode_t retval =
+ wr->get_publication_matched_status(stat.out());
+ if (retval == DDS::RETCODE_OK)
+ {
+ if (stat.in ().current_count >= this->number_of_subscribers_ &&
+ !this->started_.value ())
+ {
+ ACE_DEBUG ((LM_DEBUG, "ConnectorStatusListener_exec_i::on_unexpected_status - "
+ "on_publication_matched status received. Starting application\n"));
+ this->started_ = true;
+ this->callback_.start();
+ }
+ }
+ }
+ }
+
+ //============================================================
+ // WriteTickerHandler
+ //============================================================
+ WriteTicker::WriteTicker (Sender_exec_i &callback,
+ Atomic_Boolean &running)
+ : callback_ (callback),
+ running_ (running)
+ {
+ }
+
+ int
+ WriteTicker::handle_timeout (const ACE_Time_Value &, const void *)
+ {
+ // Notify the subscribers
+ if (!this->running_.value ())
+ {
+ this->callback_.write();
+ }
+ return 0;
+ }
+
+ //============================================================
+ // Component Executor Implementation Class: Sender_exec_i
+ //============================================================
+ Sender_exec_i::Sender_exec_i (void)
+ : ticker_ (0),
+ max_load_ (1000),
+ start_load_ (100),
+ incr_load_ (100),
+ datalen_ (1024),
+ recover_time_ (1), // Specifies how long (in s) to sleep after writing a
+ // specific effort specified by start_load , incr_load
+ duration_run_ (10),
+ number_of_subscribers_ (1),
+ number_of_msg_ (0),
+ load_ (0),
+ overhead_size_ (0),
+ running_ (false)
+ {
+ }
+
+ Sender_exec_i::~Sender_exec_i (void)
+ {
+ }
+
+ void
+ Sender_exec_i::write(void)
+ {
+ this->running_ = true;
+ CORBA::Boolean test_complete = false;
+ this->load_ += this->incr_load_;
+ if (this->load_ >= this->max_load_)
+ {
+ this->stop();
+ }
+ else
+ {
+ this->test_topic_cmd_.command = THROUGHPUT_COMMAND_START;
+ this->test_topic_cmd_.data_length = this->datalen_;
+ this->test_topic_cmd_.current_publisher_effort = this->load_;
+ this->test_topic_cmd_.final_publisher_effort = this->max_load_;
+ try
+ {
+ this->cmd_writer_->write_one(this->test_topic_cmd_,
+ ::DDS::HANDLE_NIL);
+ }
+ catch (const CCM_DDS::InternalError& )
+ {
+ ACE_ERROR ((LM_ERROR, ACE_TEXT ("ERROR: Internal Error ")
+ ACE_TEXT ("while writing command.\n")));
+ }
+ test_complete = false;
+ // get start time
+ ACE_UINT64 start_time;
+ ACE_High_Res_Timer::gettimeofday_hr ().to_usec (start_time);
+ while (!test_complete)
+ {
+ for (CORBA::ULongLong current_load = 0;
+ current_load < this->load_ && !test_complete;
+ ++current_load, ++this->test_topic_.seq_num)
+ {
+ try
+ {
+ this->writer_->write_one(this->test_topic_,
+ ::DDS::HANDLE_NIL);
+ ++this->number_of_msg_;
+ }
+ catch (const CCM_DDS::InternalError& err)
+ {
+ if (err.error_code == DDS::RETCODE_TIMEOUT)
+ {
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT ("ERROR: Internal Error ")
+ ACE_TEXT ("Write Timeout please increase "
+ "-maxBlockingTime parameter for "
+ "test\n")));
+ }
+ else
+ {
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT ("ERROR: Internal Error ")
+ ACE_TEXT ("while updating writer ")
+ ACE_TEXT ("info for <%u>.\n"),
+ this->test_topic_.seq_num));
+ test_complete= true;
+ }
+ }
+ }
+ ACE_UINT64 end_time;
+ ACE_High_Res_Timer::gettimeofday_hr ().to_usec (end_time);
+ ACE_UINT64 interval = end_time - start_time;
+ if(interval > (this->duration_run_ * 1000 * 1000))
+ {
+ test_complete = true;
+ this->test_topic_cmd_.command = THROUGHPUT_COMMAND_COMPLETE;
+ this->cmd_writer_->write_one (this->test_topic_cmd_,
+ ::DDS::HANDLE_NIL);
+ }
+ if (!test_complete)
+ {
+ ACE_OS::sleep (this->recover_time_);
+ }
+ }
+ }
+ this->running_ = false;
+ }
+
+ ::CCM_DDS::CCM_ConnectorStatusListener_ptr
+ Sender_exec_i::get_connector_status (void)
+ {
+ return new ConnectorStatusListener_exec_i (
+ this->number_of_subscribers_,
+ *this);
+ }
+
+ void
+ Sender_exec_i::start (void)
+ {
+ ACE_UINT64 const sec = this->duration_run_ + 5;
+ (void) ACE_High_Res_Timer::global_scale_factor ();
+ this->context_->get_CCM_object()->_get_orb ()->orb_core ()->reactor ()->timer_queue()->gettimeofday (&ACE_High_Res_Timer::gettimeofday_hr);
+ this->ticker_ = new WriteTicker (*this, this->running_);
+ if (this->context_->get_CCM_object()->_get_orb ()->orb_core ()->reactor ()->schedule_timer (
+ this->ticker_,
+ 0,
+ ACE_Time_Value (5, 0),
+ ACE_Time_Value (sec, 0)) == -1)
+ {
+ ACE_ERROR ((LM_ERROR, ACE_TEXT ("Sender_exec_i::start : ")
+ ACE_TEXT ("Error scheduling timer")));
+ }
+ }
+
+ ::CORBA::ULongLong
+ Sender_exec_i::max_load (void)
+ {
+ return this->max_load_;
+ }
+
+ void
+ Sender_exec_i::max_load (::CORBA::ULongLong max_load)
+ {
+ if ((max_load <= 100) || (max_load > 90000))
+ {
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT ("ERROR: max_load must be greater as '100' "
+ "and smaller as '90001'\n")));
+ throw ::CORBA::BAD_PARAM ();
+ }
+ else
+ {
+ this->max_load_ = max_load;
+ }
+ }
+
+ ::CORBA::ULong
+ Sender_exec_i::start_load (void)
+ {
+ return this->start_load_;
+ }
+
+ void
+ Sender_exec_i::start_load (::CORBA::ULong start_load)
+ {
+ if (start_load < 100)
+ {
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT ("ERROR: start_load must be greater as '100' "
+ "and smaller as max_load\n")));
+ throw ::CORBA::BAD_PARAM ();
+ }
+ else
+ {
+ this->start_load_ = start_load;
+ }
+ }
+
+ ::CORBA::ULong
+ Sender_exec_i::incr_load (void)
+ {
+ return this->incr_load_;
+ }
+
+ void
+ Sender_exec_i::incr_load (::CORBA::ULong incr_load)
+ {
+ if (incr_load < 100)
+ {
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT ("ERROR:incr_load must be greater as '99'\n")));
+ throw ::CORBA::BAD_PARAM ();
+ }
+ else
+ {
+ this->incr_load_ = incr_load;
+ }
+ }
+
+ ::CORBA::UShort
+ Sender_exec_i::recover_time (void)
+ {
+ return this->recover_time_;
+ }
+
+ void
+ Sender_exec_i::recover_time (::CORBA::UShort recover_time)
+ {
+ this->recover_time_ = recover_time;
+ }
+
+ ::CORBA::UShort
+ Sender_exec_i::number_of_sub (void)
+ {
+ return this->number_of_subscribers_;
+ }
+
+ void
+ Sender_exec_i::number_of_sub (::CORBA::UShort number_of_sub)
+ {
+ if (number_of_sub > 0)
+ {
+ this->number_of_subscribers_ = number_of_sub;
+ }
+ else
+ {
+ this->number_of_subscribers_ = 1;
+ }
+ }
+
+ ::CORBA::UShort
+ Sender_exec_i::datalen (void)
+ {
+ return this->datalen_;
+ }
+
+ void
+ Sender_exec_i::datalen (::CORBA::UShort datalen)
+ {
+ this->overhead_size_ = sizeof(CORBA::ULong) + sizeof(CORBA::ULongLong);
+ if (datalen <= this->overhead_size_ ||
+ datalen > MAX_DATA_SEQUENCE_LENGTH)
+ {
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT ("ERROR: datalen has to be bigger"
+ " as %u and smaller as %u\n"),
+ this->overhead_size_,
+ MAX_DATA_SEQUENCE_LENGTH));
+ throw ::CORBA::BAD_PARAM ();
+ }
+ this->datalen_ = datalen;
+ }
+
+ void
+ Sender_exec_i::set_session_context (::Components::SessionContext_ptr ctx)
+ {
+ this->context_ =
+ ::Throughput::CCM_Sender_Context::_narrow (ctx);
+
+ if ( ::CORBA::is_nil (this->context_.in ()))
+ {
+ throw ::CORBA::INTERNAL ();
+ }
+ }
+
+ void
+ Sender_exec_i::configuration_complete (void)
+ {
+ try
+ {
+ this->writer_ = this->context_->get_connection_info_write_data ();
+ this->cmd_writer_ =
+ this->context_->get_connection_command_write_data ();
+ if(CORBA::is_nil (this->writer_.in ()))
+ {
+ throw ::CORBA::INTERNAL ();
+ }
+ }
+ catch (const CORBA::Exception& ex)
+ {
+ ex._tao_print_exception ("Exception caught:");
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT ("ERROR: Sender_exec_i::configuration_complete: "
+ "Exception caught\n")));
+ }
+ catch (...)
+ {
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT ("ERROR: Sender_exec_i::configuration_complete:"
+ " Unknown exception caught\n")));
+ }
+ }
+
+ void
+ Sender_exec_i::ccm_activate (void)
+ {
+ // Make instances of Topic
+ this->test_topic_.key = 1;
+ this->test_topic_.seq_num = 0;
+ this->test_topic_.data.length (this->datalen_ - this->overhead_size_);
+ }
+
+ void
+ Sender_exec_i::stop (void)
+ {
+ if (this->ticker_)
+ {
+ this->context_->get_CCM_object()->_get_orb ()->orb_core ()->reactor ()->cancel_timer (this->ticker_);
+ delete this->ticker_;
+ this->ticker_ = 0;
+ }
+ }
+
+ void
+ Sender_exec_i::ccm_passivate (void)
+ {
+ this->stop();
+ }
+
+ void
+ Sender_exec_i::ccm_remove (void)
+ {
+ if (this->number_of_msg_ == 0)
+ {
+ ACE_ERROR ((LM_ERROR, "ERROR SENDER: No messages "
+ "sent during test.\n"));
+ }
+ else
+ {
+ ACE_DEBUG ((LM_DEBUG, "SUMMARY SENDER number of messages sent: %u\n",
+ this->number_of_msg_));
+ }
+ }
+
+ extern "C" SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr
+ create_Throughput_Sender_Impl (void)
+ {
+ ::Components::EnterpriseComponent_ptr retval =
+ ::Components::EnterpriseComponent::_nil ();
+
+ ACE_NEW_NORETURN (
+ retval,
+ Sender_exec_i);
+
+ return retval;
+ }
+}
diff --git a/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Sender/Throughput_Sender_exec.h b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Sender/Throughput_Sender_exec.h
new file mode 100644
index 00000000000..c22b75926d3
--- /dev/null
+++ b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Sender/Throughput_Sender_exec.h
@@ -0,0 +1,141 @@
+// -*- C++ -*-
+// $Id$
+
+#ifndef CIAO_SENDER_EXEC_H_
+#define CIAO_SENDER_EXEC_H_
+
+#include "Throughput_SenderEC.h"
+
+#include /**/ "Sender_exec_export.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "tao/LocalObject.h"
+
+namespace CIAO_Throughput_Sender_Impl
+{
+ class Sender_exec_i;
+
+ typedef ACE_Atomic_Op <TAO_SYNCH_MUTEX, CORBA::Boolean > Atomic_Boolean;
+
+ class SENDER_EXEC_Export ConnectorStatusListener_exec_i
+ : public virtual ::CCM_DDS::CCM_ConnectorStatusListener,
+ public virtual ::CORBA::LocalObject
+ {
+ public:
+ ConnectorStatusListener_exec_i (int, Sender_exec_i &callback_);
+ virtual ~ConnectorStatusListener_exec_i (void);
+
+ virtual
+ void on_inconsistent_topic( ::DDS::Topic_ptr the_topic,
+ const DDS::InconsistentTopicStatus & status);
+ virtual
+ void on_requested_incompatible_qos( ::DDS::DataReader_ptr the_reader,
+ const DDS::RequestedIncompatibleQosStatus & status);
+ virtual
+ void on_sample_rejected( ::DDS::DataReader_ptr the_reader,
+ const DDS::SampleRejectedStatus & status);
+ virtual
+ void on_offered_deadline_missed( ::DDS::DataWriter_ptr the_writer,
+ const DDS::OfferedDeadlineMissedStatus & status);
+ virtual
+ void on_offered_incompatible_qos( ::DDS::DataWriter_ptr the_writer,
+ const DDS::OfferedIncompatibleQosStatus & status);
+ virtual
+ void on_unexpected_status( ::DDS::Entity_ptr the_entity,
+ ::DDS::StatusKind status_kind);
+
+ private:
+ Sender_exec_i &callback_;
+ int number_of_subscribers_;
+ Atomic_Boolean started_;
+ };
+ //============================================================
+ // WriteTicker
+ //============================================================
+ class WriteTicker :
+ public ACE_Event_Handler
+ {
+ public:
+ WriteTicker (Sender_exec_i &callback,
+ Atomic_Boolean &running);
+ int handle_timeout (const ACE_Time_Value &, const void *);
+ private:
+ /// Maintains a handle that actually process the event
+ Sender_exec_i &callback_;
+ Atomic_Boolean running_;
+ };
+
+ class Sender_exec_i
+ : public virtual Sender_Exec,
+ public virtual ::CORBA::LocalObject
+ {
+ public:
+ Sender_exec_i (void);
+ virtual ~Sender_exec_i (void);
+
+ virtual ::CCM_DDS::CCM_ConnectorStatusListener_ptr
+ get_connector_status (void);
+
+ virtual ::CORBA::ULong start_load (void);
+ virtual void start_load (::CORBA::ULong start_load);
+
+ virtual ::CORBA::ULongLong max_load (void);
+ virtual void max_load (::CORBA::ULongLong max_load);
+
+ virtual ::CORBA::ULong incr_load (void);
+ virtual void incr_load (::CORBA::ULong incr_load);
+
+ virtual ::CORBA::UShort recover_time (void);
+ virtual void recover_time (::CORBA::UShort recover_time);
+
+ virtual ::CORBA::UShort number_of_sub (void);
+ virtual void number_of_sub (::CORBA::UShort number_of_sub);
+
+ virtual ::CORBA::UShort datalen (void);
+ virtual void datalen (::CORBA::UShort datalen);
+
+ 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);
+
+ void start(void);
+ void stop (void);
+ void write(void);
+
+ private:
+ ::Throughput::CCM_Sender_Context_var context_;
+ ::Throughput::ThroughputTestConn::Writer_var writer_;
+ ::Throughput::ThroughputCommandConn::Writer_var cmd_writer_;
+
+ WriteTicker *ticker_;
+
+ CORBA::ULongLong max_load_;
+ CORBA::ULong start_load_;
+ CORBA::ULong incr_load_;
+ CORBA::UShort datalen_;
+ CORBA::UShort recover_time_;
+ ACE_UINT64 duration_run_;
+ CORBA::UShort number_of_subscribers_;
+ CORBA::ULongLong number_of_msg_;
+ CORBA::ULongLong load_;
+ CORBA::UShort overhead_size_;
+
+ ThroughputTest test_topic_;
+ ThroughputCommand test_topic_cmd_;
+ CORBA::Octet* buffer_;
+
+ Atomic_Boolean running_;
+};
+
+ extern "C" SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr
+ create_Throughput_Sender_Impl (void);
+}
+
+#endif /* ifndef */
diff --git a/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/descriptors/Plan_pub.cdp b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/descriptors/Plan_pub.cdp
new file mode 100644
index 00000000000..7854bb3b806
--- /dev/null
+++ b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/descriptors/Plan_pub.cdp
@@ -0,0 +1,414 @@
+<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>Throughput_Depl_2</label>
+ <UUID>Throughput_Depl_2</UUID>
+
+
+ <implementation xmi:id="Throughput_ConnectorComponentImplementation">
+ <name>Throughput_ConnectorComponentImplementation</name>
+ <source/>
+ <artifact xmi:idref="Throughput_Connector_ExecArtifact" />
+ <artifact xmi:idref="Throughput_Connector_SvntArtifact" />
+ <execParameter>
+ <!-- entrypoint as exec parameter (see 10.6.1) -->
+ <name>component factory</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>create_Throughput_Throughput_Connector_Impl</string>
+ </value>
+ </value>
+ </execParameter>
+ <execParameter>
+ <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>create_Throughput_Throughput_Connector_Servant</string>
+ </value>
+ </value>
+ </execParameter>
+ <execParameter>
+ <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>Throughput_Connector_svnt</string>
+ </value>
+ </value>
+ </execParameter>
+ <execParameter>
+ <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>Throughput_Connector_exec</string>
+ </value>
+ </value>
+ </execParameter>
+ </implementation>
+
+ <implementation xmi:id="Throughput_Sec_ConnectorComponentImplementation">
+ <name>Throughput_ConnectorComponentImplementation</name>
+ <source/>
+ <artifact xmi:idref="Throughput_Sec_Connector_ExecArtifact" />
+ <artifact xmi:idref="Throughput_Sec_Connector_SvntArtifact" />
+ <execParameter>
+ <!-- entrypoint as exec parameter (see 10.6.1) -->
+ <name>component factory</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>create_Throughput_Throughput_Sec_Connector_Impl</string>
+ </value>
+ </value>
+ </execParameter>
+ <execParameter>
+ <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>create_Throughput_Throughput_Sec_Connector_Servant</string>
+ </value>
+ </value>
+ </execParameter>
+ <execParameter>
+ <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>Throughput_Sec_Connector_svnt</string>
+ </value>
+ </value>
+ </execParameter>
+ <execParameter>
+ <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>Throughput_Sec_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>
+ <!-- entrypoint as exec parameter (see 10.6.1) -->
+ <name>component factory</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>create_Throughput_Sender_Impl</string>
+ </value>
+ </value>
+ </execParameter>
+ <execParameter>
+ <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>create_Throughput_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="Throughput_ConnectorComponentInstance">
+ <name>Throughput_ConnectorComponent</name>
+ <node>SenderNode</node>
+ <!-- hostname -->
+ <source/>
+ <implementation xmi:idref="Throughput_ConnectorComponentImplementation" />
+ <configProperty>
+ <name>topic_name</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>TP_Test</string>
+ </value>
+ </value>
+ </configProperty>
+ <configProperty>
+ <name>qos_profile</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>HelloTest_Library#ThroughputQoS</string>
+ </value>
+ </value>
+ </configProperty>
+ </instance>
+
+ <instance xmi:id="Throughput_Sec_ConnectorComponentInstance">
+ <name>Throughput_Sec_ConnectorComponent</name>
+ <node>SenderNode</node>
+ <!-- hostname -->
+ <source/>
+ <implementation xmi:idref="Throughput_Sec_ConnectorComponentImplementation" />
+ <configProperty>
+ <name>topic_name</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>TP_Command</string>
+ </value>
+ </value>
+ </configProperty>
+ <configProperty>
+ <name>qos_profile</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>HelloTest_Library#ThroughputCmdQoS</string>
+ </value>
+ </value>
+ </configProperty>
+ </instance>
+
+ <instance xmi:id="SenderComponentInstance">
+ <name>SenderComponent</name>
+ <node>SenderNode</node>
+ <!-- hostname -->
+ <source/>
+ <implementation xmi:idref="SenderComponentImplementation" />
+ <configProperty>
+ <name>start_load</name>
+ <value>
+ <type>
+ <kind>tk_ulong</kind>
+ </type>
+ <value>
+ <ulong>1000</ulong>
+ </value>
+ </value>
+ </configProperty>
+ <configProperty>
+ <name>max_load</name>
+ <value>
+ <type>
+ <kind>tk_ulonglong</kind>
+ </type>
+ <value>
+ <ulonglong>9000</ulonglong>
+ </value>
+ </value>
+ </configProperty>
+ <configProperty>
+ <name>incr_load</name>
+ <value>
+ <type>
+ <kind>tk_ulong</kind>
+ </type>
+ <value>
+ <ulong>1000</ulong>
+ </value>
+ </value>
+ </configProperty>
+ <configProperty>
+ <!-- Specifies how long (in ms) to sleep after writing a specific-->
+ <!-- effort specified by start_load and incr_load -->
+ <name>recover_time</name>
+ <value>
+ <type>
+ <kind>tk_ushort</kind>
+ </type>
+ <value>
+ <ushort>1</ushort>
+ </value>
+ </value>
+ </configProperty>
+ <configProperty>
+ <name>number_of_sub</name>
+ <value>
+ <type>
+ <kind>tk_ushort</kind>
+ </type>
+ <value>
+ <ushort>1</ushort>
+ </value>
+ </value>
+ </configProperty>
+ <configProperty>
+ <name>datalen</name>
+ <value>
+ <type>
+ <kind>tk_ushort</kind>
+ </type>
+ <value>
+ <ushort>1024</ushort>
+ </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="Throughput_ConnectorComponentInstance" />
+ </internalEndpoint>
+ </connection>
+ <connection>
+ <name>writer_sec_connection</name>
+ <deployRequirement>
+ <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
+ <resourceType>Local_Interface</resourceType>
+ </deployRequirement>
+ <internalEndpoint>
+ <portName>command_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="Throughput_Sec_ConnectorComponentInstance" />
+ </internalEndpoint>
+ </connection>
+
+ <connection>
+ <name>connector_status_sender</name>
+ <deployRequirement>
+ <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
+ <resourceType>Local_Interface</resourceType>
+ </deployRequirement>
+ <internalEndpoint>
+ <portName>connector_status</portName>
+ <provider>true</provider>
+ <kind>Facet</kind>
+ <instance xmi:idref="SenderComponentInstance" />
+ </internalEndpoint>
+ <internalEndpoint>
+ <portName>error_listener</portName>
+ <provider>false</provider>
+ <kind>SimplexReceptacle</kind>
+ <instance xmi:idref="Throughput_ConnectorComponentInstance" />
+ </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="Throughput_Connector_ExecArtifact">
+ <name>Throughput_Connector_exec</name>
+ <source/>
+ <node/>
+ <location>DDS_Throughput_Connector_exec</location>
+ </artifact>
+ <artifact xmi:id="Throughput_Connector_SvntArtifact">
+ <name>Throughput_Connector_svnt</name>
+ <source/>
+ <node/>
+ <location>DDS_Throughput_Connector_svnt</location>
+ </artifact>
+ <artifact xmi:id="Throughput_Connector_StubArtifact">
+ <name>Throughput_Connector_stub</name>
+ <source/>
+ <node/>
+ <location>DDS_Throughput_Connector_stub</location>
+ </artifact>
+ <artifact xmi:id="Throughput_Sec_Connector_ExecArtifact">
+ <name>Throughput_Sec_Connector_exec</name>
+ <source/>
+ <node/>
+ <location>DDS_Throughput_Sec_Connector_exec</location>
+ </artifact>
+ <artifact xmi:id="Throughput_Sec_Connector_SvntArtifact">
+ <name>Throughput_Sec_Connector_svnt</name>
+ <source/>
+ <node/>
+ <location>DDS_Throughput_Sec_Connector_svnt</location>
+ </artifact>
+ <artifact xmi:id="Throughput_Sec_Connector_StubArtifact">
+ <name>Throughput_Sec_Connector_stub</name>
+ <source/>
+ <node/>
+ <location>DDS_Throughput_Sec_Connector_stub</location>
+ </artifact>
+ </Deployment:DeploymentPlan>
diff --git a/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/descriptors/Plan_sub.cdp b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/descriptors/Plan_sub.cdp
new file mode 100644
index 00000000000..fb6809035f0
--- /dev/null
+++ b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/descriptors/Plan_sub.cdp
@@ -0,0 +1,368 @@
+<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>Throughput_Depl_1</label>
+ <UUID>Throughput_Depl_1</UUID>
+
+ <implementation xmi:id="ReceiverComponentImplementation">
+ <name>ReceiverComponentImplementation</name>
+ <source/>
+ <artifact xmi:idref="Receiver_ExecArtifact" />
+ <artifact xmi:idref="Receiver_SvntArtifact" />
+ <execParameter>
+ <!-- entrypoint as exec parameter (see 10.6.1) -->
+ <name>component factory</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>create_Throughput_Receiver_Impl</string>
+ </value>
+ </value>
+ </execParameter>
+ <execParameter>
+ <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>create_Throughput_Receiver_Servant</string>
+ </value>
+ </value>
+ </execParameter>
+ <execParameter>
+ <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>Receiver_svnt</string>
+ </value>
+ </value>
+ </execParameter>
+ <execParameter>
+ <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>Receiver_exec</string>
+ </value>
+ </value>
+ </execParameter>
+ </implementation>
+
+ <implementation xmi:id="Throughput_ConnectorComponentImplementation">
+ <name>Throughput_ConnectorComponentImplementation</name>
+ <source/>
+ <artifact xmi:idref="Throughput_Connector_ExecArtifact" />
+ <artifact xmi:idref="Throughput_Connector_SvntArtifact" />
+ <execParameter>
+ <!-- entrypoint as exec parameter (see 10.6.1) -->
+ <name>component factory</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>create_Throughput_Throughput_Connector_Impl</string>
+ </value>
+ </value>
+ </execParameter>
+ <execParameter>
+ <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>create_Throughput_Throughput_Connector_Servant</string>
+ </value>
+ </value>
+ </execParameter>
+ <execParameter>
+ <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>Throughput_Connector_svnt</string>
+ </value>
+ </value>
+ </execParameter>
+ <execParameter>
+ <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>Throughput_Connector_exec</string>
+ </value>
+ </value>
+ </execParameter>
+ </implementation>
+
+ <implementation xmi:id="Throughput_Sec_ConnectorComponentImplementation">
+ <name>Throughput_Sec_ConnectorComponentImplementation</name>
+ <source/>
+ <artifact xmi:idref="Throughput_Sec_Connector_ExecArtifact" />
+ <artifact xmi:idref="Throughput_Sec_Connector_SvntArtifact" />
+ <execParameter>
+ <!-- entrypoint as exec parameter (see 10.6.1) -->
+ <name>component factory</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>create_Throughput_Throughput_Sec_Connector_Impl</string>
+ </value>
+ </value>
+ </execParameter>
+ <execParameter>
+ <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>create_Throughput_Throughput_Sec_Connector_Servant</string>
+ </value>
+ </value>
+ </execParameter>
+ <execParameter>
+ <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>Throughput_Sec_Connector_svnt</string>
+ </value>
+ </value>
+ </execParameter>
+ <execParameter>
+ <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>Throughput_Sec_Connector_exec</string>
+ </value>
+ </value>
+ </execParameter>
+ </implementation>
+
+
+ <instance xmi:id="ReceiverComponentInstance">
+ <name>ReceiverComponent</name>
+ <node>ReceiverNode</node>
+ <!-- hostname -->
+ <source/>
+ <implementation xmi:idref="ReceiverComponentImplementation" />
+ </instance>
+ <instance xmi:id="Throughput_ConnectorComponentInstance2">
+ <name>Throughput_ConnectorComponent2</name>
+ <node>ReceiverNode</node>
+ <!-- hostname -->
+ <source/>
+ <implementation xmi:idref="Throughput_ConnectorComponentImplementation" />
+ <configProperty>
+ <name>topic_name</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>TP_Test</string>
+ </value>
+ </value>
+ </configProperty>
+ <configProperty>
+ <name>qos_profile</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>HelloTest_Library#ThroughputQoS</string>
+ </value>
+ </value>
+ </configProperty>
+ </instance>
+
+ <instance xmi:id="Throughput_Sec_ConnectorComponentInstance2">
+ <name>Throughput_Sec_ConnectorComponent2</name>
+ <node>ReceiverNode</node>
+ <!-- hostname -->
+ <source/>
+ <implementation xmi:idref="Throughput_Sec_ConnectorComponentImplementation" />
+ <configProperty>
+ <name>topic_name</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>TP_Command</string>
+ </value>
+ </value>
+ </configProperty>
+ <configProperty>
+ <name>qos_profile</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>HelloTest_Library#ThroughputCmdQoS</string>
+ </value>
+ </value>
+ </configProperty>
+ </instance>
+
+ <connection>
+ <name>info_listen_data</name>
+ <deployRequirement>
+ <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
+ <resourceType>Local_Interface</resourceType>
+ </deployRequirement>
+ <internalEndpoint>
+ <portName>info_listen_data_listener</portName>
+ <provider>true</provider>
+ <kind>Facet</kind>
+ <instance xmi:idref="ReceiverComponentInstance" />
+ </internalEndpoint>
+ <internalEndpoint>
+ <portName>push_consumer_data_listener</portName>
+ <provider>false</provider>
+ <kind>SimplexReceptacle</kind>
+ <instance xmi:idref="Throughput_ConnectorComponentInstance2" />
+ </internalEndpoint>
+ </connection>
+
+ <connection>
+ <name>info_listen_data_control</name>
+ <deployRequirement>
+ <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
+ <resourceType>Local_Interface</resourceType>
+ </deployRequirement>
+ <internalEndpoint>
+ <portName>info_listen_data_control</portName>
+ <provider>false</provider>
+ <kind>SimplexReceptacle</kind>
+ <instance xmi:idref="ReceiverComponentInstance" />
+ </internalEndpoint>
+ <internalEndpoint>
+ <portName>push_consumer_data_control</portName>
+ <provider>true</provider>
+ <kind>Facet</kind>
+ <instance xmi:idref="Throughput_ConnectorComponentInstance2" />
+ </internalEndpoint>
+ </connection>
+
+ <connection>
+ <name>command_listen_data</name>
+ <deployRequirement>
+ <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
+ <resourceType>Local_Interface</resourceType>
+ </deployRequirement>
+ <internalEndpoint>
+ <portName>command_listen_data_listener</portName>
+ <provider>true</provider>
+ <kind>Facet</kind>
+ <instance xmi:idref="ReceiverComponentInstance" />
+ </internalEndpoint>
+ <internalEndpoint>
+ <portName>push_consumer_data_listener</portName>
+ <provider>false</provider>
+ <kind>SimplexReceptacle</kind>
+ <instance xmi:idref="Throughput_Sec_ConnectorComponentInstance2" />
+ </internalEndpoint>
+ </connection>
+
+ <connection>
+ <name>command_listen_data_control</name>
+ <deployRequirement>
+ <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
+ <resourceType>Local_Interface</resourceType>
+ </deployRequirement>
+ <internalEndpoint>
+ <portName>command_listen_data_control</portName>
+ <provider>false</provider>
+ <kind>SimplexReceptacle</kind>
+ <instance xmi:idref="ReceiverComponentInstance" />
+ </internalEndpoint>
+ <internalEndpoint>
+ <portName>push_consumer_data_control</portName>
+ <provider>true</provider>
+ <kind>Facet</kind>
+ <instance xmi:idref="Throughput_Sec_ConnectorComponentInstance2" />
+ </internalEndpoint>
+ </connection>
+
+ <artifact xmi:id="Throughput_Connector_ExecArtifact">
+ <name>Throughput_Connector_exec</name>
+ <source/>
+ <node/>
+ <location>DDS_Throughput_Connector_exec</location>
+ </artifact>
+ <artifact xmi:id="Throughput_Connector_SvntArtifact">
+ <name>Throughput_Connector_svnt</name>
+ <source/>
+ <node/>
+ <location>DDS_Throughput_Connector_svnt</location>
+ </artifact>
+ <artifact xmi:id="Throughput_Connector_StubArtifact">
+ <name>Throughput_Connector_stub</name>
+ <source/>
+ <node/>
+ <location>DDS_Throughput_Connector_stub</location>
+ </artifact>
+
+ <artifact xmi:id="Throughput_Sec_Connector_ExecArtifact">
+ <name>Throughput_Sec_Connector_exec</name>
+ <source/>
+ <node/>
+ <location>DDS_Throughput_Sec_Connector_exec</location>
+ </artifact>
+ <artifact xmi:id="Throughput_Sec_Connector_SvntArtifact">
+ <name>Throughput_Sec_Connector_svnt</name>
+ <source/>
+ <node/>
+ <location>DDS_Throughput_Sec_Connector_svnt</location>
+ </artifact>
+ <artifact xmi:id="Throughput_Sec_Connector_StubArtifact">
+ <name>Throughput_Sec_Connector_stub</name>
+ <source/>
+ <node/>
+ <location>DDS_Throughput_Sec_Connector_stub</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/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/descriptors/USER_QOS_PROFILES.xml b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/descriptors/USER_QOS_PROFILES.xml
new file mode 100644
index 00000000000..bcb9f6abbe0
--- /dev/null
+++ b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/descriptors/USER_QOS_PROFILES.xml
@@ -0,0 +1,136 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+Description
+XML QoS Profile
+
+The QoS configuration of the DDS entities in the generated example is
+loaded from this file.
+
+This file is used only when it is in the current working directory
+or when the enviroment variable
+NDDS_QOS_PROFILES is defined and points to this file.
+
+For more information about XML QoS Profiles see Chapter 15 in the
+RTI Data Distribution Service user manual.
+-->
+<dds xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="c:/ndds/ndds.4.4d/scripts/../resource/rtiddsgen/../qos_profiles_4.4d/schema/rti_dds_qos_profiles.xsd" version="4.4d">
+ <!-- QoS Library containing the QoS profile used in the generated example.
+
+ A QoS library is a named set of QoS profiles.
+ -->
+ <qos_library name="HelloTest_Library">
+ <!-- QoS profile used to configure reliable communication between the DataWriter
+ and DataReader created in the example code.
+
+ A QoS profile groups a set of related QoS.
+ -->
+ <qos_profile name="ThroughputQoS" is_default_qos="true">
+ <!-- QoS used to configure the data writer created in the example code -->
+ <participant_qos>
+ <receiver_pool>
+ <buffer_size>92160</buffer_size>
+ </receiver_pool>
+ <property>
+ <value>
+ <element>
+ <name>dds.transport.builtin.mask</name>
+ <value>DDS_TRANSPORTBUILTIN_UDPv4</value>
+ <name>dds.transport.UDPv4.builtin.parent.message_size_max</name>
+ <value>UDP_SIZE_MAX</value>
+ <name>dds.transport.UDPv4.builtin.recv_socket_buffer_size</name>
+ <value>UDP_SOCKET_RECV_BUFFER_SIZE</value>
+ <name>dds.transport.UDPv4.builtin.send_socket_buffer_size</name>
+ <value>UDP_SOCKET_SEND_BUFFER_SIZE</value>
+ </element>
+ </value>
+ </property>
+ </participant_qos>
+ <datawriter_qos>
+ <reliability>
+ <kind>BEST_EFFORT_RELIABILITY_QOS</kind>
+ </reliability>
+ <durability>
+ <kind>TRANSIENT_DURABILITY_QOS</kind>
+ </durability>
+ <resource_limits>
+ <max_instances>1</max_instances>
+ <initial_instances>1</initial_instances>
+ <max_samples>LENGTH_UNLIMITED</max_samples>
+ <initial_samples>100</initial_samples>
+ <max_samples_per_instance>LENGTH_UNLIMITED</max_samples_per_instance>
+ </resource_limits>
+ </datawriter_qos>
+ <!-- QoS used to configure the data reader created in the example code -->
+ <datareader_qos>
+ <reliability>
+ <kind>BEST_EFFORT_RELIABILITY_QOS</kind>
+ </reliability>
+ <resource_limits>
+ <initial_samples>100</initial_samples>
+ <initial_instances>1</initial_instances>
+ <max_samples>LENGTH_UNLIMITED</max_samples>
+ <max_instances>1</max_instances>
+ <max_samples_per_instance>LENGTH_UNLIMITED</max_samples_per_instance>
+ </resource_limits>
+ <durability>
+ <kind>TRANSIENT_DURABILITY_QOS</kind>
+ </durability>
+ </datareader_qos>
+ </qos_profile>
+
+ <qos_profile name="ThroughputCmdQoS" is_default_qos="true">
+ <!-- QoS used to configure the data writer created in the example code -->
+ <participant_qos>
+ <receiver_pool>
+ <buffer_size>92160</buffer_size>
+ </receiver_pool>
+ <property>
+ <value>
+ <element>
+ <name>dds.transport.builtin.mask</name>
+ <value>DDS_TRANSPORTBUILTIN_UDPv4</value>
+ <name>dds.transport.UDPv4.builtin.parent.message_size_max</name>
+ <value>UDP_SIZE_MAX</value>
+ <name>dds.transport.UDPv4.builtin.recv_socket_buffer_size</name>
+ <value>UDP_SOCKET_RECV_BUFFER_SIZE</value>
+ <name>dds.transport.UDPv4.builtin.send_socket_buffer_size</name>
+ <value>UDP_SOCKET_SEND_BUFFER_SIZE</value>
+ </element>
+ </value>
+ </property>
+ </participant_qos>
+ <datawriter_qos>
+ <reliability>
+ <kind>RELIABLE_RELIABILITY_QOS</kind>
+ </reliability>
+ <durability>
+ <kind>TRANSIENT_DURABILITY_QOS</kind>
+ </durability>
+ <resource_limits>
+ <max_instances>1</max_instances>
+ <initial_instances>1</initial_instances>
+ <max_samples>LENGTH_UNLIMITED</max_samples>
+ <initial_samples>100</initial_samples>
+ <max_samples_per_instance>LENGTH_UNLIMITED</max_samples_per_instance>
+ </resource_limits>
+ </datawriter_qos>
+ <!-- QoS used to configure the data reader created in the example code -->
+ <datareader_qos>
+ <reliability>
+ <kind>RELIABLE_RELIABILITY_QOS</kind>
+ </reliability>
+ <resource_limits>
+ <initial_samples>100</initial_samples>
+ <initial_instances>1</initial_instances>
+ <max_samples>LENGTH_UNLIMITED</max_samples>
+ <max_instances>1</max_instances>
+ <max_samples_per_instance>LENGTH_UNLIMITED</max_samples_per_instance>
+ </resource_limits>
+ <durability>
+ <kind>TRANSIENT_DURABILITY_QOS</kind>
+ </durability>
+ </datareader_qos>
+ </qos_profile>
+ </qos_library>
+</dds> \ No newline at end of file
diff --git a/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/descriptors/run_test.pl b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/descriptors/run_test.pl
new file mode 100644
index 00000000000..3eee53ba374
--- /dev/null
+++ b/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/descriptors/run_test.pl
@@ -0,0 +1,252 @@
+eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
+ & eval 'exec perl -S $0 $argv:q'
+ if 0;
+
+# $Id$
+# -*- perl -*-
+
+use lib "$ENV{'ACE_ROOT'}/bin";
+use PerlACE::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 = 2;
+@ports = ( 60001, 60002 );
+@iorbases = ( "NodeApp1.ior", "NodeApp2.ior" );
+@iorfiles = 0;
+@nodenames = ( "ReceiverNode","SenderNode" );
+
+# ior files other than daemon
+# ior files other than daemon
+$ior_nsbase = "ns.ior";
+$ior_nsfile = 0;
+$ior_embase = "EM.ior";
+$ior_emfile = 0;
+
+# Processes
+$E = 0;
+$E2 = 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_sub.cdp";
+$cdp_file_two = "Plan_pub.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 deamon $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 ('ciao_componentserver');
+}
+
+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 = "$CIAO_ROOT/bin/ciao_componentserver";
+
+ $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/Naming_Service", "-m 1 -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 -m 1 -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 (5 * $tg_executor->ProcessStartWaitInterval ());
+
+if ($pl_status != 0) {
+ print STDERR "ERROR: dance_plan_launcher returned $pl_status\n";
+ kill_open_processes ();
+ exit 1;
+}
+
+print "Start dance_plan_launcher.exe with -x $cdp_file_two -k file://$ior_emfile\n";
+$E2 = $tg_executor->CreateProcess ("$DANCE_ROOT/bin/dance_plan_launcher",
+ "-x $cdp_file_two -k file://$ior_emfile");
+$E2->SpawnWaitKill (5 * $tg_executor->ProcessStartWaitInterval ());
+
+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 180 seconds to allow task to complete\n";
+sleep (180);
+
+# 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 -s\n";
+
+$E = $tg_executor->CreateProcess ("$DANCE_ROOT/bin/dance_plan_launcher",
+ "-k file://$ior_emfile -x $cdp_file -s");
+$E->SpawnWaitKill (5 * $tg_executor->ProcessStopWaitInterval ());
+
+print "Invoking executor - stop the application -\n";
+print "by running dance_plan_launcher.exe with -k file://$ior_emfile -x $cdp_file_two -s\n";
+
+$E2 = $tg_executor->CreateProcess ("$DANCE_ROOT/bin/dance_plan_launcher",
+ "-k file://$ior_emfile -x $cdp_file_two -s");
+$E2->SpawnWaitKill (5 * $tg_executor->ProcessStopWaitInterval ());
+
+print "Executor returned.\n";
+print "Shutting down rest of the processes.\n";
+
+delete_ior_files ();
+kill_open_processes ();
+
+exit $status;