summaryrefslogtreecommitdiff
path: root/CIAO/connectors/dds4ccm/tests/QueryCondition
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/connectors/dds4ccm/tests/QueryCondition')
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/Base/Base.idl14
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/Base/Base.mpc13
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/DDS_Receiver/DDS_Receiver.mpc19
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/DDS_Receiver/QC_Receiver.cpp418
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/DDS_Sender/DDS_Sender.mpc18
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/DDS_Sender/QC_Sender.cpp172
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/README40
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/descriptors/USER_QOS_PROFILES.xml69
-rwxr-xr-xCIAO/connectors/dds4ccm/tests/QueryCondition/DDS/descriptors/run_test.pl31
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/Base/Base_ObO.idl14
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/Base/Base_ObO.mpc13
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/DDS_Receiver/DDS_ObO_Receiver.mpc19
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/DDS_Receiver/ObO_Receiver.cpp432
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/DDS_Sender/DDS_ObO_Sender.mpc18
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/DDS_Sender/ObO_Sender.cpp172
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/README40
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/descriptors/USER_QOS_PROFILES.xml69
-rwxr-xr-xCIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/descriptors/run_test.pl31
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Base/Different_Test_Base.idl24
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Base/Different_Test_Base.mpc24
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Connector/Different_Test_Connector.idl25
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Connector/Different_Test_Connector.mpc146
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/Different/README20
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Receiver/Different_Test_Receiver.idl20
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Receiver/Different_Test_Receiver.mpc146
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Receiver/Different_Test_Receiver_exec.cpp661
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Receiver/Different_Test_Receiver_exec.h212
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Sender/Different_Test_Sender.idl21
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Sender/Different_Test_Sender.mpc145
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Sender/Different_Test_Sender_exec.cpp262
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Sender/Different_Test_Sender_exec.h162
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/Different/descriptors/Plan.cdp458
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/Different/descriptors/QueryCondition_Library.xml38
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/Different/descriptors/USER_QOS_PROFILES.xml67
-rwxr-xr-xCIAO/connectors/dds4ccm/tests/QueryCondition/Different/descriptors/run_test.pl243
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Base/QCLE_Test_Base.idl24
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Base/QCLE_Test_Base.mpc24
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Connector/QCLE_Test_Connector.idl25
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Connector/QCLE_Test_Connector.mpc142
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Receiver/QCLE_Test_Receiver.idl22
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Receiver/QCLE_Test_Receiver.mpc146
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Receiver/QCLE_Test_Receiver_exec.cpp364
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Receiver/QCLE_Test_Receiver_exec.h191
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Sender/QCLE_Test_Sender.idl22
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Sender/QCLE_Test_Sender.mpc145
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Sender/QCLE_Test_Sender_exec.cpp323
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Sender/QCLE_Test_Sender_exec.h179
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/descriptors/Plan.cdp413
-rwxr-xr-xCIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/descriptors/run_test.pl243
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Base/ReadGet_Starter.idl23
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Base/ReadGet_Starter.mpc109
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Base/ReadGet_Test_Base.idl24
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Base/ReadGet_Test_Base.mpc24
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Connector/ReadGet_Test_Connector.idl25
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Connector/ReadGet_Test_Connector.mpc146
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Receiver/ReadGet_Test_Receiver.idl24
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Receiver/ReadGet_Test_Receiver.mpc155
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Receiver/ReadGet_Test_Receiver_exec.cpp823
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Receiver/ReadGet_Test_Receiver_exec.h253
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Sender/ReadGet_Test_Sender.idl25
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Sender/ReadGet_Test_Sender.mpc153
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Sender/ReadGet_Test_Sender_exec.cpp345
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Sender/ReadGet_Test_Sender_exec.h195
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/descriptors/Plan.cdp516
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/descriptors/QueryCondition_Library.xml38
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/descriptors/USER_QOS_PROFILES.xml67
-rwxr-xr-xCIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/descriptors/run_test.pl243
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Base/QCLS_Test_Base.idl24
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Base/QCLS_Test_Base.mpc24
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Connector/QCLS_Test_Connector.idl25
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Connector/QCLS_Test_Connector.mpc142
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Receiver/QCLS_Test_Receiver.idl22
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Receiver/QCLS_Test_Receiver.mpc146
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Receiver/QCLS_Test_Receiver_exec.cpp371
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Receiver/QCLS_Test_Receiver_exec.h198
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Sender/QCLS_Test_Sender.idl22
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Sender/QCLS_Test_Sender.mpc145
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Sender/QCLS_Test_Sender_exec.cpp311
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Sender/QCLS_Test_Sender_exec.h186
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/descriptors/Plan.cdp413
-rwxr-xr-xCIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/descriptors/run_test.pl243
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Base/QCTL_Test_Base.idl24
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Base/QCTL_Test_Base.mpc24
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Connector/QCTL_Test_Connector.idl25
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Connector/QCTL_Test_Connector.mpc142
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Receiver/QCTL_Test_Receiver.idl23
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Receiver/QCTL_Test_Receiver.mpc146
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Receiver/QCTL_Test_Receiver_exec.cpp593
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Receiver/QCTL_Test_Receiver_exec.h265
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Sender/QCTL_Test_Sender.idl23
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Sender/QCTL_Test_Sender.mpc145
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Sender/QCTL_Test_Sender_exec.cpp306
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Sender/QCTL_Test_Sender_exec.h177
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/descriptors/Plan.cdp492
-rwxr-xr-xCIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/descriptors/run_test.pl243
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Base/QCTQ_Starter.idl23
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Base/QCTQ_Starter.mpc109
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Base/QCTQ_Test_Base.idl24
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Base/QCTQ_Test_Base.mpc24
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Connector/QCTQ_Test_Connector.idl25
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Connector/QCTQ_Test_Connector.mpc146
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/README39
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Receiver/QCTQ_Test_Receiver.idl24
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Receiver/QCTQ_Test_Receiver.mpc155
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Receiver/QCTQ_Test_Receiver_exec.cpp806
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Receiver/QCTQ_Test_Receiver_exec.h221
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Sender/QCTQ_Test_Sender.idl25
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Sender/QCTQ_Test_Sender.mpc153
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Sender/QCTQ_Test_Sender_exec.cpp349
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Sender/QCTQ_Test_Sender_exec.h196
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/descriptors/Plan.cdp520
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/descriptors/QueryCondition_Library.xml38
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/descriptors/USER_QOS_PROFILES.xml67
-rwxr-xr-xCIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/descriptors/run_test.pl243
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Base/QCTQM_Starter.idl23
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Base/QCTQM_Starter.mpc109
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Base/QCTQM_Test_Base.idl24
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Base/QCTQM_Test_Base.mpc24
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Connector/QCTQM_Test_Connector.idl25
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Connector/QCTQM_Test_Connector.mpc146
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/README39
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Receiver/QCTQM_Test_Receiver.idl24
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Receiver/QCTQM_Test_Receiver.mpc155
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Receiver/QCTQM_Test_Receiver_exec.cpp831
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Receiver/QCTQM_Test_Receiver_exec.h221
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Sender/QCTQM_Test_Sender.idl25
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Sender/QCTQM_Test_Sender.mpc153
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Sender/QCTQM_Test_Sender_exec.cpp348
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Sender/QCTQM_Test_Sender_exec.h196
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/descriptors/Plan.cdp520
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/descriptors/QueryCondition_Library.xml37
-rw-r--r--CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/descriptors/USER_QOS_PROFILES.xml67
-rwxr-xr-xCIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/descriptors/run_test.pl243
133 files changed, 0 insertions, 21024 deletions
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/Base/Base.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/Base/Base.idl
deleted file mode 100644
index de514308408..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/Base/Base.idl
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * @file Base.idl
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef BASE_IDL_
-#define BASE_IDL_
-
-struct QueryConditionTest {
- string symbol; //@key
- long iteration;
-};
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/Base/Base.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/Base/Base.mpc
deleted file mode 100644
index 351304a0a57..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/Base/Base.mpc
+++ /dev/null
@@ -1,13 +0,0 @@
-project(QC_Base_stub) : ndds_ts_defaults, nddslib {
- sharedname = QC_Base_stub
- dynamicflags += NDDS_USER_DLL_EXPORT
- libout = ../descriptors
-
- NDDSTypeSupport_Files {
- Base.idl
- }
-
- Source_Files {
- }
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/DDS_Receiver/DDS_Receiver.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/DDS_Receiver/DDS_Receiver.mpc
deleted file mode 100644
index 7a9b9e20b27..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/DDS_Receiver/DDS_Receiver.mpc
+++ /dev/null
@@ -1,19 +0,0 @@
-project(*qc_receiver) : aceexe, nddslib, ndds_ts_defaults {
- exename = DDS_receiver
- after += QC_Base_stub
-
- includes += ../Base
-
- libs += QC_Base_stub
- libpaths += ../descriptors
-
- exeout += ../descriptors
-
- Source_Files {
- QC_Receiver.cpp
- }
-
- Header_Files {
- }
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/DDS_Receiver/QC_Receiver.cpp b/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/DDS_Receiver/QC_Receiver.cpp
deleted file mode 100644
index 72620a0ce0f..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/DDS_Receiver/QC_Receiver.cpp
+++ /dev/null
@@ -1,418 +0,0 @@
-#include <stdio.h>
-#include <iostream>
-
-using namespace std;
-
-#include "Base.h"
-#include "BaseSupport.h"
-
-#include "ace/OS_main.h"
-#include "ace/OS_NS_stdlib.h"
-
-#define LIBRARY_NAME "QueryCondition_Library"
-#define PROFILE_NAME "QueryConditionProfile"
-
-bool shutdown_flag = false;
-long num_samples = 0;
-long received_samples = 0;
-long expected_samples_run1 = 1 * 2; //only sample 2 should be received of 2 keys
-long expected_samples_run2 = 1 * 2; //only sample 5 should be received o 2 keys
-long expected_samples_run3 = (9 - 2) * 2; //all samples 1-9 except sample 2 and 5 of both keys.
-
-DDSWaitSet* ws_ = new DDSWaitSet ();
-DDS_Duration_t dur_ = {9, 0};
-
-void sleep_now (int sleeptime)
-{
-#ifdef RTI_WIN32
- Sleep(sleeptime * 1000);
-#else
- sleep(sleeptime);
-#endif
-}
-
-void check_iter (const QueryConditionTest & sample,
- const DDS_SampleInfo & readinfo,
- const int & run)
-{
- bool error = false;
- if (run == 1)
- {
- //only sample 2 should be received
- error = sample.iteration <= 1 && sample.iteration >= 3;
- }
- else if (run == 2)
- {
- //only samples 8 should be received
- error = sample.iteration <= 4 && sample.iteration >= 6;
- }
- else if (run == 3)
- {
- //all other unread samples.
- error = sample.iteration == 2;
- error |= sample.iteration ==5;
- }
-
- error
- ?
- cerr << "ERROR Received: key <"
- << sample.symbol
- << "> - iteration <"
- << sample.iteration
- << ">"
- << endl
- :
- cout << "Received: key <"
- << sample.symbol
- << "> - iteration <"
- << sample.iteration
- << "> - instance status <"
- << readinfo.instance_state
- << "> - view status <"
- << readinfo.view_state
- << "> - sample status <"
- << readinfo.sample_state
- << ">"
- << endl;
-}
-
-
-void read (DDSDataReader * dr,
- DDSQueryCondition * qc,
- DDSReadCondition * rc,
- const int & run)
-{
- QueryConditionTestDataReader* typed_dr = QueryConditionTestDataReader::narrow (dr);
-
- DDSConditionSeq cond;
-
- if (ws_->wait (cond, dur_) == DDS_RETCODE_TIMEOUT)
- {
- cerr << "ERROR: wait timed out" << endl;
- }
- else
- {
- //wait a moment to allow DDS to write all samples we need here...
- QueryConditionTestSeq data;
- DDS_SampleInfoSeq info_seq;
- sleep_now (3);
- for (DDS_Long i = 0; i < cond.length (); ++i)
- {
- if (run == 3)
- {
- sleep_now (10);
- if (cond[i] == rc)
- {
- received_samples = 0;
-
- // ************** read all in one
- cout << "CHECKING..... SAMPLES with read_w_condition with readcondition:" << endl;
- typed_dr->read_w_condition (data,
- info_seq,
- DDS_LENGTH_UNLIMITED,
- rc);
- for (DDS_Long y = 0; y < data.length (); ++y)
- {
- if (info_seq[y].valid_data)
- {
- check_iter (data[y], info_seq[y], run);
- received_samples ++;
- }
- }
- typed_dr->return_loan (data, info_seq);
- if (received_samples != expected_samples_run3)
- {
- cerr << "ERROR: run 3 unexpected number of samples received : "
- << "expected < "
- << expected_samples_run3 << "> - received <"
- << received_samples << ">" << endl;
- }
- // end read all in one
-
- }
- else
- {
- cerr << "ERROR: Should be woken up on ReadCondition" << endl;
- }
- }
- else // run 1 and 2
- {
- if (cond[i] == qc)
- {
- received_samples = 0;
- cout << "CHECKING..... SAMPLES with read_w_condition with querycondition:" << endl;
- typed_dr->read_w_condition (data,
- info_seq,
- DDS_LENGTH_UNLIMITED,
- qc);
- for (DDS_Long i = 0; i < data.length (); ++i)
- {
- if (info_seq[i].valid_data)
- {
- check_iter (data[i], info_seq[i], run);
- received_samples ++;
- }
- }
- typed_dr->return_loan (data, info_seq);
-
- if (run == 1)
- {
- if (received_samples != expected_samples_run1)
- {
- cerr << "ERROR: run 1 unexpected number of samples received : "
- << "expected < "
- << expected_samples_run1 << "> - received <"
- << received_samples << ">" << endl;
- }
- }
- else
- {
- if (received_samples != expected_samples_run2)
- {
- cerr << "ERROR: run 2 unexpected number of samples received : "
- << "expected < "
- << expected_samples_run2 << "> - received <"
- << received_samples << ">" << endl;
- }
- }
- }
- else
- {
- cerr << "ERROR: Should be woken up on QueryCondition" << endl;
- }
- }
- }
- if (run != 3)
- {
- }
-
- }
-
- //check if all samples are still available.
- if (run == 3)
- {
- QueryConditionTestSeq data;
- DDS_SampleInfoSeq info_seq;
- sleep_now (3);
- typed_dr->read (data,
- info_seq,
- DDS_LENGTH_UNLIMITED);
- cout << "\nCHECKING..... TOTAL NUMBER OF SAMPLES IN DDS with a read : <"
- << data.length ()
- << ">"
- << endl;
- for (DDS_Long i = 0; i < data.length (); ++i)
- {
- cout << "Received: key <"
- << data[i].symbol
- << "> - iteration <"
- << data[i].iteration
- << "> - instance status <"
- << info_seq[i].instance_state
- << "> - view status <"
- << info_seq[i].view_state
- << "> - sample status <"
- << info_seq[i].sample_state
- << ">"
- << endl;
- }
- if (data.length () != 18)
- {
- cerr << "ERROR: unexpected number of samples received : "
- << "expected <18> - received <"
- << data.length () << ">" << endl;
- }
- typed_dr->return_loan (data, info_seq);
- }
- sleep_now (5);
-}
-
-int clean_up (DDSDomainParticipant * participant)
-{
- DDS_ReturnCode_t retcode = DDS_RETCODE_OK;
- int main_result = 0;
-
- cout << "RECEIVER: Exiting ..." << endl;
- if (participant) {
- retcode = participant->delete_contained_entities();
- if (retcode != DDS_RETCODE_OK) {
- main_result = 1;
- }
- retcode = DDSDomainParticipantFactory::get_instance()->
- delete_participant(participant);
- if (retcode != DDS_RETCODE_OK) {
- main_result = 1;
- }
- }
- delete ws_;
- DDSDomainParticipantFactory::finalize_instance ();
- return main_result;
-}
-
-int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
-{
- DDSTopic* topic = 0;
- DDSDataReader* data_reader = 0;
- DDSSubscriber* sub = 0;
- DDS_ReturnCode_t retcode = DDS_RETCODE_OK;
- QueryConditionTestDataReader* typed_dr = 0;
- DDSQueryCondition* qc = 0;
- DDSReadCondition* rc = 0;
- int run = 0;
-
-// NDDS_Config_LogVerbosity n_verbosity =
-// static_cast <NDDS_Config_LogVerbosity> (3);
-// NDDSConfigLogger::get_instance()->set_verbosity (n_verbosity);
-
- const ACE_TCHAR * env_domain_id = 0;
- if (argc > 1)
- {
- env_domain_id = argv[1];
- }
- if (!env_domain_id)
- {
- printf ("Environment variable DEFAULT_DOMAIN_ID not set "
- "=> setting it to 2\n");
- env_domain_id = "2";
- }
- else
- printf ("Domain ID set to %s\n", env_domain_id);
-
- const int domain_id = ACE_OS::atoi (env_domain_id);
- /* Create the domain participant on domain ID 0 */
- DDSDomainParticipant *participant = DDSDomainParticipantFactory::get_instance()->
- create_participant_with_profile (domain_id, /* Domain ID */
- LIBRARY_NAME, /* QoS */
- PROFILE_NAME,
- 0, /* Listener */
- DDS_STATUS_MASK_NONE);
- if (!participant) {
- cerr << "RECEIVER: Error creating participant" << endl;
- return 1;
- }
-
- retcode = QueryConditionTestTypeSupport::register_type(
- participant, QueryConditionTestTypeSupport::get_type_name ());
-
- if (retcode != DDS_RETCODE_OK) {
- cerr << "RECEIVER: Error registering type" << endl;
- return clean_up (participant);
- }
-
- topic = participant->create_topic_with_profile (
- "QC", /* Topic name*/
- QueryConditionTestTypeSupport::get_type_name (), /* Type name */
- LIBRARY_NAME, /* QoS */
- PROFILE_NAME,
- 0, /* Listener */
- DDS_STATUS_MASK_NONE);
- if (!topic) {
- cerr << "RECEIVER: Error creating topic" << endl;
- return clean_up (participant);
- }
-
- sub = participant->create_subscriber_with_profile (LIBRARY_NAME,
- PROFILE_NAME,
- 0,
- 0);
- if (!sub) {
- cerr << "RECEIVER: Error creating subscriber" << endl;
- return clean_up (participant);
- }
-
- data_reader = sub->create_datareader_with_profile (
- topic,
- LIBRARY_NAME, /* QoS */
- PROFILE_NAME,
- 0, /* Listener */
- DDS_STATUS_MASK_NONE);
- if (!data_reader) {
- cerr << "RECEIVER: Error creating data reader" << endl;
- return clean_up (participant);
- }
-
- typed_dr = QueryConditionTestDataReader::narrow (data_reader);
-
- if (!typed_dr) {
- cerr << "RECEIVER: Unable to cast to a type specific data reader" << endl;
- return clean_up (participant);
- }
-
- const char* PARAMS_RUN_1[] = {"1", "3"};
- DDS_StringSeq parameters_run_1;
- parameters_run_1.from_array (PARAMS_RUN_1, 2);
-
- qc = typed_dr->create_querycondition (
- DDS_NOT_READ_SAMPLE_STATE,
- DDS_NEW_VIEW_STATE | DDS_NOT_NEW_VIEW_STATE,
- DDS_ALIVE_INSTANCE_STATE | DDS_NOT_ALIVE_INSTANCE_STATE,
- "iteration > %0 AND iteration < %1",
- parameters_run_1);
- if (!qc) {
- cerr << "RECEIVER: Error creating query condition" << endl;
- return clean_up (participant);
- }
- else
- cout << "RECEIVER: query condition created : iteration > 1 AND iteration < 3" << endl;
-
- ws_->attach_condition (qc);
-
- cout << "RECEIVER: Expecting two samples (key_1 and key_2) with iteration 3." <<endl;
-
- read (data_reader, qc, rc, ++run);
-
- //Second run: change the parameters
- if (qc)
- {
- const char* PARAMS_RUN_2[] = {"4", "6"};
- DDS_StringSeq parameters_run_2;
- parameters_run_2.from_array (PARAMS_RUN_2, 2);
- if (qc->set_query_parameters (parameters_run_2) != DDS_RETCODE_OK)
- {
- cerr << "RECEIVER: Unable the set the new query parameters!!!" << endl;
- return clean_up (participant);
- }
- }
- cout << "RECEIVER: query condition changed : iteration > 4 AND iteration < 6" << endl;
-
- cout << "RECEIVER: Expecting two samples (key_1 and key_2) with iterations 5" <<endl;
-
- read (data_reader, qc, rc, ++run);
- // Third run: Detach querycondition and create read condition instead.
- // Remove the qc from the waitset and create a readcondition and start receiving
- // samples
- if (ws_->detach_condition (qc) != DDS_RETCODE_OK)
- {
- cerr << "RECEIVER: Error detaching query condition" << endl;
- return clean_up (participant);
- }
- cout << "RECEIVER: query condition deleted" << endl;
- cout << "RECEIVER: create read condition : DDS_NOT_READ_SAMPLE_STATE,"
- << "DDS_NEW_VIEW_STATE | DDS_NOT_NEW_VIEW_STATE,"
- << "DDS_ALIVE_INSTANCE_STATE | DDS_NOT_ALIVE_INSTANCE_STATE" << endl;
-
- // Delete the query condition from the data reader
- typed_dr->delete_readcondition (qc);
- sleep_now(10);
-
- rc = typed_dr->create_readcondition (
- DDS_NOT_READ_SAMPLE_STATE,
- DDS_NEW_VIEW_STATE | DDS_NOT_NEW_VIEW_STATE,
- DDS_ALIVE_INSTANCE_STATE | DDS_NOT_ALIVE_INSTANCE_STATE);
- if (!rc) {
- cerr << "RECEIVER: Error creating read condition" << endl;
- return clean_up (participant);
- }
-
- if (ws_->attach_condition (rc) != DDS_RETCODE_OK)
- {
- cerr << "RECEIVER: Error attaching read condition" << endl;
- return clean_up (participant);
- }
-
- cout << "RECEIVER: Expecting ALL UNREAD samples (key_1 and key_2) with iterations between 1 and 9, except 2 and 5" <<endl;
-
- read (data_reader, qc, rc, ++run);
-
- return clean_up (participant);
-}
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/DDS_Sender/DDS_Sender.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/DDS_Sender/DDS_Sender.mpc
deleted file mode 100644
index a58d846f7cd..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/DDS_Sender/DDS_Sender.mpc
+++ /dev/null
@@ -1,18 +0,0 @@
-project(*qc_sender) : aceexe, nddslib, ndds_ts_defaults {
- exename = DDS_Sender
- after += QC_Base_stub
-
- includes += ../Base
-
- exeout += ../descriptors
- libs += QC_Base_stub
- libpaths += ../descriptors
-
- Source_Files {
- QC_Sender.cpp
- }
-
- Header_Files {
- }
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/DDS_Sender/QC_Sender.cpp b/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/DDS_Sender/QC_Sender.cpp
deleted file mode 100644
index 3c018dc45f2..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/DDS_Sender/QC_Sender.cpp
+++ /dev/null
@@ -1,172 +0,0 @@
-#include <stdio.h>
-#include <iostream>
-
-using namespace std;
-
-#include "Base.h"
-#include "BaseSupport.h"
-
-#include "ace/OS_main.h"
-#include "ace/OS_NS_stdlib.h"
-
-#define LIBRARY_NAME "QueryCondition_Library"
-#define PROFILE_NAME "QueryConditionProfile"
-
-const int number_of_iterations_ = 3;
-
-const int number_of_keys_ = 2;
-
-int last_iteration_ = 0;
-int run_ = 0;
-
-void sleep_now (int sleeptime)
-{
-#ifdef RTI_WIN32
- Sleep(sleeptime * 1000);
-#else
- sleep(sleeptime);
-#endif
-}
-
-void write (DDSDataWriter * writer)
-{
- QueryConditionTestDataWriter* typed_writer = 0;
- typed_writer = QueryConditionTestDataWriter::narrow (writer);
- for (int iter_key = 1; iter_key < number_of_keys_ + 1; ++iter_key)
- {
- char key[7];
- QueryConditionTest new_key;
- sprintf (key, "KEY_%d", iter_key);
- new_key.symbol = key;
- for (int iter = 1;
- iter < number_of_iterations_ + 1;
- ++iter)
- {
- new_key.iteration = iter + last_iteration_;
- DDS_ReturnCode_t retcode = typed_writer->write (new_key, DDS_HANDLE_NIL);
- if (retcode != DDS_RETCODE_OK)
- {
- cout << "ERROR writing symbol <"
- << key
- << "> - iteration <"
- << new_key.iteration
- << ">"
- << endl;
- }
- }
- cout << "Sender: Written samples with symbol <"
- << key
- << "> and iteration <"
- << last_iteration_ + 1
- << "> through <"
- << new_key.iteration
- << ">"
- << endl;
- }
- ++run_;
- last_iteration_ = number_of_iterations_ * run_;
-}
-
-int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
-{
- DDS_ReturnCode_t retcode;
- DDSTopic* topic = 0;
- DDSDataWriter* data_writer = 0;
- DDSPublisher* publisher = 0;
- int main_result = 1; /* error by default */
-
-// NDDS_Config_LogVerbosity n_verbosity =
-// static_cast <NDDS_Config_LogVerbosity> (3);
-// NDDSConfigLogger::get_instance()->set_verbosity (n_verbosity);
- const ACE_TCHAR * env_domain_id = 0;
- if (argc > 1)
- {
- env_domain_id = argv[1];
- }
- if (!env_domain_id)
- {
- printf ("Environment variable DEFAULT_DOMAIN_ID not set "
- "=> setting it to 2\n");
- env_domain_id = "2";
- }
- else
- printf ("Domain ID set to %s\n", env_domain_id);
-
- const int domain_id = ACE_OS::atoi (env_domain_id);
-
- DDSDomainParticipant *participant = DDSDomainParticipantFactory::get_instance()->
- create_participant_with_profile (domain_id, /* Domain ID */
- LIBRARY_NAME, /* QoS */
- PROFILE_NAME,
- 0, /* Listener */
- DDS_STATUS_MASK_NONE);
- if (!participant) {
- cerr << "SENDER: Error creating participant" << endl;
- goto clean_exit;
- }
-
- retcode = QueryConditionTestTypeSupport::register_type(
- participant, QueryConditionTestTypeSupport::get_type_name ());
-
- if (retcode != DDS_RETCODE_OK) {
- cerr << "SENDER: Error registering type" << endl;
- goto clean_exit;
- }
-
- topic = participant->create_topic_with_profile (
- "QC", /* Topic name*/
- QueryConditionTestTypeSupport::get_type_name (), /* Type name */
- LIBRARY_NAME, /* QoS */
- PROFILE_NAME,
- 0, /* Listener */
- DDS_STATUS_MASK_NONE);
- if (!topic) {
- cerr << "SENDER: Error creating topic" << endl;
- goto clean_exit;
- }
-
- publisher = participant->create_publisher_with_profile (LIBRARY_NAME,
- PROFILE_NAME,
- 0,
- 0);
- if (!publisher) {
- cerr << "SENDER: Error creating publisher" << endl;
- goto clean_exit;
- }
-
- data_writer = publisher->create_datawriter_with_profile (
- topic,
- LIBRARY_NAME, /* QoS */
- PROFILE_NAME,
- 0, /* Listener */
- DDS_STATUS_MASK_NONE);
- if (!data_writer) {
- cerr << "SENDER: Error creating data writer" << endl;
- goto clean_exit;
- }
-
- write (data_writer);
- sleep_now (8);
- write (data_writer);
- sleep_now (8);
- write (data_writer);
- sleep_now (30);
-
- main_result = 0;
-clean_exit:
- cout << "SENDER: Exiting ..." << endl;
- if (participant) {
- retcode = participant->delete_contained_entities();
- if (retcode != DDS_RETCODE_OK) {
- main_result = 1;
- }
- retcode = DDSDomainParticipantFactory::get_instance()->
- delete_participant(participant);
- if (retcode != DDS_RETCODE_OK) {
- main_result = 1;
- }
- }
- DDSDomainParticipantFactory::finalize_instance ();
- return main_result;
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/README b/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/README
deleted file mode 100644
index b276b44a76f..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/README
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-This is a plain DDS test, which test the use of 2 different query conditions, followed through a
-readcondition.
-
-Use a sample with {
- string symbol; //@key
- long iteration;
-}
-
-The sender writes samples with symbol <KEY_1> and <KEY_2> and iteration <1> through <3>
-The receiver uses a querycondition with 'iteration > 1 AND iteration < 3' and use a
-read_w_condition with this querycondition.
-
-What we expect is that the receiver receives two samples (key_1 and key_2) with iteration 2.
-
-Next, the sender writes samples with symbol <KEY_1> and <KEY_2> and iteration <4> through <6>
-The receiver changes the querycondition with 'iteration > 4 AND iteration < 6' and use a
-read_w_condition with this querycondition.
-
-What we expect is that the receiver receives two samples (key_1 and key_2) with iteration 5.
-
-Next, the sender writes samples with symbol <KEY_1> and <KEY_2> and iteration <7> through <9>
-The receiver deletes the query condition and creates the next readcondition:
- "DDS_NOT_READ_SAMPLE_STATE,DDS_NEW_VIEW_STATE | DDS_NOT_NEW_VIEW_STATE,DDS_ALIVE_INSTANCE_STATE | DDS_NOT_ALIVE_INSTANCE_STATE"
-and uses a read_w_condition with this readcondition and number of samples = DDS_LENGTH_UNLIMITED.
-
-(This test (QueryCondition/DDS) differs with the test QueryCondition/DDS_OneByOne that the DDS_OneByOne test does use a loop with
-read_w_condition with this readcondition and number of samples = 1.)
-
-
-What we expect is that the receiver receives samples (key_1 and key_2) with iterations between 1 and 9, except 2 and 5 which
-are already received before.
-
-Next we check the number of samples in DDS with a plain read.
-What we expect is that the receiver receives all 18 samples.
-
-
-
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/descriptors/USER_QOS_PROFILES.xml b/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/descriptors/USER_QOS_PROFILES.xml
deleted file mode 100644
index d061e075aae..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/descriptors/USER_QOS_PROFILES.xml
+++ /dev/null
@@ -1,69 +0,0 @@
-<?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 environment 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.5c/scripts/../resource/rtiddsgen/../qos_profiles_4.5c/schema/rti_dds_qos_profiles.xsd"
- version="4.5c">
- <!-- QoS Library containing the QoS profile used in the generated example.
-
- A QoS library is a named set of QoS profiles.
- -->
- <qos_library name="QueryCondition_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="QueryConditionProfile" is_default_qos="false">
- <!-- QoS used to configure the data writer created in the example code -->
- <datawriter_qos>
- <reliability>
- <kind>RELIABLE_RELIABILITY_QOS</kind>
- <max_blocking_time>
- <sec>10</sec>
- <nanosec>0</nanosec>
- </max_blocking_time>
- </reliability>
- <durability>
- <kind>TRANSIENT_DURABILITY_QOS</kind>
- </durability>
- <history>
- <kind>KEEP_ALL_HISTORY_QOS</kind>
- </history>
- <protocol>
- <rtps_reliable_writer>
- <max_heartbeat_retries>10</max_heartbeat_retries>
- </rtps_reliable_writer>
- </protocol>
- </datawriter_qos>
- <!-- QoS used to configure the data reader created in the example code -->
- <datareader_qos>
- <reliability>
- <kind>RELIABLE_RELIABILITY_QOS</kind>
- </reliability>
- <history>
- <kind>KEEP_ALL_HISTORY_QOS</kind>
- </history>
- <durability>
- <kind>TRANSIENT_LOCAL_DURABILITY_QOS</kind>
- </durability>
- </datareader_qos>
- </qos_profile>
- </qos_library>
-</dds>
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/descriptors/run_test.pl b/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/descriptors/run_test.pl
deleted file mode 100755
index a24f5ff02ac..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS/descriptors/run_test.pl
+++ /dev/null
@@ -1,31 +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;
-
-$tg_sender = PerlACE::TestTarget::create_target (1) || die "Create target for EM failed\n";
-$tg_receiver = PerlACE::TestTarget::create_target (1) || die "Create target for EM failed\n";
-
-$domain_id = "$ENV{'DDS4CCM_DEFAULT_DOMAIN_ID'}";
-
-print "Start receiver\n";
-$R = $tg_receiver->CreateProcess ("./DDS_receiver", "$domain_id");
-$R->Spawn();
-
-sleep (1);
-
-print "Start sender\n";
-$S = $tg_sender->CreateProcess ("./DDS_Sender", "$domain_id");
-$S->Spawn ();
-
-
-sleep (90);
-
-$R->Kill ();
-$S->Kill ();
-
-exit 0;
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/Base/Base_ObO.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/Base/Base_ObO.idl
deleted file mode 100644
index 57e69fd440c..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/Base/Base_ObO.idl
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * @file Base_ObO.idl
- * @author Marijke Hengstmengel (mhengstmengel@remedy.nl)
- */
-
-#ifndef BASE_OBO_IDL_
-#define BASE_OBO_IDL_
-
-struct QueryConditionTest {
- string symbol; //@key
- long iteration;
-};
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/Base/Base_ObO.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/Base/Base_ObO.mpc
deleted file mode 100644
index 89919baf0de..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/Base/Base_ObO.mpc
+++ /dev/null
@@ -1,13 +0,0 @@
-project(Base_obo_stub) : ndds_ts_defaults, nddslib {
- sharedname = Base_obo_stub
- dynamicflags += NDDS_USER_DLL_EXPORT
- libout = ../descriptors
-
- NDDSTypeSupport_Files {
- Base_ObO.idl
- }
-
- Source_Files {
- }
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/DDS_Receiver/DDS_ObO_Receiver.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/DDS_Receiver/DDS_ObO_Receiver.mpc
deleted file mode 100644
index e42dd1dad99..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/DDS_Receiver/DDS_ObO_Receiver.mpc
+++ /dev/null
@@ -1,19 +0,0 @@
-project(*qc_receiver) : aceexe, nddslib, ndds_ts_defaults {
- exename = DDS_ObO_receiver
- after += Base_obo_stub
-
- includes += ../Base
-
- libs += Base_obo_stub
- libpaths += ../descriptors
-
- exeout += ../descriptors
-
- Source_Files {
- ObO_Receiver.cpp
- }
-
- Header_Files {
- }
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/DDS_Receiver/ObO_Receiver.cpp b/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/DDS_Receiver/ObO_Receiver.cpp
deleted file mode 100644
index e2e21d90d6b..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/DDS_Receiver/ObO_Receiver.cpp
+++ /dev/null
@@ -1,432 +0,0 @@
-#include <stdio.h>
-#include <iostream>
-
-using namespace std;
-
-#include "ace/OS_main.h"
-#include "ace/OS_NS_stdlib.h"
-
-#include "Base_ObO.h"
-#include "Base_ObOSupport.h"
-
-#define LIBRARY_NAME "QueryCondition_Library"
-#define PROFILE_NAME "QueryConditionProfile"
-
-bool shutdown_flag = false;
-long num_samples = 0;
-long received_samples = 0;
-long expected_samples_run1 = 1 * 2; //only sample 2 should be received of 2 keys
-long expected_samples_run2 = 1 * 2; //only sample 5 should be received o 2 keys
-long expected_samples_run3 = (9 - 2) * 2; //all samples 1-9 except sample 2 and 5 of both keys.
-
-DDSWaitSet* ws_ = new DDSWaitSet ();
-DDS_Duration_t dur_ = {9, 0};
-
-void sleep_now (int sleeptime)
-{
-#ifdef RTI_WIN32
- Sleep(sleeptime * 1000);
-#else
- sleep(sleeptime);
-#endif
-}
-
-
-void check_iter (const QueryConditionTest & sample,
- const DDS_SampleInfo & readinfo,
- const int & run)
-{
- bool error = false;
- if (run == 1)
- {
- //only sample 2 should be received
- error = sample.iteration <= 1 && sample.iteration >= 3;
- }
- else if (run == 2)
- {
- //only samples 5 should be received
- error = sample.iteration <= 4 && sample.iteration >= 6;
- }
- else if (run == 3)
- {
- //all other unread samples.
- error = sample.iteration == 2;
- error |= sample.iteration ==5;
- }
-
- error
- ?
- cerr << "ERROR Received: key <"
- << sample.symbol
- << "> - iteration <"
- << sample.iteration
- << ">"
- << endl
- :
- cout << "Received: key <"
- << sample.symbol
- << "> - iteration <"
- << sample.iteration
- << "> - instance status <"
- << readinfo.instance_state
- << "> - view status <"
- << readinfo.view_state
- << "> - sample status <"
- << readinfo.sample_state
- << ">"
- << endl;
-}
-
-
-void read (DDSDataReader * dr,
- DDSQueryCondition * qc,
- DDSReadCondition * rc,
- const int & run)
-{
- QueryConditionTestDataReader* typed_dr = QueryConditionTestDataReader::narrow (dr);
-
- DDSConditionSeq cond;
-
- if (ws_->wait (cond, dur_) == DDS_RETCODE_TIMEOUT)
- {
- cerr << "ERROR: wait timed out" << endl;
- }
- else
- {
- //wait a moment to allow DDS to write all samples we need here...
- QueryConditionTestSeq data;
- DDS_SampleInfoSeq info_seq;
- sleep_now (3);
- for (DDS_Long i = 0; i < cond.length (); ++i)
- {
- if (run == 3)
- {
- sleep_now (10);
- if (cond[i] == rc)
- {
-
- // *************** read one by one : max_number of samples = 1 ************
- int loop = 0;
- cout << "CHECKING..... SAMPLES with read_w_condition with readcondition:" << endl;
-
- received_samples = 0;
-
- while (loop < 30)
- {
- DDS_ReturnCode_t retcode = typed_dr->read_w_condition (data,
- info_seq,
- 1,
- rc);
- loop ++;
- if (retcode == 0)
- {
- for (DDS_Long y = 0; y < data.length (); ++y)
- {
- if (info_seq[y].valid_data)
- {
- check_iter (data[y], info_seq[y], run);
- received_samples ++;
- }
- }
- }
- typed_dr->return_loan (data, info_seq);
-
- }
- // *************** end read one by one
- if (received_samples != expected_samples_run3)
- {
- cerr << "ERROR: RUN 3 UNEXPECTED NUMBER OF SAMPLES RECEIVED : "
- << "with read_w_condition and read condition, expected < "
- << expected_samples_run3 << "> - received <"
- << received_samples << ">" << endl;
- }
- // check readcondition
- //DDS_SampleStateMask sample = rc->get_sample_state_mask ();
- //DDS_ViewStateMask view = rc->get_view_state_mask ();
- //DDS_InstanceStateMask instance = rc->get_instance_state_mask ();
- //::printf("************sample_state %ld, view_state %ld instance_state %ld\n",
- // (long)sample, (long)view, (long)instance);
- }
- else
- {
- cerr << "ERROR: Should be woken up on ReadCondition" << endl;
- }
- }
- else // run 1 and 2
- {
- if (cond[i] == qc)
- {
- cout << "CHECKING..... SAMPLES with read_w_condition with querycondition:" << endl;
- received_samples = 0;
- typed_dr->read_w_condition (data,
- info_seq,
- DDS_LENGTH_UNLIMITED,
- qc);
-
- for (DDS_Long i = 0; i < data.length (); ++i)
- {
- if (info_seq[i].valid_data)
- {
- check_iter (data[i], info_seq[i], run);
- received_samples ++;
- }
- }
- typed_dr->return_loan (data, info_seq);
- if (run == 1)
- {
- if (received_samples != expected_samples_run1)
- {
- cerr << "ERROR: run 1 unexpected number of samples received : "
- << "expected < "
- << expected_samples_run1 << "> - received <"
- << received_samples << ">" << endl;
- }
- }
- else
- {
- if (received_samples != expected_samples_run2)
- {
- cerr << "ERROR: run 2 unexpected number of samples received : "
- << "expected < "
- << expected_samples_run2 << "> - received <"
- << received_samples << ">" << endl;
- }
- }
- }
- else
- {
- cerr << "ERROR: Should be woken up on QueryCondition" << endl;
- }
- }
- }
- }
-
-
- //check after run 3 if all samples are still available.
- if (run == 3)
- {
- QueryConditionTestSeq data;
- DDS_SampleInfoSeq info_seq;
- sleep_now (3);
- typed_dr->read (data,
- info_seq,
- DDS_LENGTH_UNLIMITED);
- cout << "\nCHECKING..... TOTAL NUMBER OF SAMPLES IN DDS with a read : <"
- << data.length ()
- << ">"
- << endl;
- for (DDS_Long i = 0; i < data.length (); ++i)
- {
- cout << "Received: key <"
- << data[i].symbol
- << "> - iteration <"
- << data[i].iteration
- << "> - instance status <"
- << info_seq[i].instance_state
- << "> - view status <"
- << info_seq[i].view_state
- << "> - sample status <"
- << info_seq[i].sample_state
- << ">"
- << endl;
- }
- if (data.length () != 18)
- {
- cerr << "ERROR: unexpected number of samples received : "
- << "expected <18> - received <"
- << data.length () << ">" << endl;
- }
- typed_dr->return_loan (data, info_seq);
- }
- sleep_now (5);
-}
-
-int clean_up (DDSDomainParticipant * participant)
-{
- DDS_ReturnCode_t retcode = DDS_RETCODE_OK;
- int main_result = 0;
-
- cout << "RECEIVER: Exiting ..." << endl;
- if (participant) {
- retcode = participant->delete_contained_entities();
- if (retcode != DDS_RETCODE_OK) {
- main_result = 1;
- }
- retcode = DDSDomainParticipantFactory::get_instance()->
- delete_participant(participant);
- if (retcode != DDS_RETCODE_OK) {
- main_result = 1;
- }
- }
- delete ws_;
- DDSDomainParticipantFactory::finalize_instance ();
- return main_result;
-}
-
-int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
-{
- DDSTopic* topic = 0;
- DDSDataReader* data_reader = 0;
- DDSSubscriber* sub = 0;
- DDS_ReturnCode_t retcode = DDS_RETCODE_OK;
- QueryConditionTestDataReader* typed_dr = 0;
- DDSQueryCondition* qc = 0;
- DDSReadCondition* rc = 0;
- int run = 0;
-
-// NDDS_Config_LogVerbosity n_verbosity =
-// static_cast <NDDS_Config_LogVerbosity> (3);
-// NDDSConfigLogger::get_instance()->set_verbosity (n_verbosity);
-
- const ACE_TCHAR * env_domain_id = 0;
- if (argc > 1)
- {
- env_domain_id = argv[1];
- }
- if (!env_domain_id)
- {
- printf ("Environment variable DEFAULT_DOMAIN_ID not set "
- "=> setting it to 2\n");
- env_domain_id = "2";
- }
- else
- printf ("Domain ID set to %s\n", env_domain_id);
-
- const int domain_id = ACE_OS::atoi (env_domain_id);
-
- DDSDomainParticipant *participant = DDSDomainParticipantFactory::get_instance()->
- create_participant_with_profile (domain_id, /* Domain ID */
- LIBRARY_NAME, /* QoS */
- PROFILE_NAME,
- 0, /* Listener */
- DDS_STATUS_MASK_NONE);
- if (!participant) {
- cerr << "RECEIVER: Error creating participant" << endl;
- return 1;
- }
-
- retcode = QueryConditionTestTypeSupport::register_type(
- participant, QueryConditionTestTypeSupport::get_type_name ());
-
- if (retcode != DDS_RETCODE_OK) {
- cerr << "RECEIVER: Error registering type" << endl;
- return clean_up (participant);
- }
-
- topic = participant->create_topic_with_profile (
- "QC", /* Topic name*/
- QueryConditionTestTypeSupport::get_type_name (), /* Type name */
- LIBRARY_NAME, /* QoS */
- PROFILE_NAME,
- 0, /* Listener */
- DDS_STATUS_MASK_NONE);
- if (!topic) {
- cerr << "RECEIVER: Error creating topic" << endl;
- return clean_up (participant);
- }
-
- sub = participant->create_subscriber_with_profile (LIBRARY_NAME,
- PROFILE_NAME,
- 0,
- 0);
- if (!sub) {
- cerr << "RECEIVER: Error creating subscriber" << endl;
- return clean_up (participant);
- }
-
- data_reader = sub->create_datareader_with_profile (
- topic,
- LIBRARY_NAME, /* QoS */
- PROFILE_NAME,
- 0, /* Listener */
- DDS_STATUS_MASK_NONE);
- if (!data_reader) {
- cerr << "RECEIVER: Error creating data reader" << endl;
- return clean_up (participant);
- }
-
- typed_dr = QueryConditionTestDataReader::narrow (data_reader);
-
- if (!typed_dr) {
- cerr << "RECEIVER: Unable to cast to a type specific data reader" << endl;
- return clean_up (participant);
- }
-
- const char* PARAMS_RUN_1[] = {"1", "3"};
- DDS_StringSeq parameters_run_1;
- parameters_run_1.from_array (PARAMS_RUN_1, 2);
-
- qc = typed_dr->create_querycondition (
- DDS_NOT_READ_SAMPLE_STATE,
- DDS_NEW_VIEW_STATE | DDS_NOT_NEW_VIEW_STATE,
- DDS_ALIVE_INSTANCE_STATE | DDS_NOT_ALIVE_INSTANCE_STATE,
- "iteration > %0 AND iteration < %1",
- parameters_run_1);
- if (!qc) {
- cerr << "RECEIVER: Error creating query condition" << endl;
- return clean_up (participant);
- }
- else
- cout << "RECEIVER: query condition created : iteration > 1 AND iteration < 3" << endl;
-
- ws_->attach_condition (qc);
-
- cout << "RECEIVER: Expecting two samples (key_1 and key_2) with iteration 2." <<endl;
-
- read (data_reader, qc, rc, ++run);
-
- //Second run: change the parameters
- if (qc)
- {
- const char* PARAMS_RUN_2[] = {"4", "6"};
- DDS_StringSeq parameters_run_2;
- parameters_run_2.from_array (PARAMS_RUN_2, 2);
- if (qc->set_query_parameters (parameters_run_2) != DDS_RETCODE_OK)
- {
- cerr << "RECEIVER: Unable the set the new query parameters!!!" << endl;
- return clean_up (participant);
- }
- }
- cout << "RECEIVER: query condition changed : iteration > 4 AND iteration < 6" << endl;
-
- cout << "RECEIVER: Expecting two samples (key_1 and key_2) with iterations 5" <<endl;
-
- read (data_reader, qc, rc, ++run);
- // Third run: Detach querycondition and create read condition instead.
- // Remove the qc from the waitset and create a readcondition and start receiving
- // samples
- if (ws_->detach_condition (qc) != DDS_RETCODE_OK)
- {
- cerr << "RECEIVER: Error detaching query condition" << endl;
- return clean_up (participant);
- }
- // Delete the query condition from the data reader
- typed_dr->delete_readcondition (qc);
- cout << "RECEIVER: query condition deleted" << endl;
- cout << "RECEIVER: create read condition : DDS_NOT_READ_SAMPLE_STATE,"
- << "DDS_NEW_VIEW_STATE | DDS_NOT_NEW_VIEW_STATE,"
- << "DDS_ALIVE_INSTANCE_STATE | DDS_NOT_ALIVE_INSTANCE_STATE" << endl;
-
- sleep_now(10);
-
- rc = typed_dr->create_readcondition (
- DDS_NOT_READ_SAMPLE_STATE,
- DDS_NEW_VIEW_STATE | DDS_NOT_NEW_VIEW_STATE,
- DDS_ALIVE_INSTANCE_STATE | DDS_NOT_ALIVE_INSTANCE_STATE);
- if (!rc) {
- cerr << "RECEIVER: Error creating read condition" << endl;
- return clean_up (participant);
- }
-
- if (ws_->attach_condition (rc) != DDS_RETCODE_OK)
- {
- cerr << "RECEIVER: Error attaching read condition" << endl;
- return clean_up (participant);
- }
-
- cout << "RECEIVER: Expecting ALL UNREAD samples (key_1 and key_2) with iterations between 1 and 9, except 2 and 5" <<endl;
-
- read (data_reader, qc, rc, ++run);
-
- return clean_up (participant);
-}
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/DDS_Sender/DDS_ObO_Sender.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/DDS_Sender/DDS_ObO_Sender.mpc
deleted file mode 100644
index 1f88cb930a2..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/DDS_Sender/DDS_ObO_Sender.mpc
+++ /dev/null
@@ -1,18 +0,0 @@
-project(*qc_sender) : aceexe, nddslib, ndds_ts_defaults {
- exename = DDS_ObO_Sender
- after += Base_obo_stub
-
- includes += ../Base
-
- exeout += ../descriptors
- libs += Base_obo_stub
- libpaths += ../descriptors
-
- Source_Files {
- ObO_Sender.cpp
- }
-
- Header_Files {
- }
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/DDS_Sender/ObO_Sender.cpp b/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/DDS_Sender/ObO_Sender.cpp
deleted file mode 100644
index b4fd5eae5e3..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/DDS_Sender/ObO_Sender.cpp
+++ /dev/null
@@ -1,172 +0,0 @@
-#include <stdio.h>
-#include <iostream>
-
-using namespace std;
-
-#include "ace/OS_main.h"
-#include "ace/OS_NS_stdlib.h"
-
-#include "Base_ObO.h"
-#include "Base_ObOSupport.h"
-
-#define LIBRARY_NAME "QueryCondition_Library"
-#define PROFILE_NAME "QueryConditionProfile"
-
-const int number_of_iterations_ = 3;
-
-const int number_of_keys_ = 2;
-
-int last_iteration_ = 0;
-int run_ = 0;
-
-void sleep_now (int sleeptime)
-{
-#ifdef RTI_WIN32
- Sleep(sleeptime * 1000);
-#else
- sleep(sleeptime);
-#endif
-}
-
-void write (DDSDataWriter * writer)
-{
- QueryConditionTestDataWriter* typed_writer = 0;
- typed_writer = QueryConditionTestDataWriter::narrow (writer);
- for (int iter_key = 1; iter_key < number_of_keys_ + 1; ++iter_key)
- {
- char key[7];
- QueryConditionTest new_key;
- sprintf (key, "KEY_%d", iter_key);
- new_key.symbol = key;
- for (int iter = 1;
- iter < number_of_iterations_ + 1;
- ++iter)
- {
- new_key.iteration = iter + last_iteration_;
- DDS_ReturnCode_t retcode = typed_writer->write (new_key, DDS_HANDLE_NIL);
- if (retcode != DDS_RETCODE_OK)
- {
- cout << "ERROR writing symbol <"
- << key
- << "> - iteration <"
- << new_key.iteration
- << ">"
- << endl;
- }
- }
- cout << "Sender: Written samples with symbol <"
- << key
- << "> and iteration <"
- << last_iteration_ + 1
- << "> through <"
- << new_key.iteration
- << ">"
- << endl;
- }
- ++run_;
- last_iteration_ = number_of_iterations_ * run_;
-}
-
-int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
-{
- DDS_ReturnCode_t retcode;
- DDSTopic* topic = 0;
- DDSDataWriter* data_writer = 0;
- DDSPublisher* publisher = 0;
- int main_result = 1; /* error by default */
-
-// NDDS_Config_LogVerbosity n_verbosity =
-// static_cast <NDDS_Config_LogVerbosity> (3);
-// NDDSConfigLogger::get_instance()->set_verbosity (n_verbosity);
- const ACE_TCHAR * env_domain_id = 0;
- if (argc > 1)
- {
- env_domain_id = argv[1];
- }
- if (!env_domain_id)
- {
- printf ("Environment variable DEFAULT_DOMAIN_ID not set "
- "=> setting it to 2\n");
- env_domain_id = "2";
- }
- else
- printf ("Domain ID set to %s\n", env_domain_id);
-
- const int domain_id = ACE_OS::atoi (env_domain_id);
-
- DDSDomainParticipant *participant = DDSDomainParticipantFactory::get_instance()->
- create_participant_with_profile (domain_id, /* Domain ID */
- LIBRARY_NAME, /* QoS */
- PROFILE_NAME,
- 0, /* Listener */
- DDS_STATUS_MASK_NONE);
- if (!participant) {
- cerr << "SENDER: Error creating participant" << endl;
- goto clean_exit;
- }
-
- retcode = QueryConditionTestTypeSupport::register_type(
- participant, QueryConditionTestTypeSupport::get_type_name ());
-
- if (retcode != DDS_RETCODE_OK) {
- cerr << "SENDER: Error registering type" << endl;
- goto clean_exit;
- }
-
- topic = participant->create_topic_with_profile (
- "QC", /* Topic name*/
- QueryConditionTestTypeSupport::get_type_name (), /* Type name */
- LIBRARY_NAME, /* QoS */
- PROFILE_NAME,
- 0, /* Listener */
- DDS_STATUS_MASK_NONE);
- if (!topic) {
- cerr << "SENDER: Error creating topic" << endl;
- goto clean_exit;
- }
-
- publisher = participant->create_publisher_with_profile (LIBRARY_NAME,
- PROFILE_NAME,
- 0,
- 0);
- if (!publisher) {
- cerr << "SENDER: Error creating publisher" << endl;
- goto clean_exit;
- }
-
- data_writer = publisher->create_datawriter_with_profile (
- topic,
- LIBRARY_NAME, /* QoS */
- PROFILE_NAME,
- 0, /* Listener */
- DDS_STATUS_MASK_NONE);
- if (!data_writer) {
- cerr << "SENDER: Error creating data writer" << endl;
- goto clean_exit;
- }
-
- write (data_writer);
- sleep_now (8);
- write (data_writer);
- sleep_now (8);
- write (data_writer);
- sleep_now (30);
-
- main_result = 0;
-clean_exit:
- cout << "SENDER: Exiting ..." << endl;
- if (participant) {
- retcode = participant->delete_contained_entities();
- if (retcode != DDS_RETCODE_OK) {
- main_result = 1;
- }
- retcode = DDSDomainParticipantFactory::get_instance()->
- delete_participant(participant);
- if (retcode != DDS_RETCODE_OK) {
- main_result = 1;
- }
- }
- DDSDomainParticipantFactory::finalize_instance ();
- return main_result;
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/README b/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/README
deleted file mode 100644
index ff6cdedb542..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/README
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-This is a plain DDS test, which test the use of 2 different query conditions, followed through a
-readcondition.
-
-Use a sample with {
- string symbol; //@key
- long iteration;
-}
-
-The sender writes samples with symbol <KEY_1> and <KEY_2> and iteration <1> through <3>
-The receiver uses a querycondition with 'iteration > 1 AND iteration < 3' and use a
-read_w_condition with this querycondition.
-
-What we expect is that the receiver receives two samples (key_1 and key_2) with iteration 2.
-
-Next, the sender writes samples with symbol <KEY_1> and <KEY_2> and iteration <4> through <6>
-The receiver changes the querycondition with 'iteration > 4 AND iteration < 6' and use a
-read_w_condition with this querycondition.
-
-What we expect is that the receiver receives two samples (key_1 and key_2) with iteration 5.
-
-Next, the sender writes samples with symbol <KEY_1> and <KEY_2> and iteration <7> through <9>
-The receiver deletes the query condition and creates the next readcondition:
- "DDS_NOT_READ_SAMPLE_STATE,DDS_NEW_VIEW_STATE | DDS_NOT_NEW_VIEW_STATE,DDS_ALIVE_INSTANCE_STATE | DDS_NOT_ALIVE_INSTANCE_STATE"
-and uses, in a loop, a read_w_condition with this readcondition and number of samples = 1.
-
-(This test (QueryCondition/DDS_OneByOne) differs with the test QueryCondition/DDS that the DDS test doesn't use a loop, but a
-read_w_condition with this readcondition and number of samples = DDS_LENGTH_UNLIMITED.)
-
-
-What we expect is that the receiver receives samples (key_1 and key_2) with iterations between 1 and 9, except 2 and 5 which
-are already received before.
-
-Next we check the number of samples in DDS with a plain read.
-What we expect is that the receiver receives all 18 samples.
-
-
-
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/descriptors/USER_QOS_PROFILES.xml b/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/descriptors/USER_QOS_PROFILES.xml
deleted file mode 100644
index d061e075aae..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/descriptors/USER_QOS_PROFILES.xml
+++ /dev/null
@@ -1,69 +0,0 @@
-<?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 environment 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.5c/scripts/../resource/rtiddsgen/../qos_profiles_4.5c/schema/rti_dds_qos_profiles.xsd"
- version="4.5c">
- <!-- QoS Library containing the QoS profile used in the generated example.
-
- A QoS library is a named set of QoS profiles.
- -->
- <qos_library name="QueryCondition_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="QueryConditionProfile" is_default_qos="false">
- <!-- QoS used to configure the data writer created in the example code -->
- <datawriter_qos>
- <reliability>
- <kind>RELIABLE_RELIABILITY_QOS</kind>
- <max_blocking_time>
- <sec>10</sec>
- <nanosec>0</nanosec>
- </max_blocking_time>
- </reliability>
- <durability>
- <kind>TRANSIENT_DURABILITY_QOS</kind>
- </durability>
- <history>
- <kind>KEEP_ALL_HISTORY_QOS</kind>
- </history>
- <protocol>
- <rtps_reliable_writer>
- <max_heartbeat_retries>10</max_heartbeat_retries>
- </rtps_reliable_writer>
- </protocol>
- </datawriter_qos>
- <!-- QoS used to configure the data reader created in the example code -->
- <datareader_qos>
- <reliability>
- <kind>RELIABLE_RELIABILITY_QOS</kind>
- </reliability>
- <history>
- <kind>KEEP_ALL_HISTORY_QOS</kind>
- </history>
- <durability>
- <kind>TRANSIENT_LOCAL_DURABILITY_QOS</kind>
- </durability>
- </datareader_qos>
- </qos_profile>
- </qos_library>
-</dds>
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/descriptors/run_test.pl b/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/descriptors/run_test.pl
deleted file mode 100755
index 10b65e2a7e6..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/DDS_OneByOne/descriptors/run_test.pl
+++ /dev/null
@@ -1,31 +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;
-
-$tg_sender = PerlACE::TestTarget::create_target (1) || die "Create target for EM failed\n";
-$tg_receiver = PerlACE::TestTarget::create_target (1) || die "Create target for EM failed\n";
-
-$domain_id = "$ENV{'DDS4CCM_DEFAULT_DOMAIN_ID'}";
-
-print "Start receiver\n";
-$R = $tg_receiver->CreateProcess ("./DDS_ObO_receiver", "$domain_id");
-$R->Spawn();
-
-sleep (1);
-
-print "Start sender\n";
-$S = $tg_sender->CreateProcess ("./DDS_ObO_Sender", "$domain_id");
-$S->Spawn ();
-
-
-sleep (90);
-
-$R->Kill ();
-$S->Kill ();
-
-exit 0;
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Base/Different_Test_Base.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Base/Different_Test_Base.idl
deleted file mode 100644
index fd242249ca4..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Base/Different_Test_Base.idl
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * @file Different_Test_Base.idl
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef DIFFERENT_TEST_BASE_IDL
-#define DIFFERENT_TEST_BASE_IDL
-
-#pragma ndds typesupport "Base/Different_Test_BaseSupport.h"
-#pragma opendds typesupport "Base/Different_Test_BaseTypeSupportImpl.h"
-
-#pragma DCPS_DATA_TYPE "QueryConditionTest"
-#pragma DCPS_DATA_KEY "QueryConditionTest symbol"
-
-struct QueryConditionTest {
- string symbol; //@key
- long iteration;
-};
-
-#if defined DDS4CCM_NEEDS_SEQUENCES_DEFINED
-typedef sequence<QueryConditionTest> QueryConditionTestSeq;
-#endif
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Base/Different_Test_Base.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Base/Different_Test_Base.mpc
deleted file mode 100644
index e547afe5044..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Base/Different_Test_Base.mpc
+++ /dev/null
@@ -1,24 +0,0 @@
-project(QC_Different_Test_Base_stub) : taoidldefaults, dds4ccm_ts_default {
- sharedname = QC_Different_Test_Base_stub
- dynamicflags += QUERY_CONDITION_TEST_BASE_STUB_BUILD_DLL
- libout = ../lib
-
- idlflags += -SS -Sci \
- -Wb,stub_export_macro=QUERY_CONDITION_TEST_BASE_STUB_Export \
- -Wb,stub_export_include=Different_Test_Base_stub_export.h
-
- IDL_Files {
- idlflags += -Gxhst
- Different_Test_Base.idl
- }
-
- opendds_ts_flags += --export=QUERY_CONDITION_TEST_BASE_STUB_Export
-
- DDSGenerator_Files {
- Different_Test_Base.idl
- }
-
- Source_Files {
- }
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Connector/Different_Test_Connector.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Connector/Different_Test_Connector.idl
deleted file mode 100644
index ac2292fbeff..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Connector/Different_Test_Connector.idl
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * @file Different_Test_Connector.idl
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef QUERY_CONDITION_TEST_CONNECTOR_IDL_
-#define QUERY_CONDITION_TEST_CONNECTOR_IDL_
-
-#include <Components.idl>
-#include <ccm_dds.idl>
-
-#include "Base/Different_Test_Base.idl"
-
-#pragma ciao lem "Connector/Different_Test_ConnectorE.idl"
-
-#if (CIAO_DDS4CCM_OPENDDS==1)
-# include "Base/Different_Test_BaseTypeSupport.idl"
-#endif
-
-module Different_Test
-{
- module ::CCM_DDS::Typed < ::QueryConditionTest, ::QueryConditionTestSeq> QueryConditionTestConnector;
-};
-
-#endif /* QUERY_CONDITION_TEST_CONNECTOR_IDL_ */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Connector/Different_Test_Connector.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Connector/Different_Test_Connector.mpc
deleted file mode 100644
index 9ec837bc806..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Connector/Different_Test_Connector.mpc
+++ /dev/null
@@ -1,146 +0,0 @@
-// This file is generated with "generate_component_mpc.pl -p Different_Test_Base -l .. -o ../lib -u DDS Different_Test_Connector"
-
-project(QC_Different_Test_Connector_idl_gen) : connectoridldefaults, dds4ccm {
- after += DDS4CCM_idl_gen QC_Different_Test_Base_stub
- custom_only = 1
- idlflags += -Wb,stub_export_macro=QUERY_CONDITION_TEST_CONNECTOR_STUB_Export \
- -Wb,stub_export_include=Different_Test_Connector_stub_export.h \
- -Wb,skel_export_macro=QUERY_CONDITION_TEST_CONNECTOR_SVNT_Export \
- -Wb,skel_export_include=Different_Test_Connector_svnt_export.h \
- -Wb,svnt_export_macro=QUERY_CONDITION_TEST_CONNECTOR_SVNT_Export \
- -Wb,svnt_export_include=Different_Test_Connector_svnt_export.h \
- -Wb,conn_export_macro=QUERY_CONDITION_TEST_CONNECTOR_CONN_Export \
- -Wb,conn_export_include=Different_Test_Connector_conn_export.h \
- -I ..
-
- IDL_Files {
- Different_Test_Connector.idl
- }
-}
-
-project(QC_Different_Test_Connector_lem_gen) : ciaoidldefaults, dds4ccm {
- custom_only = 1
- after += QC_Different_Test_Connector_idl_gen
- idlflags += -Wb,stub_export_macro=QUERY_CONDITION_TEST_CONNECTOR_LEM_STUB_Export \
- -Wb,stub_export_include=Different_Test_Connector_lem_stub_export.h \
- -SS -Gxhst \
- -I ..
-
- IDL_Files {
- Different_Test_ConnectorE.idl
- }
-}
-
-project(QC_Different_Test_Connector_lem_stub) : ccm_svnt, dds4ccm_lem_stub {
- after += QC_Different_Test_Connector_lem_gen QC_Different_Test_Connector_stub \
- QC_Different_Test_Base_stub
- libs += QC_Different_Test_Base_stub QC_Different_Test_Connector_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = QC_Different_Test_Connector_lem_stub
- dynamicflags += QUERY_CONDITION_TEST_CONNECTOR_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- Different_Test_ConnectorEC.cpp
- }
-
- Header_Files {
- Different_Test_ConnectorEC.h
- Different_Test_Connector_lem_stub_export.h
- }
-
- Inline_Files {
- Different_Test_ConnectorEC.inl
- }
-}
-
-project(QC_Different_Test_Connector_stub) : ccm_stub, dds4ccm_base {
- after += QC_Different_Test_Connector_idl_gen QC_Different_Test_Base_stub
- libs += QC_Different_Test_Base_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = QC_Different_Test_Connector_stub
- dynamicflags += QUERY_CONDITION_TEST_CONNECTOR_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- Different_Test_ConnectorC.cpp
- }
-
- Header_Files {
- Different_Test_ConnectorC.h
- Different_Test_Connector_stub_export.h
- }
-
- Inline_Files {
- Different_Test_ConnectorC.inl
- }
-}
-
-project(QC_Different_Test_Connector_exec) : ciao_executor, dds4ccm_impl {
- after += QC_Different_Test_Connector_lem_stub QC_Different_Test_Connector_stub \
- QC_Different_Test_Base_stub
- sharedname = QC_Different_Test_Connector_exec
- libs += QC_Different_Test_Connector_stub QC_Different_Test_Connector_lem_stub \
- QC_Different_Test_Base_stub QC_Different_Test_Base_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += QUERY_CONDITION_TEST_CONNECTOR_CONN_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- Different_Test_Connector_conn.cpp
- }
-
- Header_Files {
- Different_Test_Connector_conn.h
- Different_Test_Connector_conn_export.h
- }
-
- Inline_Files {
- }
-}
-
-
-project(QC_Different_Test_Connector_svnt) : ciao_servant, dds4ccm_impl {
- after += QC_Different_Test_Connector_lem_stub QC_Different_Test_Connector_exec \
- QC_Different_Test_Connector_stub
- sharedname = QC_Different_Test_Connector_svnt
- libs += QC_Different_Test_Connector_stub \
- QC_Different_Test_Connector_lem_stub \
- QC_Different_Test_Base_stub \
- QC_Different_Test_Connector_exec
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += QUERY_CONDITION_TEST_CONNECTOR_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- Different_Test_ConnectorS.cpp
- Different_Test_Connector_svnt.cpp
- }
-
- Header_Files {
- Different_Test_ConnectorS.h
- Different_Test_Connector_svnt.h
- Different_Test_Connector_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/README b/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/README
deleted file mode 100644
index 7fb894432cc..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/README
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-Test whether Querycondition are NOT shared between two extended ports.
-
-The receiver uses two extend ports of the DDS4CCM State connector:
-1. the DDS_Get port
-2. the DDS_Read port
-
-The Queryfilter on the reader interface of the DDS_Get extended port is different
-from the Queryfilter on the reader interface of the DDS_Read extended port.
-This test checks whether that's the case by checking the query filter expressions.
-Besides that, it verifies that the received data is correct according to the filter
-expression and parameters.
-
-The sender sends 15 samples which are kept in DDS (KEEP_ALL Qos) with iteration 1 to 15.
-The Getter extended port should receive iterations between 6 and 9
-(thus samples with iteration 7 and 8).
-The Reader should receive the other samples (and not samples with iteration 7 and 8).
-
-There's one DDS4CCM connector instance connected to the Receiver.
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Receiver/Different_Test_Receiver.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Receiver/Different_Test_Receiver.idl
deleted file mode 100644
index 3c2cac4f3dd..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Receiver/Different_Test_Receiver.idl
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * @file
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef RECEIVER_IDL
-#define RECEIVER_IDL
-
-#include "Connector/Different_Test_Connector.idl"
-
-module Different_Test
-{
- component Receiver
- {
- port QueryConditionTestConnector::DDS_Get get_port;
- port QueryConditionTestConnector::DDS_Read read_port;
- };
-};
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Receiver/Different_Test_Receiver.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Receiver/Different_Test_Receiver.mpc
deleted file mode 100644
index 263e0419596..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Receiver/Different_Test_Receiver.mpc
+++ /dev/null
@@ -1,146 +0,0 @@
-project(QC_Different_Test_Receiver_idl_gen) : componentidldefaults, dds4ccm {
- custom_only = 1
- after += QC_Different_Test_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 {
- Different_Test_Receiver.idl
- }
-}
-
-project(QC_Different_Test_Receiver_lem_gen) : ciaoidldefaults, dds4ccm {
- after += QC_Different_Test_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 {
- Different_Test_ReceiverE.idl
- }
-}
-
-project(QC_Different_Test_Receiver_lem_stub) : ccm_svnt, dds4ccm_base {
- after += QC_Different_Test_Receiver_lem_gen QC_Different_Test_Receiver_stub \
- QC_Different_Test_Connector_stub QC_Different_Test_Base_stub
- libs += Receiver_stub QC_Different_Test_Connector_stub \
- QC_Different_Test_Base_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = Receiver_lem_stub
- dynamicflags += RECEIVER_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- Different_Test_ReceiverEC.cpp
- }
-
- Header_Files {
- Different_Test_ReceiverEC.h
- Receiver_lem_stub_export.h
- }
-
- Inline_Files {
- Different_Test_ReceiverEC.inl
- }
-}
-
-project(QC_Different_Test_Receiver_stub) : ccm_stub, dds4ccm_base {
- after += QC_Different_Test_Receiver_idl_gen QC_Different_Test_Connector_stub \
- QC_Different_Test_Base_stub QC_Different_Test_Connector_lem_gen
- libs += QC_Different_Test_Connector_stub QC_Different_Test_Base_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = Receiver_stub
- dynamicflags += RECEIVER_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- Different_Test_ReceiverC.cpp
- }
-
- Header_Files {
- Different_Test_ReceiverC.h
- Receiver_stub_export.h
- }
-
- Inline_Files {
- Different_Test_ReceiverC.inl
- }
-}
-
-project(QC_Different_Test_Receiver_exec) : ciao_executor, dds4ccm_lem_stub {
- after += QC_Different_Test_Receiver_lem_stub QC_Different_Test_Receiver_stub \
- QC_Different_Test_Base_stub QC_Different_Test_Connector_stub \
- QC_Different_Test_Connector_lem_stub
- sharedname = Receiver_exec
- libs += Receiver_stub Receiver_lem_stub QC_Different_Test_Base_stub \
- QC_Different_Test_Connector_stub QC_Different_Test_Connector_lem_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += RECEIVER_EXEC_BUILD_DLL READER_STARTER_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- Different_Test_Receiver_exec.cpp
- }
-
- Header_Files {
- Different_Test_Receiver_exec.h
- Receiver_exec_export.h
- }
-
- Inline_Files {
- }
-}
-
-
-project(QC_Different_Test_Receiver_svnt) : ciao_servant, dds4ccm_lem_stub, dds4ccm_skel {
- after += QC_Different_Test_Receiver_lem_stub QC_Different_Test_Base_stub \
- QC_Different_Test_Connector_stub QC_Different_Test_Connector_svnt \
- QC_Different_Test_Receiver_exec QC_Different_Test_Connector_lem_stub
- sharedname = Receiver_svnt
- libs += Receiver_stub Receiver_lem_stub QC_Different_Test_Base_stub \
- QC_Different_Test_Connector_stub QC_Different_Test_Connector_svnt \
- Receiver_exec QC_Different_Test_Connector_lem_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += RECEIVER_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- Different_Test_ReceiverS.cpp
- Different_Test_Receiver_svnt.cpp
- }
-
- Header_Files {
- Different_Test_ReceiverS.h
- Different_Test_Receiver_svnt.h
- Receiver_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Receiver/Different_Test_Receiver_exec.cpp b/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Receiver/Different_Test_Receiver_exec.cpp
deleted file mode 100644
index 78b7c696c59..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Receiver/Different_Test_Receiver_exec.cpp
+++ /dev/null
@@ -1,661 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-
-#include "Different_Test_Receiver_exec.h"
-#include "tao/ORB_Core.h"
-#include "ace/Reactor.h"
-
-#include "dds4ccm/impl/dds4ccm_conf.h"
-
-#define QUERY_GETTER "( (iteration > %0) AND (iteration < %1) )"
-#define QUERY_READER "( (iteration < %0) OR (iteration > %1) )"
-
-#define MIN_ITERATION "6"
-#define MAX_ITERATION "9"
-
-namespace CIAO_Different_Test_Receiver_Impl
-{
- /**
- * Read action Generator
- */
-
- read_action_Generator::read_action_Generator (Receiver_exec_i &callback)
- : callback_ (callback)
- {
- }
-
- read_action_Generator::~read_action_Generator ()
- {
- }
-
- int
- read_action_Generator::handle_timeout (const ACE_Time_Value &, const void *)
- {
- ACE_DEBUG ((LM_DEBUG, "Checking if last sample "
- "is available in DDS...\n"));
- if (this->callback_.check_last ())
- {
- this->callback_.run ();
- }
- return 0;
- }
-
- /**
- * Facet Executor Implementation Class: get_port_status_exec_i
- */
-
- get_port_status_exec_i::get_port_status_exec_i (
- ::Different_Test::CCM_Receiver_Context_ptr ctx)
- : ciao_context_ (
- ::Different_Test::CCM_Receiver_Context::_duplicate (ctx))
- {
- }
-
- get_port_status_exec_i::~get_port_status_exec_i (void)
- {
- }
-
- // Operations from ::CCM_DDS::PortStatusListener
-
- void
- get_port_status_exec_i::on_requested_deadline_missed (::DDS::DataReader_ptr /* the_reader */,
- const ::DDS::RequestedDeadlineMissedStatus & /* status */)
- {
- /* Your code here. */
- }
-
- void
- get_port_status_exec_i::on_sample_lost (::DDS::DataReader_ptr /* the_reader */,
- const ::DDS::SampleLostStatus & /* status */)
- {
- /* Your code here. */
- }
-
- /**
- * Facet Executor Implementation Class: read_port_status_exec_i
- */
-
- read_port_status_exec_i::read_port_status_exec_i (
- ::Different_Test::CCM_Receiver_Context_ptr ctx)
- : ciao_context_ (
- ::Different_Test::CCM_Receiver_Context::_duplicate (ctx))
- {
- }
-
- read_port_status_exec_i::~read_port_status_exec_i (void)
- {
- }
-
- // Operations from ::CCM_DDS::PortStatusListener
-
- void
- read_port_status_exec_i::on_requested_deadline_missed (::DDS::DataReader_ptr /* the_reader */,
- const ::DDS::RequestedDeadlineMissedStatus & /* status */)
- {
- /* Your code here. */
- }
-
- void
- read_port_status_exec_i::on_sample_lost (::DDS::DataReader_ptr /* the_reader */,
- const ::DDS::SampleLostStatus & /* status */)
- {
- /* Your code here. */
- }
-
- /**
- * Component Executor Implementation Class: Receiver_exec_i
- */
-
- Receiver_exec_i::Receiver_exec_i (void)
- : iterations_ (15)
- , keys_ (5)
- , ticker_ (0)
- {
- }
-
- Receiver_exec_i::~Receiver_exec_i (void)
- {
- }
-
- // Supported operations and attributes.
- ACE_Reactor*
- Receiver_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;
- }
-
- bool
- Receiver_exec_i::check_last ()
- {
- ::Different_Test::QueryConditionTestConnector::Reader_var reader =
- this->ciao_context_->get_connection_get_port_data ();
-
- try
- {
- QueryConditionTest queryfiltertest_info;
- ::CCM_DDS::ReadInfo readinfo;
- char key[10];
- ACE_OS::sprintf (key, "KEY_%d", this->keys_);
- queryfiltertest_info.symbol = CORBA::string_dup (key);
- reader->read_one_last (
- queryfiltertest_info,
- readinfo,
- ::DDS::HANDLE_NIL);
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::check_last - "
- "last iteration <%d> - <%d>\n",
- queryfiltertest_info.iteration,
- this->iterations_));
- return queryfiltertest_info.iteration == this->iterations_;
- }
- catch (const ::CCM_DDS::InternalError &)
- {
- }
- catch (const ::CCM_DDS::NonExistent &)
- {
- }
- catch (...)
- {
- ACE_ERROR ((LM_ERROR, "Receiver_exec_i::check_last: "
- "ERROR: Unexpected exception caught\n"));
- }
- return false;
- }
-
- // Supported operations and attributes.
- void
- Receiver_exec_i::check_iter_reader (const QueryConditionTest & sample)
- {
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("READ ALL : ")
- ACE_TEXT ("sample received for <%C>: iteration <%u>\n"),
- sample.symbol.in (),
- sample.iteration));
- if (sample.iteration > ACE_OS::atoi (MIN_ITERATION) &&
- sample.iteration < ACE_OS::atoi (MAX_ITERATION))
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("ERROR: READ ALL : ")
- ACE_TEXT ("Didn't expect samples between ")
- ACE_TEXT ("%C and %C\n"),
- MIN_ITERATION,
- MAX_ITERATION));
- }
- }
-
- bool
- Receiver_exec_i::check_iter_getter (const QueryConditionTest & sample)
- {
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("GET ALL : ")
- ACE_TEXT ("sample received for <%C>: iteration <%u>\n"),
- sample.symbol.in (),
- sample.iteration));
- if (sample.iteration <= ACE_OS::atoi (MIN_ITERATION))
- {
- ACE_ERROR ((LM_ERROR, "ERROR: GET ALL: "
- "Didn't expect samples with iteration %C "
- "<= %C\n", sample.iteration,
- MIN_ITERATION));
- return false;
- }
- if (sample.iteration > ACE_OS::atoi (MAX_ITERATION))
- {
- ACE_ERROR ((LM_ERROR, "ERROR: GET ALL: "
- "Didn't expect samples with iteration %C"
- "> %C\n", sample.iteration,
- MAX_ITERATION));
- return false;
- }
- return true;
- }
-
-
- void
- Receiver_exec_i::read_all (void)
- {
- ::Different_Test::QueryConditionTestConnector::Reader_var reader =
- this->ciao_context_->get_connection_read_port_data ();
-
- QueryConditionTestSeq queryfiltertest_info_seq;
- ::CCM_DDS::ReadInfoSeq readinfo_seq;
- reader->read_all (queryfiltertest_info_seq, readinfo_seq);
- if (queryfiltertest_info_seq.length () == 0)
- {
- ACE_ERROR ((LM_ERROR, "ERROR : Receiver_exec_i::read_all : "
- "No samples available in Reader!\n"));
- }
- for (CORBA::ULong it = 0; it < queryfiltertest_info_seq.length (); ++it)
- {
- this->check_iter_reader (queryfiltertest_info_seq[it]);
- }
- }
-
- void
- Receiver_exec_i::get_all (void)
- {
- ::Different_Test::QueryConditionTestConnector::Getter_var getter =
- this->ciao_context_->get_connection_get_port_fresh_data ();
-
- if (::CORBA::is_nil (getter.in ()))
- {
- ACE_ERROR ((LM_ERROR, "Receiver_exec_i::get_all - "
- "ERROR: No Getter\n"));
- }
- QueryConditionTest_var qf_info;
- ::CCM_DDS::ReadInfo readinfo;
- CORBA::Boolean result = getter->get_one (qf_info.out (), readinfo);
- if (result)
- {
- if (!this->check_iter_getter (qf_info.in ()))
- {
- ACE_ERROR ((LM_ERROR, "Receiver_exec_i::get_all - "
- "ERROR: got unexpected "
- "sample, bailing out\n"));
- }
- }
- else
- {
- ACE_ERROR ((LM_ERROR, "Receiver_exec_i::get_all - "
- "ERROR: time out when retrieving "
- "first sample.\n"));
- }
- while (result)
- {
- result = getter->get_one (qf_info.out (), readinfo);
- if (result)
- {
- if (!this->check_iter_getter (qf_info.in ()))
- {
- ACE_ERROR ((LM_ERROR, "Receiver_exec_i::get_all - "
- "ERROR: got unexpected "
- "sample, bailing out\n"));
- break;
- }
- }
- }
- }
-
- void
- Receiver_exec_i::test_all ()
- {
- const char * test = "GET ALL";
- try
- {
- get_all ();
- test = "READ ALL";
- read_all ();
- }
- catch (const CCM_DDS::NonExistent& ex)
- {
- for (CORBA::ULong i = 0; i < ex.indexes.length (); ++i)
- {
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("ERROR %C: ")
- ACE_TEXT ("caught expected exception: index <%u>\n"),
- test,
- ex.indexes[i]));
- }
- }
- catch (const CCM_DDS::InternalError& ex)
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("ERROR: %C: ")
- ACE_TEXT ("caught InternalError exception: retval <%u>\n"),
- test,
- ex.error_code));
- }
- catch (const ::CORBA::Exception& ex)
- {
- ex._tao_print_exception (test);
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("ERROR: Receiver_exec_i::test_all : Exception caught\n")));
- }
- }
-
- void
- Receiver_exec_i::check_filters (void)
- {
- ::Different_Test::QueryConditionTestConnector::Reader_var get_reader =
- this->ciao_context_->get_connection_get_port_data ();
- if (! ::CORBA::is_nil (get_reader.in ()))
- {
- this->check_filter (get_reader.in (), true);
- }
- else
- {
- ACE_ERROR ((LM_ERROR, "Unable to retrieve pointer to the reader.\n"));
- }
-
- ::Different_Test::QueryConditionTestConnector::Reader_var read_reader =
- this->ciao_context_->get_connection_read_port_data ();
- if (! ::CORBA::is_nil (read_reader.in ()))
- {
- this->check_filter (read_reader.in (), false);
- }
- else
- {
- ACE_ERROR ((LM_ERROR, "Unable to retrieve pointer to the reader.\n"));
- }
- }
-
- void
- Receiver_exec_i::check_filter (
- ::Different_Test::QueryConditionTestConnector::Reader_ptr reader,
- bool check_getter)
- {
- ::CCM_DDS::QueryFilter_var filter;
- try
- {
- filter = reader->query ();
- }
- catch (const CCM_DDS::InternalError& ex)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter - "
- "caught InternalError exception: retval <%u>\n",
- ex.error_code));
- return;
- }
- catch (const ::CORBA::Exception& ex)
- {
- ex._tao_print_exception ("ERROR: Receiver_exec_i::check_filter: ");
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter - "
- "Exception caught\n"));
- return;
- }
-
- //check query
- bool error = false;
-
- const char * query = "";
- const char * port = "";
- if (check_getter)
- {
- query = QUERY_GETTER;
- port = "GETTER";
- }
- else
- {
- query = QUERY_READER;
- port = "READER";
- }
-
- if (ACE_OS::strcmp (filter->expression, query) != 0)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter <%C> - "
- "Unexpected query when retrieving filter: "
- "expected <%C> - received <%C>\n",
- port, query, filter->expression.in ()));
- error = true;
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::check_filter <%C> - "
- "Query expression seems correct : "
- "expected <%C> - received <%C>\n",
- port, query, filter->expression.in ()));
- }
- //check current parameters.
- if (filter->parameters.length () != 2)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter <%C> - "
- "Unexpected number of parameters: "
- "expected <%d> - received <%d>\n",
- port, 2, filter->parameters.length ()));
- error = true;
- }
-
- if (filter->parameters.length () >= 1)
- {
- if (ACE_OS::atoi (filter->parameters[0]) != ACE_OS::atoi(MIN_ITERATION))
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter <%C> - "
- "Unexpected param value: "
- "expected <%d> - received <%C>\n",
- port,
- MIN_ITERATION,
- filter->parameters[0].in ()));
- error = true;
- }
- }
- if (filter->parameters.length () >= 2)
- {
- if (ACE_OS::atoi (filter->parameters[1]) != ACE_OS::atoi (MAX_ITERATION))
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter <%C> - "
- "Unexpected query when retrieving filter: "
- "expected <%d> - received <%C>\n",
- port,
- MAX_ITERATION,
- filter->parameters[1].in ()));
- error = true;
- }
- }
- if (!error)
- {
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::check_filter <%C> - "
- "Passed check_filter test.\n",
- port));
- }
- }
-
- void
- Receiver_exec_i::set_filters ()
- {
- ACE_DEBUG ((LM_DEBUG, "Set filters\n"));
-
- try
- {
- ::Different_Test::QueryConditionTestConnector::Reader_var get_reader =
- this->ciao_context_->get_connection_get_port_data ();
-
- ::Different_Test::QueryConditionTestConnector::Reader_var read_reader =
- this->ciao_context_->get_connection_read_port_data ();
-
- ::CCM_DDS::QueryFilter get_filter;
- get_filter.expression = CORBA::string_dup (QUERY_GETTER);
- get_filter.parameters.length (2);
- get_filter.parameters[0] = CORBA::string_dup (MIN_ITERATION);
- get_filter.parameters[1] = CORBA::string_dup (MAX_ITERATION);
- get_reader->query (get_filter);
- ACE_DEBUG ((LM_DEBUG, "Filter set for the getter.\n"));
-
-
- ::CCM_DDS::QueryFilter read_filter;
- read_filter.expression = CORBA::string_dup (QUERY_READER);
- read_filter.parameters.length (2);
- read_filter.parameters[0] = CORBA::string_dup (MIN_ITERATION);
- read_filter.parameters[1] = CORBA::string_dup (MAX_ITERATION);
- read_reader->query (read_filter);
- ACE_DEBUG ((LM_DEBUG, "Filter set for the reader.\n"));
- }
- catch (...)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::set_filters () - "
- "Unexpected exception caught.\n"));
- }
- }
-
- void
- Receiver_exec_i::start_read (void)
- {
- ACE_DEBUG ((LM_DEBUG, "Start reading by starting a timer.\n"));
-
- this->ticker_ = new read_action_Generator (*this);
- if (this->reactor ()->schedule_timer (
- this->ticker_,
- 0,
- ACE_Time_Value(1, 0),
- ACE_Time_Value(1, 0)) == -1)
- {
- ACE_ERROR ((LM_ERROR, "Unable to schedule Timer\n"));
- }
- }
-
- void
- Receiver_exec_i::run (void)
- {
- if (this->ticker_)
- {
- this->reactor ()->cancel_timer (this->ticker_);
- delete this->ticker_;
- this->ticker_ = 0;
- }
- this->test_all ();
- }
- void
- Receiver_exec_i::iterations (::CORBA::UShort iterations)
- {
- this->iterations_ = iterations;
- }
-
- void
- Receiver_exec_i::keys (::CORBA::UShort keys)
- {
- this->keys_ = keys;
- }
- // Component attributes and port operations.
-
- ::CCM_DDS::CCM_PortStatusListener_ptr
- Receiver_exec_i::get_get_port_status (void)
- {
- if ( ::CORBA::is_nil (this->ciao_get_port_status_.in ()))
- {
- get_port_status_exec_i *tmp = 0;
- ACE_NEW_RETURN (
- tmp,
- get_port_status_exec_i (
- this->ciao_context_.in ()),
- ::CCM_DDS::CCM_PortStatusListener::_nil ());
-
- this->ciao_get_port_status_ = tmp;
- }
-
- return
- ::CCM_DDS::CCM_PortStatusListener::_duplicate (
- this->ciao_get_port_status_.in ());
- }
-
- ::CCM_DDS::CCM_PortStatusListener_ptr
- Receiver_exec_i::get_read_port_status (void)
- {
- if ( ::CORBA::is_nil (this->ciao_read_port_status_.in ()))
- {
- read_port_status_exec_i *tmp = 0;
- ACE_NEW_RETURN (
- tmp,
- read_port_status_exec_i (
- this->ciao_context_.in ()),
- ::CCM_DDS::CCM_PortStatusListener::_nil ());
-
- this->ciao_read_port_status_ = tmp;
- }
-
- return
- ::CCM_DDS::CCM_PortStatusListener::_duplicate (
- this->ciao_read_port_status_.in ());
- }
-
- // Operations from Components::SessionComponent.
-
- void
- Receiver_exec_i::set_session_context (
- ::Components::SessionContext_ptr ctx)
- {
- this->ciao_context_ =
- ::Different_Test::CCM_Receiver_Context::_narrow (ctx);
-
- if ( ::CORBA::is_nil (this->ciao_context_.in ()))
- {
- throw ::CORBA::INTERNAL ();
- }
- }
-
- void
- Receiver_exec_i::configuration_complete (void)
- {
- /* Your code here. */
- }
-
- void
- Receiver_exec_i::ccm_activate (void)
- {
- ::Different_Test::QueryConditionTestConnector::Getter_var getter =
- this->ciao_context_->get_connection_get_port_fresh_data ();
- DDS::Duration_t to;
- to.sec = 5;
- to.nanosec = 0;
- if (! ::CORBA::is_nil (getter))
- {
- getter->time_out (to);
- }
- else
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Unable to set time out.\n"));
- }
-
- this->set_filters ();
- this->check_filters ();
- this->start_read ();
- }
-
- void
- Receiver_exec_i::ccm_passivate (void)
- {
- if (this->ticker_)
- {
- this->reactor ()->cancel_timer (this->ticker_);
- delete this->ticker_;
- this->ticker_ = 0;
- }
- }
-
- void
- Receiver_exec_i::ccm_remove (void)
- {
- }
-
- extern "C" RECEIVER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_Different_Test_Receiver_Impl (void)
- {
- ::Components::EnterpriseComponent_ptr retval =
- ::Components::EnterpriseComponent::_nil ();
-
- ACE_NEW_NORETURN (
- retval,
- Receiver_exec_i);
-
- return retval;
- }
-}
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Receiver/Different_Test_Receiver_exec.h b/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Receiver/Different_Test_Receiver_exec.h
deleted file mode 100644
index 2f38be10194..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Receiver/Different_Test_Receiver_exec.h
+++ /dev/null
@@ -1,212 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-#ifndef CIAO_DIFFERENT_TEST_RECEIVER_EXEC_IK2VYJ_H_
-#define CIAO_DIFFERENT_TEST_RECEIVER_EXEC_IK2VYJ_H_
-
-#include /**/ "ace/pre.h"
-
-#include "Different_Test_ReceiverEC.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include /**/ "Receiver_exec_export.h"
-#include "tao/LocalObject.h"
-
-namespace CIAO_Different_Test_Receiver_Impl
-{
- class Receiver_exec_i;
-
- /**
- * Read action generator
- */
-
- class read_action_Generator
- : public ACE_Event_Handler
- {
- public:
- read_action_Generator (Receiver_exec_i &callback);
-
- ~read_action_Generator ();
-
- virtual int handle_timeout (const ACE_Time_Value &tv,
- const void *arg);
- private:
- Receiver_exec_i &callback_;
- };
-
- /**
- * Provider Executor Implementation Class: get_port_status_exec_i
- */
-
- class get_port_status_exec_i
- : public virtual ::CCM_DDS::CCM_PortStatusListener,
- public virtual ::CORBA::LocalObject
- {
- public:
- get_port_status_exec_i (
- ::Different_Test::CCM_Receiver_Context_ptr ctx);
- virtual ~get_port_status_exec_i (void);
-
- //@{
- /** Operations and attributes from CCM_DDS::PortStatusListener. */
-
- virtual
- void on_requested_deadline_missed (::DDS::DataReader_ptr the_reader,
- const ::DDS::RequestedDeadlineMissedStatus & status);
-
- virtual
- void on_sample_lost (::DDS::DataReader_ptr the_reader,
- const ::DDS::SampleLostStatus & status);
- //@}
-
- private:
- ::Different_Test::CCM_Receiver_Context_var ciao_context_;
- };
-
- /**
- * Provider Executor Implementation Class: read_port_status_exec_i
- */
-
- class read_port_status_exec_i
- : public virtual ::CCM_DDS::CCM_PortStatusListener,
- public virtual ::CORBA::LocalObject
- {
- public:
- read_port_status_exec_i (
- ::Different_Test::CCM_Receiver_Context_ptr ctx);
- virtual ~read_port_status_exec_i (void);
-
- //@{
- /** Operations and attributes from CCM_DDS::PortStatusListener. */
-
- virtual
- void on_requested_deadline_missed (::DDS::DataReader_ptr the_reader,
- const ::DDS::RequestedDeadlineMissedStatus & status);
-
- virtual
- void on_sample_lost (::DDS::DataReader_ptr the_reader,
- const ::DDS::SampleLostStatus & status);
- //@}
-
- private:
- ::Different_Test::CCM_Receiver_Context_var ciao_context_;
- };
-
- /**
- * Component Executor Implementation Class: Receiver_exec_i
- */
-
- class Receiver_exec_i
- : public virtual Receiver_Exec,
- public virtual ::CORBA::LocalObject
- {
- public:
- Receiver_exec_i (void);
- virtual ~Receiver_exec_i (void);
-
- //@{
- /** Supported operations and attributes. */
-
- //@}
-
- //@{
- /** Component attributes and port operations. */
-
- virtual ::CCM_DDS::CCM_PortStatusListener_ptr
- get_get_port_status (void);
-
- virtual ::CCM_DDS::CCM_PortStatusListener_ptr
- get_read_port_status (void);
- //@}
-
- //@{
- /** Operations from Components::SessionComponent. */
- virtual void set_session_context (::Components::SessionContext_ptr ctx);
- virtual void configuration_complete (void);
- virtual void ccm_activate (void);
- virtual void ccm_passivate (void);
- virtual void ccm_remove (void);
- //@}
-
- //@{
- /** User defined public operations. */
- bool check_last (void);
- void start_read (void);
- void run (void);
-
- void iterations (::CORBA::UShort iterations);
- void keys (::CORBA::UShort keys);
-
- //@}
-
- private:
- ::Different_Test::CCM_Receiver_Context_var ciao_context_;
-
- //@{
- /** Component attributes. */
- ::CCM_DDS::CCM_PortStatusListener_var ciao_get_port_status_;
- ::CCM_DDS::CCM_PortStatusListener_var ciao_read_port_status_;
- //@}
-
- //@{
- /** User defined members. */
- CORBA::UShort iterations_;
- CORBA::UShort keys_;
-
- read_action_Generator *ticker_;
-
- //@}
-
- //@{
- /** User defined private operations. */
- void test_all (void);
- void read_all (void);
- void get_all (void);
-
- void check_iter_reader (const QueryConditionTest & sample);
- bool check_iter_getter (const QueryConditionTest & sample);
-
- void check_filters (void);
- void check_filter (
- ::Different_Test::QueryConditionTestConnector::Reader_ptr reader,
- bool check_getter);
-
- void set_filters (void);
-
- //@}
-
- /// Get the ACE_Reactor
- ACE_Reactor* reactor (void);
- };
-
- extern "C" RECEIVER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_Different_Test_Receiver_Impl (void);
-}
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Sender/Different_Test_Sender.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Sender/Different_Test_Sender.idl
deleted file mode 100644
index 9fcd7823e7b..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Sender/Different_Test_Sender.idl
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef DDS_QUERY_CONDITION_TEST_SENDER_IDL
-#define DDS_QUERY_CONDITION_TEST_SENDER_IDL
-
-#include "Connector/Different_Test_Connector.idl"
-
-module Different_Test
-{
- component Sender
- {
- port Different_Test::QueryConditionTestConnector::DDS_Write info_write;
- provides CCM_DDS::ConnectorStatusListener connector_status;
-
- attribute unsigned short keys;
- };
-};
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Sender/Different_Test_Sender.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Sender/Different_Test_Sender.mpc
deleted file mode 100644
index 618c9190c21..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Sender/Different_Test_Sender.mpc
+++ /dev/null
@@ -1,145 +0,0 @@
-// This file is generated with "generate_component_mpc.pl -p Different_Test_Base -l ../lib -o ../lib -c controller -u DDS Sender"
-
-project(QC_Different_Test_Sender_idl_gen) : componentidldefaults, dds4ccm {
- after += QC_Different_Test_Connector_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 {
- Different_Test_Sender.idl
- }
-}
-
-project(QC_Different_Test_Sender_lem_gen) : ciaoidldefaults, dds4ccm {
- after += QC_Different_Test_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 {
- Different_Test_SenderE.idl
- }
-}
-
-project(QC_Different_Test_Sender_lem_stub) : ccm_svnt, dds4ccm_base {
- after += QC_Different_Test_Sender_lem_gen QC_Different_Test_Sender_stub \
- QC_Different_Test_Base_stub
- libs += QC_Different_Test_Base_stub Sender_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = Sender_lem_stub
- dynamicflags += SENDER_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- Different_Test_SenderEC.cpp
- }
-
- Header_Files {
- Different_Test_SenderEC.h
- Sender_lem_stub_export.h
- }
-
- Inline_Files {
- Different_Test_SenderEC.inl
- }
-}
-
-project(QC_Different_Test_Sender_stub) : ccm_stub, dds4ccm_base {
- after += QC_Different_Test_Sender_idl_gen QC_Different_Test_Base_stub \
- QC_Different_Test_Connector_stub
- libs += QC_Different_Test_Base_stub QC_Different_Test_Connector_stub
- includes += ..
- libpaths += ../lib
- libout = ../lib
- sharedname = Sender_stub
- dynamicflags += SENDER_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- Different_Test_SenderC.cpp
- }
-
- Header_Files {
- Different_Test_SenderC.h
- Sender_stub_export.h
- }
-
- Inline_Files {
- Different_Test_SenderC.inl
- }
-}
-
-project(QC_Different_Test_Sender_exec) : ciao_executor, dds4ccm_lem_stub {
- after += QC_Different_Test_Sender_lem_stub QC_Different_Test_Sender_stub \
- QC_Different_Test_Connector_lem_stub QC_Different_Test_Connector_stub
- sharedname = Sender_exec
- libs += Sender_stub Sender_lem_stub QC_Different_Test_Base_stub \
- QC_Different_Test_Connector_lem_stub QC_Different_Test_Connector_stub
- libpaths += ../lib
- includes += ..
- libout = ../lib
- dynamicflags += SENDER_EXEC_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- Different_Test_Sender_exec.cpp
- }
-
- Header_Files {
- Different_Test_Sender_exec.h
- Sender_exec_export.h
- }
-
- Inline_Files {
- }
-}
-
-
-project(QC_Different_Test_Sender_svnt) : ciao_servant, dds4ccm_lem_stub, dds4ccm_skel {
- after += QC_Different_Test_Base_stub QC_Different_Test_Sender_lem_stub \
- QC_Different_Test_Connector_stub \
- QC_Different_Test_Connector_svnt QC_Different_Test_Connector_lem_stub
- sharedname = Sender_svnt
- libs += Sender_stub Sender_lem_stub QC_Different_Test_Base_stub \
- QC_Different_Test_Connector_stub QC_Different_Test_Connector_svnt \
- QC_Different_Test_Connector_lem_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += SENDER_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- Different_Test_SenderS.cpp
- Different_Test_Sender_svnt.cpp
- }
-
- Header_Files {
- Different_Test_SenderS.h
- Different_Test_Sender_svnt.h
- Sender_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Sender/Different_Test_Sender_exec.cpp b/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Sender/Different_Test_Sender_exec.cpp
deleted file mode 100644
index f9b4abe9103..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Sender/Different_Test_Sender_exec.cpp
+++ /dev/null
@@ -1,262 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-
-#include "Different_Test_Sender_exec.h"
-#include "tao/ORB_Core.h"
-#include "ace/Reactor.h"
-
-#define ITERATIONS 15
-
-namespace CIAO_Different_Test_Sender_Impl
-{
-
- /**
- * ConnectorStatusListener_exec_i
- */
- ConnectorStatusListener_exec_i::ConnectorStatusListener_exec_i (
- Sender_exec_i &callback)
- : callback_ (callback)
- {
- }
-
- 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 (status_kind == ::DDS::PUBLICATION_MATCHED_STATUS)
- {
- ACE_DEBUG ((LM_DEBUG, "ConnectorStatusListener_exec_i::on_unexpected_status - "
- "Publication matched received: starting the test\n"));
-
- this->callback_.get_started ();
- }
- }
-
- /**
- * WriteHandler
- */
-
- WriteHandler::WriteHandler (Sender_exec_i &callback)
- : callback_ (callback)
- {
- }
-
- int
- WriteHandler::handle_exception (ACE_HANDLE)
- {
- this->callback_.start ();
- return 0;
- }
-
- /**
- * Component Executor Implementation Class: Sender_exec_i
- */
-
- Sender_exec_i::Sender_exec_i (void)
- : keys_ (5)
- , iterations_ (ITERATIONS)
- {
- ACE_NEW_THROW_EX (this->wh_,
- WriteHandler (*this),
- ::CORBA::NO_MEMORY ());
- }
-
- Sender_exec_i::~Sender_exec_i (void)
- {
- delete this->wh_;
- }
-
- // 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::get_started (void)
- {
- try
- {
- this->reactor ()->notify (this->wh_);
- }
- catch (const ::CORBA::Exception& ex)
- {
- ex._tao_print_exception ("Exception caught:");
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("ERROR: get_started : Exception caught\n")));
- }
- catch (...)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("ERROR: get_started : Unknown exception caught\n")));
- }
- }
-
- void
- Sender_exec_i::start (void)
- {
- for (CORBA::UShort iter_key = 1; iter_key < this->keys_ + 1; ++iter_key)
- {
- char key[7];
- QueryConditionTest new_key;
- ACE_OS::sprintf (key, "KEY_%d", iter_key);
- new_key.symbol = CORBA::string_dup(key);
- for (CORBA::UShort iter = 1;
- iter < this->iterations_ + 1;
- ++iter)
- {
- new_key.iteration = iter;
- ::Different_Test::QueryConditionTestConnector::Writer_var writer
- = this->ciao_context_->get_connection_info_write_data ();
- writer->write_one (new_key, ::DDS::HANDLE_NIL);
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Written key <%C> with <%d>\n"),
- key, iter));
- }
- }
- ACE_OS::sleep (1);
- }
-
- // Component attributes and port operations.
- ::CCM_DDS::CCM_ConnectorStatusListener_ptr
- Sender_exec_i::get_connector_status (void)
- {
- return new ConnectorStatusListener_exec_i (*this);
- }
-
- ::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_ =
- ::Different_Test::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)
- {
- }
-
- void
- Sender_exec_i::ccm_passivate (void)
- {
- /* Your code here. */
- }
-
- void
- Sender_exec_i::ccm_remove (void)
- {
- /* Your code here. */
- }
-
- extern "C" SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_Different_Test_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/QueryCondition/Different/Sender/Different_Test_Sender_exec.h b/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Sender/Different_Test_Sender_exec.h
deleted file mode 100644
index 547e17478ab..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/Sender/Different_Test_Sender_exec.h
+++ /dev/null
@@ -1,162 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-#ifndef CIAO_DIFFERENT_TEST_SENDER_EXEC_7V9ND5_H_
-#define CIAO_DIFFERENT_TEST_SENDER_EXEC_7V9ND5_H_
-
-#include /**/ "ace/pre.h"
-
-#include "Different_Test_SenderEC.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include /**/ "Sender_exec_export.h"
-#include "tao/LocalObject.h"
-
-namespace CIAO_Different_Test_Sender_Impl
-{
- class Sender_exec_i;
-
- /**
- * ConnectorStatusListener_exec_i
- */
- class SENDER_EXEC_Export ConnectorStatusListener_exec_i
- : public virtual ::CCM_DDS::CCM_ConnectorStatusListener,
- public virtual ::CORBA::LocalObject
- {
- public:
- ConnectorStatusListener_exec_i (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_;
- };
-
- /**
- * WriteHandler
- */
-
- class WriteHandler :
- public ACE_Event_Handler
- {
- public:
- WriteHandler (Sender_exec_i &callback);
- virtual int handle_exception (ACE_HANDLE fc = ACE_INVALID_HANDLE);
- private:
- 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. */
-
- //@}
-
- //@{
- /** Component attributes and port operations. */
- virtual ::CCM_DDS::CCM_ConnectorStatusListener_ptr
- get_connector_status (void);
-
- 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 start (void);
- void get_started (void);
- //@}
-
- private:
- ::Different_Test::CCM_Sender_Context_var ciao_context_;
-
- //@{
- /** Component attributes. */
-
- ::CORBA::UShort keys_;
- //@}
-
- //@{
- /** User defined members. */
- CORBA::UShort iterations_;
- WriteHandler *wh_;
- //@}
-
- //@{
- /** User defined private operations. */
-
- //@}
-
- /// Get the ACE_Reactor
- ACE_Reactor* reactor (void);
- };
-
- extern "C" SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_Different_Test_Sender_Impl (void);
-}
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/descriptors/Plan.cdp b/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/descriptors/Plan.cdp
deleted file mode 100644
index a6cc92082b6..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/descriptors/Plan.cdp
+++ /dev/null
@@ -1,458 +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>Different_Test_Depl_1</label>
- <UUID>Different_Test_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_Different_Test_Receiver_Impl</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_Different_Test_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="Different_Test_ReceiverConnectorComponentImplementation">
- <name>Different_Test_ReceiverConnectorComponentImplementation</name>
- <source/>
- <artifact xmi:idref="Different_Test_Connector_ExecArtifact" />
- <artifact xmi:idref="Different_Test_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_Different_Test_QueryConditionTestConnector_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_Different_Test_QueryConditionTestConnector_DDS_State_Servant</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QC_Different_Test_Connector_svnt</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QC_Different_Test_Connector_exec</string>
- </value>
- </value>
- </execParameter>
- </implementation>
-
- <implementation xmi:id="Different_Test_SenderConnectorComponentImplementation">
- <name>Different_Test_SenderConnectorComponentImplementation</name>
- <source/>
- <artifact xmi:idref="Different_Test_Connector_ExecArtifact" />
- <artifact xmi:idref="Different_Test_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_Different_Test_QueryConditionTestConnector_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_Different_Test_QueryConditionTestConnector_DDS_Event_Servant</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QC_Different_Test_Connector_svnt</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QC_Different_Test_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_Different_Test_Sender_Impl</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_Different_Test_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="ReceiverComponentInstance">
- <name>ReceiverComponent</name>
- <node>ReceiverNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="ReceiverComponentImplementation" />
- </instance>
-
- <instance xmi:id="Different_Test_SenderConnectorComponentInstance">
- <name>Different_Test_SenderConnectorComponent</name>
- <node>SenderNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="Different_Test_SenderConnectorComponentImplementation" />
- <configProperty>
- <name>qos_profile</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QueryCondition_Library#QueryConditionProfile</string>
- </value>
- </value>
- </configProperty>
- <configProperty>
- <name>topic_name</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Different_Test</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <instance xmi:id="Different_Test_ReceiverConnectorComponentInstance">
- <name>Different_Test_ReceiverConnectorComponentInstance</name>
- <node>ReceiverNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="Different_Test_ReceiverConnectorComponentImplementation" />
- <configProperty>
- <name>qos_profile</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QueryCondition_Library#QueryConditionProfile</string>
- </value>
- </value>
- </configProperty>
- <configProperty>
- <name>topic_name</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Different_Test</string>
- </value>
- </value>
- </configProperty>
- </instance>
- <instance xmi:id="SenderComponentInstance">
- <name>SenderComponent</name>
- <node>SenderNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="SenderComponentImplementation" />
- <configProperty>
- <name>keys</name>
- <value>
- <type>
- <kind>tk_ushort</kind>
- </type>
- <value>
- <ushort>5</ushort>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <connection>
- <name>read_port_data</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>read_port_data</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>passive_observer_data</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="Different_Test_ReceiverConnectorComponentInstance" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>get_port_fresh_data</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>get_port_fresh_data</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>pull_observer_fresh_data</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="Different_Test_ReceiverConnectorComponentInstance" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>get_port_data</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>get_port_data</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>pull_observer_data</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="Different_Test_ReceiverConnectorComponentInstance" />
- </internalEndpoint>
- </connection>
-
- <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="Different_Test_SenderConnectorComponentInstance" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>connector_status_connection</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>error_listener</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="Different_Test_SenderConnectorComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>connector_status</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="SenderComponentInstance" />
- </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="Different_Test_Connector_ExecArtifact">
- <name>QC_Different_Test_Connector_exec</name>
- <source/>
- <node/>
- <location>QC_Different_Test_Connector_exec</location>
- </artifact>
- <artifact xmi:id="Different_Test_Connector_SvntArtifact">
- <name>QC_Different_Test_Connector_svnt</name>
- <source/>
- <node/>
- <location>QC_Different_Test_Connector_svnt</location>
- </artifact>
- <artifact xmi:id="Different_Test_Connector_StubArtifact">
- <name>QC_Different_Test_Connector_stub</name>
- <source/>
- <node/>
- <location>QC_Different_Test_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/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/descriptors/QueryCondition_Library.xml b/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/descriptors/QueryCondition_Library.xml
deleted file mode 100644
index b9cba6277a3..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/descriptors/QueryCondition_Library.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<!-- -->
-<dds xmlns="http://www.omg.org/dds"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.omg.org/dds dds_qos.xsd">
-
- <qos_profile name="QueryConditionProfile">
- <!-- QoS used to configure the data writer created in the example code -->
- <datawriter_qos>
- <reliability>
- <kind>RELIABLE_RELIABILITY_QOS</kind>
- <max_blocking_time>
- <sec>10</sec>
- <nanosec>0</nanosec>
- </max_blocking_time>
- </reliability>
- <durability>
- <kind>TRANSIENT_DURABILITY_QOS</kind>
- </durability>
- <history>
- <kind>KEEP_ALL_HISTORY_QOS</kind>
- </history>
- </datawriter_qos>
- <!-- QoS used to configure the data reader created in the example code -->
- <datareader_qos>
- <reliability>
- <kind>RELIABLE_RELIABILITY_QOS</kind>
- </reliability>
- <history>
- <kind>KEEP_ALL_HISTORY_QOS</kind>
- </history>
- <durability>
- <kind>TRANSIENT_LOCAL_DURABILITY_QOS</kind>
- </durability>
- </datareader_qos>
- </qos_profile>
-</dds>
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/descriptors/USER_QOS_PROFILES.xml b/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/descriptors/USER_QOS_PROFILES.xml
deleted file mode 100644
index 37e7ff8dec9..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/descriptors/USER_QOS_PROFILES.xml
+++ /dev/null
@@ -1,67 +0,0 @@
-<?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 environment 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.5d/scripts/../resource/rtiddsgen/../qos_profiles_4.5d/schema/rti_dds_qos_profiles.xsd" version="4.5d">
- <!-- QoS Library containing the QoS profile used in the generated example.
-
- A QoS library is a named set of QoS profiles.
- -->
- <qos_library name="QueryCondition_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="QueryConditionProfile" is_default_qos="false">
- <!-- QoS used to configure the data writer created in the example code -->
- <datawriter_qos>
- <reliability>
- <kind>RELIABLE_RELIABILITY_QOS</kind>
- <max_blocking_time>
- <sec>10</sec>
- <nanosec>0</nanosec>
- </max_blocking_time>
- </reliability>
- <durability>
- <kind>TRANSIENT_DURABILITY_QOS</kind>
- </durability>
- <history>
- <kind>KEEP_ALL_HISTORY_QOS</kind>
- </history>
- <protocol>
- <rtps_reliable_writer>
- <max_heartbeat_retries>10</max_heartbeat_retries>
- </rtps_reliable_writer>
- </protocol>
- </datawriter_qos>
- <!-- QoS used to configure the data reader created in the example code -->
- <datareader_qos>
- <reliability>
- <kind>RELIABLE_RELIABILITY_QOS</kind>
- </reliability>
- <history>
- <kind>KEEP_ALL_HISTORY_QOS</kind>
- </history>
- <durability>
- <kind>TRANSIENT_LOCAL_DURABILITY_QOS</kind>
- </durability>
- </datareader_qos>
- </qos_profile>
- </qos_library>
-</dds>
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/descriptors/run_test.pl b/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/descriptors/run_test.pl
deleted file mode 100755
index 638d55cd247..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/Different/descriptors/run_test.pl
+++ /dev/null
@@ -1,243 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# -*- perl -*-
-
-use lib "$ENV{'ACE_ROOT'}/bin";
-use PerlACE::TestTarget;
-
-$CIAO_ROOT = "$ENV{'CIAO_ROOT'}";
-$TAO_ROOT = "$ENV{'TAO_ROOT'}";
-$DANCE_ROOT = "$ENV{'DANCE_ROOT'}";
-
-$daemons_running = 0;
-$em_running = 0;
-$ns_running = 0;
-
-$nr_daemon = 2;
-@ports = ( 60001, 60002 );
-@iorbases = ( "NodeApp1.ior", "NodeApp2.ior" );
-@iorfiles = 0;
-@nodenames = ( "SenderNode", "ReceiverNode" );
-
-# 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;
-$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 30 seconds to allow task to complete\n";
-sleep (30);
-
-# Invoke executor - stop the application -.
-print "Invoking executor - stop the application -\n";
-print "by running dance_plan_launcher.exe with -k file://$ior_emfile -x $cdp_file -s\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;
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Base/QCLE_Test_Base.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Base/QCLE_Test_Base.idl
deleted file mode 100644
index f0bfd6bcc95..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Base/QCLE_Test_Base.idl
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * @file QCLE_Test_Base.idl
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef QUERY_CONDITION_LISTEN_EVENT_TEST_BASE_IDL
-#define QUERY_CONDITION_LISTEN_EVENT_TEST_BASE_IDL
-
-#pragma ndds typesupport "Base/QCLE_Test_BaseSupport.h"
-#pragma opendds typesupport "Base/QCLE_Test_BaseTypeSupportImpl.h"
-
-#pragma DCPS_DATA_TYPE "QueryConditionListenEventTest"
-#pragma DCPS_DATA_KEY "QueryConditionListenEventTest key"
-
-struct QueryConditionListenEventTest {
- string key; //@key
- long iteration;
-};
-
-#if defined DDS4CCM_NEEDS_SEQUENCES_DEFINED
-typedef sequence<QueryConditionListenEventTest> QueryConditionListenEventTestSeq;
-#endif
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Base/QCLE_Test_Base.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Base/QCLE_Test_Base.mpc
deleted file mode 100644
index e9918ebd97a..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Base/QCLE_Test_Base.mpc
+++ /dev/null
@@ -1,24 +0,0 @@
-project (DDS_QCLE_Test_Base_stub) : taoidldefaults, dds4ccm_ts_default {
- sharedname = DDS_QCLE_Test_Base_stub
- dynamicflags += QUERY_CONDITION_LISTEN_EVENT_TEST_BASE_STUB_BUILD_DLL
- libout = ../lib
-
- idlflags += -SS -Sci \
- -Wb,stub_export_macro=QUERY_CONDITION_LISTEN_EVENT_TEST_BASE_STUB_Export \
- -Wb,stub_export_include=QCLE_Test_Base_stub_export.h
-
- IDL_Files {
- idlflags += -Gxhst
- QCLE_Test_Base.idl
- }
-
- opendds_ts_flags += --export=QUERY_CONDITION_LISTEN_EVENT_TEST_BASE_STUB_Export
-
- DDSGenerator_Files {
- QCLE_Test_Base.idl
- }
-
- Source_Files {
- }
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Connector/QCLE_Test_Connector.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Connector/QCLE_Test_Connector.idl
deleted file mode 100644
index 8224dd82403..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Connector/QCLE_Test_Connector.idl
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * @file QCLE_Test_Connector.idl
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef QUERY_CONDITION_LISTEN_EVENT_TEST_CONNECTOR_IDL_
-#define QUERY_CONDITION_LISTEN_EVENT_TEST_CONNECTOR_IDL_
-
-#include <Components.idl>
-#include <ccm_dds.idl>
-
-#include "Base/QCLE_Test_Base.idl"
-
-#pragma ciao lem "Connector/QCLE_Test_ConnectorE.idl"
-
-#if (CIAO_DDS4CCM_OPENDDS==1)
-# include "Base/QCLE_Test_BaseTypeSupport.idl"
-#endif
-
-module QCLE_Test
-{
- module ::CCM_DDS::Typed < ::QueryConditionListenEventTest, ::QueryConditionListenEventTestSeq> QueryConditionListenEventTestConnector;
-};
-
-#endif /* QCLE_Test_CONNECTOR_IDL_ */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Connector/QCLE_Test_Connector.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Connector/QCLE_Test_Connector.mpc
deleted file mode 100644
index da83149c589..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Connector/QCLE_Test_Connector.mpc
+++ /dev/null
@@ -1,142 +0,0 @@
-// This file is generated with "generate_component_mpc.pl -p DDS_QCLE_Test_Base -l .. -o ../lib -u DDS QCLE_Test_Connector"
-
-project(DDS_QCLE_Test_Connector_idl_gen) : connectoridldefaults, dds4ccm {
- after += DDS4CCM_idl_gen DDS_QCLE_Test_Base_stub
- custom_only = 1
- idlflags += -Wb,stub_export_macro=QUERY_CONDITION_LISTEN_EVENT_TEST_CONNECTOR_STUB_Export \
- -Wb,stub_export_include=QCLE_Test_Connector_stub_export.h \
- -Wb,skel_export_macro=QUERY_CONDITION_LISTEN_EVENT_TEST_CONNECTOR_SVNT_Export \
- -Wb,skel_export_include=QCLE_Test_Connector_svnt_export.h \
- -Wb,svnt_export_macro=QUERY_CONDITION_LISTEN_EVENT_TEST_CONNECTOR_SVNT_Export \
- -Wb,svnt_export_include=QCLE_Test_Connector_svnt_export.h \
- -Wb,conn_export_macro=QUERY_CONDITION_LISTEN_EVENT_TEST_CONNECTOR_CONN_Export \
- -Wb,conn_export_include=QCLE_Test_Connector_conn_export.h \
- -I ..
-
- IDL_Files {
- QCLE_Test_Connector.idl
- }
-}
-
-project(DDS_QCLE_Test_Connector_lem_gen) : ciaoidldefaults, dds4ccm {
- custom_only = 1
- after += DDS_QCLE_Test_Connector_idl_gen
- idlflags += -Wb,stub_export_macro=QUERY_CONDITION_LISTEN_EVENT_TEST_CONNECTOR_LEM_STUB_Export \
- -Wb,stub_export_include=QCLE_Test_Connector_lem_stub_export.h \
- -SS -Gxhst \
- -I ..
-
- IDL_Files {
- QCLE_Test_ConnectorE.idl
- }
-}
-
-project(DDS_QCLE_Test_Connector_lem_stub) : ccm_svnt, dds4ccm_lem_stub {
- after += DDS_QCLE_Test_Connector_lem_gen DDS_QCLE_Test_Connector_stub DDS_QCLE_Test_Base_stub
- libs += DDS_QCLE_Test_Base_stub DDS_QCLE_Test_Connector_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = DDS_QCLE_Test_Connector_lem_stub
- dynamicflags += QUERY_CONDITION_LISTEN_EVENT_TEST_CONNECTOR_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLE_Test_ConnectorEC.cpp
- }
-
- Header_Files {
- QCLE_Test_ConnectorEC.h
- QCLE_Test_Connector_lem_stub_export.h
- }
-
- Inline_Files {
- QCLE_Test_ConnectorEC.inl
- }
-}
-
-project(DDS_QCLE_Test_Connector_stub) : ccm_stub, dds4ccm_base {
- after += DDS_QCLE_Test_Connector_idl_gen DDS_QCLE_Test_Base_stub
- libs += DDS_QCLE_Test_Base_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = DDS_QCLE_Test_Connector_stub
- dynamicflags += QUERY_CONDITION_LISTEN_EVENT_TEST_CONNECTOR_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLE_Test_ConnectorC.cpp
- }
-
- Header_Files {
- QCLE_Test_ConnectorC.h
- QCLE_Test_Connector_stub_export.h
- }
-
- Inline_Files {
- QCLE_Test_ConnectorC.inl
- }
-}
-
-project(DDS_QCLE_Test_Connector_exec) : ciao_executor, dds4ccm_impl {
- after += DDS_QCLE_Test_Connector_lem_stub DDS_QCLE_Test_Connector_stub DDS_QCLE_Test_Base_stub
- sharedname = DDS_QCLE_Test_Connector_exec
- libs += DDS_QCLE_Test_Connector_stub DDS_QCLE_Test_Connector_lem_stub DDS_QCLE_Test_Base_stub DDS_QCLE_Test_Base_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += QUERY_CONDITION_LISTEN_EVENT_TEST_CONNECTOR_CONN_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLE_Test_Connector_conn.cpp
- }
-
- Header_Files {
- QCLE_Test_Connector_conn.h
- QCLE_Test_Connector_conn_export.h
- }
-
- Inline_Files {
- }
-}
-
-
-project(DDS_QCLE_Test_Connector_svnt) : ciao_servant, dds4ccm_impl {
- after += DDS_QCLE_Test_Connector_lem_stub DDS_QCLE_Test_Connector_exec DDS_QCLE_Test_Connector_stub
- sharedname = DDS_QCLE_Test_Connector_svnt
- libs += DDS_QCLE_Test_Connector_stub \
- DDS_QCLE_Test_Connector_lem_stub \
- DDS_QCLE_Test_Base_stub \
- DDS_QCLE_Test_Connector_exec
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += QUERY_CONDITION_LISTEN_EVENT_TEST_CONNECTOR_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLE_Test_ConnectorS.cpp
- QCLE_Test_Connector_svnt.cpp
- }
-
- Header_Files {
- QCLE_Test_ConnectorS.h
- QCLE_Test_Connector_svnt.h
- QCLE_Test_Connector_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Receiver/QCLE_Test_Receiver.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Receiver/QCLE_Test_Receiver.idl
deleted file mode 100644
index 613ef825f4c..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Receiver/QCLE_Test_Receiver.idl
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * @file
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef RECEIVER_IDL
-#define RECEIVER_IDL
-
-#include "Connector/QCLE_Test_Connector.idl"
-
-module QCLE_Test
-{
- component Receiver
- {
- port QueryConditionListenEventTestConnector::DDS_Listen info_listen;
-
- attribute unsigned short keys;
- attribute unsigned short iterations;
- };
-};
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Receiver/QCLE_Test_Receiver.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Receiver/QCLE_Test_Receiver.mpc
deleted file mode 100644
index df60dc7545c..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Receiver/QCLE_Test_Receiver.mpc
+++ /dev/null
@@ -1,146 +0,0 @@
-project(DDS_QCLE_Test_Receiver_idl_gen) : componentidldefaults, dds4ccm {
- custom_only = 1
- after += DDS_QCLE_Test_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 {
- QCLE_Test_Receiver.idl
- }
-}
-
-project(DDS_QCLE_Test_Receiver_lem_gen) : ciaoidldefaults, dds4ccm {
- after += DDS_QCLE_Test_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 {
- QCLE_Test_ReceiverE.idl
- }
-}
-
-project(DDS_QCLE_Test_Receiver_lem_stub) : ccm_svnt, dds4ccm_base {
- after += DDS_QCLE_Test_Receiver_lem_gen DDS_QCLE_Test_Receiver_stub \
- DDS_QCLE_Test_Connector_stub DDS_QCLE_Test_Base_stub
- libs += Receiver_stub DDS_QCLE_Test_Connector_stub \
- DDS_QCLE_Test_Base_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = Receiver_lem_stub
- dynamicflags += RECEIVER_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLE_Test_ReceiverEC.cpp
- }
-
- Header_Files {
- QCLE_Test_ReceiverEC.h
- Receiver_lem_stub_export.h
- }
-
- Inline_Files {
- QCLE_Test_ReceiverEC.inl
- }
-}
-
-project(DDS_QCLE_Test_Receiver_stub) : ccm_stub, dds4ccm_base {
- after += DDS_QCLE_Test_Receiver_idl_gen DDS_QCLE_Test_Connector_stub \
- DDS_QCLE_Test_Base_stub DDS_QCLE_Test_Connector_lem_gen
- libs += DDS_QCLE_Test_Connector_stub DDS_QCLE_Test_Base_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = Receiver_stub
- dynamicflags += RECEIVER_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLE_Test_ReceiverC.cpp
- }
-
- Header_Files {
- QCLE_Test_ReceiverC.h
- Receiver_stub_export.h
- }
-
- Inline_Files {
- QCLE_Test_ReceiverC.inl
- }
-}
-
-project(DDS_QCLE_Test_Receiver_exec) : ciao_executor, dds4ccm_lem_stub {
- after += DDS_QCLE_Test_Receiver_lem_stub DDS_QCLE_Test_Receiver_stub \
- DDS_QCLE_Test_Base_stub DDS_QCLE_Test_Connector_stub \
- DDS_QCLE_Test_Connector_lem_stub
- sharedname = Receiver_exec
- libs += Receiver_stub Receiver_lem_stub DDS_QCLE_Test_Base_stub \
- DDS_QCLE_Test_Connector_stub DDS_QCLE_Test_Connector_lem_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += RECEIVER_EXEC_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLE_Test_Receiver_exec.cpp
- }
-
- Header_Files {
- QCLE_Test_Receiver_exec.h
- Receiver_exec_export.h
- }
-
- Inline_Files {
- }
-}
-
-
-project(DDS_QCLE_Test_Receiver_svnt) : ciao_servant, dds4ccm_lem_stub, dds4ccm_skel {
- after += DDS_QCLE_Test_Receiver_lem_stub DDS_QCLE_Test_Base_stub \
- DDS_QCLE_Test_Connector_stub DDS_QCLE_Test_Connector_svnt \
- DDS_QCLE_Test_Receiver_exec DDS_QCLE_Test_Connector_lem_stub
- sharedname = Receiver_svnt
- libs += Receiver_stub Receiver_lem_stub DDS_QCLE_Test_Base_stub \
- DDS_QCLE_Test_Connector_stub DDS_QCLE_Test_Connector_svnt \
- Receiver_exec DDS_QCLE_Test_Connector_lem_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += RECEIVER_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLE_Test_ReceiverS.cpp
- QCLE_Test_Receiver_svnt.cpp
- }
-
- Header_Files {
- QCLE_Test_ReceiverS.h
- QCLE_Test_Receiver_svnt.h
- Receiver_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Receiver/QCLE_Test_Receiver_exec.cpp b/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Receiver/QCLE_Test_Receiver_exec.cpp
deleted file mode 100644
index 189a1b08bf8..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Receiver/QCLE_Test_Receiver_exec.cpp
+++ /dev/null
@@ -1,364 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-
-#include "QCLE_Test_Receiver_exec.h"
-
-#include "dds4ccm/impl/dds4ccm_conf.h"
-
-#define QUERY "( (iteration > %0) AND (iteration < %1) )"
-
-#define MIN_ITERATION "2"
-#define MAX_ITERATION "5"
-
-#define SAMPLES_PER_KEY 2 //only iteration 3 and 4 should be coming in....
-
-namespace CIAO_QCLE_Test_Receiver_Impl
-{
-
- /**
- * Facet Executor Implementation Class: info_listen_data_listener_exec_i
- */
-
- info_listen_data_listener_exec_i::info_listen_data_listener_exec_i (
- ::QCLE_Test::CCM_Receiver_Context_ptr ctx,
- ACE_Thread_ID &thread_id,
- Atomic_Long &samples_received)
- : ciao_context_ (
- ::QCLE_Test::CCM_Receiver_Context::_duplicate (ctx))
- , thread_id_ (thread_id)
- , samples_received_ (samples_received)
- {
- }
-
- info_listen_data_listener_exec_i::~info_listen_data_listener_exec_i (void)
- {
- }
-
- // Operations from ::QCLE_Test::QueryConditionListenEventTestConnector::Listener
-
- void
- info_listen_data_listener_exec_i::on_one_data (const ::QueryConditionListenEventTest & datum,
- const ::CCM_DDS::ReadInfo & info)
- {
- ACE_Thread_ID t_id;
- this->thread_id_ = t_id;
- ++this->samples_received_;
-
- ACE_DEBUG ((LM_DEBUG, "QueryConditionListenEventTest_Listener::on_one_data: "
- "key <%C> - iteration <%d>\n",
- datum.key.in (),
- datum.iteration));
- if (info.instance_handle == ::DDS::HANDLE_NIL)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: QueryConditionListenEventTest_Listener::on_one_data: "
- "instance handle seems to be invalid "
- "key <%C> - iteration <%d>\n",
- datum.key.in (),
- datum.iteration));
- }
- if (info.source_timestamp.sec == 0 &&
- info.source_timestamp.nanosec == 0)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: QueryConditionListenEventTest_Listener::on_one_data: "
- "source timestamp seems to be invalid (nil) "
- "key <%C> - iteration <%d>\n",
- datum.key.in (),
- datum.iteration));
- }
- if (datum.iteration <= ACE_OS::atoi (MIN_ITERATION) ||
- datum.iteration > ACE_OS::atoi (MAX_ITERATION) )
- {
- ACE_ERROR ((LM_ERROR, "QueryConditionListenEventTest_Listener::on_one_data: "
- "ERROR: Unexpected iteration received.\n"));
- }
- }
-
- void
- info_listen_data_listener_exec_i::on_many_data (const ::QueryConditionListenEventTestSeq & /* data */,
- const ::CCM_DDS::ReadInfoSeq & /* infos */)
- {
- /* Your code here. */
- }
-
- /**
- * Facet Executor Implementation Class: info_listen_status_exec_i
- */
-
- info_listen_status_exec_i::info_listen_status_exec_i (
- ::QCLE_Test::CCM_Receiver_Context_ptr ctx)
- : ciao_context_ (
- ::QCLE_Test::CCM_Receiver_Context::_duplicate (ctx))
- {
- }
-
- info_listen_status_exec_i::~info_listen_status_exec_i (void)
- {
- }
-
- // Operations from ::CCM_DDS::PortStatusListener
-
- void
- info_listen_status_exec_i::on_requested_deadline_missed (::DDS::DataReader_ptr /* the_reader */,
- const ::DDS::RequestedDeadlineMissedStatus & /* status */)
- {
- /* Your code here. */
- }
-
- void
- info_listen_status_exec_i::on_sample_lost (::DDS::DataReader_ptr /* the_reader */,
- const ::DDS::SampleLostStatus & /* status */)
- {
- /* Your code here. */
- }
-
- /**
- * Component Executor Implementation Class: Receiver_exec_i
- */
-
- Receiver_exec_i::Receiver_exec_i (void)
- : keys_ (5)
- , iterations_ (10)
- , thread_id_listener_ (0, 0)
- , samples_expected_ (keys_ * SAMPLES_PER_KEY)
- , samples_received_ (0)
- {
- }
-
- Receiver_exec_i::~Receiver_exec_i (void)
- {
- }
-
- // Supported operations and attributes.
- void
- Receiver_exec_i::start ()
- {
- ::CCM_DDS::DataListenerControl_var dlc =
- this->ciao_context_->get_connection_info_listen_data_control ();
- dlc->mode (::CCM_DDS::ONE_BY_ONE);
- }
-
- // Component attributes and port operations.
-
- ::QCLE_Test::QueryConditionListenEventTestConnector::CCM_Listener_ptr
- Receiver_exec_i::get_info_listen_data_listener (void)
- {
- if ( ::CORBA::is_nil (this->ciao_info_listen_data_listener_.in ()))
- {
- info_listen_data_listener_exec_i *tmp = 0;
- ACE_NEW_RETURN (
- tmp,
- info_listen_data_listener_exec_i (
- this->ciao_context_.in (),
- this->thread_id_listener_,
- this->samples_received_),
- ::QCLE_Test::QueryConditionListenEventTestConnector::CCM_Listener::_nil ());
-
- this->ciao_info_listen_data_listener_ = tmp;
- }
-
- return
- ::QCLE_Test::QueryConditionListenEventTestConnector::CCM_Listener::_duplicate (
- this->ciao_info_listen_data_listener_.in ());
- }
-
- ::CCM_DDS::CCM_PortStatusListener_ptr
- Receiver_exec_i::get_info_listen_status (void)
- {
- if ( ::CORBA::is_nil (this->ciao_info_listen_status_.in ()))
- {
- info_listen_status_exec_i *tmp = 0;
- ACE_NEW_RETURN (
- tmp,
- info_listen_status_exec_i (
- this->ciao_context_.in ()),
- ::CCM_DDS::CCM_PortStatusListener::_nil ());
-
- this->ciao_info_listen_status_ = tmp;
- }
-
- return
- ::CCM_DDS::CCM_PortStatusListener::_duplicate (
- this->ciao_info_listen_status_.in ());
- }
-
- ::CORBA::UShort
- Receiver_exec_i::keys (void)
- {
- return this->keys_;
- }
-
- void
- Receiver_exec_i::keys (
- const ::CORBA::UShort keys)
- {
- this->keys_ = keys;
- }
-
- ::CORBA::UShort
- Receiver_exec_i::iterations (void)
- {
- return this->iterations_;
- }
-
- void
- Receiver_exec_i::iterations (
- const ::CORBA::UShort iterations)
- {
- this->iterations_ = iterations;
- }
-
- // Operations from Components::SessionComponent.
-
- void
- Receiver_exec_i::set_session_context (
- ::Components::SessionContext_ptr ctx)
- {
- this->ciao_context_ =
- ::QCLE_Test::CCM_Receiver_Context::_narrow (ctx);
-
- if ( ::CORBA::is_nil (this->ciao_context_.in ()))
- {
- throw ::CORBA::INTERNAL ();
- }
- }
-
- void
- Receiver_exec_i::configuration_complete (void)
- {
- /* Your code here. */
- }
-
- void
- Receiver_exec_i::ccm_activate (void)
- {
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::ccm_activate - "
- "Set filter.\n"));
-
- CCM_DDS::QueryFilter filter;
- filter.expression = CORBA::string_dup (QUERY);
- filter.parameters.length (2);
- filter.parameters[0] = CORBA::string_dup (MIN_ITERATION);
- filter.parameters[1] = CORBA::string_dup (MAX_ITERATION);
-
- ::QCLE_Test::QueryConditionListenEventTestConnector::Reader_var reader =
- this->ciao_context_->get_connection_info_listen_data ();
-
- reader->query (filter);
-
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::ccm_activate - "
- "Start listening.\n"));
- start ();
- }
-
- void
- Receiver_exec_i::ccm_passivate (void)
- {
- /* Your code here. */
- }
-
- void
- Receiver_exec_i::ccm_remove (void)
- {
- char ccm_buf [65];
- ACE_Thread_ID ccm_thread_id;
- ccm_thread_id.to_string (ccm_buf);
-
- char list_buf [65];
- this->thread_id_listener_.to_string (list_buf);
-
-
- if (this->thread_id_listener_.id () == 0)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: "
- "Thread ID for ReaderListener not set!\n"));
- }
- #if (CIAO_DDS4CCM_CONTEXT_SWITCH == 1)
- else if (this->thread_id_listener_ == ccm_thread_id)
- {
- ACE_DEBUG ((LM_DEBUG, "QF_EVENT: "
- "Thread switch for ReaderListener seems OK. "
- "(DDS uses the CCM thread for its callback) "
- "listener <%C> - component <%C>\n",
- list_buf,
- ccm_buf));
- }
- else
- {
- ACE_ERROR ((LM_ERROR, "ERROR: QF_EVENT: "
- "Thread switch for ReaderListener "
- "doesn't seem to work! "
- "listener <%C> - component <%C>\n",
- list_buf,
- ccm_buf));
- }
- #else
- else if (this->thread_id_listener_ == ccm_thread_id)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: QF_EVENT: ReaderListener: "
- "DDS seems to use a CCM thread for its callback: "
- "listener <%C> - component <%C>\n",
- list_buf,
- ccm_buf));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "QF_EVENT: ReaderListener: "
- "DDS seems to use its own thread for its callback: "
- "listener <%C> - component <%C>\n",
- list_buf,
- ccm_buf));
- }
- #endif
- if (this->samples_received_ != this->samples_expected_)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: QF_EVENT: ReaderListener: "
- "Unexpected number of samples received: "
- "expected <%d> - received <%d>\n",
- this->samples_expected_,
- this->samples_received_.value ()));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "QF_EVENT: ReaderListener: "
- "Expected number of samples received: "
- "expected <%d> - received <%d>\n",
- this->samples_expected_,
- this->samples_received_.value ()));
- }
- }
-
- extern "C" RECEIVER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_QCLE_Test_Receiver_Impl (void)
- {
- ::Components::EnterpriseComponent_ptr retval =
- ::Components::EnterpriseComponent::_nil ();
-
- ACE_NEW_NORETURN (
- retval,
- Receiver_exec_i);
-
- return retval;
- }
-}
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Receiver/QCLE_Test_Receiver_exec.h b/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Receiver/QCLE_Test_Receiver_exec.h
deleted file mode 100644
index 00745c85c30..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Receiver/QCLE_Test_Receiver_exec.h
+++ /dev/null
@@ -1,191 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-#ifndef CIAO_QCLE_TEST_RECEIVER_EXEC_EETZIS_H_
-#define CIAO_QCLE_TEST_RECEIVER_EXEC_EETZIS_H_
-
-#include /**/ "ace/pre.h"
-
-#include "QCLE_Test_ReceiverEC.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include /**/ "Receiver_exec_export.h"
-#include "tao/LocalObject.h"
-
-namespace CIAO_QCLE_Test_Receiver_Impl
-{
- class Receiver_exec_i;
-
- typedef ACE_Atomic_Op <TAO_SYNCH_MUTEX, CORBA::Long> Atomic_Long;
-
- /**
- * Provider Executor Implementation Class: info_listen_data_listener_exec_i
- */
-
- class info_listen_data_listener_exec_i
- : public virtual ::QCLE_Test::QueryConditionListenEventTestConnector::CCM_Listener,
- public virtual ::CORBA::LocalObject
- {
- public:
- info_listen_data_listener_exec_i (
- ::QCLE_Test::CCM_Receiver_Context_ptr ctx,
- ACE_Thread_ID &thread_id,
- Atomic_Long &samples_received);
- virtual ~info_listen_data_listener_exec_i (void);
-
- //@{
- /** Operations and attributes from QCLE_Test::QueryConditionListenEventTestConnector::Listener. */
-
- virtual
- void on_one_data (const ::QueryConditionListenEventTest & datum,
- const ::CCM_DDS::ReadInfo & info);
-
- virtual
- void on_many_data (const ::QueryConditionListenEventTestSeq & data,
- const ::CCM_DDS::ReadInfoSeq & infos);
- //@}
-
- private:
- ::QCLE_Test::CCM_Receiver_Context_var ciao_context_;
- ACE_Thread_ID &thread_id_;
- Atomic_Long &samples_received_;
- };
-
- /**
- * Provider Executor Implementation Class: info_listen_status_exec_i
- */
-
- class info_listen_status_exec_i
- : public virtual ::CCM_DDS::CCM_PortStatusListener,
- public virtual ::CORBA::LocalObject
- {
- public:
- info_listen_status_exec_i (
- ::QCLE_Test::CCM_Receiver_Context_ptr ctx);
- virtual ~info_listen_status_exec_i (void);
-
- //@{
- /** Operations and attributes from CCM_DDS::PortStatusListener. */
-
- virtual
- void on_requested_deadline_missed (::DDS::DataReader_ptr the_reader,
- const ::DDS::RequestedDeadlineMissedStatus & status);
-
- virtual
- void on_sample_lost (::DDS::DataReader_ptr the_reader,
- const ::DDS::SampleLostStatus & status);
- //@}
-
- private:
- ::QCLE_Test::CCM_Receiver_Context_var ciao_context_;
- };
-
- /**
- * Component Executor Implementation Class: Receiver_exec_i
- */
-
- class Receiver_exec_i
- : public virtual Receiver_Exec,
- public virtual ::CORBA::LocalObject
- {
- public:
- Receiver_exec_i (void);
- virtual ~Receiver_exec_i (void);
-
- //@{
- /** Supported operations and attributes. */
-
- //@}
-
- //@{
- /** Component attributes and port operations. */
-
- virtual ::QCLE_Test::QueryConditionListenEventTestConnector::CCM_Listener_ptr
- get_info_listen_data_listener (void);
-
- virtual ::CCM_DDS::CCM_PortStatusListener_ptr
- get_info_listen_status (void);
-
- virtual ::CORBA::UShort keys (void);
-
- virtual void keys (::CORBA::UShort keys);
-
- virtual ::CORBA::UShort iterations (void);
-
- virtual void iterations (::CORBA::UShort iterations);
- //@}
-
- //@{
- /** 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 start (void);
-
- //@}
-
- private:
- ::QCLE_Test::CCM_Receiver_Context_var ciao_context_;
-
- //@{
- /** Component attributes. */
- ::QCLE_Test::QueryConditionListenEventTestConnector::CCM_Listener_var ciao_info_listen_data_listener_;
- ::CCM_DDS::CCM_PortStatusListener_var ciao_info_listen_status_;
-
- ::CORBA::UShort keys_;
-
- ::CORBA::UShort iterations_;
- //@}
-
- //@{
- /** User defined members. */
- ACE_Thread_ID thread_id_listener_;
-
- CORBA::Long samples_expected_;
- Atomic_Long samples_received_;
-
- //@}
-
- //@{
- /** User defined private operations. */
-
- //@}
- };
-
- extern "C" RECEIVER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_QCLE_Test_Receiver_Impl (void);
-}
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Sender/QCLE_Test_Sender.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Sender/QCLE_Test_Sender.idl
deleted file mode 100644
index 174c6d68a69..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Sender/QCLE_Test_Sender.idl
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef DDS_QUERY_CONDITION_LISTEN_EVENT_TEST_SENDER_IDL
-#define DDS_QUERY_CONDITION_LISTEN_EVENT_TEST_SENDER_IDL
-
-#include "Connector/QCLE_Test_Connector.idl"
-
-module QCLE_Test
-{
- component Sender
- {
- port QueryConditionListenEventTestConnector::DDS_Write info_write;
- provides CCM_DDS::ConnectorStatusListener connector_status;
-
- attribute unsigned short keys;
- attribute unsigned short iterations;
- };
-};
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Sender/QCLE_Test_Sender.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Sender/QCLE_Test_Sender.mpc
deleted file mode 100644
index 6db4c023bf0..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Sender/QCLE_Test_Sender.mpc
+++ /dev/null
@@ -1,145 +0,0 @@
-// This file is generated with "generate_component_mpc.pl -p DDS_QCLE_Test_Base -l ../lib -o ../lib -c controller -u DDS Sender"
-
-project(DDS_QCLE_Test_Sender_idl_gen) : componentidldefaults, dds4ccm {
- after += DDS_QCLE_Test_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 {
- QCLE_Test_Sender.idl
- }
-}
-
-project(DDS_QCLE_Test_Sender_lem_gen) : ciaoidldefaults, dds4ccm {
- after += DDS_QCLE_Test_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 {
- QCLE_Test_SenderE.idl
- }
-}
-
-project(DDS_QCLE_Test_Sender_lem_stub) : ccm_svnt, dds4ccm_base {
- after += DDS_QCLE_Test_Sender_lem_gen DDS_QCLE_Test_Sender_stub \
- DDS_QCLE_Test_Base_stub
- libs += DDS_QCLE_Test_Base_stub Sender_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = Sender_lem_stub
- dynamicflags += SENDER_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLE_Test_SenderEC.cpp
- }
-
- Header_Files {
- QCLE_Test_SenderEC.h
- Sender_lem_stub_export.h
- }
-
- Inline_Files {
- QCLE_Test_SenderEC.inl
- }
-}
-
-project(DDS_QCLE_Test_Sender_stub) : ccm_stub, dds4ccm_base {
- after += DDS_QCLE_Test_Sender_idl_gen DDS_QCLE_Test_Base_stub \
- DDS_QCLE_Test_Connector_stub
- libs += DDS_QCLE_Test_Base_stub DDS_QCLE_Test_Connector_stub
- includes += ..
- libpaths += ../lib
- libout = ../lib
- sharedname = Sender_stub
- dynamicflags += SENDER_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLE_Test_SenderC.cpp
- }
-
- Header_Files {
- QCLE_Test_SenderC.h
- Sender_stub_export.h
- }
-
- Inline_Files {
- QCLE_Test_SenderC.inl
- }
-}
-
-project(DDS_QCLE_Test_Sender_exec) : ciao_executor, dds4ccm_lem_stub {
- after += DDS_QCLE_Test_Sender_lem_stub DDS_QCLE_Test_Sender_stub \
- DDS_QCLE_Test_Connector_lem_stub DDS_QCLE_Test_Connector_stub
- sharedname = Sender_exec
- libs += Sender_stub Sender_lem_stub DDS_QCLE_Test_Base_stub \
- DDS_QCLE_Test_Connector_lem_stub DDS_QCLE_Test_Connector_stub
- libpaths += ../lib
- includes += ..
- libout = ../lib
- dynamicflags += SENDER_EXEC_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLE_Test_Sender_exec.cpp
- }
-
- Header_Files {
- QCLE_Test_Sender_exec.h
- Sender_exec_export.h
- }
-
- Inline_Files {
- }
-}
-
-
-project(DDS_QCLE_Test_Sender_svnt) : ciao_servant, dds4ccm_lem_stub, dds4ccm_skel {
- after += DDS_QCLE_Test_Base_stub DDS_QCLE_Test_Sender_lem_stub \
- DDS_QCLE_Test_Connector_stub \
- DDS_QCLE_Test_Connector_svnt DDS_QCLE_Test_Connector_lem_stub
- sharedname = Sender_svnt
- libs += Sender_stub Sender_lem_stub DDS_QCLE_Test_Base_stub \
- DDS_QCLE_Test_Connector_stub DDS_QCLE_Test_Connector_svnt \
- DDS_QCLE_Test_Connector_lem_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += SENDER_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLE_Test_SenderS.cpp
- QCLE_Test_Sender_svnt.cpp
- }
-
- Header_Files {
- QCLE_Test_SenderS.h
- QCLE_Test_Sender_svnt.h
- Sender_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Sender/QCLE_Test_Sender_exec.cpp b/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Sender/QCLE_Test_Sender_exec.cpp
deleted file mode 100644
index 4da701e33f9..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Sender/QCLE_Test_Sender_exec.cpp
+++ /dev/null
@@ -1,323 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-
-#include "QCLE_Test_Sender_exec.h"
-#include "tao/ORB_Core.h"
-#include "ace/Reactor.h"
-
-namespace CIAO_QCLE_Test_Sender_Impl
-{
- /**
- * Write ticker
- */
- ConnectorStatusListener_exec_i::ConnectorStatusListener_exec_i (
- Sender_exec_i &callback)
- : callback_ (callback)
- {
- }
-
- 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 (status_kind == ::DDS::PUBLICATION_MATCHED_STATUS)
- {
- ACE_DEBUG ((LM_DEBUG, "ConnectorStatusListener_exec_i::on_unexpected_status - "
- "Publication matched received: starting the test\n"));
-
- this->callback_.get_started ();
- }
- }
-
- /**
- * Write ticker
- */
-
- WriteTicker::WriteTicker (Sender_exec_i &callback)
- : callback_ (callback)
- {
- }
-
- int
- WriteTicker::handle_timeout (const ACE_Time_Value &, const void *)
- {
- // Notify the subscribers
- this->callback_.write_one ();
- return 0;
- }
-
-
- /**
- * Component Executor Implementation Class: Sender_exec_i
- */
-
- Sender_exec_i::Sender_exec_i (void)
- : keys_ (5)
- , iterations_ (10)
- {
- this->ticker_ = new WriteTicker (*this);
- }
-
- Sender_exec_i::~Sender_exec_i (void)
- {
- delete this->ticker_;
- }
-
- // 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::write_one (void)
- {
- if (this->last_key_ != this->samples_.end ())
- {
- try
- {
- ::QCLE_Test::QueryConditionListenEventTestConnector::Writer_var writer =
- this->ciao_context_->get_connection_info_write_data ();
-
- ++this->last_key_->second->iteration;
- writer->write_one (this->last_key_->second, ::DDS::HANDLE_NIL);
- ACE_DEBUG ((LM_DEBUG, "Written key <%C> - <%u>\n",
- this->last_key_->first.c_str (),
- this->last_key_->second->iteration));
- }
- catch (const CCM_DDS::InternalError& )
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("ERROR: Internal Error ")
- ACE_TEXT ("while updating writer info for <%C>.\n"),
- this->last_key_->first.c_str ()));
- }
- ++this->last_key_;
- }
- else
- {
- //onto the next iteration
- this->last_key_ = this->samples_.begin ();
- while (this->last_key_ != this->samples_.end ())
- {
- if (this->last_key_->second->iteration == this->iterations_)
- {
- //next key
- ++this->last_key_;
- }
- else
- {
- break;
- }
- }
- if (this->last_key_ == this->samples_.end ())
- {
- this->reactor ()->cancel_timer (this->ticker_);
- }
- }
- }
-
- void
- Sender_exec_i::get_started (void)
- {
- try
- {
- this->start ();
- }
- catch (const ::CORBA::Exception& ex)
- {
- ex._tao_print_exception ("Exception caught:");
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("ERROR: Sender_exec_i::get_started: Exception caught\n")));
- }
- catch (...)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("ERROR: Sender_exec_i::get_started: Unknown exception caught\n")));
- }
- }
-
- void
- Sender_exec_i::start (void)
- {
- ACE_GUARD_THROW_EX (TAO_SYNCH_MUTEX, _guard,
- this->mutex_, CORBA::INTERNAL ());
-
- for (CORBA::UShort i = 1; i < this->keys_ + 1; ++i)
- {
- char key[7];
- QueryConditionListenEventTest* new_key = new QueryConditionListenEventTest;
- ACE_OS::sprintf (key, "KEY_%d", i);
- new_key->key = CORBA::string_dup(key);
- new_key->iteration = 0;
-
- this->samples_[key] = new_key;
- }
- this->last_key_ = this->samples_.begin ();
- if (this->reactor ()->schedule_timer (
- this->ticker_,
- 0,
- ACE_Time_Value (5, 50000),
- ACE_Time_Value (0, 50000)) == -1)
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("Sender_exec_i::start : ")
- ACE_TEXT ("Error scheduling timer")));
- }
- }
-
- // Component attributes and port operations.
- ::CCM_DDS::CCM_ConnectorStatusListener_ptr
- Sender_exec_i::get_connector_status (void)
- {
- return new ConnectorStatusListener_exec_i (*this);
- }
-
- ::CORBA::UShort
- Sender_exec_i::keys (void)
- {
- return this->keys_;
- }
-
- void
- Sender_exec_i::keys (
- const ::CORBA::UShort keys)
- {
- this->keys_ = keys;
- }
-
- ::CORBA::UShort
- Sender_exec_i::iterations (void)
- {
- return this->iterations_;
- }
-
- void
- Sender_exec_i::iterations (
- const ::CORBA::UShort iterations)
- {
- this->iterations_ = iterations;
- }
-
- // Operations from Components::SessionComponent.
-
- void
- Sender_exec_i::set_session_context (
- ::Components::SessionContext_ptr ctx)
- {
- this->ciao_context_ =
- ::QCLE_Test::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)
- {
- }
-
- void
- Sender_exec_i::ccm_passivate (void)
- {
- /* Your code here. */
- }
-
- void
- Sender_exec_i::ccm_remove (void)
- {
- /* Your code here. */
- }
-
- extern "C" SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_QCLE_Test_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/QueryCondition/EventListener/Sender/QCLE_Test_Sender_exec.h b/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Sender/QCLE_Test_Sender_exec.h
deleted file mode 100644
index 63db4bc3888..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/Sender/QCLE_Test_Sender_exec.h
+++ /dev/null
@@ -1,179 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-#ifndef CIAO_QCLE_TEST_SENDER_EXEC_ZNGRZK_H_
-#define CIAO_QCLE_TEST_SENDER_EXEC_ZNGRZK_H_
-
-#include /**/ "ace/pre.h"
-
-#include "QCLE_Test_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_QCLE_Test_Sender_Impl
-{
- class Sender_exec_i;
-
- /**
- * ConnectorStatusListener_exec_i
- */
- class SENDER_EXEC_Export ConnectorStatusListener_exec_i
- : public virtual ::CCM_DDS::CCM_ConnectorStatusListener,
- public virtual ::CORBA::LocalObject
- {
- public:
- ConnectorStatusListener_exec_i (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_;
- };
-
- /**
- * Write ticker
- */
-
- class WriteTicker :
- public ACE_Event_Handler
- {
- public:
- WriteTicker (Sender_exec_i &callback);
- int handle_timeout (const ACE_Time_Value &, const void *);
- 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. */
-
- //@}
-
- //@{
- /** Component attributes and port operations. */
- virtual ::CCM_DDS::CCM_ConnectorStatusListener_ptr
- get_connector_status (void);
-
- virtual ::CORBA::UShort keys (void);
-
- virtual void keys (::CORBA::UShort keys);
-
- virtual ::CORBA::UShort iterations (void);
-
- virtual void iterations (::CORBA::UShort iterations);
- //@}
-
- //@{
- /** 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 get_started (void);
- void write_one (void);
-
- //@}
-
- private:
- ::QCLE_Test::CCM_Sender_Context_var ciao_context_;
-
- //@{
- /** Component attributes. */
-
- ::CORBA::UShort keys_;
-
- ::CORBA::UShort iterations_;
- //@}
-
- //@{
- /** User defined members. */
- WriteTicker *ticker_;
-
- TAO_SYNCH_MUTEX mutex_;
- typedef std::map<ACE_CString, QueryConditionListenEventTest_var> Writer_Table;
- Writer_Table samples_;
-
- Writer_Table::iterator last_key_;
-
- //@}
-
- //@{
- /** User defined private operations. */
- void start (void);
-
- //@}
-
- /// Get the ACE_Reactor
- ACE_Reactor* reactor (void);
- };
-
- extern "C" SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_QCLE_Test_Sender_Impl (void);
-}
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/descriptors/Plan.cdp b/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/descriptors/Plan.cdp
deleted file mode 100644
index e3b0bb0a926..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/descriptors/Plan.cdp
+++ /dev/null
@@ -1,413 +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>QCLE_Test_Depl_1</label>
- <UUID>QCLE_Test_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_QCLE_Test_Receiver_Impl</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_QCLE_Test_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="QCLE_Test_ConnectorComponentImplementation">
- <name>QCLE_Test_ConnectorComponentImplementation</name>
- <source/>
- <artifact xmi:idref="QCLE_Test_Connector_ExecArtifact" />
- <artifact xmi:idref="QCLE_Test_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_QCLE_Test_QueryConditionListenEventTestConnector_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_QCLE_Test_QueryConditionListenEventTestConnector_DDS_Event_Servant</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QCLE_Test_Connector_svnt</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QCLE_Test_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_QCLE_Test_Sender_Impl</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_QCLE_Test_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="ReceiverComponentInstance">
- <name>ReceiverComponent</name>
- <node>ReceiverNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="ReceiverComponentImplementation" />
- <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>
- </instance>
- <instance xmi:id="QCLE_Test_ConnectorComponentInstance">
- <name>QCLE_Test_ConnectorComponent</name>
- <node>SenderNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="QCLE_Test_ConnectorComponentImplementation" />
- <configProperty>
- <name>topic_name</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QCLE_Test</string>
- </value>
- </value>
- </configProperty>
- </instance>
- <instance xmi:id="QCLE_Test_ConnectorComponentInstance2">
- <name>QCLE_Test_ConnectorComponent2</name>
- <node>ReceiverNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="QCLE_Test_ConnectorComponentImplementation" />
- <configProperty>
- <name>topic_name</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QCLE_Test</string>
- </value>
- </value>
- </configProperty>
- </instance>
- <instance xmi:id="SenderComponentInstance">
- <name>SenderComponent</name>
- <node>SenderNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="SenderComponentImplementation" />
- <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>
- </instance>
-
- <connection>
- <name>info_listen_reader_receiver</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>info_listen_data</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>push_consumer_data</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="QCLE_Test_ConnectorComponentInstance2" />
- </internalEndpoint>
- </connection>
-
- <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="QCLE_Test_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="QCLE_Test_ConnectorComponentInstance2" />
- </internalEndpoint>
- </connection>
-
- <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="QCLE_Test_ConnectorComponentInstance" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>connector_status_connection</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>error_listener</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="QCLE_Test_ConnectorComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>connector_status</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="SenderComponentInstance" />
- </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="QCLE_Test_Connector_ExecArtifact">
- <name>QCLE_Test_Connector_exec</name>
- <source/>
- <node/>
- <location>DDS_QCLE_Test_Connector_exec</location>
- </artifact>
- <artifact xmi:id="QCLE_Test_Connector_SvntArtifact">
- <name>QCLE_Test_Connector_svnt</name>
- <source/>
- <node/>
- <location>DDS_QCLE_Test_Connector_svnt</location>
- </artifact>
- <artifact xmi:id="QCLE_Test_Connector_StubArtifact">
- <name>QCLE_Test_Connector_stub</name>
- <source/>
- <node/>
- <location>DDS_QCLE_Test_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/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/descriptors/run_test.pl b/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/descriptors/run_test.pl
deleted file mode 100755
index d8b4eca445d..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/EventListener/descriptors/run_test.pl
+++ /dev/null
@@ -1,243 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# -*- perl -*-
-
-use lib "$ENV{'ACE_ROOT'}/bin";
-use PerlACE::TestTarget;
-
-$CIAO_ROOT = "$ENV{'CIAO_ROOT'}";
-$TAO_ROOT = "$ENV{'TAO_ROOT'}";
-$DANCE_ROOT = "$ENV{'DANCE_ROOT'}";
-
-$daemons_running = 0;
-$em_running = 0;
-$ns_running = 0;
-
-$nr_daemon = 2;
-@ports = ( 60001, 60002 );
-@iorbases = ( "NodeApp1.ior", "NodeApp2.ior" );
-@iorfiles = 0;
-@nodenames = ( "SenderNode", "ReceiverNode" );
-
-# 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;
-$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 30 seconds to allow task to complete\n";
-sleep (30);
-
-# Invoke executor - stop the application -.
-print "Invoking executor - stop the application -\n";
-print "by running dance_plan_launcher.exe with -k file://$ior_emfile -x $cdp_file\n";
-
-$E = $tg_executor->CreateProcess ("$DANCE_ROOT/bin/dance_plan_launcher",
- "-k file://$ior_emfile -x $cdp_file -s");
-$pl_status = $E->SpawnWaitKill ($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;
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Base/ReadGet_Starter.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Base/ReadGet_Starter.idl
deleted file mode 100644
index b61d30c7687..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Base/ReadGet_Starter.idl
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * @file ReadGet_Starter.idl
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef QUERYCONDITION_STARTER_IDL
-#define QUERYCONDITION_STARTER_IDL
-
-#pragma ciao lem "Base/ReadGet_StarterE.idl"
-
-interface ReadGetStarter
-{
- void set_reader_properties (in unsigned short nr_keys,
- in unsigned short nr_iterations);
- void start_read (in unsigned short run);
-};
-
-interface ReadGetRestarter
-{
- void restart_write ();
-};
-
-#endif /* QUERYCONDITION_STARTER_IDL */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Base/ReadGet_Starter.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Base/ReadGet_Starter.mpc
deleted file mode 100644
index 4c41bda9f0c..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Base/ReadGet_Starter.mpc
+++ /dev/null
@@ -1,109 +0,0 @@
-project(QC_ReadGet_Starter_idl_gen) : componentidldefaults, dds4ccm {
- custom_only = 1
- idlflags += -Wb,stub_export_macro=READER_STARTER_STUB_Export \
- -Wb,stub_export_include=ReadGet_Starter_stub_export.h \
- -Wb,skel_export_macro=READER_STARTER_SVNT_Export \
- -Wb,skel_export_include=ReadGet_Starter_svnt_export.h \
- -Wb,svnt_export_macro=READER_STARTER_SVNT_Export \
- -Wb,svnt_export_include=ReadGet_Starter_svnt_export.h \
- -Wb,exec_export_macro=READER_STARTER_EXEC_Export \
- -Wb,exec_export_include=ReadGet_Starter_exec_export.h -I..
-
- IDL_Files {
- ReadGet_Starter.idl
- }
-}
-
-project(QC_ReadGet_Starter_lem_gen) : ciaoidldefaults, dds4ccm {
- after += QC_ReadGet_Starter_idl_gen
- custom_only = 1
- idlflags += -Wb,stub_export_macro=READER_STARTER_LEM_STUB_Export \
- -Wb,stub_export_include=ReadGet_Starter_lem_stub_export.h \
- -SS -Gxhst -I..
-
- IDL_Files {
- ReadGet_StarterE.idl
- }
-}
-
-project(QC_ReadGet_Starter_lem_stub) : ccm_svnt, dds4ccm_base {
- after += QC_ReadGet_Starter_lem_gen QC_ReadGet_Starter_stub
- libs += QC_ReadGet_Starter_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = QC_ReadGet_Starter_lem_stub
- dynamicflags += READER_STARTER_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- ReadGet_StarterEC.cpp
- }
-
- Header_Files {
- ReadGet_StarterEC.h
- ReadGet_Starter_lem_stub_export.h
- }
-
- Inline_Files {
- ReadGet_StarterEC.inl
- }
-}
-
-project(QC_ReadGet_Starter_stub) : ccm_stub, dds4ccm_base {
- after += QC_ReadGet_Starter_idl_gen
- libs +=
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = QC_ReadGet_Starter_stub
- dynamicflags += READER_STARTER_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- ReadGet_StarterC.cpp
- }
-
- Header_Files {
- ReadGet_StarterC.h
- ReadGet_Starter_stub_export.h
- }
-
- Inline_Files {
- ReadGet_StarterC.inl
- }
-}
-
-
-project(QC_ReadGet_Starter_svnt) : ciao_servant, dds4ccm_lem_stub, dds4ccm_skel {
- after += QC_ReadGet_Starter_lem_stub QC_ReadGet_Starter_stub
- sharedname = QC_ReadGet_Starter_svnt
- libs += QC_ReadGet_Starter_stub QC_ReadGet_Starter_lem_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += READER_STARTER_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- ReadGet_StarterS.cpp
- ReadGet_Starter_svnt.cpp
- }
-
- Header_Files {
- ReadGet_StarterS.h
- ReadGet_Starter_svnt.h
- ReadGet_Starter_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Base/ReadGet_Test_Base.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Base/ReadGet_Test_Base.idl
deleted file mode 100644
index 7fadf380e9f..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Base/ReadGet_Test_Base.idl
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * @file ReadGet_Test_Base.idl
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef QUERY_CONDITION_TEST_BASE_IDL
-#define QUERY_CONDITION_TEST_BASE_IDL
-
-#pragma ndds typesupport "Base/ReadGet_Test_BaseSupport.h"
-#pragma opendds typesupport "Base/ReadGet_Test_BaseTypeSupportImpl.h"
-
-#pragma DCPS_DATA_TYPE "QueryConditionTest"
-#pragma DCPS_DATA_KEY "QueryConditionTest symbol"
-
-struct QueryConditionTest {
- string symbol; //@key
- long iteration;
-};
-
-#if defined DDS4CCM_NEEDS_SEQUENCES_DEFINED
-typedef sequence<QueryConditionTest> QueryConditionTestSeq;
-#endif
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Base/ReadGet_Test_Base.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Base/ReadGet_Test_Base.mpc
deleted file mode 100644
index ee8127d2cb3..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Base/ReadGet_Test_Base.mpc
+++ /dev/null
@@ -1,24 +0,0 @@
-project(QC_ReadGet_Test_Base_stub) : taoidldefaults, dds4ccm_ts_default {
- sharedname = QC_ReadGet_Test_Base_stub
- dynamicflags += QUERY_CONDITION_TEST_BASE_STUB_BUILD_DLL
- libout = ../lib
-
- idlflags += -SS -Sci \
- -Wb,stub_export_macro=QUERY_CONDITION_TEST_BASE_STUB_Export \
- -Wb,stub_export_include=ReadGet_Test_Base_stub_export.h
-
- IDL_Files {
- idlflags += -Gxhst
- ReadGet_Test_Base.idl
- }
-
- opendds_ts_flags += --export=QUERY_CONDITION_TEST_BASE_STUB_Export
-
- DDSGenerator_Files {
- ReadGet_Test_Base.idl
- }
-
- Source_Files {
- }
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Connector/ReadGet_Test_Connector.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Connector/ReadGet_Test_Connector.idl
deleted file mode 100644
index 7a280e41771..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Connector/ReadGet_Test_Connector.idl
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * @file ReadGet_Test_Connector.idl
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef QUERY_CONDITION_TEST_CONNECTOR_IDL_
-#define QUERY_CONDITION_TEST_CONNECTOR_IDL_
-
-#include <Components.idl>
-#include <ccm_dds.idl>
-
-#include "Base/ReadGet_Test_Base.idl"
-
-#pragma ciao lem "Connector/ReadGet_Test_ConnectorE.idl"
-
-#if (CIAO_DDS4CCM_OPENDDS==1)
-# include "Base/ReadGet_Test_BaseTypeSupport.idl"
-#endif
-
-module ReadGet_Test
-{
- module ::CCM_DDS::Typed < ::QueryConditionTest, ::QueryConditionTestSeq> QueryConditionTestConnector;
-};
-
-#endif /* QUERY_CONDITION_TEST_CONNECTOR_IDL_ */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Connector/ReadGet_Test_Connector.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Connector/ReadGet_Test_Connector.mpc
deleted file mode 100644
index bf66a086bcf..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Connector/ReadGet_Test_Connector.mpc
+++ /dev/null
@@ -1,146 +0,0 @@
-// This file is generated with "generate_component_mpc.pl -p ReadGet_Test_Base -l .. -o ../lib -u DDS ReadGet_Test_Connector"
-
-project(QC_ReadGet_Test_Connector_idl_gen) : connectoridldefaults, dds4ccm {
- after += DDS4CCM_idl_gen QC_ReadGet_Test_Base_stub
- custom_only = 1
- idlflags += -Wb,stub_export_macro=QUERY_CONDITION_TEST_CONNECTOR_STUB_Export \
- -Wb,stub_export_include=ReadGet_Test_Connector_stub_export.h \
- -Wb,skel_export_macro=QUERY_CONDITION_TEST_CONNECTOR_SVNT_Export \
- -Wb,skel_export_include=ReadGet_Test_Connector_svnt_export.h \
- -Wb,svnt_export_macro=QUERY_CONDITION_TEST_CONNECTOR_SVNT_Export \
- -Wb,svnt_export_include=ReadGet_Test_Connector_svnt_export.h \
- -Wb,conn_export_macro=QUERY_CONDITION_TEST_CONNECTOR_CONN_Export \
- -Wb,conn_export_include=ReadGet_Test_Connector_conn_export.h \
- -I ..
-
- IDL_Files {
- ReadGet_Test_Connector.idl
- }
-}
-
-project(QC_ReadGet_Test_Connector_lem_gen) : ciaoidldefaults, dds4ccm {
- custom_only = 1
- after += QC_ReadGet_Test_Connector_idl_gen
- idlflags += -Wb,stub_export_macro=QUERY_CONDITION_TEST_CONNECTOR_LEM_STUB_Export \
- -Wb,stub_export_include=ReadGet_Test_Connector_lem_stub_export.h \
- -SS -Gxhst \
- -I ..
-
- IDL_Files {
- ReadGet_Test_ConnectorE.idl
- }
-}
-
-project(QC_ReadGet_Test_Connector_lem_stub) : ccm_svnt, dds4ccm_lem_stub {
- after += QC_ReadGet_Test_Connector_lem_gen QC_ReadGet_Test_Connector_stub \
- QC_ReadGet_Test_Base_stub
- libs += QC_ReadGet_Test_Base_stub QC_ReadGet_Test_Connector_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = QC_ReadGet_Test_Connector_lem_stub
- dynamicflags += QUERY_CONDITION_TEST_CONNECTOR_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- ReadGet_Test_ConnectorEC.cpp
- }
-
- Header_Files {
- ReadGet_Test_ConnectorEC.h
- ReadGet_Test_Connector_lem_stub_export.h
- }
-
- Inline_Files {
- ReadGet_Test_ConnectorEC.inl
- }
-}
-
-project(QC_ReadGet_Test_Connector_stub) : ccm_stub, dds4ccm_base {
- after += QC_ReadGet_Test_Connector_idl_gen QC_ReadGet_Test_Base_stub
- libs += QC_ReadGet_Test_Base_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = QC_ReadGet_Test_Connector_stub
- dynamicflags += QUERY_CONDITION_TEST_CONNECTOR_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- ReadGet_Test_ConnectorC.cpp
- }
-
- Header_Files {
- ReadGet_Test_ConnectorC.h
- ReadGet_Test_Connector_stub_export.h
- }
-
- Inline_Files {
- ReadGet_Test_ConnectorC.inl
- }
-}
-
-project(QC_ReadGet_Test_Connector_exec) : ciao_executor, dds4ccm_impl {
- after += QC_ReadGet_Test_Connector_lem_stub QC_ReadGet_Test_Connector_stub \
- QC_ReadGet_Test_Base_stub
- sharedname = QC_ReadGet_Test_Connector_exec
- libs += QC_ReadGet_Test_Connector_stub QC_ReadGet_Test_Connector_lem_stub \
- QC_ReadGet_Test_Base_stub QC_ReadGet_Test_Base_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += QUERY_CONDITION_TEST_CONNECTOR_CONN_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- ReadGet_Test_Connector_conn.cpp
- }
-
- Header_Files {
- ReadGet_Test_Connector_conn.h
- ReadGet_Test_Connector_conn_export.h
- }
-
- Inline_Files {
- }
-}
-
-
-project(QC_ReadGet_Test_Connector_svnt) : ciao_servant, dds4ccm_impl {
- after += QC_ReadGet_Test_Connector_lem_stub QC_ReadGet_Test_Connector_exec \
- QC_ReadGet_Test_Connector_stub
- sharedname = QC_ReadGet_Test_Connector_svnt
- libs += QC_ReadGet_Test_Connector_stub \
- QC_ReadGet_Test_Connector_lem_stub \
- QC_ReadGet_Test_Base_stub \
- QC_ReadGet_Test_Connector_exec
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += QUERY_CONDITION_TEST_CONNECTOR_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- ReadGet_Test_ConnectorS.cpp
- ReadGet_Test_Connector_svnt.cpp
- }
-
- Header_Files {
- ReadGet_Test_ConnectorS.h
- ReadGet_Test_Connector_svnt.h
- ReadGet_Test_Connector_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Receiver/ReadGet_Test_Receiver.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Receiver/ReadGet_Test_Receiver.idl
deleted file mode 100644
index d77408ba757..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Receiver/ReadGet_Test_Receiver.idl
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * @file
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef RECEIVER_IDL
-#define RECEIVER_IDL
-
-#include "Connector/ReadGet_Test_Connector.idl"
-#include "Base/ReadGet_Starter.idl"
-
-module ReadGet_Test
-{
- component Receiver
- {
- port QueryConditionTestConnector::DDS_Get get_port;
- port QueryConditionTestConnector::DDS_Read check_port;
-
- provides ReadGetStarter reader_start;
- uses ReadGetRestarter writer_restart;
- };
-};
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Receiver/ReadGet_Test_Receiver.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Receiver/ReadGet_Test_Receiver.mpc
deleted file mode 100644
index ff25d209f83..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Receiver/ReadGet_Test_Receiver.mpc
+++ /dev/null
@@ -1,155 +0,0 @@
-project(QC_ReadGet_Test_Receiver_idl_gen) : componentidldefaults, dds4ccm {
- custom_only = 1
- after += QC_ReadGet_Test_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 {
- ReadGet_Test_Receiver.idl
- }
-}
-
-project(QC_ReadGet_Test_Receiver_lem_gen) : ciaoidldefaults, dds4ccm {
- after += QC_ReadGet_Test_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 {
- ReadGet_Test_ReceiverE.idl
- }
-}
-
-project(QC_ReadGet_Test_Receiver_lem_stub) : ccm_svnt, dds4ccm_base {
- after += QC_ReadGet_Test_Receiver_lem_gen QC_ReadGet_Test_Receiver_stub \
- QC_ReadGet_Test_Connector_stub QC_ReadGet_Test_Base_stub \
- QC_ReadGet_Starter_stub
- libs += Receiver_stub QC_ReadGet_Test_Connector_stub \
- QC_ReadGet_Test_Base_stub QC_ReadGet_Starter_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = Receiver_lem_stub
- dynamicflags += RECEIVER_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- ReadGet_Test_ReceiverEC.cpp
- }
-
- Header_Files {
- ReadGet_Test_ReceiverEC.h
- Receiver_lem_stub_export.h
- }
-
- Inline_Files {
- ReadGet_Test_ReceiverEC.inl
- }
-}
-
-project(QC_ReadGet_Test_Receiver_stub) : ccm_stub, dds4ccm_base {
- after += QC_ReadGet_Test_Receiver_idl_gen QC_ReadGet_Test_Connector_stub \
- QC_ReadGet_Test_Base_stub QC_ReadGet_Test_Connector_lem_gen \
- QC_ReadGet_Starter_stub QC_ReadGet_Starter_lem_stub
- libs += QC_ReadGet_Test_Connector_stub QC_ReadGet_Test_Base_stub \
- QC_ReadGet_Starter_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = Receiver_stub
- dynamicflags += RECEIVER_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- ReadGet_Test_ReceiverC.cpp
- }
-
- Header_Files {
- ReadGet_Test_ReceiverC.h
- Receiver_stub_export.h
- }
-
- Inline_Files {
- ReadGet_Test_ReceiverC.inl
- }
-}
-
-project(QC_ReadGet_Test_Receiver_exec) : ciao_executor, dds4ccm_lem_stub {
- after += QC_ReadGet_Test_Receiver_lem_stub QC_ReadGet_Test_Receiver_stub \
- QC_ReadGet_Test_Base_stub QC_ReadGet_Test_Connector_stub \
- QC_ReadGet_Test_Connector_lem_stub \
- QC_ReadGet_Starter_lem_stub QC_ReadGet_Starter_stub
- sharedname = Receiver_exec
- libs += Receiver_stub Receiver_lem_stub QC_ReadGet_Test_Base_stub \
- QC_ReadGet_Test_Connector_stub QC_ReadGet_Test_Connector_lem_stub \
- QC_ReadGet_Starter_lem_stub QC_ReadGet_Starter_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += RECEIVER_EXEC_BUILD_DLL READER_STARTER_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- ReadGet_Test_Receiver_exec.cpp
- }
-
- Header_Files {
- ReadGet_Test_Receiver_exec.h
- Receiver_exec_export.h
- }
-
- Inline_Files {
- }
-}
-
-
-project(QC_ReadGet_Test_Receiver_svnt) : ciao_servant, dds4ccm_lem_stub, dds4ccm_skel {
- after += QC_ReadGet_Test_Receiver_lem_stub QC_ReadGet_Test_Base_stub \
- QC_ReadGet_Test_Connector_stub QC_ReadGet_Test_Connector_svnt \
- QC_ReadGet_Test_Receiver_exec QC_ReadGet_Test_Connector_lem_stub \
- QC_ReadGet_Starter_stub \
- QC_ReadGet_Starter_svnt QC_ReadGet_Starter_lem_stub
- sharedname = Receiver_svnt
- libs += Receiver_stub Receiver_lem_stub QC_ReadGet_Test_Base_stub \
- QC_ReadGet_Test_Connector_stub QC_ReadGet_Test_Connector_svnt \
- Receiver_exec QC_ReadGet_Test_Connector_lem_stub \
- QC_ReadGet_Starter_stub QC_ReadGet_Starter_svnt \
- QC_ReadGet_Starter_lem_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += RECEIVER_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- ReadGet_Test_ReceiverS.cpp
- ReadGet_Test_Receiver_svnt.cpp
- }
-
- Header_Files {
- ReadGet_Test_ReceiverS.h
- ReadGet_Test_Receiver_svnt.h
- Receiver_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Receiver/ReadGet_Test_Receiver_exec.cpp b/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Receiver/ReadGet_Test_Receiver_exec.cpp
deleted file mode 100644
index cc2da4b2fb7..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Receiver/ReadGet_Test_Receiver_exec.cpp
+++ /dev/null
@@ -1,823 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-
-#include "ReadGet_Test_Receiver_exec.h"
-#include "tao/ORB_Core.h"
-#include "ace/Reactor.h"
-#include "dds4ccm/impl/dds4ccm_utils.h"
-
-#define QUERY "( (iteration > %0) AND (iteration < %1) )"
-
-#define MIN_ITERATION_1 "2"
-#define MAX_ITERATION_1 "5"
-
-// First run filtered in : 2 (iteration 3 and 4)
-
-// Since QueryCondition contains a bug, we've changed
-// the iterations of the second run in order for this test
-// to succeed. There's a different tests which reproduces
-// the bug.
-// #define MIN_ITERATION_2 "22"
-// #define MAX_ITERATION_2 "34"
-
-#define MIN_ITERATION_2 "7"
-#define MAX_ITERATION_2 "9"
-
-// Should be : Second run filtered in : 11 (iterations between 22 and 34)
-// Is now : Second run filtered in : 1 (only iteration 8)
-
-#define SAMPLES_PER_KEY_GETTER (2 + 1)
-
-// Reader also reads already read samples.
-#define SAMPLES_PER_KEY_READER (2 + 1)
-
-namespace CIAO_ReadGet_Test_Receiver_Impl
-{
- /**
- * Read Action Generator
- */
- read_action_Generator::read_action_Generator (Receiver_exec_i &callback,
- int run)
- : callback_ (callback),
- run_ (run)
- {
- }
-
- read_action_Generator::~read_action_Generator ()
- {
- }
-
- int
- read_action_Generator::handle_timeout (const ACE_Time_Value &, const void *)
- {
- ACE_DEBUG ((LM_DEBUG, "Checking if last sample "
- "is available in DDS...\n"));
- if (this->run_ == 1 || this->callback_.check_last ())
- {
- this->callback_.run (this->run_);
- }
- return 0;
- }
-
- /**
- * Facet Executor Implementation Class: get_port_status_exec_i
- */
-
- get_port_status_exec_i::get_port_status_exec_i (
- ::ReadGet_Test::CCM_Receiver_Context_ptr ctx)
- : ciao_context_ (
- ::ReadGet_Test::CCM_Receiver_Context::_duplicate (ctx))
- {
- }
-
- get_port_status_exec_i::~get_port_status_exec_i (void)
- {
- }
-
- // Operations from ::CCM_DDS::PortStatusListener
-
- void
- get_port_status_exec_i::on_requested_deadline_missed (::DDS::DataReader_ptr /* the_reader */,
- const ::DDS::RequestedDeadlineMissedStatus & /* status */)
- {
- /* Your code here. */
- }
-
- void
- get_port_status_exec_i::on_sample_lost (::DDS::DataReader_ptr /* the_reader */,
- const ::DDS::SampleLostStatus & /* status */)
- {
- /* Your code here. */
- }
-
- /**
- * Facet Executor Implementation Class: check_port_status_exec_i
- */
-
- check_port_status_exec_i::check_port_status_exec_i (
- ::ReadGet_Test::CCM_Receiver_Context_ptr ctx)
- : ciao_context_ (
- ::ReadGet_Test::CCM_Receiver_Context::_duplicate (ctx))
- {
- }
-
- check_port_status_exec_i::~check_port_status_exec_i (void)
- {
- }
-
- // Operations from ::CCM_DDS::PortStatusListener
-
- void
- check_port_status_exec_i::on_requested_deadline_missed (::DDS::DataReader_ptr /* the_reader */,
- const ::DDS::RequestedDeadlineMissedStatus & /* status */)
- {
- /* Your code here. */
- }
-
- void
- check_port_status_exec_i::on_sample_lost (::DDS::DataReader_ptr /* the_reader */,
- const ::DDS::SampleLostStatus & /* status */)
- {
- /* Your code here. */
- }
-
- /**
- * Facet Executor Implementation Class: reader_start_exec_i
- */
-
- reader_start_exec_i::reader_start_exec_i (
- ::ReadGet_Test::CCM_Receiver_Context_ptr ctx,
- Receiver_exec_i &callback)
- : ciao_context_ (
- ::ReadGet_Test::CCM_Receiver_Context::_duplicate (ctx))
- , callback_ (callback)
- {
- }
-
- reader_start_exec_i::~reader_start_exec_i (void)
- {
- }
-
- // Operations from ::ReadGetStarter
-
- void
- reader_start_exec_i::set_reader_properties (::CORBA::UShort nr_keys,
- ::CORBA::UShort nr_iterations)
- {
- this->callback_.keys (nr_keys);
- this->callback_.iterations (nr_iterations);
- }
-
- void
- reader_start_exec_i::start_read (::CORBA::UShort run)
- {
- this->callback_.start_read (run);
- }
-
- /**
- * Component Executor Implementation Class: Receiver_exec_i
- */
-
- Receiver_exec_i::Receiver_exec_i (void)
- : iterations_ (20)
- , keys_ (5)
- , current_min_iteration_ (ACE_OS::atoi (MIN_ITERATION_1))
- , current_max_iteration_ (ACE_OS::atoi (MAX_ITERATION_1))
- , ticker_ (0)
- , samples_expected_getter_ (0)
- , samples_received_getter_ (0)
- , samples_expected_reader_ (0)
- , samples_received_reader_ (0)
-
- {
- }
-
- Receiver_exec_i::~Receiver_exec_i (void)
- {
- }
-
- // Supported operations and attributes.
- ACE_Reactor*
- Receiver_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;
- }
-
- bool
- Receiver_exec_i::check_last ()
- {
- ::ReadGet_Test::QueryConditionTestConnector::Reader_var reader =
- this->ciao_context_->get_connection_get_port_data ();
-
- try
- {
- QueryConditionTest queryfiltertest_info;
- ::CCM_DDS::ReadInfo readinfo;
- char key[10];
- ACE_OS::sprintf (key, "KEY_%d", this->keys_);
- queryfiltertest_info.symbol = CORBA::string_dup (key);
- reader->read_one_last (
- queryfiltertest_info,
- readinfo,
- ::DDS::HANDLE_NIL);
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::check_last - "
- "last iteration <%02d> - <%02d>\n",
- queryfiltertest_info.iteration,
- this->current_max_iteration_ - 1));
- return queryfiltertest_info.iteration >= this->current_max_iteration_ - 1;
- }
- catch (const ::CCM_DDS::InternalError &)
- {
- }
- catch (const ::CCM_DDS::NonExistent &)
- {
- }
- catch (...)
- {
- ACE_ERROR ((LM_ERROR, "Receiver_exec_i::check_last: "
- "ERROR: Unexpected exception caught\n"));
- }
- return false;
- }
-
- // Supported operations and attributes.
- void
- Receiver_exec_i::check_iter (const QueryConditionTest & sample,
- const char * test)
- {
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("%C ALL : ")
- ACE_TEXT ("sample received for <%C>: iteration <%02u>\n"),
- test,
- sample.symbol.in (),
- sample.iteration));
- if (sample.iteration <= ACE_OS::atoi (MIN_ITERATION_1))
- {
- ACE_ERROR ((LM_ERROR, "ERROR: %C ALL: "
- "Didn't expect samples with iterations "
- "<= %02d\n",
- test,
- this->current_min_iteration_));
- }
- if (sample.iteration > this->current_max_iteration_)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: %C ALL: "
- "Didn't expect samples with iterations "
- "> %02d\n",
- test,
- this->current_max_iteration_));
- }
- }
-
-
- void
- Receiver_exec_i::read_all (void)
- {
- ::ReadGet_Test::QueryConditionTestConnector::Reader_var reader =
- this->ciao_context_->get_connection_get_port_data ();
-
- QueryConditionTestSeq queryfiltertest_info_seq;
- ::CCM_DDS::ReadInfoSeq readinfo_seq;
- reader->read_all (queryfiltertest_info_seq, readinfo_seq);
- if (queryfiltertest_info_seq.length () == 0)
- {
- ACE_ERROR ((LM_ERROR, "ERROR : Receiver_exec_i::read_all : "
- "No samples available in Reader!\n"));
- }
- for (CORBA::ULong it = 0; it < queryfiltertest_info_seq.length (); ++it)
- {
- this->check_iter (queryfiltertest_info_seq[it], "READ");
- }
- this->samples_received_reader_ += queryfiltertest_info_seq.length ();
- }
-
- void
- Receiver_exec_i::get_all (void)
- {
- ::ReadGet_Test::QueryConditionTestConnector::Getter_var getter =
- this->ciao_context_->get_connection_get_port_fresh_data ();
-
- if (::CORBA::is_nil (getter.in ()))
- {
- ACE_ERROR ((LM_ERROR, "Receiver_exec_i::get_all - "
- "ERROR: No Getter\n"));
- }
- QueryConditionTest_var qf_info;
- ::CCM_DDS::ReadInfo readinfo;
- CORBA::Boolean result = getter->get_one (qf_info.out (), readinfo);
- if (ACE_OS::strlen (qf_info->symbol.in ()) == 0)
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("ERROR: Receiver_exec_i::get_all - ")
- ACE_TEXT ("Name of key seems to be empty-> bailing out\n")));
- return;
- }
- if (result)
- {
- this->check_iter (qf_info.in (), "GET");
- ++this->samples_received_getter_;
- }
- else
- {
- ACE_ERROR ((LM_ERROR, "Receiver_exec_i::get_all - "
- "ERROR: time out when retrieving "
- "first sample.\n"));
- }
- while (result)
- {
- result = getter->get_one (qf_info.out (), readinfo);
- if (result)
- {
- this->check_iter (qf_info.in (), "GET");
- ++this->samples_received_getter_;
- }
- }
- }
-
- void
- Receiver_exec_i::check_all (void)
- {
- ::ReadGet_Test::QueryConditionTestConnector::Reader_var reader =
- this->ciao_context_->get_connection_check_port_data ();
-
- QueryConditionTestSeq queryfiltertest_info_seq;
- ::CCM_DDS::ReadInfoSeq readinfo_seq;
- reader->read_all (queryfiltertest_info_seq, readinfo_seq);
-
- for (CORBA::ULong it = 0; it < queryfiltertest_info_seq.length (); ++it)
- {
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\t\tCHECK ALL : ")
- ACE_TEXT ("sample received for <%C>: iteration <%02u> - ")
- ACE_TEXT ("access_status <%C> - instance_status <%d>\n"),
- queryfiltertest_info_seq[it].symbol.in (),
- queryfiltertest_info_seq[it].iteration,
- CIAO::DDS4CCM::translate_ccm_dds_accessstatus (readinfo_seq[it].access_status),
- readinfo_seq[it].instance_status));
- }
- CORBA::ULong expected = 0;
- if (this->current_min_iteration_ == ACE_OS::atoi (MIN_ITERATION_1))
- {
- expected = this->iterations_ * this->keys_;
- }
- else if (this->current_min_iteration_ == ACE_OS::atoi (MIN_ITERATION_2))
- {
- expected = this->iterations_ * this->keys_ * 2;
- }
- if (queryfiltertest_info_seq.length () == expected)
- {
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::check_all - "
- "OK : All samples received on the DDS_Read port: "
- "expected <%02u> - received <%02u>\n",
- expected,
- queryfiltertest_info_seq.length ()));
- }
- else
- {
- ACE_ERROR ((LM_ERROR, "Receiver_exec_i::check_all - "
- "ERROR: Unexpected number of samples received "
- "on the DDS_Read port: "
- "expected <%u> - received <%u>\n",
- expected,
- queryfiltertest_info_seq.length ()));
- }
- }
-
- void
- Receiver_exec_i::test_all ()
- {
- const char * test = "GET ALL";
- try
- {
- get_all ();
- test = "READ ALL";
- read_all ();
- // reading all samples on a different port.
- check_all ();
- }
- catch (const CCM_DDS::NonExistent& ex)
- {
- for (CORBA::ULong i = 0; i < ex.indexes.length (); ++i)
- {
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("ERROR %C: ")
- ACE_TEXT ("caught expected exception: index <%u>\n"),
- test,
- ex.indexes[i]));
- }
- }
- catch (const CCM_DDS::InternalError& ex)
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("ERROR: %C: ")
- ACE_TEXT ("caught InternalError exception: retval <%u>\n"),
- test,
- ex.error_code));
- }
- catch (const ::CORBA::Exception& ex)
- {
- ex._tao_print_exception (test);
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("ERROR: Receiver_exec_i::test_all : Exception caught\n")));
- }
- }
-
- void
- Receiver_exec_i::test_exception ()
- {
- ::CCM_DDS::QueryFilter_var query;
- ::ReadGet_Test::QueryConditionTestConnector::Reader_var reader =
- this->ciao_context_->get_connection_get_port_data ();
-
- try
- {
- query = reader->query ();
- }
- catch (const CCM_DDS::InternalError& ex)
- {
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::test_excep - "
- "Expected InternalErr excep caught : retval <%u>\n",
- ex.error_code));
- return;
- }
- catch (const ::CORBA::Exception& ex)
- {
- ex._tao_print_exception ("ERROR: Receiver_exec_i::test_exception: ");
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::test_exception - "
- "Unexpected exception caught\n"));
- return;
- }
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::test_exception - "
- "No exception caught while retrieving unset filter.\n"));
- }
-
- void
- Receiver_exec_i::check_filter ()
- {
- ::CCM_DDS::QueryFilter_var filter;
- ::ReadGet_Test::QueryConditionTestConnector::Reader_var reader =
- this->ciao_context_->get_connection_get_port_data ();
- try
- {
- filter = reader->query ();
- }
- catch (const CCM_DDS::InternalError& ex)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter - "
- "caught InternalError exception: retval <%u>\n",
- ex.error_code));
- return;
- }
- catch (const ::CORBA::Exception& ex)
- {
- ex._tao_print_exception ("ERROR: Receiver_exec_i::check_filter: ");
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter - "
- "Exception caught\n"));
- return;
- }
-
- //check query
- bool error = false;
- if (ACE_OS::strcmp (filter->expression, QUERY) != 0)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter - "
- "Unexpected query when retrieving filter: "
- "expected <%C> - received <%C>\n",
- QUERY, filter->expression.in ()));
- error = true;
- }
- //check current parameters.
- if (filter->parameters.length () != 2)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter - "
- "Unexpected number of parameters: "
- "expected <%d> - received <%d>\n",
- 2, filter->parameters.length ()));
- error = true;
- }
-
- if (filter->parameters.length () >= 1)
- {
- if (ACE_OS::atoi (filter->parameters[0]) != this->current_min_iteration_)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter - "
- "Unexpected param value: "
- "expected <%d> - received <%C>\n",
- this->current_min_iteration_,
- filter->parameters[0].in ()));
- error = true;
- }
- }
- if (filter->parameters.length () >= 2)
- {
- if (ACE_OS::atoi (filter->parameters[1]) != this->current_max_iteration_)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter - "
- "Unexpected param value: "
- "expected <%d> - received <%C>\n",
- this->current_max_iteration_,
- filter->parameters[1].in ()));
- error = true;
- }
- }
- if (!error)
- {
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::check_filter - "
- "Passed check_filter test.\n"));
- }
- }
-
- void
- Receiver_exec_i::test_set_query_parameters ()
- {
- try
- {
- ::ReadGet_Test::QueryConditionTestConnector::Reader_var reader =
- this->ciao_context_->get_connection_get_port_data ();
-
- ::CCM_DDS::QueryFilter filter;
- filter.expression = CORBA::string_dup (QUERY);
- filter.parameters.length (2);
- filter.parameters[0] = CORBA::string_dup (MIN_ITERATION_2);
- filter.parameters[1] = CORBA::string_dup (MAX_ITERATION_2);
- reader->query (filter);
- this->current_min_iteration_ = ACE_OS::atoi (MIN_ITERATION_2);
- this->current_max_iteration_ = ACE_OS::atoi (MAX_ITERATION_2);
-
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::test_set_query_parameters - "
- "New query parameters set (<%C> - <%C>)!\n",
- MIN_ITERATION_2, MAX_ITERATION_2));
- }
- catch (const CCM_DDS::InternalError& ex)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::test_set_query_parameters - "
- "caught InternalError exception: retval <%u>\n",
- ex.error_code));
- return;
- }
- catch (const ::CORBA::Exception& ex)
- {
- ex._tao_print_exception ("ERROR: Receiver_exec_i::test_set_query_parameters: ");
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::test_set_query_parameters - "
- "Exception caught\n"));
- return;
- }
- }
-
- void
- Receiver_exec_i::set_filter ()
- {
- ACE_DEBUG ((LM_DEBUG, "Set filter\n"));
- ::ReadGet_Test::QueryConditionTestConnector::Reader_var reader =
- this->ciao_context_->get_connection_get_port_data ();
- ::CCM_DDS::QueryFilter filter;
- filter.expression = CORBA::string_dup (QUERY);
- filter.parameters.length (2);
- filter.parameters[0] = CORBA::string_dup (MIN_ITERATION_1);
- filter.parameters[1] = CORBA::string_dup (MAX_ITERATION_1);
- reader->query (filter);
- }
-
- void
- Receiver_exec_i::start_read (CORBA::UShort run)
- {
- this->ticker_ = new read_action_Generator (*this, run);
- if (this->reactor ()->schedule_timer (this->ticker_,
- 0,
- ACE_Time_Value(1, 0),
- ACE_Time_Value(1, 0)) == -1)
- {
- ACE_ERROR ((LM_ERROR, "Unable to schedule Timer\n"));
- }
- }
-
- void
- Receiver_exec_i::run (CORBA::UShort run)
- {
- if (this->ticker_)
- {
- this->reactor ()->cancel_timer (this->ticker_);
- delete this->ticker_;
- this->ticker_ = 0;
- }
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::run - "
- "Starting run number <%d>\n",
- run));
- switch (run)
- {
- case 1:
- {
- this->test_exception ();
- this->set_filter ();
- this->restarter_->restart_write ();
- }
- break;
- case 2:
- {
- this->test_all ();
- check_filter ();
- this->test_set_query_parameters ();
- this->restarter_->restart_write ();
- }
- break;
- case 3:
- {
- this->test_all ();
- this->check_filter ();
- }
- break;
- }
- }
-
- void
- Receiver_exec_i::iterations (::CORBA::UShort iterations)
- {
- this->iterations_ = iterations;
-
- }
-
- void
- Receiver_exec_i::keys (::CORBA::UShort keys)
- {
- this->keys_ = keys;
-
- this->samples_expected_getter_ = (this->keys_ - 1) * SAMPLES_PER_KEY_GETTER;
- this->samples_expected_reader_ = (this->keys_) * SAMPLES_PER_KEY_READER;
- }
-
- // Component attributes and port operations.
-
- ::CCM_DDS::CCM_PortStatusListener_ptr
- Receiver_exec_i::get_get_port_status (void)
- {
- if ( ::CORBA::is_nil (this->ciao_get_port_status_.in ()))
- {
- get_port_status_exec_i *tmp = 0;
- ACE_NEW_RETURN (
- tmp,
- get_port_status_exec_i (
- this->ciao_context_.in ()),
- ::CCM_DDS::CCM_PortStatusListener::_nil ());
-
- this->ciao_get_port_status_ = tmp;
- }
-
- return
- ::CCM_DDS::CCM_PortStatusListener::_duplicate (
- this->ciao_get_port_status_.in ());
- }
-
- ::CCM_DDS::CCM_PortStatusListener_ptr
- Receiver_exec_i::get_check_port_status (void)
- {
- if ( ::CORBA::is_nil (this->ciao_check_port_status_.in ()))
- {
- check_port_status_exec_i *tmp = 0;
- ACE_NEW_RETURN (
- tmp,
- check_port_status_exec_i (
- this->ciao_context_.in ()),
- ::CCM_DDS::CCM_PortStatusListener::_nil ());
-
- this->ciao_check_port_status_ = tmp;
- }
-
- return
- ::CCM_DDS::CCM_PortStatusListener::_duplicate (
- this->ciao_check_port_status_.in ());
- }
-
- ::CCM_ReadGetStarter_ptr
- Receiver_exec_i::get_reader_start (void)
- {
- if ( ::CORBA::is_nil (this->ciao_reader_start_.in ()))
- {
- reader_start_exec_i *tmp = 0;
- ACE_NEW_RETURN (
- tmp,
- reader_start_exec_i (
- this->ciao_context_.in (),
- *this),
- ::CCM_ReadGetStarter::_nil ());
-
- this->ciao_reader_start_ = tmp;
- }
-
- return
- ::CCM_ReadGetStarter::_duplicate (
- this->ciao_reader_start_.in ());
- }
-
- // Operations from Components::SessionComponent.
-
- void
- Receiver_exec_i::set_session_context (
- ::Components::SessionContext_ptr ctx)
- {
- this->ciao_context_ =
- ::ReadGet_Test::CCM_Receiver_Context::_narrow (ctx);
-
- if ( ::CORBA::is_nil (this->ciao_context_.in ()))
- {
- throw ::CORBA::INTERNAL ();
- }
- }
-
- void
- Receiver_exec_i::configuration_complete (void)
- {
- /* Your code here. */
- }
-
- void
- Receiver_exec_i::ccm_activate (void)
- {
- ::ReadGet_Test::QueryConditionTestConnector::Getter_var getter =
- this->ciao_context_->get_connection_get_port_fresh_data ();
- DDS::Duration_t to;
- to.sec = 5;
- to.nanosec = 0;
- if (! ::CORBA::is_nil (getter))
- {
- getter->time_out (to);
- }
- else
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Unable to set time out.\n"));
- }
- this->restarter_ = this->ciao_context_->get_connection_writer_restart ();
- }
-
- void
- Receiver_exec_i::ccm_passivate (void)
- {
- if (this->ticker_)
- {
- this->reactor ()->cancel_timer (this->ticker_);
- delete this->ticker_;
- this->ticker_ = 0;
- }
- }
-
- void
- Receiver_exec_i::ccm_remove (void)
- {
- if (this->samples_received_getter_ != this->samples_expected_getter_)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: READGET GETTER : "
- "Unexpected number of samples received: "
- "expected <%d> - received <%d>\n",
- this->samples_expected_getter_,
- this->samples_received_getter_));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "READGET : GETTER : "
- "Expected number of samples received: "
- "expected <%d> - received <%d>\n",
- this->samples_expected_getter_,
- this->samples_received_getter_));
- }
- if (this->samples_received_reader_ != this->samples_expected_reader_)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: READGET READER : "
- "Unexpected number of samples received: "
- "expected <%d> - received <%d>\n",
- this->samples_expected_reader_,
- this->samples_received_reader_));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "READGET : READER : "
- "Expected number of samples received: "
- "expected <%d> - received <%d>\n",
- this->samples_expected_reader_,
- this->samples_received_reader_));
- }
- }
-
- extern "C" RECEIVER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_ReadGet_Test_Receiver_Impl (void)
- {
- ::Components::EnterpriseComponent_ptr retval =
- ::Components::EnterpriseComponent::_nil ();
-
- ACE_NEW_NORETURN (
- retval,
- Receiver_exec_i);
-
- return retval;
- }
-}
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Receiver/ReadGet_Test_Receiver_exec.h b/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Receiver/ReadGet_Test_Receiver_exec.h
deleted file mode 100644
index 9411f74f4b6..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Receiver/ReadGet_Test_Receiver_exec.h
+++ /dev/null
@@ -1,253 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-#ifndef CIAO_READGET_TEST_RECEIVER_EXEC_WOPYWH_H_
-#define CIAO_READGET_TEST_RECEIVER_EXEC_WOPYWH_H_
-
-#include /**/ "ace/pre.h"
-
-#include "ReadGet_Test_ReceiverEC.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include /**/ "Receiver_exec_export.h"
-#include "tao/LocalObject.h"
-
-namespace CIAO_ReadGet_Test_Receiver_Impl
-{
- class Receiver_exec_i;
-
- /**
- * Read action generator
- */
- class read_action_Generator
- : public ACE_Event_Handler
- {
- public:
- read_action_Generator (Receiver_exec_i &callback,
- int run);
-
- ~read_action_Generator ();
-
- virtual int handle_timeout (const ACE_Time_Value &tv,
- const void *arg);
- private:
- Receiver_exec_i &callback_;
- int run_;
-
- };
-
-
- /**
- * Provider Executor Implementation Class: get_port_status_exec_i
- */
-
- class get_port_status_exec_i
- : public virtual ::CCM_DDS::CCM_PortStatusListener,
- public virtual ::CORBA::LocalObject
- {
- public:
- get_port_status_exec_i (
- ::ReadGet_Test::CCM_Receiver_Context_ptr ctx);
- virtual ~get_port_status_exec_i (void);
-
- //@{
- /** Operations and attributes from CCM_DDS::PortStatusListener. */
-
- virtual
- void on_requested_deadline_missed (::DDS::DataReader_ptr the_reader,
- const ::DDS::RequestedDeadlineMissedStatus & status);
-
- virtual
- void on_sample_lost (::DDS::DataReader_ptr the_reader,
- const ::DDS::SampleLostStatus & status);
- //@}
-
- private:
- ::ReadGet_Test::CCM_Receiver_Context_var ciao_context_;
- };
-
- /**
- * Provider Executor Implementation Class: check_port_status_exec_i
- */
-
- class check_port_status_exec_i
- : public virtual ::CCM_DDS::CCM_PortStatusListener,
- public virtual ::CORBA::LocalObject
- {
- public:
- check_port_status_exec_i (
- ::ReadGet_Test::CCM_Receiver_Context_ptr ctx);
- virtual ~check_port_status_exec_i (void);
-
- //@{
- /** Operations and attributes from CCM_DDS::PortStatusListener. */
-
- virtual
- void on_requested_deadline_missed (::DDS::DataReader_ptr the_reader,
- const ::DDS::RequestedDeadlineMissedStatus & status);
-
- virtual
- void on_sample_lost (::DDS::DataReader_ptr the_reader,
- const ::DDS::SampleLostStatus & status);
- //@}
-
- private:
- ::ReadGet_Test::CCM_Receiver_Context_var ciao_context_;
- };
-
- /**
- * Provider Executor Implementation Class: reader_start_exec_i
- */
-
- class reader_start_exec_i
- : public virtual ::CCM_ReadGetStarter,
- public virtual ::CORBA::LocalObject
- {
- public:
- reader_start_exec_i (
- ::ReadGet_Test::CCM_Receiver_Context_ptr ctx,
- Receiver_exec_i &callback);
- virtual ~reader_start_exec_i (void);
-
- //@{
- /** Operations and attributes from ReadGetStarter. */
-
- virtual
- void set_reader_properties (::CORBA::UShort nr_keys,
- ::CORBA::UShort nr_iterations);
-
- virtual
- void start_read (::CORBA::UShort run);
- //@}
-
- private:
- ::ReadGet_Test::CCM_Receiver_Context_var ciao_context_;
- Receiver_exec_i &callback_;
- };
-
- /**
- * Component Executor Implementation Class: Receiver_exec_i
- */
-
- class Receiver_exec_i
- : public virtual Receiver_Exec,
- public virtual ::CORBA::LocalObject
- {
- public:
- Receiver_exec_i (void);
- virtual ~Receiver_exec_i (void);
-
- //@{
- /** Supported operations and attributes. */
-
- //@}
-
- //@{
- /** Component attributes and port operations. */
-
- virtual ::CCM_DDS::CCM_PortStatusListener_ptr
- get_get_port_status (void);
-
- virtual ::CCM_DDS::CCM_PortStatusListener_ptr
- get_check_port_status (void);
-
- virtual ::CCM_ReadGetStarter_ptr
- get_reader_start (void);
- //@}
-
- //@{
- /** Operations from Components::SessionComponent. */
- virtual void set_session_context (::Components::SessionContext_ptr ctx);
- virtual void configuration_complete (void);
- virtual void ccm_activate (void);
- virtual void ccm_passivate (void);
- virtual void ccm_remove (void);
- //@}
-
- //@{
- /** User defined public operations. */
- void iterations (CORBA::UShort iterations);
- void keys (::CORBA::UShort keys);
-
- bool check_last (void);
- void start_read (::CORBA::UShort run);
- void run (::CORBA::UShort run);
- //@}
-
- private:
- ::ReadGet_Test::CCM_Receiver_Context_var ciao_context_;
-
- //@{
- /** Component attributes. */
- ::CCM_DDS::CCM_PortStatusListener_var ciao_get_port_status_;
- ::CCM_DDS::CCM_PortStatusListener_var ciao_check_port_status_;
- ::CCM_ReadGetStarter_var ciao_reader_start_;
- //@}
-
- //@{
- /** User defined members. */
- ReadGetRestarter_var restarter_;
- ::CORBA::UShort iterations_;
- ::CORBA::UShort keys_;
-
- int current_min_iteration_;
- int current_max_iteration_;
-
- read_action_Generator *ticker_;
-
- ::CORBA::ULong samples_expected_getter_;
- ::CORBA::ULong samples_received_getter_;
- ::CORBA::ULong samples_expected_reader_;
- ::CORBA::ULong samples_received_reader_;
- //@}
-
- //@{
- /** User defined private operations. */
- void test_all (void);
- void read_all (void);
- void get_all (void);
- void check_all (void);
- void check_iter (const QueryConditionTest & sample,
- const char * test);
- void check_filter (void);
- void test_exception (void);
- void test_set_query_parameters (void);
- void set_filter (void);
-
- //@}
-
- /// Get the ACE_Reactor
- ACE_Reactor* reactor (void);
- };
-
- extern "C" RECEIVER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_ReadGet_Test_Receiver_Impl (void);
-}
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Sender/ReadGet_Test_Sender.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Sender/ReadGet_Test_Sender.idl
deleted file mode 100644
index fa2aa12902b..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Sender/ReadGet_Test_Sender.idl
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef DDS_QUERY_CONDITION_TEST_SENDER_IDL
-#define DDS_QUERY_CONDITION_TEST_SENDER_IDL
-
-#include "Connector/ReadGet_Test_Connector.idl"
-#include "Base/ReadGet_Starter.idl"
-
-module ReadGet_Test
-{
- component Sender
- {
- port ReadGet_Test::QueryConditionTestConnector::DDS_Write info_write;
- provides CCM_DDS::ConnectorStatusListener connector_status;
-
- uses ReadGetStarter start_reader;
- provides ReadGetRestarter restart_writer;
-
- attribute unsigned short keys;
- };
-};
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Sender/ReadGet_Test_Sender.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Sender/ReadGet_Test_Sender.mpc
deleted file mode 100644
index 324b3be379a..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Sender/ReadGet_Test_Sender.mpc
+++ /dev/null
@@ -1,153 +0,0 @@
-// This file is generated with "generate_component_mpc.pl -p ReadGet_Test_Base -l ../lib -o ../lib -c controller -u DDS Sender"
-
-project(QC_ReadGet_Test_Sender_idl_gen) : componentidldefaults, dds4ccm {
- after += QC_ReadGet_Test_Connector_idl_gen QC_ReadGet_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 {
- ReadGet_Test_Sender.idl
- }
-}
-
-project(QC_ReadGet_Test_Sender_lem_gen) : ciaoidldefaults, dds4ccm {
- after += QC_ReadGet_Test_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 {
- ReadGet_Test_SenderE.idl
- }
-}
-
-project(QC_ReadGet_Test_Sender_lem_stub) : ccm_svnt, dds4ccm_base {
- after += QC_ReadGet_Test_Sender_lem_gen QC_ReadGet_Test_Sender_stub \
- QC_ReadGet_Test_Base_stub QC_ReadGet_Starter_stub
- libs += QC_ReadGet_Test_Base_stub Sender_stub QC_ReadGet_Starter_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = Sender_lem_stub
- dynamicflags += SENDER_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- ReadGet_Test_SenderEC.cpp
- }
-
- Header_Files {
- ReadGet_Test_SenderEC.h
- Sender_lem_stub_export.h
- }
-
- Inline_Files {
- ReadGet_Test_SenderEC.inl
- }
-}
-
-project(QC_ReadGet_Test_Sender_stub) : ccm_stub, dds4ccm_base {
- after += QC_ReadGet_Test_Sender_idl_gen QC_ReadGet_Test_Base_stub \
- QC_ReadGet_Test_Connector_stub QC_ReadGet_Starter_stub \
- QC_ReadGet_Starter_lem_stub
- libs += QC_ReadGet_Test_Base_stub QC_ReadGet_Test_Connector_stub \
- QC_ReadGet_Starter_stub
- includes += ..
- libpaths += ../lib
- libout = ../lib
- sharedname = Sender_stub
- dynamicflags += SENDER_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- ReadGet_Test_SenderC.cpp
- }
-
- Header_Files {
- ReadGet_Test_SenderC.h
- Sender_stub_export.h
- }
-
- Inline_Files {
- ReadGet_Test_SenderC.inl
- }
-}
-
-project(QC_ReadGet_Test_Sender_exec) : ciao_executor, dds4ccm_lem_stub {
- after += QC_ReadGet_Test_Sender_lem_stub QC_ReadGet_Test_Sender_stub \
- QC_ReadGet_Test_Connector_lem_stub QC_ReadGet_Test_Connector_stub \
- QC_ReadGet_Starter_lem_stub
- sharedname = Sender_exec
- libs += Sender_stub Sender_lem_stub QC_ReadGet_Test_Base_stub \
- QC_ReadGet_Test_Connector_lem_stub QC_ReadGet_Test_Connector_stub \
- QC_ReadGet_Starter_stub QC_ReadGet_Starter_lem_stub \
- QC_ReadGet_Starter_lem_stub
- libpaths += ../lib
- includes += ..
- libout = ../lib
- dynamicflags += SENDER_EXEC_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- ReadGet_Test_Sender_exec.cpp
- }
-
- Header_Files {
- ReadGet_Test_Sender_exec.h
- Sender_exec_export.h
- }
-
- Inline_Files {
- }
-}
-
-
-project(QC_ReadGet_Test_Sender_svnt) : ciao_servant, dds4ccm_lem_stub, dds4ccm_skel {
- after += QC_ReadGet_Test_Base_stub QC_ReadGet_Test_Sender_lem_stub \
- QC_ReadGet_Test_Connector_stub \
- QC_ReadGet_Test_Connector_svnt QC_ReadGet_Test_Connector_lem_stub \
- QC_ReadGet_Starter_stub QC_ReadGet_Starter_svnt \
- QC_ReadGet_Starter_lem_stub
- sharedname = Sender_svnt
- libs += Sender_stub Sender_lem_stub QC_ReadGet_Test_Base_stub \
- QC_ReadGet_Test_Connector_stub QC_ReadGet_Test_Connector_svnt \
- QC_ReadGet_Test_Connector_lem_stub QC_ReadGet_Starter_stub \
- QC_ReadGet_Starter_svnt QC_ReadGet_Starter_lem_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += SENDER_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- ReadGet_Test_SenderS.cpp
- ReadGet_Test_Sender_svnt.cpp
- }
-
- Header_Files {
- ReadGet_Test_SenderS.h
- ReadGet_Test_Sender_svnt.h
- Sender_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Sender/ReadGet_Test_Sender_exec.cpp b/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Sender/ReadGet_Test_Sender_exec.cpp
deleted file mode 100644
index 65ef479b4dc..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Sender/ReadGet_Test_Sender_exec.cpp
+++ /dev/null
@@ -1,345 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-
-#include "ReadGet_Test_Sender_exec.h"
-#include "tao/ORB_Core.h"
-#include "ace/Reactor.h"
-
-#define ITERATIONS 20
-
-namespace CIAO_ReadGet_Test_Sender_Impl
-{
- /**
- * ConnectorStatusListener_exec_i
- */
- ConnectorStatusListener_exec_i::ConnectorStatusListener_exec_i (
- Sender_exec_i &callback)
- : callback_ (callback)
- , 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 (!this->started_ && status_kind == ::DDS::PUBLICATION_MATCHED_STATUS)
- {
- this->started_ = true;
- ACE_DEBUG ((LM_DEBUG, "ConnectorStatusListener_exec_i::on_unexpected_status - "
- "Publication matched received: starting the test\n"));
-
- this->callback_.get_started ();
- }
- }
-
- /**
- * Writehandler
- */
-
- WriteHandler::WriteHandler (Sender_exec_i &callback)
- : callback_ (callback)
- {
- }
-
- int
- WriteHandler::handle_exception (ACE_HANDLE)
- {
- this->callback_.start ();
- return 0;
- }
-
- /**
- * Facet Executor Implementation Class: restart_writer_exec_i
- */
-
- restart_writer_exec_i::restart_writer_exec_i (
- ::ReadGet_Test::CCM_Sender_Context_ptr ctx,
- Sender_exec_i &callback)
- : ciao_context_ (
- ::ReadGet_Test::CCM_Sender_Context::_duplicate (ctx))
- , callback_ (callback)
- {
- }
-
- restart_writer_exec_i::~restart_writer_exec_i (void)
- {
- }
-
- // Operations from ::ReadGetRestarter
-
- void
- restart_writer_exec_i::restart_write (void)
- {
- this->callback_.restart ();
- }
-
- /**
- * Component Executor Implementation Class: Sender_exec_i
- */
-
- Sender_exec_i::Sender_exec_i (void)
- : keys_ (5)
- , iterations_ (ITERATIONS)
- , run_ (1)
- {
- ACE_NEW_THROW_EX (this->wh_,
- WriteHandler (*this),
- ::CORBA::NO_MEMORY ());
- }
-
- Sender_exec_i::~Sender_exec_i (void)
- {
- delete this->wh_;
- }
-
- // 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::restart (void)
- {
- ++this->run_;
- if (this->wh_)
- {
- delete this->wh_;
- this->wh_ = 0;
- }
- ACE_NEW_THROW_EX (this->wh_,
- WriteHandler (*this),
- ::CORBA::NO_MEMORY ());
- this->reactor ()->notify (this->wh_);
- }
-
- void
- Sender_exec_i::get_started (void)
- {
- try
- {
- this->reactor ()->notify (this->wh_);
- }
- catch (const ::CORBA::Exception& ex)
- {
- ex._tao_print_exception ("Exception caught:");
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("ERROR: get_started : Exception caught\n")));
- }
- catch (...)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("ERROR: get_started : Unknown exception caught\n")));
- }
- }
-
- void
- Sender_exec_i::start (void)
- {
- ::ReadGet_Test::QueryConditionTestConnector::Writer_var writer =
- this->ciao_context_->get_connection_info_write_data ();
- ReadGetStarter_var starter =
- this->ciao_context_->get_connection_start_reader ();
-
- if (! ::CORBA::is_nil (starter.in ()))
- {
- starter->set_reader_properties (this->keys_, this->iterations_);
- }
- else
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("ERROR: Unable to start the reader\n")));
- return;
- }
- if (this->run_ > 1)
- {
- for (CORBA::UShort iter_key = 1; iter_key < this->keys_ + 1; ++iter_key)
- {
- char key[7];
- QueryConditionTest new_key;
- ACE_OS::sprintf (key, "KEY_%d", iter_key);
- new_key.symbol = CORBA::string_dup(key);
- CORBA::UShort iter = 1;
- if (this->run_ == 3)
- {
- iter = this->iterations_ + 1;
- }
- while (iter < (this->run_ - 1) * this->iterations_ + 1)
- {
- new_key.iteration = iter;
- writer->write_one (new_key, ::DDS::HANDLE_NIL);
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Written key <%C> with <%d>\n"),
- key, iter));
- ++iter;
- }
- }
- ACE_OS::sleep (1);
- }
- starter->start_read (this->run_);
- }
-
- // Component attributes and port operations.
- ::CCM_DDS::CCM_ConnectorStatusListener_ptr
- Sender_exec_i::get_connector_status (void)
- {
- return new ConnectorStatusListener_exec_i (*this);
- }
-
- ::CCM_ReadGetRestarter_ptr
- Sender_exec_i::get_restart_writer (void)
- {
- if ( ::CORBA::is_nil (this->ciao_restart_writer_.in ()))
- {
- restart_writer_exec_i *tmp = 0;
- ACE_NEW_RETURN (
- tmp,
- restart_writer_exec_i (
- this->ciao_context_.in (),
- *this),
- ::CCM_ReadGetRestarter::_nil ());
-
- this->ciao_restart_writer_ = tmp;
- }
-
- return
- ::CCM_ReadGetRestarter::_duplicate (
- this->ciao_restart_writer_.in ());
- }
-
- ::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_ =
- ::ReadGet_Test::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)
- {
- }
-
- void
- Sender_exec_i::ccm_passivate (void)
- {
- /* Your code here. */
- }
-
- void
- Sender_exec_i::ccm_remove (void)
- {
- /* Your code here. */
- }
-
- extern "C" SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_ReadGet_Test_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/QueryCondition/ReadGet/Sender/ReadGet_Test_Sender_exec.h b/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Sender/ReadGet_Test_Sender_exec.h
deleted file mode 100644
index f0e764a708b..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/Sender/ReadGet_Test_Sender_exec.h
+++ /dev/null
@@ -1,195 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-#ifndef CIAO_READGET_TEST_SENDER_EXEC_CB6ML7_H_
-#define CIAO_READGET_TEST_SENDER_EXEC_CB6ML7_H_
-
-#include /**/ "ace/pre.h"
-
-#include "ReadGet_Test_SenderEC.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include /**/ "Sender_exec_export.h"
-#include "tao/LocalObject.h"
-
-namespace CIAO_ReadGet_Test_Sender_Impl
-{
- class Sender_exec_i;
-
- /**
- * ConnectorStatusListener_exec_i
- */
- class SENDER_EXEC_Export ConnectorStatusListener_exec_i
- : public virtual ::CCM_DDS::CCM_ConnectorStatusListener,
- public virtual ::CORBA::LocalObject
- {
- public:
- ConnectorStatusListener_exec_i (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_;
- bool started_;
- };
-
- /**
- * Write Handler
- */
- class WriteHandler :
- public ACE_Event_Handler
- {
- public:
- WriteHandler (Sender_exec_i &callback);
- virtual int handle_exception (ACE_HANDLE fc = ACE_INVALID_HANDLE);
- private:
- Sender_exec_i &callback_;
- };
-
- /**
- * Provider Executor Implementation Class: restart_writer_exec_i
- */
-
- class restart_writer_exec_i
- : public virtual ::CCM_ReadGetRestarter,
- public virtual ::CORBA::LocalObject
- {
- public:
- restart_writer_exec_i (
- ::ReadGet_Test::CCM_Sender_Context_ptr ctx,
- Sender_exec_i & callback);
- virtual ~restart_writer_exec_i (void);
-
- //@{
- /** Operations and attributes from ReadGetRestarter. */
-
- virtual
- void restart_write (void);
- //@}
-
- private:
- ::ReadGet_Test::CCM_Sender_Context_var ciao_context_;
- 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. */
-
- //@}
-
- //@{
- /** Component attributes and port operations. */
- virtual ::CCM_DDS::CCM_ConnectorStatusListener_ptr
- get_connector_status (void);
-
- virtual ::CCM_ReadGetRestarter_ptr
- get_restart_writer (void);
-
- 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 get_started (void);
- void start (void);
- void restart (void);
-
- //@}
-
- private:
- ::ReadGet_Test::CCM_Sender_Context_var ciao_context_;
-
- //@{
- /** Component attributes. */
- ::CCM_ReadGetRestarter_var ciao_restart_writer_;
-
- ::CORBA::UShort keys_;
- //@}
-
- //@{
- /** User defined members. */
- ::CORBA::UShort iterations_;
- ::CORBA::UShort run_;
- WriteHandler *wh_;
- //@}
-
- //@{
- /** User defined private operations. */
-
- //@}
-
- /// Get the ACE_Reactor
- ACE_Reactor* reactor (void);
- };
-
- extern "C" SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_ReadGet_Test_Sender_Impl (void);
-}
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/descriptors/Plan.cdp b/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/descriptors/Plan.cdp
deleted file mode 100644
index 49eda282c3c..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/descriptors/Plan.cdp
+++ /dev/null
@@ -1,516 +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>ReadGet_Test_Depl_1</label>
- <UUID>ReadGet_Test_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_ReadGet_Test_Receiver_Impl</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_ReadGet_Test_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="ReadGet_Test_EventConnectorImplementation">
- <name>ReadGet_Test_EventConnectorImplementation</name>
- <source/>
- <artifact xmi:idref="ReadGet_Test_Connector_ExecArtifact" />
- <artifact xmi:idref="ReadGet_Test_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_ReadGet_Test_QueryConditionTestConnector_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_ReadGet_Test_QueryConditionTestConnector_DDS_Event_Servant</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QC_ReadGet_Test_Connector_svnt</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QC_ReadGet_Test_Connector_exec</string>
- </value>
- </value>
- </execParameter>
- </implementation>
- <implementation xmi:id="ReadGet_Test_StateConnectorImplementation">
- <name>ReadGet_Test_StateConnectorImplementation</name>
- <source/>
- <artifact xmi:idref="ReadGet_Test_Connector_ExecArtifact" />
- <artifact xmi:idref="ReadGet_Test_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_ReadGet_Test_QueryConditionTestConnector_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_ReadGet_Test_QueryConditionTestConnector_DDS_State_Servant</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QC_ReadGet_Test_Connector_svnt</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QC_ReadGet_Test_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_ReadGet_Test_Sender_Impl</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_ReadGet_Test_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="ReceiverComponentInstance">
- <name>ReceiverComponent</name>
- <node>ReceiverNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="ReceiverComponentImplementation" />
- </instance>
-
- <instance xmi:id="ReadGet_Test_SenderConnectorInstance">
- <name>ReadGet_Test_ConnectorComponent</name>
- <node>SenderNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="ReadGet_Test_EventConnectorImplementation" />
- <configProperty>
- <name>qos_profile</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QueryCondition_Library#QueryConditionProfile</string>
- </value>
- </value>
- </configProperty>
- <configProperty>
- <name>topic_name</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>ReadGet_Test</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <instance xmi:id="ReadGet_Test_EventConnector">
- <name>ReadGet_Test_EventConnector</name>
- <node>ReceiverNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="ReadGet_Test_EventConnectorImplementation" />
- <configProperty>
- <name>qos_profile</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QueryCondition_Library#QueryConditionProfile</string>
- </value>
- </value>
- </configProperty>
- <configProperty>
- <name>topic_name</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>ReadGet_Test</string>
- </value>
- </value>
- </configProperty>
- </instance>
- <instance xmi:id="ReadGet_Test_StateConnector">
- <name>ReadGet_Test_ConnectorComponent3</name>
- <node>ReceiverNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="ReadGet_Test_StateConnectorImplementation" />
- <configProperty>
- <name>qos_profile</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QueryCondition_Library#QueryConditionProfile</string>
- </value>
- </value>
- </configProperty>
- <configProperty>
- <name>topic_name</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>ReadGet_Test</string>
- </value>
- </value>
- </configProperty>
- </instance>
- <instance xmi:id="SenderComponentInstance">
- <name>SenderComponent</name>
- <node>SenderNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="SenderComponentImplementation" />
- <configProperty>
- <name>keys</name>
- <value>
- <type>
- <kind>tk_ushort</kind>
- </type>
- <value>
- <ushort>5</ushort>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <connection>
- <name>get_port_data</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>get_port_data</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>pull_consumer_data</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="ReadGet_Test_EventConnector" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>check_port_data</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>check_port_data</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>pull_observer_data</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="ReadGet_Test_StateConnector" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>get_port_fresh_data</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>get_port_fresh_data</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>pull_consumer_fresh_data</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="ReadGet_Test_EventConnector" />
- </internalEndpoint>
- </connection>
-
- <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="ReadGet_Test_SenderConnectorInstance" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>reader_starter</name>
- <internalEndpoint>
- <portName>start_reader</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="SenderComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>reader_start</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>restart_writer</name>
- <internalEndpoint>
- <portName>writer_restart</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>restart_writer</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="SenderComponentInstance" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>connector_status_connection</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>error_listener</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="ReadGet_Test_SenderConnectorInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>connector_status</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="SenderComponentInstance" />
- </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="ReadGet_Test_Connector_ExecArtifact">
- <name>QC_ReadGet_Test_Connector_exec</name>
- <source/>
- <node/>
- <location>QC_ReadGet_Test_Connector_exec</location>
- </artifact>
- <artifact xmi:id="ReadGet_Test_Connector_SvntArtifact">
- <name>QC_ReadGet_Test_Connector_svnt</name>
- <source/>
- <node/>
- <location>QC_ReadGet_Test_Connector_svnt</location>
- </artifact>
- <artifact xmi:id="ReadGet_Test_Connector_StubArtifact">
- <name>QC_ReadGet_Test_Connector_stub</name>
- <source/>
- <node/>
- <location>QC_ReadGet_Test_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/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/descriptors/QueryCondition_Library.xml b/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/descriptors/QueryCondition_Library.xml
deleted file mode 100644
index b9cba6277a3..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/descriptors/QueryCondition_Library.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<!-- -->
-<dds xmlns="http://www.omg.org/dds"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.omg.org/dds dds_qos.xsd">
-
- <qos_profile name="QueryConditionProfile">
- <!-- QoS used to configure the data writer created in the example code -->
- <datawriter_qos>
- <reliability>
- <kind>RELIABLE_RELIABILITY_QOS</kind>
- <max_blocking_time>
- <sec>10</sec>
- <nanosec>0</nanosec>
- </max_blocking_time>
- </reliability>
- <durability>
- <kind>TRANSIENT_DURABILITY_QOS</kind>
- </durability>
- <history>
- <kind>KEEP_ALL_HISTORY_QOS</kind>
- </history>
- </datawriter_qos>
- <!-- QoS used to configure the data reader created in the example code -->
- <datareader_qos>
- <reliability>
- <kind>RELIABLE_RELIABILITY_QOS</kind>
- </reliability>
- <history>
- <kind>KEEP_ALL_HISTORY_QOS</kind>
- </history>
- <durability>
- <kind>TRANSIENT_LOCAL_DURABILITY_QOS</kind>
- </durability>
- </datareader_qos>
- </qos_profile>
-</dds>
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/descriptors/USER_QOS_PROFILES.xml b/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/descriptors/USER_QOS_PROFILES.xml
deleted file mode 100644
index 37e7ff8dec9..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/descriptors/USER_QOS_PROFILES.xml
+++ /dev/null
@@ -1,67 +0,0 @@
-<?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 environment 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.5d/scripts/../resource/rtiddsgen/../qos_profiles_4.5d/schema/rti_dds_qos_profiles.xsd" version="4.5d">
- <!-- QoS Library containing the QoS profile used in the generated example.
-
- A QoS library is a named set of QoS profiles.
- -->
- <qos_library name="QueryCondition_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="QueryConditionProfile" is_default_qos="false">
- <!-- QoS used to configure the data writer created in the example code -->
- <datawriter_qos>
- <reliability>
- <kind>RELIABLE_RELIABILITY_QOS</kind>
- <max_blocking_time>
- <sec>10</sec>
- <nanosec>0</nanosec>
- </max_blocking_time>
- </reliability>
- <durability>
- <kind>TRANSIENT_DURABILITY_QOS</kind>
- </durability>
- <history>
- <kind>KEEP_ALL_HISTORY_QOS</kind>
- </history>
- <protocol>
- <rtps_reliable_writer>
- <max_heartbeat_retries>10</max_heartbeat_retries>
- </rtps_reliable_writer>
- </protocol>
- </datawriter_qos>
- <!-- QoS used to configure the data reader created in the example code -->
- <datareader_qos>
- <reliability>
- <kind>RELIABLE_RELIABILITY_QOS</kind>
- </reliability>
- <history>
- <kind>KEEP_ALL_HISTORY_QOS</kind>
- </history>
- <durability>
- <kind>TRANSIENT_LOCAL_DURABILITY_QOS</kind>
- </durability>
- </datareader_qos>
- </qos_profile>
- </qos_library>
-</dds>
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/descriptors/run_test.pl b/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/descriptors/run_test.pl
deleted file mode 100755
index 638d55cd247..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet/descriptors/run_test.pl
+++ /dev/null
@@ -1,243 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# -*- perl -*-
-
-use lib "$ENV{'ACE_ROOT'}/bin";
-use PerlACE::TestTarget;
-
-$CIAO_ROOT = "$ENV{'CIAO_ROOT'}";
-$TAO_ROOT = "$ENV{'TAO_ROOT'}";
-$DANCE_ROOT = "$ENV{'DANCE_ROOT'}";
-
-$daemons_running = 0;
-$em_running = 0;
-$ns_running = 0;
-
-$nr_daemon = 2;
-@ports = ( 60001, 60002 );
-@iorbases = ( "NodeApp1.ior", "NodeApp2.ior" );
-@iorfiles = 0;
-@nodenames = ( "SenderNode", "ReceiverNode" );
-
-# 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;
-$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 30 seconds to allow task to complete\n";
-sleep (30);
-
-# Invoke executor - stop the application -.
-print "Invoking executor - stop the application -\n";
-print "by running dance_plan_launcher.exe with -k file://$ior_emfile -x $cdp_file -s\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;
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Base/QCLS_Test_Base.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Base/QCLS_Test_Base.idl
deleted file mode 100644
index 2f470af6d24..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Base/QCLS_Test_Base.idl
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * @file QCLS_Test_Base.idl
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef QUERY_CONDITION_LISTEN_STATE_TEST_BASE_IDL
-#define QUERY_CONDITION_LISTEN_STATE_TEST_BASE_IDL
-
-#pragma ndds typesupport "Base/QCLS_Test_BaseSupport.h"
-#pragma opendds typesupport "Base/QCLS_Test_BaseTypeSupportImpl.h"
-
-#pragma DCPS_DATA_TYPE "QueryConditionListenStateTest"
-#pragma DCPS_DATA_KEY "QueryConditionListenStateTest key"
-
-struct QueryConditionListenStateTest {
- string key; //@key
- long iteration;
-};
-
-#if defined DDS4CCM_NEEDS_SEQUENCES_DEFINED
-typedef sequence<QueryConditionListenStateTest> QueryConditionListenStateTestSeq;
-#endif
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Base/QCLS_Test_Base.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Base/QCLS_Test_Base.mpc
deleted file mode 100644
index 99a8da1826c..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Base/QCLS_Test_Base.mpc
+++ /dev/null
@@ -1,24 +0,0 @@
-project (DDS_QCLS_Test_Base_stub) : taoidldefaults, dds4ccm_ts_default {
- sharedname = DDS_QCLS_Test_Base_stub
- dynamicflags += QUERY_CONDITION_LISTEN_STATE_TEST_BASE_STUB_BUILD_DLL
- libout = ../lib
-
- idlflags += -SS -Sci \
- -Wb,stub_export_macro=QUERY_CONDITION_LISTEN_STATE_TEST_BASE_STUB_Export \
- -Wb,stub_export_include=QCLS_Test_Base_stub_export.h
-
- IDL_Files {
- idlflags += -Gxhst
- QCLS_Test_Base.idl
- }
-
- opendds_ts_flags += --export=QUERY_CONDITION_LISTEN_STATE_TEST_BASE_STUB_Export
-
- DDSGenerator_Files {
- QCLS_Test_Base.idl
- }
-
- Source_Files {
- }
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Connector/QCLS_Test_Connector.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Connector/QCLS_Test_Connector.idl
deleted file mode 100644
index 02f87bf8135..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Connector/QCLS_Test_Connector.idl
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * @file QCLS_Test_Connector.idl
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef QUERY_CONDITION_LISTEN_STATE_TEST_CONNECTOR_IDL_
-#define QUERY_CONDITION_LISTEN_STATE_TEST_CONNECTOR_IDL_
-
-#include <Components.idl>
-#include <ccm_dds.idl>
-
-#include "Base/QCLS_Test_Base.idl"
-
-#pragma ciao lem "Connector/QCLS_Test_ConnectorE.idl"
-
-#if (CIAO_DDS4CCM_OPENDDS==1)
-# include "Base/QCLS_Test_BaseTypeSupport.idl"
-#endif
-
-module QCLS_Test
-{
- module ::CCM_DDS::Typed < ::QueryConditionListenStateTest, ::QueryConditionListenStateTestSeq> QueryConditionListenStateTestConnector;
-};
-
-#endif /* QCLS_Test_CONNECTOR_IDL_ */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Connector/QCLS_Test_Connector.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Connector/QCLS_Test_Connector.mpc
deleted file mode 100644
index 345969c2e1d..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Connector/QCLS_Test_Connector.mpc
+++ /dev/null
@@ -1,142 +0,0 @@
-// This file is generated with "generate_component_mpc.pl -p DDS_QCLS_Test_Base -l .. -o ../lib -u DDS QCLS_Test_Connector"
-
-project(DDS_QCLS_Test_Connector_idl_gen) : connectoridldefaults, dds4ccm {
- after += DDS4CCM_idl_gen DDS_QCLS_Test_Base_stub
- custom_only = 1
- idlflags += -Wb,stub_export_macro=QUERY_CONDITION_LISTEN_STATE_TEST_CONNECTOR_STUB_Export \
- -Wb,stub_export_include=QCLS_Test_Connector_stub_export.h \
- -Wb,skel_export_macro=QUERY_CONDITION_LISTEN_STATE_TEST_CONNECTOR_SVNT_Export \
- -Wb,skel_export_include=QCLS_Test_Connector_svnt_export.h \
- -Wb,svnt_export_macro=QUERY_CONDITION_LISTEN_STATE_TEST_CONNECTOR_SVNT_Export \
- -Wb,svnt_export_include=QCLS_Test_Connector_svnt_export.h \
- -Wb,conn_export_macro=QUERY_CONDITION_LISTEN_STATE_TEST_CONNECTOR_CONN_Export \
- -Wb,conn_export_include=QCLS_Test_Connector_conn_export.h \
- -I ..
-
- IDL_Files {
- QCLS_Test_Connector.idl
- }
-}
-
-project(DDS_QCLS_Test_Connector_lem_gen) : ciaoidldefaults, dds4ccm {
- custom_only = 1
- after += DDS_QCLS_Test_Connector_idl_gen
- idlflags += -Wb,stub_export_macro=QUERY_CONDITION_LISTEN_STATE_TEST_CONNECTOR_LEM_STUB_Export \
- -Wb,stub_export_include=QCLS_Test_Connector_lem_stub_export.h \
- -SS -Gxhst \
- -I ..
-
- IDL_Files {
- QCLS_Test_ConnectorE.idl
- }
-}
-
-project(DDS_QCLS_Test_Connector_lem_stub) : ccm_svnt, dds4ccm_lem_stub {
- after += DDS_QCLS_Test_Connector_lem_gen DDS_QCLS_Test_Connector_stub DDS_QCLS_Test_Base_stub
- libs += DDS_QCLS_Test_Base_stub DDS_QCLS_Test_Connector_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = DDS_QCLS_Test_Connector_lem_stub
- dynamicflags += QUERY_CONDITION_LISTEN_STATE_TEST_CONNECTOR_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLS_Test_ConnectorEC.cpp
- }
-
- Header_Files {
- QCLS_Test_ConnectorEC.h
- QCLS_Test_Connector_lem_stub_export.h
- }
-
- Inline_Files {
- QCLS_Test_ConnectorEC.inl
- }
-}
-
-project(DDS_QCLS_Test_Connector_stub) : ccm_stub, dds4ccm_base {
- after += DDS_QCLS_Test_Connector_idl_gen DDS_QCLS_Test_Base_stub
- libs += DDS_QCLS_Test_Base_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = DDS_QCLS_Test_Connector_stub
- dynamicflags += QUERY_CONDITION_LISTEN_STATE_TEST_CONNECTOR_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLS_Test_ConnectorC.cpp
- }
-
- Header_Files {
- QCLS_Test_ConnectorC.h
- QCLS_Test_Connector_stub_export.h
- }
-
- Inline_Files {
- QCLS_Test_ConnectorC.inl
- }
-}
-
-project(DDS_QCLS_Test_Connector_exec) : ciao_executor, dds4ccm_impl {
- after += DDS_QCLS_Test_Connector_lem_stub DDS_QCLS_Test_Connector_stub DDS_QCLS_Test_Base_stub
- sharedname = DDS_QCLS_Test_Connector_exec
- libs += DDS_QCLS_Test_Connector_stub DDS_QCLS_Test_Connector_lem_stub DDS_QCLS_Test_Base_stub DDS_QCLS_Test_Base_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += QUERY_CONDITION_LISTEN_STATE_TEST_CONNECTOR_CONN_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLS_Test_Connector_conn.cpp
- }
-
- Header_Files {
- QCLS_Test_Connector_conn.h
- QCLS_Test_Connector_conn_export.h
- }
-
- Inline_Files {
- }
-}
-
-
-project(DDS_QCLS_Test_Connector_svnt) : ciao_servant, dds4ccm_impl {
- after += DDS_QCLS_Test_Connector_lem_stub DDS_QCLS_Test_Connector_exec DDS_QCLS_Test_Connector_stub
- sharedname = DDS_QCLS_Test_Connector_svnt
- libs += DDS_QCLS_Test_Connector_stub \
- DDS_QCLS_Test_Connector_lem_stub \
- DDS_QCLS_Test_Base_stub \
- DDS_QCLS_Test_Connector_exec
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += QUERY_CONDITION_LISTEN_STATE_TEST_CONNECTOR_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLS_Test_ConnectorS.cpp
- QCLS_Test_Connector_svnt.cpp
- }
-
- Header_Files {
- QCLS_Test_ConnectorS.h
- QCLS_Test_Connector_svnt.h
- QCLS_Test_Connector_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Receiver/QCLS_Test_Receiver.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Receiver/QCLS_Test_Receiver.idl
deleted file mode 100644
index 6aaeda5aab0..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Receiver/QCLS_Test_Receiver.idl
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * @file
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef RECEIVER_IDL
-#define RECEIVER_IDL
-
-#include "Connector/QCLS_Test_Connector.idl"
-
-module QCLS_Test
-{
- component Receiver
- {
- port QueryConditionListenStateTestConnector::DDS_StateListen info_state;
-
- attribute unsigned short keys;
- attribute unsigned short iterations;
- };
-};
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Receiver/QCLS_Test_Receiver.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Receiver/QCLS_Test_Receiver.mpc
deleted file mode 100644
index d5fb10e8472..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Receiver/QCLS_Test_Receiver.mpc
+++ /dev/null
@@ -1,146 +0,0 @@
-project(DDS_QCLS_Test_Receiver_idl_gen) : componentidldefaults, dds4ccm {
- custom_only = 1
- after += DDS_QCLS_Test_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 {
- QCLS_Test_Receiver.idl
- }
-}
-
-project(DDS_QCLS_Test_Receiver_lem_gen) : ciaoidldefaults, dds4ccm {
- after += DDS_QCLS_Test_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 {
- QCLS_Test_ReceiverE.idl
- }
-}
-
-project(DDS_QCLS_Test_Receiver_lem_stub) : ccm_svnt, dds4ccm_base {
- after += DDS_QCLS_Test_Receiver_lem_gen DDS_QCLS_Test_Receiver_stub \
- DDS_QCLS_Test_Connector_stub DDS_QCLS_Test_Base_stub
- libs += Receiver_stub DDS_QCLS_Test_Connector_stub \
- DDS_QCLS_Test_Base_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = Receiver_lem_stub
- dynamicflags += RECEIVER_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLS_Test_ReceiverEC.cpp
- }
-
- Header_Files {
- QCLS_Test_ReceiverEC.h
- Receiver_lem_stub_export.h
- }
-
- Inline_Files {
- QCLS_Test_ReceiverEC.inl
- }
-}
-
-project(DDS_QCLS_Test_Receiver_stub) : ccm_stub, dds4ccm_base {
- after += DDS_QCLS_Test_Receiver_idl_gen DDS_QCLS_Test_Connector_stub \
- DDS_QCLS_Test_Base_stub DDS_QCLS_Test_Connector_lem_gen
- libs += DDS_QCLS_Test_Connector_stub DDS_QCLS_Test_Base_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = Receiver_stub
- dynamicflags += RECEIVER_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLS_Test_ReceiverC.cpp
- }
-
- Header_Files {
- QCLS_Test_ReceiverC.h
- Receiver_stub_export.h
- }
-
- Inline_Files {
- QCLS_Test_ReceiverC.inl
- }
-}
-
-project(DDS_QCLS_Test_Receiver_exec) : ciao_executor, dds4ccm_lem_stub {
- after += DDS_QCLS_Test_Receiver_lem_stub DDS_QCLS_Test_Receiver_stub \
- DDS_QCLS_Test_Base_stub DDS_QCLS_Test_Connector_stub \
- DDS_QCLS_Test_Connector_lem_stub
- sharedname = Receiver_exec
- libs += Receiver_stub Receiver_lem_stub DDS_QCLS_Test_Base_stub \
- DDS_QCLS_Test_Connector_stub DDS_QCLS_Test_Connector_lem_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += RECEIVER_EXEC_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLS_Test_Receiver_exec.cpp
- }
-
- Header_Files {
- QCLS_Test_Receiver_exec.h
- Receiver_exec_export.h
- }
-
- Inline_Files {
- }
-}
-
-
-project(DDS_QCLS_Test_Receiver_svnt) : ciao_servant, dds4ccm_lem_stub, dds4ccm_skel {
- after += DDS_QCLS_Test_Receiver_lem_stub DDS_QCLS_Test_Base_stub \
- DDS_QCLS_Test_Connector_stub DDS_QCLS_Test_Connector_svnt \
- DDS_QCLS_Test_Receiver_exec DDS_QCLS_Test_Connector_lem_stub
- sharedname = Receiver_svnt
- libs += Receiver_stub Receiver_lem_stub DDS_QCLS_Test_Base_stub \
- DDS_QCLS_Test_Connector_stub DDS_QCLS_Test_Connector_svnt \
- Receiver_exec DDS_QCLS_Test_Connector_lem_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += RECEIVER_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLS_Test_ReceiverS.cpp
- QCLS_Test_Receiver_svnt.cpp
- }
-
- Header_Files {
- QCLS_Test_ReceiverS.h
- QCLS_Test_Receiver_svnt.h
- Receiver_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Receiver/QCLS_Test_Receiver_exec.cpp b/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Receiver/QCLS_Test_Receiver_exec.cpp
deleted file mode 100644
index 86b3ac813d2..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Receiver/QCLS_Test_Receiver_exec.cpp
+++ /dev/null
@@ -1,371 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-
-#include "QCLS_Test_Receiver_exec.h"
-
-#include "dds4ccm/impl/dds4ccm_conf.h"
-
-#define QUERY "( (iteration > %0) AND (iteration < %1) )"
-
-#define MIN_ITERATION "2"
-#define MAX_ITERATION "5"
-
-#define SAMPLES_PER_KEY 2 //only iteration 3 and 4 should be coming in....
-
-namespace CIAO_QCLS_Test_Receiver_Impl
-{
-
- /**
- * Facet Executor Implementation Class: info_state_data_listener_exec_i
- */
-
- info_state_data_listener_exec_i::info_state_data_listener_exec_i (
- ::QCLS_Test::CCM_Receiver_Context_ptr ctx,
- ACE_Thread_ID &thread_id,
- Atomic_Long &samples_received)
- : ciao_context_ (
- ::QCLS_Test::CCM_Receiver_Context::_duplicate (ctx))
- , thread_id_ (thread_id)
- , samples_received_ (samples_received)
- {
- }
-
- info_state_data_listener_exec_i::~info_state_data_listener_exec_i (void)
- {
- }
-
- // Operations from ::QCLS_Test::QueryConditionListenStateTestConnector::StateListener
-
- void
- info_state_data_listener_exec_i::on_creation (const ::QueryConditionListenStateTest & datum,
- const ::CCM_DDS::ReadInfo & /* info */)
- {
- ++this->samples_received_;
-
- ACE_DEBUG ((LM_DEBUG, "QueryConditionListenStateTest_Listener::on_creation: "
- "key <%C> - iteration <%d>\n",
- datum.key.in (),
- datum.iteration));
- if (datum.iteration <= ACE_OS::atoi (MIN_ITERATION) ||
- datum.iteration > ACE_OS::atoi (MAX_ITERATION) )
- {
- ACE_ERROR ((LM_ERROR, "QueryConditionListenStateTest_Listener::on_creation: "
- "ERROR: Unexpected iteration received.\n"));
- }
- }
-
- void
- info_state_data_listener_exec_i::on_one_update (const ::QueryConditionListenStateTest & datum,
- const ::CCM_DDS::ReadInfo & /* info */)
- {
- ACE_Thread_ID t_id;
- this->thread_id_ = t_id;
- ++this->samples_received_;
-
- ACE_DEBUG ((LM_DEBUG, "QueryConditionListenStateTest_Listener::on_one_update: "
- "key <%C> - iteration <%d>\n",
- datum.key.in (),
- datum.iteration));
- if (datum.iteration <= ACE_OS::atoi (MIN_ITERATION) ||
- datum.iteration > ACE_OS::atoi (MAX_ITERATION) )
- {
- ACE_ERROR ((LM_ERROR, "QueryConditionListenStateTest_Listener::on_one_update: "
- "ERROR: Unexpected iteration received.\n"));
- }
- }
-
- void
- info_state_data_listener_exec_i::on_many_updates (const ::QueryConditionListenStateTestSeq & /* data */,
- const ::CCM_DDS::ReadInfoSeq & /* infos */)
- {
- /* Your code here. */
- }
-
- void
- info_state_data_listener_exec_i::on_deletion (const ::QueryConditionListenStateTest & /* datum */,
- const ::CCM_DDS::ReadInfo & /* info */)
- {
- /* Your code here. */
- }
-
- /**
- * Facet Executor Implementation Class: info_state_status_exec_i
- */
-
- info_state_status_exec_i::info_state_status_exec_i (
- ::QCLS_Test::CCM_Receiver_Context_ptr ctx)
- : ciao_context_ (
- ::QCLS_Test::CCM_Receiver_Context::_duplicate (ctx))
- {
- }
-
- info_state_status_exec_i::~info_state_status_exec_i (void)
- {
- }
-
- // Operations from ::CCM_DDS::PortStatusListener
-
- void
- info_state_status_exec_i::on_requested_deadline_missed (::DDS::DataReader_ptr /* the_reader */,
- const ::DDS::RequestedDeadlineMissedStatus & /* status */)
- {
- /* Your code here. */
- }
-
- void
- info_state_status_exec_i::on_sample_lost (::DDS::DataReader_ptr /* the_reader */,
- const ::DDS::SampleLostStatus & /* status */)
- {
- /* Your code here. */
- }
-
- /**
- * Component Executor Implementation Class: Receiver_exec_i
- */
-
- Receiver_exec_i::Receiver_exec_i (void)
- : keys_ (5)
- , iterations_ (10)
- , thread_id_listener_ (0, 0)
- , samples_expected_ (keys_ * SAMPLES_PER_KEY)
- , samples_received_ (0)
- {
- }
-
- Receiver_exec_i::~Receiver_exec_i (void)
- {
- }
-
- // Supported operations and attributes.
- void
- Receiver_exec_i::start ()
- {
- ::CCM_DDS::DataListenerControl_var dlc =
- this->ciao_context_->get_connection_info_state_data_control ();
- dlc->mode (::CCM_DDS::ONE_BY_ONE);
- }
-
- // Component attributes and port operations.
-
- ::QCLS_Test::QueryConditionListenStateTestConnector::CCM_StateListener_ptr
- Receiver_exec_i::get_info_state_data_listener (void)
- {
- if ( ::CORBA::is_nil (this->ciao_info_state_data_listener_.in ()))
- {
- info_state_data_listener_exec_i *tmp = 0;
- ACE_NEW_RETURN (
- tmp,
- info_state_data_listener_exec_i (
- this->ciao_context_.in (),
- this->thread_id_listener_,
- this->samples_received_),
- ::QCLS_Test::QueryConditionListenStateTestConnector::CCM_StateListener::_nil ());
-
- this->ciao_info_state_data_listener_ = tmp;
- }
-
- return
- ::QCLS_Test::QueryConditionListenStateTestConnector::CCM_StateListener::_duplicate (
- this->ciao_info_state_data_listener_.in ());
- }
-
- ::CCM_DDS::CCM_PortStatusListener_ptr
- Receiver_exec_i::get_info_state_status (void)
- {
- if ( ::CORBA::is_nil (this->ciao_info_state_status_.in ()))
- {
- info_state_status_exec_i *tmp = 0;
- ACE_NEW_RETURN (
- tmp,
- info_state_status_exec_i (
- this->ciao_context_.in ()),
- ::CCM_DDS::CCM_PortStatusListener::_nil ());
-
- this->ciao_info_state_status_ = tmp;
- }
-
- return
- ::CCM_DDS::CCM_PortStatusListener::_duplicate (
- this->ciao_info_state_status_.in ());
- }
-
- ::CORBA::UShort
- Receiver_exec_i::keys (void)
- {
- return this->keys_;
- }
-
- void
- Receiver_exec_i::keys (
- const ::CORBA::UShort keys)
- {
- this->keys_ = keys;
- this->samples_expected_ = SAMPLES_PER_KEY * this->keys_;
- }
-
- ::CORBA::UShort
- Receiver_exec_i::iterations (void)
- {
- return this->iterations_;
- }
-
- void
- Receiver_exec_i::iterations (
- const ::CORBA::UShort iterations)
- {
- this->iterations_ = iterations;
- }
-
- // Operations from Components::SessionComponent.
-
- void
- Receiver_exec_i::set_session_context (
- ::Components::SessionContext_ptr ctx)
- {
- this->ciao_context_ =
- ::QCLS_Test::CCM_Receiver_Context::_narrow (ctx);
-
- if ( ::CORBA::is_nil (this->ciao_context_.in ()))
- {
- throw ::CORBA::INTERNAL ();
- }
- }
-
- void
- Receiver_exec_i::configuration_complete (void)
- {
- /* Your code here. */
- }
-
- void
- Receiver_exec_i::ccm_activate (void)
- {
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::ccm_activate - "
- "Set filter.\n"));
- ::CCM_DDS::QueryFilter filter;
- filter.expression = CORBA::string_dup (QUERY);
- filter.parameters.length (2);
- filter.parameters[0] = CORBA::string_dup (MIN_ITERATION);
- filter.parameters[1] = CORBA::string_dup (MAX_ITERATION);
- ::QCLS_Test::QueryConditionListenStateTestConnector::Reader_var reader =
- this->ciao_context_->get_connection_info_state_data ();
-
- reader->query (filter);
-
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::ccm_activate - "
- "Start listening.\n"));
- start ();
- }
-
- void
- Receiver_exec_i::ccm_passivate (void)
- {
- /* Your code here. */
- }
-
- void
- Receiver_exec_i::ccm_remove (void)
- {
- char ccm_buf [65];
- ACE_Thread_ID ccm_thread_id;
- ccm_thread_id.to_string (ccm_buf);
-
- char list_buf [65];
- this->thread_id_listener_.to_string (list_buf);
-
-
- if (this->thread_id_listener_.id () == 0)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: "
- "Thread ID for ReaderListener not set!\n"));
- }
- #if (CIAO_DDS4CCM_CONTEXT_SWITCH == 1)
- else if (this->thread_id_listener_ == ccm_thread_id)
- {
- ACE_DEBUG ((LM_DEBUG, "QF_STATE: "
- "Thread switch for ReaderListener seems OK. "
- "(DDS uses the CCM thread for its callback) "
- "listener <%C> - component <%C>\n",
- list_buf,
- ccm_buf));
- }
- else
- {
- ACE_ERROR ((LM_ERROR, "ERROR: QF_STATE: "
- "Thread switch for ReaderListener "
- "doesn't seem to work! "
- "listener <%C> - component <%C>\n",
- list_buf,
- ccm_buf));
- }
- #else
- else if (this->thread_id_listener_ == ccm_thread_id)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: QF_STATE: ReaderListener: "
- "DDS seems to use a CCM thread for its callback: "
- "listener <%C> - component <%C>\n",
- list_buf,
- ccm_buf));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "QF_STATE: ReaderListener: "
- "DDS seems to use its own thread for its callback: "
- "listener <%C> - component <%C>\n",
- list_buf,
- ccm_buf));
- }
- #endif
- if (this->samples_received_ != this->samples_expected_)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: QF_STATE: ReaderListener: "
- "Unexpected number of samples received: "
- "expected <%d> - received <%d>\n",
- this->samples_expected_,
- this->samples_received_.value ()));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "QF_STATE: ReaderListener: "
- "Expected number of samples received: "
- "expected <%d> - received <%d>\n",
- this->samples_expected_,
- this->samples_received_.value ()));
- }
- }
-
- extern "C" RECEIVER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_QCLS_Test_Receiver_Impl (void)
- {
- ::Components::EnterpriseComponent_ptr retval =
- ::Components::EnterpriseComponent::_nil ();
-
- ACE_NEW_NORETURN (
- retval,
- Receiver_exec_i);
-
- return retval;
- }
-}
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Receiver/QCLS_Test_Receiver_exec.h b/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Receiver/QCLS_Test_Receiver_exec.h
deleted file mode 100644
index d6667fb3fda..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Receiver/QCLS_Test_Receiver_exec.h
+++ /dev/null
@@ -1,198 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-#ifndef CIAO_QCLS_TEST_RECEIVER_EXEC_GHBRF4_H_
-#define CIAO_QCLS_TEST_RECEIVER_EXEC_GHBRF4_H_
-
-#include /**/ "ace/pre.h"
-
-#include "QCLS_Test_ReceiverEC.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include /**/ "Receiver_exec_export.h"
-#include "tao/LocalObject.h"
-
-namespace CIAO_QCLS_Test_Receiver_Impl
-{
- class Receiver_exec_i;
-
- typedef ACE_Atomic_Op <TAO_SYNCH_MUTEX, CORBA::Long> Atomic_Long;
-
- /**
- * Provider Executor Implementation Class: info_state_data_listener_exec_i
- */
-
- class info_state_data_listener_exec_i
- : public virtual ::QCLS_Test::QueryConditionListenStateTestConnector::CCM_StateListener,
- public virtual ::CORBA::LocalObject
- {
- public:
- info_state_data_listener_exec_i (
- ::QCLS_Test::CCM_Receiver_Context_ptr ctx,
- ACE_Thread_ID &thread_id,
- Atomic_Long &samples_received);
- virtual ~info_state_data_listener_exec_i (void);
-
- //@{
- /** Operations and attributes from QCLS_Test::QueryConditionListenStateTestConnector::StateListener. */
-
- virtual
- void on_creation (const ::QueryConditionListenStateTest & datum,
- const ::CCM_DDS::ReadInfo & info);
-
- virtual
- void on_one_update (const ::QueryConditionListenStateTest & datum,
- const ::CCM_DDS::ReadInfo & info);
-
- virtual
- void on_many_updates (const ::QueryConditionListenStateTestSeq & data,
- const ::CCM_DDS::ReadInfoSeq & infos);
-
- virtual
- void on_deletion (const ::QueryConditionListenStateTest & datum,
- const ::CCM_DDS::ReadInfo & info);
- //@}
-
- private:
- ::QCLS_Test::CCM_Receiver_Context_var ciao_context_;
- ACE_Thread_ID &thread_id_;
- Atomic_Long &samples_received_;
- };
-
- /**
- * Provider Executor Implementation Class: info_state_status_exec_i
- */
-
- class info_state_status_exec_i
- : public virtual ::CCM_DDS::CCM_PortStatusListener,
- public virtual ::CORBA::LocalObject
- {
- public:
- info_state_status_exec_i (
- ::QCLS_Test::CCM_Receiver_Context_ptr ctx);
- virtual ~info_state_status_exec_i (void);
-
- //@{
- /** Operations and attributes from CCM_DDS::PortStatusListener. */
-
- virtual
- void on_requested_deadline_missed (::DDS::DataReader_ptr the_reader,
- const ::DDS::RequestedDeadlineMissedStatus & status);
-
- virtual
- void on_sample_lost (::DDS::DataReader_ptr the_reader,
- const ::DDS::SampleLostStatus & status);
- //@}
-
- private:
- ::QCLS_Test::CCM_Receiver_Context_var ciao_context_;
- };
-
- /**
- * Component Executor Implementation Class: Receiver_exec_i
- */
-
- class Receiver_exec_i
- : public virtual Receiver_Exec,
- public virtual ::CORBA::LocalObject
- {
- public:
- Receiver_exec_i (void);
- virtual ~Receiver_exec_i (void);
-
- //@{
- /** Supported operations and attributes. */
-
- //@}
-
- //@{
- /** Component attributes and port operations. */
-
- virtual ::QCLS_Test::QueryConditionListenStateTestConnector::CCM_StateListener_ptr
- get_info_state_data_listener (void);
-
- virtual ::CCM_DDS::CCM_PortStatusListener_ptr
- get_info_state_status (void);
-
- virtual ::CORBA::UShort keys (void);
-
- virtual void keys (::CORBA::UShort keys);
-
- virtual ::CORBA::UShort iterations (void);
-
- virtual void iterations (::CORBA::UShort iterations);
- //@}
-
- //@{
- /** Operations from Components::SessionComponent. */
- virtual void set_session_context (::Components::SessionContext_ptr ctx);
- virtual void configuration_complete (void);
- virtual void ccm_activate (void);
- virtual void ccm_passivate (void);
- virtual void ccm_remove (void);
- //@}
-
- //@{
- /** User defined public operations. */
-
- //@}
-
- private:
- ::QCLS_Test::CCM_Receiver_Context_var ciao_context_;
-
- //@{
- /** Component attributes. */
- ::QCLS_Test::QueryConditionListenStateTestConnector::CCM_StateListener_var ciao_info_state_data_listener_;
- ::CCM_DDS::CCM_PortStatusListener_var ciao_info_state_status_;
-
- ::CORBA::UShort keys_;
-
- ::CORBA::UShort iterations_;
- //@}
-
- //@{
- /** User defined members. */
- ACE_Thread_ID thread_id_listener_;
-
- CORBA::Long samples_expected_;
- Atomic_Long samples_received_;
-
- //@}
-
- //@{
- /** User defined private operations. */
- void start (void);
- //@}
- };
-
- extern "C" RECEIVER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_QCLS_Test_Receiver_Impl (void);
-}
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Sender/QCLS_Test_Sender.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Sender/QCLS_Test_Sender.idl
deleted file mode 100644
index c82196ec2cd..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Sender/QCLS_Test_Sender.idl
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef DDS_QUERY_CONDITION_LISTEN_STATE_TEST_SENDER_IDL
-#define DDS_QUERY_CONDITION_LISTEN_STATE_TEST_SENDER_IDL
-
-#include "Connector/QCLS_Test_Connector.idl"
-
-module QCLS_Test
-{
- component Sender
- {
- port QueryConditionListenStateTestConnector::DDS_Update info_update;
- provides CCM_DDS::ConnectorStatusListener connector_status;
-
- attribute unsigned short keys;
- attribute unsigned short iterations;
- };
-};
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Sender/QCLS_Test_Sender.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Sender/QCLS_Test_Sender.mpc
deleted file mode 100644
index 78a9a56c2a8..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Sender/QCLS_Test_Sender.mpc
+++ /dev/null
@@ -1,145 +0,0 @@
-// This file is generated with "generate_component_mpc.pl -p DDS_QCLS_Test_Base -l ../lib -o ../lib -c controller -u DDS Sender"
-
-project(DDS_QCLS_Test_Sender_idl_gen) : componentidldefaults, dds4ccm {
- after += DDS_QCLS_Test_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 {
- QCLS_Test_Sender.idl
- }
-}
-
-project(DDS_QCLS_Test_Sender_lem_gen) : ciaoidldefaults, dds4ccm {
- after += DDS_QCLS_Test_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 {
- QCLS_Test_SenderE.idl
- }
-}
-
-project(DDS_QCLS_Test_Sender_lem_stub) : ccm_svnt, dds4ccm_base {
- after += DDS_QCLS_Test_Sender_lem_gen DDS_QCLS_Test_Sender_stub \
- DDS_QCLS_Test_Base_stub
- libs += DDS_QCLS_Test_Base_stub Sender_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = Sender_lem_stub
- dynamicflags += SENDER_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLS_Test_SenderEC.cpp
- }
-
- Header_Files {
- QCLS_Test_SenderEC.h
- Sender_lem_stub_export.h
- }
-
- Inline_Files {
- QCLS_Test_SenderEC.inl
- }
-}
-
-project(DDS_QCLS_Test_Sender_stub) : ccm_stub, dds4ccm_base {
- after += DDS_QCLS_Test_Sender_idl_gen DDS_QCLS_Test_Base_stub \
- DDS_QCLS_Test_Connector_stub
- libs += DDS_QCLS_Test_Base_stub DDS_QCLS_Test_Connector_stub
- includes += ..
- libpaths += ../lib
- libout = ../lib
- sharedname = Sender_stub
- dynamicflags += SENDER_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLS_Test_SenderC.cpp
- }
-
- Header_Files {
- QCLS_Test_SenderC.h
- Sender_stub_export.h
- }
-
- Inline_Files {
- QCLS_Test_SenderC.inl
- }
-}
-
-project(DDS_QCLS_Test_Sender_exec) : ciao_executor, dds4ccm_lem_stub {
- after += DDS_QCLS_Test_Sender_lem_stub DDS_QCLS_Test_Sender_stub \
- DDS_QCLS_Test_Connector_lem_stub DDS_QCLS_Test_Connector_stub
- sharedname = Sender_exec
- libs += Sender_stub Sender_lem_stub DDS_QCLS_Test_Base_stub \
- DDS_QCLS_Test_Connector_lem_stub DDS_QCLS_Test_Connector_stub
- libpaths += ../lib
- includes += ..
- libout = ../lib
- dynamicflags += SENDER_EXEC_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLS_Test_Sender_exec.cpp
- }
-
- Header_Files {
- QCLS_Test_Sender_exec.h
- Sender_exec_export.h
- }
-
- Inline_Files {
- }
-}
-
-
-project(DDS_QCLS_Test_Sender_svnt) : ciao_servant, dds4ccm_lem_stub, dds4ccm_skel {
- after += DDS_QCLS_Test_Base_stub DDS_QCLS_Test_Sender_lem_stub \
- DDS_QCLS_Test_Connector_stub \
- DDS_QCLS_Test_Connector_svnt DDS_QCLS_Test_Connector_lem_stub
- sharedname = Sender_svnt
- libs += Sender_stub Sender_lem_stub DDS_QCLS_Test_Base_stub \
- DDS_QCLS_Test_Connector_stub DDS_QCLS_Test_Connector_svnt \
- DDS_QCLS_Test_Connector_lem_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += SENDER_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCLS_Test_SenderS.cpp
- QCLS_Test_Sender_svnt.cpp
- }
-
- Header_Files {
- QCLS_Test_SenderS.h
- QCLS_Test_Sender_svnt.h
- Sender_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Sender/QCLS_Test_Sender_exec.cpp b/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Sender/QCLS_Test_Sender_exec.cpp
deleted file mode 100644
index 7189daaa26b..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Sender/QCLS_Test_Sender_exec.cpp
+++ /dev/null
@@ -1,311 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-
-#include "QCLS_Test_Sender_exec.h"
-#include "tao/ORB_Core.h"
-#include "ace/Reactor.h"
-
-namespace CIAO_QCLS_Test_Sender_Impl
-{
- /**
- * ConnectorStatusListener_exec_i
- */
- ConnectorStatusListener_exec_i::ConnectorStatusListener_exec_i (
- Sender_exec_i &callback)
- : callback_ (callback)
- {
- }
-
- 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 (status_kind == ::DDS::PUBLICATION_MATCHED_STATUS)
- {
- ACE_DEBUG ((LM_DEBUG, "ConnectorStatusListener_exec_i::on_unexpected_status - "
- "Publication matched received: starting the test\n"));
-
- this->callback_.start ();
- }
- }
-
- /**
- * Start Handler
- */
-
- StartHandler::StartHandler(Sender_exec_i &callback)
- : callback_ (callback)
- {
- }
-
- int
- StartHandler::handle_exception (ACE_HANDLE)
- {
- this->callback_.run ();
- return 0;
- }
-
- /**
- * Update Ticker
- */
-
- UpdateTicker::UpdateTicker (Sender_exec_i &callback)
- : callback_ (callback),
- last_iter_ (0)
- {
- }
-
- int
- UpdateTicker::handle_timeout (const ACE_Time_Value &, const void *)
- {
- // Notify the subscribers
- this->callback_.update_one (++this->last_iter_);
- return 0;
- }
-
- /**
- * Component Executor Implementation Class: Sender_exec_i
- */
-
- Sender_exec_i::Sender_exec_i (void)
- : keys_ (5)
- , iterations_ (10)
- {
- this->ticker_ = new UpdateTicker (*this);
- this->rh_ = new StartHandler (*this);
- }
-
- Sender_exec_i::~Sender_exec_i (void)
- {
- delete this->rh_;
- delete this->ticker_;
- }
-
- // 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::update_one (CORBA::UShort iter)
- {
- ::QCLS_Test::QueryConditionListenStateTestConnector::Updater_var
- updater = this->ciao_context_->get_connection_info_update_data ();
-
- if (! ::CORBA::is_nil (updater.in ()) &&
- iter <= this->iterations ())
- {
- for (CORBA::UShort i = 1; i < this->keys () + 1; ++i)
- {
- char key[7];
- ACE_OS::sprintf (key, "KEY_%d", i);
- QueryConditionListenStateTest update_key;
- update_key.key = CORBA::string_dup (key);
- update_key.iteration = iter;
- updater->update_one (update_key, ::DDS::HANDLE_NIL);
- ACE_DEBUG ((LM_DEBUG, "Updated key <%C> - <%u>\n",
- key, iter));
-
- }
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "Sender_exec_i::update_one - "
- "Finished updating. Cancel Timer.\n"));
- this->reactor ()->cancel_timer (this->ticker_);
- }
- }
-
- void
- Sender_exec_i::run ()
- {
- ::QCLS_Test::QueryConditionListenStateTestConnector::Updater_var
- updater = this->ciao_context_->get_connection_info_update_data ();
- // First create the instances for consecutive updating.
- for (::CORBA::UShort i = 1;
- i < this->keys () + 1 && !::CORBA::is_nil (updater.in ());
- ++i)
- {
- char key[7];
- ACE_OS::sprintf (key, "KEY_%d", i);
- QueryConditionListenStateTest new_key;
- new_key.key = CORBA::string_dup(key);
- new_key.iteration = 0;
- updater->create_one (new_key);
- }
-
- if (this->reactor ()->schedule_timer (
- this->ticker_,
- 0,
- ACE_Time_Value (5, 50000),
- ACE_Time_Value (0, 50000)) == -1)
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("Sender_exec_i::start : ")
- ACE_TEXT ("Error scheduling timer")));
- }
- }
-
- void
- Sender_exec_i::start (void)
- {
- this->reactor ()->notify (this->rh_);
- }
-
- // Component attributes and port operations.
- ::CCM_DDS::CCM_ConnectorStatusListener_ptr
- Sender_exec_i::get_connector_status (void)
- {
- return new ConnectorStatusListener_exec_i (*this);
- }
-
- ::CORBA::UShort
- Sender_exec_i::keys (void)
- {
- return this->keys_;
- }
-
- void
- Sender_exec_i::keys (
- const ::CORBA::UShort keys)
- {
- this->keys_ = keys;
- }
-
- ::CORBA::UShort
- Sender_exec_i::iterations (void)
- {
- return this->iterations_;
- }
-
- void
- Sender_exec_i::iterations (
- const ::CORBA::UShort iterations)
- {
- this->iterations_ = iterations;
- }
-
- // Operations from Components::SessionComponent.
-
- void
- Sender_exec_i::set_session_context (
- ::Components::SessionContext_ptr ctx)
- {
- this->ciao_context_ =
- ::QCLS_Test::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)
- {
- }
-
- void
- Sender_exec_i::ccm_passivate (void)
- {
- /* Your code here. */
- }
-
- void
- Sender_exec_i::ccm_remove (void)
- {
- /* Your code here. */
- }
-
- extern "C" SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_QCLS_Test_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/QueryCondition/StateListener/Sender/QCLS_Test_Sender_exec.h b/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Sender/QCLS_Test_Sender_exec.h
deleted file mode 100644
index a30ac6593d5..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/Sender/QCLS_Test_Sender_exec.h
+++ /dev/null
@@ -1,186 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-#ifndef CIAO_QCLS_TEST_SENDER_EXEC_GHBRF4_H_
-#define CIAO_QCLS_TEST_SENDER_EXEC_GHBRF4_H_
-
-#include /**/ "ace/pre.h"
-
-#include "QCLS_Test_SenderEC.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include /**/ "Sender_exec_export.h"
-#include "tao/LocalObject.h"
-
-namespace CIAO_QCLS_Test_Sender_Impl
-{
- class Sender_exec_i;
-
- /**
- * ConnectorStatusListener_exec_i
- */
- class SENDER_EXEC_Export ConnectorStatusListener_exec_i
- : public virtual ::CCM_DDS::CCM_ConnectorStatusListener,
- public virtual ::CORBA::LocalObject
- {
- public:
- ConnectorStatusListener_exec_i (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_;
- };
-
- /**
- * Start Handler
- */
-
- class StartHandler :
- public ACE_Event_Handler
- {
- public:
- StartHandler (Sender_exec_i &callback);
- virtual int handle_exception (ACE_HANDLE fc = ACE_INVALID_HANDLE);
- private:
- Sender_exec_i &callback_;
- };
-
- /**
- * Update Ticker
- */
-
- class UpdateTicker :
- public ACE_Event_Handler
- {
- public:
- UpdateTicker (Sender_exec_i &callback);
- int handle_timeout (const ACE_Time_Value &, const void *);
- private:
- Sender_exec_i &callback_;
- CORBA::UShort last_iter_;
- };
-
- /**
- * Component Executor Implementation Class: Sender_exec_i
- */
-
- class Sender_exec_i
- : public virtual Sender_Exec,
- public virtual ::CORBA::LocalObject
- {
- public:
- Sender_exec_i (void);
- virtual ~Sender_exec_i (void);
-
- //@{
- /** Supported operations and attributes. */
-
- //@}
-
- //@{
- /** Component attributes and port operations. */
- virtual ::CCM_DDS::CCM_ConnectorStatusListener_ptr
- get_connector_status (void);
-
- virtual ::CORBA::UShort keys (void);
-
- virtual void keys (::CORBA::UShort keys);
-
- virtual ::CORBA::UShort iterations (void);
-
- virtual void iterations (::CORBA::UShort iterations);
- //@}
-
- //@{
- /** 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 start (void);
- void run (void);
- void update_one (CORBA::UShort iter);
-
- //@}
-
- private:
- ::QCLS_Test::CCM_Sender_Context_var ciao_context_;
-
- //@{
- /** Component attributes. */
-
- ::CORBA::UShort keys_;
-
- ::CORBA::UShort iterations_;
- //@}
-
- //@{
- /** User defined members. */
- UpdateTicker *ticker_;
- StartHandler *rh_;
-
- //@}
-
- //@{
- /** User defined private operations. */
-
- //@}
-
- /// Get the ACE_Reactor
- ACE_Reactor* reactor (void);
- };
-
- extern "C" SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_QCLS_Test_Sender_Impl (void);
-}
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/descriptors/Plan.cdp b/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/descriptors/Plan.cdp
deleted file mode 100644
index 77795d9c1e3..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/descriptors/Plan.cdp
+++ /dev/null
@@ -1,413 +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>QCLS_Test_Depl_1</label>
- <UUID>QCLS_Test_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_QCLS_Test_Receiver_Impl</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_QCLS_Test_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="QCLS_Test_ConnectorComponentImplementation">
- <name>QCLS_Test_ConnectorComponentImplementation</name>
- <source/>
- <artifact xmi:idref="QCLS_Test_Connector_ExecArtifact" />
- <artifact xmi:idref="QCLS_Test_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_QCLS_Test_QueryConditionListenStateTestConnector_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_QCLS_Test_QueryConditionListenStateTestConnector_DDS_State_Servant</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QCLS_Test_Connector_svnt</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QCLS_Test_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_QCLS_Test_Sender_Impl</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_QCLS_Test_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="ReceiverComponentInstance">
- <name>ReceiverComponent</name>
- <node>ReceiverNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="ReceiverComponentImplementation" />
- <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>
- </instance>
- <instance xmi:id="QCLS_Test_ConnectorComponentInstance">
- <name>QCLS_Test_ConnectorComponent</name>
- <node>SenderNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="QCLS_Test_ConnectorComponentImplementation" />
- <configProperty>
- <name>topic_name</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QCLS_Test</string>
- </value>
- </value>
- </configProperty>
- </instance>
- <instance xmi:id="QCLS_Test_ConnectorComponentInstance2">
- <name>QCLS_Test_ConnectorComponent2</name>
- <node>ReceiverNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="QCLS_Test_ConnectorComponentImplementation" />
- <configProperty>
- <name>topic_name</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QCLS_Test</string>
- </value>
- </value>
- </configProperty>
- </instance>
- <instance xmi:id="SenderComponentInstance">
- <name>SenderComponent</name>
- <node>SenderNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="SenderComponentImplementation" />
- <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>
- </instance>
-
- <connection>
- <name>info_state_rdr</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>info_state_data</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>push_state_observer_data</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="QCLS_Test_ConnectorComponentInstance2" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>info_state_dl</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>info_state_data_listener</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>push_state_observer_data_listener</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="QCLS_Test_ConnectorComponentInstance2" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>info_state_dc</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>info_state_data_control</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>push_state_observer_data_control</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="QCLS_Test_ConnectorComponentInstance2" />
- </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="QCLS_Test_ConnectorComponentInstance" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>connector_status_connection</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>error_listener</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="QCLS_Test_ConnectorComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>connector_status</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="SenderComponentInstance" />
- </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="QCLS_Test_Connector_ExecArtifact">
- <name>QCLS_Test_Connector_exec</name>
- <source/>
- <node/>
- <location>DDS_QCLS_Test_Connector_exec</location>
- </artifact>
- <artifact xmi:id="QCLS_Test_Connector_SvntArtifact">
- <name>QCLS_Test_Connector_svnt</name>
- <source/>
- <node/>
- <location>DDS_QCLS_Test_Connector_svnt</location>
- </artifact>
- <artifact xmi:id="QCLS_Test_Connector_StubArtifact">
- <name>QCLS_Test_Connector_stub</name>
- <source/>
- <node/>
- <location>DDS_QCLS_Test_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/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/descriptors/run_test.pl b/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/descriptors/run_test.pl
deleted file mode 100755
index d8b4eca445d..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/StateListener/descriptors/run_test.pl
+++ /dev/null
@@ -1,243 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# -*- perl -*-
-
-use lib "$ENV{'ACE_ROOT'}/bin";
-use PerlACE::TestTarget;
-
-$CIAO_ROOT = "$ENV{'CIAO_ROOT'}";
-$TAO_ROOT = "$ENV{'TAO_ROOT'}";
-$DANCE_ROOT = "$ENV{'DANCE_ROOT'}";
-
-$daemons_running = 0;
-$em_running = 0;
-$ns_running = 0;
-
-$nr_daemon = 2;
-@ports = ( 60001, 60002 );
-@iorbases = ( "NodeApp1.ior", "NodeApp2.ior" );
-@iorfiles = 0;
-@nodenames = ( "SenderNode", "ReceiverNode" );
-
-# 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;
-$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 30 seconds to allow task to complete\n";
-sleep (30);
-
-# Invoke executor - stop the application -.
-print "Invoking executor - stop the application -\n";
-print "by running dance_plan_launcher.exe with -k file://$ior_emfile -x $cdp_file\n";
-
-$E = $tg_executor->CreateProcess ("$DANCE_ROOT/bin/dance_plan_launcher",
- "-k file://$ior_emfile -x $cdp_file -s");
-$pl_status = $E->SpawnWaitKill ($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;
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Base/QCTL_Test_Base.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Base/QCTL_Test_Base.idl
deleted file mode 100644
index 9d99e5b6378..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Base/QCTL_Test_Base.idl
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * @file QCTL_Test_Base.idl
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef QUERY_CONDITION_TWO_LISTENERS_TEST_BASE_IDL
-#define QUERY_CONDITION_TWO_LISTENERS_TEST_BASE_IDL
-
-#pragma ndds typesupport "Base/QCTL_Test_BaseSupport.h"
-#pragma opendds typesupport "Base/QCTL_Test_BaseTypeSupportImpl.h"
-
-#pragma DCPS_DATA_TYPE "QueryConditionTwoListenersTest"
-#pragma DCPS_DATA_KEY "QueryConditionTwoListenersTest key"
-
-struct QueryConditionTwoListenersTest {
- string key; //@key
- long iteration;
-};
-
-#if defined DDS4CCM_NEEDS_SEQUENCES_DEFINED
-typedef sequence<QueryConditionTwoListenersTest> QueryConditionTwoListenersTestSeq;
-#endif
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Base/QCTL_Test_Base.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Base/QCTL_Test_Base.mpc
deleted file mode 100644
index d15827ffb44..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Base/QCTL_Test_Base.mpc
+++ /dev/null
@@ -1,24 +0,0 @@
-project (DDS_QCTL_Test_Base_stub) : taoidldefaults, dds4ccm_ts_default {
- sharedname = DDS_QCTL_Test_Base_stub
- dynamicflags += QUERY_CONDITION_TWO_LISTENERS_TEST_BASE_STUB_BUILD_DLL
- libout = ../lib
-
- idlflags += -SS -Sci \
- -Wb,stub_export_macro=QUERY_CONDITION_TWO_LISTENERS_TEST_BASE_STUB_Export \
- -Wb,stub_export_include=QCTL_Test_Base_stub_export.h
-
- IDL_Files {
- idlflags += -Gxhst
- QCTL_Test_Base.idl
- }
-
- opendds_ts_flags += --export=QUERY_CONDITION_TWO_LISTENERS_TEST_BASE_STUB_Export
-
- DDSGenerator_Files {
- QCTL_Test_Base.idl
- }
-
- Source_Files {
- }
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Connector/QCTL_Test_Connector.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Connector/QCTL_Test_Connector.idl
deleted file mode 100644
index b58d65550e9..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Connector/QCTL_Test_Connector.idl
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * @file QCTL_Test_Connector.idl
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef QUERY_CONDITION_TWO_LISTENERS_TEST_CONNECTOR_IDL_
-#define QUERY_CONDITION_TWO_LISTENERS_TEST_CONNECTOR_IDL_
-
-#include <Components.idl>
-#include <ccm_dds.idl>
-
-#include "Base/QCTL_Test_Base.idl"
-
-#pragma ciao lem "Connector/QCTL_Test_ConnectorE.idl"
-
-#if (CIAO_DDS4CCM_OPENDDS==1)
-# include "Base/QCTL_Test_BaseTypeSupport.idl"
-#endif
-
-module QCTL_Test
-{
- module ::CCM_DDS::Typed < ::QueryConditionTwoListenersTest, ::QueryConditionTwoListenersTestSeq> QueryConditionTwoListenersTestConnector;
-};
-
-#endif /* QCTL_Test_CONNECTOR_IDL_ */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Connector/QCTL_Test_Connector.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Connector/QCTL_Test_Connector.mpc
deleted file mode 100644
index 0a40f94e8c0..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Connector/QCTL_Test_Connector.mpc
+++ /dev/null
@@ -1,142 +0,0 @@
-// This file is generated with "generate_component_mpc.pl -p DDS_QCTL_Test_Base -l .. -o ../lib -u DDS QCTL_Test_Connector"
-
-project(DDS_QCTL_Test_Connector_idl_gen) : connectoridldefaults, dds4ccm {
- after += DDS4CCM_idl_gen DDS_QCTL_Test_Base_stub
- custom_only = 1
- idlflags += -Wb,stub_export_macro=QUERY_CONDITION_TWO_LISTENERS_TEST_CONNECTOR_STUB_Export \
- -Wb,stub_export_include=QCTL_Test_Connector_stub_export.h \
- -Wb,skel_export_macro=QUERY_CONDITION_TWO_LISTENERS_TEST_CONNECTOR_SVNT_Export \
- -Wb,skel_export_include=QCTL_Test_Connector_svnt_export.h \
- -Wb,svnt_export_macro=QUERY_CONDITION_TWO_LISTENERS_TEST_CONNECTOR_SVNT_Export \
- -Wb,svnt_export_include=QCTL_Test_Connector_svnt_export.h \
- -Wb,conn_export_macro=QUERY_CONDITION_TWO_LISTENERS_TEST_CONNECTOR_CONN_Export \
- -Wb,conn_export_include=QCTL_Test_Connector_conn_export.h \
- -I ..
-
- IDL_Files {
- QCTL_Test_Connector.idl
- }
-}
-
-project(DDS_QCTL_Test_Connector_lem_gen) : ciaoidldefaults, dds4ccm {
- custom_only = 1
- after += DDS_QCTL_Test_Connector_idl_gen
- idlflags += -Wb,stub_export_macro=QUERY_CONDITION_TWO_LISTENERS_TEST_CONNECTOR_LEM_STUB_Export \
- -Wb,stub_export_include=QCTL_Test_Connector_lem_stub_export.h \
- -SS -Gxhst \
- -I ..
-
- IDL_Files {
- QCTL_Test_ConnectorE.idl
- }
-}
-
-project(DDS_QCTL_Test_Connector_lem_stub) : ccm_svnt, dds4ccm_lem_stub {
- after += DDS_QCTL_Test_Connector_lem_gen DDS_QCTL_Test_Connector_stub DDS_QCTL_Test_Base_stub
- libs += DDS_QCTL_Test_Base_stub DDS_QCTL_Test_Connector_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = DDS_QCTL_Test_Connector_lem_stub
- dynamicflags += QUERY_CONDITION_TWO_LISTENERS_TEST_CONNECTOR_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTL_Test_ConnectorEC.cpp
- }
-
- Header_Files {
- QCTL_Test_ConnectorEC.h
- QCTL_Test_Connector_lem_stub_export.h
- }
-
- Inline_Files {
- QCTL_Test_ConnectorEC.inl
- }
-}
-
-project(DDS_QCTL_Test_Connector_stub) : ccm_stub, dds4ccm_base {
- after += DDS_QCTL_Test_Connector_idl_gen DDS_QCTL_Test_Base_stub
- libs += DDS_QCTL_Test_Base_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = DDS_QCTL_Test_Connector_stub
- dynamicflags += QUERY_CONDITION_TWO_LISTENERS_TEST_CONNECTOR_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTL_Test_ConnectorC.cpp
- }
-
- Header_Files {
- QCTL_Test_ConnectorC.h
- QCTL_Test_Connector_stub_export.h
- }
-
- Inline_Files {
- QCTL_Test_ConnectorC.inl
- }
-}
-
-project(DDS_QCTL_Test_Connector_exec) : ciao_executor, dds4ccm_impl {
- after += DDS_QCTL_Test_Connector_lem_stub DDS_QCTL_Test_Connector_stub DDS_QCTL_Test_Base_stub
- sharedname = DDS_QCTL_Test_Connector_exec
- libs += DDS_QCTL_Test_Connector_stub DDS_QCTL_Test_Connector_lem_stub DDS_QCTL_Test_Base_stub DDS_QCTL_Test_Base_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += QUERY_CONDITION_TWO_LISTENERS_TEST_CONNECTOR_CONN_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTL_Test_Connector_conn.cpp
- }
-
- Header_Files {
- QCTL_Test_Connector_conn.h
- QCTL_Test_Connector_conn_export.h
- }
-
- Inline_Files {
- }
-}
-
-
-project(DDS_QCTL_Test_Connector_svnt) : ciao_servant, dds4ccm_impl {
- after += DDS_QCTL_Test_Connector_lem_stub DDS_QCTL_Test_Connector_exec DDS_QCTL_Test_Connector_stub
- sharedname = DDS_QCTL_Test_Connector_svnt
- libs += DDS_QCTL_Test_Connector_stub \
- DDS_QCTL_Test_Connector_lem_stub \
- DDS_QCTL_Test_Base_stub \
- DDS_QCTL_Test_Connector_exec
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += QUERY_CONDITION_TWO_LISTENERS_TEST_CONNECTOR_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTL_Test_ConnectorS.cpp
- QCTL_Test_Connector_svnt.cpp
- }
-
- Header_Files {
- QCTL_Test_ConnectorS.h
- QCTL_Test_Connector_svnt.h
- QCTL_Test_Connector_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Receiver/QCTL_Test_Receiver.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Receiver/QCTL_Test_Receiver.idl
deleted file mode 100644
index 38fc0004b02..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Receiver/QCTL_Test_Receiver.idl
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * @file
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef RECEIVER_IDL
-#define RECEIVER_IDL
-
-#include "Connector/QCTL_Test_Connector.idl"
-
-module QCTL_Test
-{
- component Receiver
- {
- port QueryConditionTwoListenersTestConnector::DDS_Listen info_listen_1;
- port QueryConditionTwoListenersTestConnector::DDS_Listen info_listen_2;
-
- attribute unsigned short keys;
- attribute unsigned short iterations;
- };
-};
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Receiver/QCTL_Test_Receiver.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Receiver/QCTL_Test_Receiver.mpc
deleted file mode 100644
index 916535d17c6..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Receiver/QCTL_Test_Receiver.mpc
+++ /dev/null
@@ -1,146 +0,0 @@
-project(DDS_QCTL_Test_Receiver_idl_gen) : componentidldefaults, dds4ccm {
- custom_only = 1
- after += DDS_QCTL_Test_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 {
- QCTL_Test_Receiver.idl
- }
-}
-
-project(DDS_QCTL_Test_Receiver_lem_gen) : ciaoidldefaults, dds4ccm {
- after += DDS_QCTL_Test_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 {
- QCTL_Test_ReceiverE.idl
- }
-}
-
-project(DDS_QCTL_Test_Receiver_lem_stub) : ccm_svnt, dds4ccm_base {
- after += DDS_QCTL_Test_Receiver_lem_gen DDS_QCTL_Test_Receiver_stub \
- DDS_QCTL_Test_Connector_stub DDS_QCTL_Test_Base_stub
- libs += Receiver_stub DDS_QCTL_Test_Connector_stub \
- DDS_QCTL_Test_Base_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = Receiver_lem_stub
- dynamicflags += RECEIVER_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTL_Test_ReceiverEC.cpp
- }
-
- Header_Files {
- QCTL_Test_ReceiverEC.h
- Receiver_lem_stub_export.h
- }
-
- Inline_Files {
- QCTL_Test_ReceiverEC.inl
- }
-}
-
-project(DDS_QCTL_Test_Receiver_stub) : ccm_stub, dds4ccm_base {
- after += DDS_QCTL_Test_Receiver_idl_gen DDS_QCTL_Test_Connector_stub \
- DDS_QCTL_Test_Base_stub DDS_QCTL_Test_Connector_lem_gen
- libs += DDS_QCTL_Test_Connector_stub DDS_QCTL_Test_Base_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = Receiver_stub
- dynamicflags += RECEIVER_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTL_Test_ReceiverC.cpp
- }
-
- Header_Files {
- QCTL_Test_ReceiverC.h
- Receiver_stub_export.h
- }
-
- Inline_Files {
- QCTL_Test_ReceiverC.inl
- }
-}
-
-project(DDS_QCTL_Test_Receiver_exec) : ciao_executor, dds4ccm_lem_stub {
- after += DDS_QCTL_Test_Receiver_lem_stub DDS_QCTL_Test_Receiver_stub \
- DDS_QCTL_Test_Base_stub DDS_QCTL_Test_Connector_stub \
- DDS_QCTL_Test_Connector_lem_stub
- sharedname = Receiver_exec
- libs += Receiver_stub Receiver_lem_stub DDS_QCTL_Test_Base_stub \
- DDS_QCTL_Test_Connector_stub DDS_QCTL_Test_Connector_lem_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += RECEIVER_EXEC_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTL_Test_Receiver_exec.cpp
- }
-
- Header_Files {
- QCTL_Test_Receiver_exec.h
- Receiver_exec_export.h
- }
-
- Inline_Files {
- }
-}
-
-
-project(DDS_QCTL_Test_Receiver_svnt) : ciao_servant, dds4ccm_lem_stub, dds4ccm_skel {
- after += DDS_QCTL_Test_Receiver_lem_stub DDS_QCTL_Test_Base_stub \
- DDS_QCTL_Test_Connector_stub DDS_QCTL_Test_Connector_svnt \
- DDS_QCTL_Test_Receiver_exec DDS_QCTL_Test_Connector_lem_stub
- sharedname = Receiver_svnt
- libs += Receiver_stub Receiver_lem_stub DDS_QCTL_Test_Base_stub \
- DDS_QCTL_Test_Connector_stub DDS_QCTL_Test_Connector_svnt \
- Receiver_exec DDS_QCTL_Test_Connector_lem_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += RECEIVER_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTL_Test_ReceiverS.cpp
- QCTL_Test_Receiver_svnt.cpp
- }
-
- Header_Files {
- QCTL_Test_ReceiverS.h
- QCTL_Test_Receiver_svnt.h
- Receiver_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Receiver/QCTL_Test_Receiver_exec.cpp b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Receiver/QCTL_Test_Receiver_exec.cpp
deleted file mode 100644
index 2dd12cfab1e..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Receiver/QCTL_Test_Receiver_exec.cpp
+++ /dev/null
@@ -1,593 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-
-#include "QCTL_Test_Receiver_exec.h"
-
-#include "dds4ccm/impl/dds4ccm_conf.h"
-
-#define QUERY_1 "( (iteration > %0) AND (iteration < %1) )"
-#define QUERY_2 "( (iteration < %0) OR (iteration > %1) )"
-
-#define MIN_ITERATION "2"
-#define MAX_ITERATION "5"
-
-#define SAMPLES_PER_KEY_1 2
-
-namespace CIAO_QCTL_Test_Receiver_Impl
-{
-
- /**
- * Facet Executor Implementation Class: info_listen_1_data_listener_exec_i
- */
-
- info_listen_1_data_listener_exec_i::info_listen_1_data_listener_exec_i (
- ::QCTL_Test::CCM_Receiver_Context_ptr ctx,
- ACE_Thread_ID &thread_id,
- Atomic_Long &samples_received)
- : ciao_context_ (
- ::QCTL_Test::CCM_Receiver_Context::_duplicate (ctx))
- , thread_id_1_ (thread_id)
- , samples_received_1_ (samples_received)
- {
- }
-
- info_listen_1_data_listener_exec_i::~info_listen_1_data_listener_exec_i (void)
- {
- }
-
- // Operations from ::QCTL_Test::QueryConditionTwoListenersTestConnector::Listener
-
- void
- info_listen_1_data_listener_exec_i::on_one_data (const ::QueryConditionTwoListenersTest & datum,
- const ::CCM_DDS::ReadInfo & info)
- {
- ACE_Thread_ID t_id;
- this->thread_id_1_ = t_id;
- ++this->samples_received_1_;
-
- ACE_DEBUG ((LM_DEBUG, "QueryConditionTwoListenersTest_Listener_1::on_one_data: "
- "key <%C> - iteration <%d>\n",
- datum.key.in (),
- datum.iteration));
- if (::DDS::HANDLE_NIL == info.instance_handle)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: QueryConditionTwoListenersTest_Listener_1::on_one_data: "
- "instance handle seems to be invalid "
- "key <%C> - iteration <%d>\n",
- datum.key.in (),
- datum.iteration));
- }
- if (info.source_timestamp.sec == 0 &&
- info.source_timestamp.nanosec == 0)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: QueryConditionTwoListenersTest_Listener_1::on_one_data: "
- "source timestamp seems to be invalid (nil) "
- "key <%C> - iteration <%d>\n",
- datum.key.in (),
- datum.iteration));
- }
- if (datum.iteration <= ACE_OS::atoi (MIN_ITERATION) ||
- datum.iteration > ACE_OS::atoi (MAX_ITERATION) )
- {
- ACE_ERROR ((LM_ERROR, "QueryConditionTwoListenersTest_Listener_1::on_one_data: "
- "ERROR: Unexpected iteration received.\n"));
- }
- }
-
- void
- info_listen_1_data_listener_exec_i::on_many_data (const ::QueryConditionTwoListenersTestSeq & /* data */,
- const ::CCM_DDS::ReadInfoSeq & /* infos */)
- {
- /* Your code here. */
- }
-
- /**
- * Facet Executor Implementation Class: info_listen_1_status_exec_i
- */
-
- info_listen_1_status_exec_i::info_listen_1_status_exec_i (
- ::QCTL_Test::CCM_Receiver_Context_ptr ctx)
- : ciao_context_ (
- ::QCTL_Test::CCM_Receiver_Context::_duplicate (ctx))
- {
- }
-
- info_listen_1_status_exec_i::~info_listen_1_status_exec_i (void)
- {
- }
-
- // Operations from ::CCM_DDS::PortStatusListener
-
- void
- info_listen_1_status_exec_i::on_requested_deadline_missed (::DDS::DataReader_ptr /* the_reader */,
- const ::DDS::RequestedDeadlineMissedStatus & /* status */)
- {
- /* Your code here. */
- }
-
- void
- info_listen_1_status_exec_i::on_sample_lost (::DDS::DataReader_ptr /* the_reader */,
- const ::DDS::SampleLostStatus & /* status */)
- {
- /* Your code here. */
- }
-
- /**
- * Facet Executor Implementation Class: info_listen_2_data_listener_exec_i
- */
-
- info_listen_2_data_listener_exec_i::info_listen_2_data_listener_exec_i (
- ::QCTL_Test::CCM_Receiver_Context_ptr ctx,
- ACE_Thread_ID &thread_id,
- Atomic_Long &samples_received)
- : ciao_context_ (
- ::QCTL_Test::CCM_Receiver_Context::_duplicate (ctx))
- , thread_id_2_ (thread_id)
- , samples_received_2_ (samples_received)
- {
- }
-
- info_listen_2_data_listener_exec_i::~info_listen_2_data_listener_exec_i (void)
- {
- }
-
- // Operations from ::QCTL_Test::QueryConditionTwoListenersTestConnector::Listener
-
- void
- info_listen_2_data_listener_exec_i::on_one_data (const ::QueryConditionTwoListenersTest & datum,
- const ::CCM_DDS::ReadInfo & info)
- {
- ACE_Thread_ID t_id;
- this->thread_id_2_ = t_id;
-
- ++this->samples_received_2_;
-
- ACE_DEBUG ((LM_DEBUG, "QueryConditionTwoListenersTest_Listener_2::on_one_data: "
- "key <%C> - iteration <%d>\n",
- datum.key.in (),
- datum.iteration));
- if (::DDS::HANDLE_NIL == info.instance_handle)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: QueryConditionTwoListenersTest_Listener_2::on_one_data: "
- "instance handle seems to be invalid "
- "key <%C> - iteration <%d>\n",
- datum.key.in (),
- datum.iteration));
- }
- if (info.source_timestamp.sec == 0 &&
- info.source_timestamp.nanosec == 0)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: QueryConditionTwoListenersTest_Listener_2::on_one_data: "
- "source timestamp seems to be invalid (nil) "
- "key <%C> - iteration <%d>\n",
- datum.key.in (),
- datum.iteration));
- }
- if (datum.iteration > ACE_OS::atoi (MIN_ITERATION) &&
- datum.iteration < ACE_OS::atoi (MAX_ITERATION) )
- {
- ACE_ERROR ((LM_ERROR, "QueryConditionTwoListenersTest_Listener_2::on_one_data: "
- "ERROR: Unexpected iteration received.\n"));
- }
- }
-
- void
- info_listen_2_data_listener_exec_i::on_many_data (const ::QueryConditionTwoListenersTestSeq & /* data */,
- const ::CCM_DDS::ReadInfoSeq & /* infos */)
- {
- /* Your code here. */
- }
-
- /**
- * Facet Executor Implementation Class: info_listen_2_status_exec_i
- */
-
- info_listen_2_status_exec_i::info_listen_2_status_exec_i (
- ::QCTL_Test::CCM_Receiver_Context_ptr ctx)
- : ciao_context_ (
- ::QCTL_Test::CCM_Receiver_Context::_duplicate (ctx))
- {
- }
-
- info_listen_2_status_exec_i::~info_listen_2_status_exec_i (void)
- {
- }
-
- // Operations from ::CCM_DDS::PortStatusListener
-
- void
- info_listen_2_status_exec_i::on_requested_deadline_missed (::DDS::DataReader_ptr /* the_reader */,
- const ::DDS::RequestedDeadlineMissedStatus & /* status */)
- {
- /* Your code here. */
- }
-
- void
- info_listen_2_status_exec_i::on_sample_lost (::DDS::DataReader_ptr /* the_reader */,
- const ::DDS::SampleLostStatus & /* status */)
- {
- /* Your code here. */
- }
-
- /**
- * Component Executor Implementation Class: Receiver_exec_i
- */
-
- Receiver_exec_i::Receiver_exec_i (void)
- : keys_ (5)
- , iterations_ (10)
- , thread_id_listener_1_ (0, 0)
- , thread_id_listener_2_ (0, 0)
- , samples_expected_1_ (keys_ * SAMPLES_PER_KEY_1)
- , samples_received_1_ (0)
- , samples_expected_2_ (keys_ * (this->iterations_ - 4))
- , samples_received_2_ (0)
- {
- }
-
- Receiver_exec_i::~Receiver_exec_i (void)
- {
- }
-
- // Supported operations and attributes.
- void
- Receiver_exec_i::start ()
- {
- ::CCM_DDS::DataListenerControl_var dlc1 =
- this->ciao_context_->get_connection_info_listen_1_data_control ();
- dlc1->mode (::CCM_DDS::ONE_BY_ONE);
-
- ::CCM_DDS::DataListenerControl_var dlc2 =
- this->ciao_context_->get_connection_info_listen_2_data_control ();
- dlc2->mode (::CCM_DDS::ONE_BY_ONE);
- }
-
- // Component attributes and port operations.
-
- ::QCTL_Test::QueryConditionTwoListenersTestConnector::CCM_Listener_ptr
- Receiver_exec_i::get_info_listen_1_data_listener (void)
- {
- if ( ::CORBA::is_nil (this->ciao_info_listen_1_data_listener_.in ()))
- {
- info_listen_1_data_listener_exec_i *tmp = 0;
- ACE_NEW_RETURN (
- tmp,
- info_listen_1_data_listener_exec_i (
- this->ciao_context_.in (),
- this->thread_id_listener_1_,
- this->samples_received_1_),
- ::QCTL_Test::QueryConditionTwoListenersTestConnector::CCM_Listener::_nil ());
-
- this->ciao_info_listen_1_data_listener_ = tmp;
- }
-
- return
- ::QCTL_Test::QueryConditionTwoListenersTestConnector::CCM_Listener::_duplicate (
- this->ciao_info_listen_1_data_listener_.in ());
- }
-
- ::CCM_DDS::CCM_PortStatusListener_ptr
- Receiver_exec_i::get_info_listen_1_status (void)
- {
- if ( ::CORBA::is_nil (this->ciao_info_listen_1_status_.in ()))
- {
- info_listen_1_status_exec_i *tmp = 0;
- ACE_NEW_RETURN (
- tmp,
- info_listen_1_status_exec_i (
- this->ciao_context_.in ()),
- ::CCM_DDS::CCM_PortStatusListener::_nil ());
-
- this->ciao_info_listen_1_status_ = tmp;
- }
-
- return
- ::CCM_DDS::CCM_PortStatusListener::_duplicate (
- this->ciao_info_listen_1_status_.in ());
- }
-
- ::QCTL_Test::QueryConditionTwoListenersTestConnector::CCM_Listener_ptr
- Receiver_exec_i::get_info_listen_2_data_listener (void)
- {
- if ( ::CORBA::is_nil (this->ciao_info_listen_2_data_listener_.in ()))
- {
- info_listen_2_data_listener_exec_i *tmp = 0;
- ACE_NEW_RETURN (
- tmp,
- info_listen_2_data_listener_exec_i (
- this->ciao_context_.in (),
- this->thread_id_listener_2_,
- this->samples_received_2_),
- ::QCTL_Test::QueryConditionTwoListenersTestConnector::CCM_Listener::_nil ());
-
- this->ciao_info_listen_2_data_listener_ = tmp;
- }
-
- return
- ::QCTL_Test::QueryConditionTwoListenersTestConnector::CCM_Listener::_duplicate (
- this->ciao_info_listen_2_data_listener_.in ());
- }
-
- ::CCM_DDS::CCM_PortStatusListener_ptr
- Receiver_exec_i::get_info_listen_2_status (void)
- {
- if ( ::CORBA::is_nil (this->ciao_info_listen_2_status_.in ()))
- {
- info_listen_2_status_exec_i *tmp = 0;
- ACE_NEW_RETURN (
- tmp,
- info_listen_2_status_exec_i (
- this->ciao_context_.in ()),
- ::CCM_DDS::CCM_PortStatusListener::_nil ());
-
- this->ciao_info_listen_2_status_ = tmp;
- }
-
- return
- ::CCM_DDS::CCM_PortStatusListener::_duplicate (
- this->ciao_info_listen_2_status_.in ());
- }
-
- ::CORBA::UShort
- Receiver_exec_i::keys (void)
- {
- return this->keys_;
- }
-
- void
- Receiver_exec_i::keys (
- const ::CORBA::UShort keys)
- {
- this->keys_ = keys;
- }
-
- ::CORBA::UShort
- Receiver_exec_i::iterations (void)
- {
- return this->iterations_;
- }
-
- void
- Receiver_exec_i::iterations (
- const ::CORBA::UShort iterations)
- {
- this->iterations_ = iterations;
- // Iterations between min and max (including min and max) are not received.
- this->samples_expected_2_ = keys_ * (this->iterations_ - 4);
- }
-
- // Operations from Components::SessionComponent.
-
- void
- Receiver_exec_i::set_session_context (
- ::Components::SessionContext_ptr ctx)
- {
- this->ciao_context_ =
- ::QCTL_Test::CCM_Receiver_Context::_narrow (ctx);
-
- if ( ::CORBA::is_nil (this->ciao_context_.in ()))
- {
- throw ::CORBA::INTERNAL ();
- }
- }
-
- void
- Receiver_exec_i::configuration_complete (void)
- {
- /* Your code here. */
- }
-
- void
- Receiver_exec_i::ccm_activate (void)
- {
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::ccm_activate - "
- "Set filter 1.\n"));
-
- CCM_DDS::QueryFilter filter_1;
- filter_1.expression = CORBA::string_dup (QUERY_1);
- filter_1.parameters.length (2);
- filter_1.parameters[0] = CORBA::string_dup (MIN_ITERATION);
- filter_1.parameters[1] = CORBA::string_dup (MAX_ITERATION);
-
- ::QCTL_Test::QueryConditionTwoListenersTestConnector::Reader_var reader_1 =
- this->ciao_context_->get_connection_info_listen_1_data ();
-
- reader_1->query (filter_1);
-
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::ccm_activate - "
- "Set filter 2.\n"));
-
- CCM_DDS::QueryFilter filter_2;
- filter_2.expression = CORBA::string_dup (QUERY_2);
- filter_2.parameters.length (2);
- filter_2.parameters[0] = CORBA::string_dup (MIN_ITERATION);
- filter_2.parameters[1] = CORBA::string_dup (MAX_ITERATION);
-
- ::QCTL_Test::QueryConditionTwoListenersTestConnector::Reader_var reader_2 =
- this->ciao_context_->get_connection_info_listen_2_data ();
-
- reader_2->query (filter_2);
-
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::ccm_activate - "
- "Start listening on both listeners.\n"));
- start ();
- }
-
- void
- Receiver_exec_i::ccm_passivate (void)
- {
- /* Your code here. */
- }
-
- void
- Receiver_exec_i::ccm_remove (void)
- {
- // get current thread
- char ccm_buf [65];
- ACE_Thread_ID ccm_thread_id;
- ccm_thread_id.to_string (ccm_buf);
-
- char list_buf_1 [65];
- this->thread_id_listener_1_.to_string (list_buf_1);
-
- if (this->thread_id_listener_1_.id () == 0)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: "
- "Thread ID for ReaderListener not set!\n"));
- }
- #if (CIAO_DDS4CCM_CONTEXT_SWITCH == 1)
- else if (this->thread_id_listener_1_ == ccm_thread_id)
- {
- ACE_DEBUG ((LM_DEBUG, "QF_TWO_LISTENERS: "
- "Thread switch for ReaderListener seems OK. "
- "(DDS uses the CCM thread for its callback) "
- "listener <%C> - component <%C>\n",
- list_buf_1,
- ccm_buf));
- }
- else
- {
- ACE_ERROR ((LM_ERROR, "ERROR: QF_TWO_LISTENERS: "
- "Thread switch for ReaderListener "
- "doesn't seem to work! "
- "listener <%C> - component <%C>\n",
- list_buf_1,
- ccm_buf));
- }
- #else
- else if (this->thread_id_listener_1_ == ccm_thread_id)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: QF_TWO_LISTENERS: ReaderListener: "
- "DDS seems to use a CCM thread for its callback: "
- "listener <%C> - component <%C>\n",
- list_buf_1,
- ccm_buf));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "QF_TWO_LISTENERS: ReaderListener: "
- "DDS seems to use its own thread for its callback: "
- "listener <%C> - component <%C>\n",
- list_buf_1,
- ccm_buf));
- }
- #endif
- char list_buf_2 [65];
- this->thread_id_listener_2_.to_string (list_buf_2);
- if (this->thread_id_listener_2_.id () == 0)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: "
- "Thread ID for ReaderListener not set!\n"));
- }
- #if (CIAO_DDS4CCM_CONTEXT_SWITCH == 1)
- else if (this->thread_id_listener_2_ == ccm_thread_id)
- {
- ACE_DEBUG ((LM_DEBUG, "QF_TWO_LISTENERS: "
- "Thread switch for ReaderListener seems OK. "
- "(DDS uses the CCM thread for its callback) "
- "listener <%C> - component <%C>\n",
- list_buf_2,
- ccm_buf));
- }
- else
- {
- ACE_ERROR ((LM_ERROR, "ERROR: QF_TWO_LISTENERS: "
- "Thread switch for ReaderListener "
- "doesn't seem to work! "
- "listener <%C> - component <%C>\n",
- list_buf_2,
- ccm_buf));
- }
- #else
- else if (this->thread_id_listener_2_ == ccm_thread_id)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: QF_TWO_LISTENERS: ReaderListener: "
- "DDS seems to use a CCM thread for its callback: "
- "listener <%C> - component <%C>\n",
- list_buf_2,
- ccm_buf));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "QF_TWO_LISTENERS: ReaderListener: "
- "DDS seems to use its own thread for its callback: "
- "listener <%C> - component <%C>\n",
- list_buf_2,
- ccm_buf));
- }
- #endif
- //first listener
- if (this->samples_received_1_ != this->samples_expected_1_)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: QF_TWO_LISTENERS: ReaderListener: "
- "Unexpected number of samples received "
- "on first listener : "
- "expected <%d> - received <%d>\n",
- this->samples_expected_1_,
- this->samples_received_1_.value ()));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "QF_TWO_LISTENERS: ReaderListener: "
- "Expected number of samples received "
- "on first listener : "
- "expected <%d> - received <%d>\n",
- this->samples_expected_1_,
- this->samples_received_1_.value ()));
- }
- //Second listener
- if (this->samples_received_2_ != this->samples_expected_2_)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: QF_TWO_LISTENERS: ReaderListener: "
- "Unexpected number of samples received` "
- "on second listener : "
- "expected <%d> - received <%d>\n",
- this->samples_expected_2_,
- this->samples_received_2_.value ()));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "QF_TWO_LISTENERS: ReaderListener: "
- "Expected number of samples received "
- "on second listener : "
- "expected <%d> - received <%d>\n",
- this->samples_expected_2_,
- this->samples_received_2_.value ()));
- }
- }
-
- extern "C" RECEIVER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_QCTL_Test_Receiver_Impl (void)
- {
- ::Components::EnterpriseComponent_ptr retval =
- ::Components::EnterpriseComponent::_nil ();
-
- ACE_NEW_NORETURN (
- retval,
- Receiver_exec_i);
-
- return retval;
- }
-}
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Receiver/QCTL_Test_Receiver_exec.h b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Receiver/QCTL_Test_Receiver_exec.h
deleted file mode 100644
index 58165f75751..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Receiver/QCTL_Test_Receiver_exec.h
+++ /dev/null
@@ -1,265 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-#ifndef CIAO_QCTL_TEST_RECEIVER_EXEC_OT3CNP_H_
-#define CIAO_QCTL_TEST_RECEIVER_EXEC_OT3CNP_H_
-
-#include /**/ "ace/pre.h"
-
-#include "QCTL_Test_ReceiverEC.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include /**/ "Receiver_exec_export.h"
-#include "tao/LocalObject.h"
-
-namespace CIAO_QCTL_Test_Receiver_Impl
-{
- class Receiver_exec_i;
-
- typedef ACE_Atomic_Op <TAO_SYNCH_MUTEX, CORBA::Long> Atomic_Long;
-
- /**
- * Provider Executor Implementation Class: info_listen_1_data_listener_exec_i
- */
-
- class info_listen_1_data_listener_exec_i
- : public virtual ::QCTL_Test::QueryConditionTwoListenersTestConnector::CCM_Listener,
- public virtual ::CORBA::LocalObject
- {
- public:
- info_listen_1_data_listener_exec_i (
- ::QCTL_Test::CCM_Receiver_Context_ptr ctx,
- ACE_Thread_ID &thread_id,
- Atomic_Long &samples_received);
-
- virtual ~info_listen_1_data_listener_exec_i (void);
-
- //@{
- /** Operations and attributes from QCTL_Test::QueryConditionTwoListenersTestConnector::Listener. */
-
- virtual
- void on_one_data (const ::QueryConditionTwoListenersTest & datum,
- const ::CCM_DDS::ReadInfo & info);
-
- virtual
- void on_many_data (const ::QueryConditionTwoListenersTestSeq & data,
- const ::CCM_DDS::ReadInfoSeq & infos);
- //@}
-
- private:
- ::QCTL_Test::CCM_Receiver_Context_var ciao_context_;
- ACE_Thread_ID &thread_id_1_;
- Atomic_Long &samples_received_1_;
- };
-
- /**
- * Provider Executor Implementation Class: info_listen_1_status_exec_i
- */
-
- class info_listen_1_status_exec_i
- : public virtual ::CCM_DDS::CCM_PortStatusListener,
- public virtual ::CORBA::LocalObject
- {
- public:
- info_listen_1_status_exec_i (
- ::QCTL_Test::CCM_Receiver_Context_ptr ctx);
- virtual ~info_listen_1_status_exec_i (void);
-
- //@{
- /** Operations and attributes from CCM_DDS::PortStatusListener. */
-
- virtual
- void on_requested_deadline_missed (::DDS::DataReader_ptr the_reader,
- const ::DDS::RequestedDeadlineMissedStatus & status);
-
- virtual
- void on_sample_lost (::DDS::DataReader_ptr the_reader,
- const ::DDS::SampleLostStatus & status);
- //@}
-
- private:
- ::QCTL_Test::CCM_Receiver_Context_var ciao_context_;
- };
-
- /**
- * Provider Executor Implementation Class: info_listen_2_data_listener_exec_i
- */
-
- class info_listen_2_data_listener_exec_i
- : public virtual ::QCTL_Test::QueryConditionTwoListenersTestConnector::CCM_Listener,
- public virtual ::CORBA::LocalObject
- {
- public:
- info_listen_2_data_listener_exec_i (
- ::QCTL_Test::CCM_Receiver_Context_ptr ctx,
- ACE_Thread_ID &thread_id,
- Atomic_Long &samples_received);
- virtual ~info_listen_2_data_listener_exec_i (void);
-
- //@{
- /** Operations and attributes from QCTL_Test::QueryConditionTwoListenersTestConnector::Listener. */
-
- virtual
- void on_one_data (const ::QueryConditionTwoListenersTest & datum,
- const ::CCM_DDS::ReadInfo & info);
-
- virtual
- void on_many_data (const ::QueryConditionTwoListenersTestSeq & data,
- const ::CCM_DDS::ReadInfoSeq & infos);
- //@}
-
- private:
- ::QCTL_Test::CCM_Receiver_Context_var ciao_context_;
- ACE_Thread_ID &thread_id_2_;
- Atomic_Long &samples_received_2_;
- };
-
- /**
- * Provider Executor Implementation Class: info_listen_2_status_exec_i
- */
-
- class info_listen_2_status_exec_i
- : public virtual ::CCM_DDS::CCM_PortStatusListener,
- public virtual ::CORBA::LocalObject
- {
- public:
- info_listen_2_status_exec_i (
- ::QCTL_Test::CCM_Receiver_Context_ptr ctx);
- virtual ~info_listen_2_status_exec_i (void);
-
- //@{
- /** Operations and attributes from CCM_DDS::PortStatusListener. */
-
- virtual
- void on_requested_deadline_missed (::DDS::DataReader_ptr the_reader,
- const ::DDS::RequestedDeadlineMissedStatus & status);
-
- virtual
- void on_sample_lost (::DDS::DataReader_ptr the_reader,
- const ::DDS::SampleLostStatus & status);
- //@}
-
- private:
- ::QCTL_Test::CCM_Receiver_Context_var ciao_context_;
- };
-
- /**
- * Component Executor Implementation Class: Receiver_exec_i
- */
-
- class Receiver_exec_i
- : public virtual Receiver_Exec,
- public virtual ::CORBA::LocalObject
- {
- public:
- Receiver_exec_i (void);
- virtual ~Receiver_exec_i (void);
-
- //@{
- /** Supported operations and attributes. */
-
- //@}
-
- //@{
- /** Component attributes and port operations. */
-
- virtual ::QCTL_Test::QueryConditionTwoListenersTestConnector::CCM_Listener_ptr
- get_info_listen_1_data_listener (void);
-
- virtual ::CCM_DDS::CCM_PortStatusListener_ptr
- get_info_listen_1_status (void);
-
- virtual ::QCTL_Test::QueryConditionTwoListenersTestConnector::CCM_Listener_ptr
- get_info_listen_2_data_listener (void);
-
- virtual ::CCM_DDS::CCM_PortStatusListener_ptr
- get_info_listen_2_status (void);
-
- virtual ::CORBA::UShort keys (void);
-
- virtual void keys (::CORBA::UShort keys);
-
- virtual ::CORBA::UShort iterations (void);
-
- virtual void iterations (::CORBA::UShort iterations);
- //@}
-
- //@{
- /** 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 start (void);
-
- //@}
-
- private:
- ::QCTL_Test::CCM_Receiver_Context_var ciao_context_;
-
- //@{
- /** Component attributes. */
- ::QCTL_Test::QueryConditionTwoListenersTestConnector::CCM_Listener_var ciao_info_listen_1_data_listener_;
- ::CCM_DDS::CCM_PortStatusListener_var ciao_info_listen_1_status_;
- ::QCTL_Test::QueryConditionTwoListenersTestConnector::CCM_Listener_var ciao_info_listen_2_data_listener_;
- ::CCM_DDS::CCM_PortStatusListener_var ciao_info_listen_2_status_;
-
- ::CORBA::UShort keys_;
-
- ::CORBA::UShort iterations_;
- //@}
-
- //@{
- /** User defined members. */
- ACE_Thread_ID thread_id_listener_1_;
- ACE_Thread_ID thread_id_listener_2_;
-
- CORBA::Long samples_expected_1_;
- Atomic_Long samples_received_1_;
-
- CORBA::Long samples_expected_2_;
- Atomic_Long samples_received_2_;
- //@}
-
- //@{
- /** User defined private operations. */
-
- //@}
- };
-
- extern "C" RECEIVER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_QCTL_Test_Receiver_Impl (void);
-}
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Sender/QCTL_Test_Sender.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Sender/QCTL_Test_Sender.idl
deleted file mode 100644
index c91392633f0..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Sender/QCTL_Test_Sender.idl
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef DDS_QUERY_CONDITION_TWO_LISTENERS_TEST_SENDER_IDL
-#define DDS_QUERY_CONDITION_TWO_LISTENERS_TEST_SENDER_IDL
-
-#include "Connector/QCTL_Test_Connector.idl"
-
-module QCTL_Test
-{
- component Sender
- {
- port QueryConditionTwoListenersTestConnector::DDS_Write info_write;
- provides CCM_DDS::ConnectorStatusListener connector_status;
-
-
- attribute unsigned short keys;
- attribute unsigned short iterations;
- };
-};
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Sender/QCTL_Test_Sender.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Sender/QCTL_Test_Sender.mpc
deleted file mode 100644
index ffe3bb76dcc..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Sender/QCTL_Test_Sender.mpc
+++ /dev/null
@@ -1,145 +0,0 @@
-// This file is generated with "generate_component_mpc.pl -p DDS_QCTL_Test_Base -l ../lib -o ../lib -c controller -u DDS Sender"
-
-project(DDS_QCTL_Test_Sender_idl_gen) : componentidldefaults, dds4ccm {
- after += DDS_QCTL_Test_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 {
- QCTL_Test_Sender.idl
- }
-}
-
-project(DDS_QCTL_Test_Sender_lem_gen) : ciaoidldefaults, dds4ccm {
- after += DDS_QCTL_Test_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 {
- QCTL_Test_SenderE.idl
- }
-}
-
-project(DDS_QCTL_Test_Sender_lem_stub) : ccm_svnt, dds4ccm_base {
- after += DDS_QCTL_Test_Sender_lem_gen DDS_QCTL_Test_Sender_stub \
- DDS_QCTL_Test_Base_stub
- libs += DDS_QCTL_Test_Base_stub Sender_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = Sender_lem_stub
- dynamicflags += SENDER_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTL_Test_SenderEC.cpp
- }
-
- Header_Files {
- QCTL_Test_SenderEC.h
- Sender_lem_stub_export.h
- }
-
- Inline_Files {
- QCTL_Test_SenderEC.inl
- }
-}
-
-project(DDS_QCTL_Test_Sender_stub) : ccm_stub, dds4ccm_base {
- after += DDS_QCTL_Test_Sender_idl_gen DDS_QCTL_Test_Base_stub \
- DDS_QCTL_Test_Connector_stub
- libs += DDS_QCTL_Test_Base_stub DDS_QCTL_Test_Connector_stub
- includes += ..
- libpaths += ../lib
- libout = ../lib
- sharedname = Sender_stub
- dynamicflags += SENDER_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTL_Test_SenderC.cpp
- }
-
- Header_Files {
- QCTL_Test_SenderC.h
- Sender_stub_export.h
- }
-
- Inline_Files {
- QCTL_Test_SenderC.inl
- }
-}
-
-project(DDS_QCTL_Test_Sender_exec) : ciao_executor, dds4ccm_lem_stub {
- after += DDS_QCTL_Test_Sender_lem_stub DDS_QCTL_Test_Sender_stub \
- DDS_QCTL_Test_Connector_lem_stub DDS_QCTL_Test_Connector_stub
- sharedname = Sender_exec
- libs += Sender_stub Sender_lem_stub DDS_QCTL_Test_Base_stub \
- DDS_QCTL_Test_Connector_lem_stub DDS_QCTL_Test_Connector_stub
- libpaths += ../lib
- includes += ..
- libout = ../lib
- dynamicflags += SENDER_EXEC_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTL_Test_Sender_exec.cpp
- }
-
- Header_Files {
- QCTL_Test_Sender_exec.h
- Sender_exec_export.h
- }
-
- Inline_Files {
- }
-}
-
-
-project(DDS_QCTL_Test_Sender_svnt) : ciao_servant, dds4ccm_lem_stub, dds4ccm_skel {
- after += DDS_QCTL_Test_Base_stub DDS_QCTL_Test_Sender_lem_stub \
- DDS_QCTL_Test_Connector_stub \
- DDS_QCTL_Test_Connector_svnt DDS_QCTL_Test_Connector_lem_stub
- sharedname = Sender_svnt
- libs += Sender_stub Sender_lem_stub DDS_QCTL_Test_Base_stub \
- DDS_QCTL_Test_Connector_stub DDS_QCTL_Test_Connector_svnt \
- DDS_QCTL_Test_Connector_lem_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += SENDER_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTL_Test_SenderS.cpp
- QCTL_Test_Sender_svnt.cpp
- }
-
- Header_Files {
- QCTL_Test_SenderS.h
- QCTL_Test_Sender_svnt.h
- Sender_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Sender/QCTL_Test_Sender_exec.cpp b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Sender/QCTL_Test_Sender_exec.cpp
deleted file mode 100644
index ed9a7139adc..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Sender/QCTL_Test_Sender_exec.cpp
+++ /dev/null
@@ -1,306 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-
-#include "QCTL_Test_Sender_exec.h"
-#include "tao/ORB_Core.h"
-#include "ace/Reactor.h"
-
-namespace CIAO_QCTL_Test_Sender_Impl
-{
-
- /**
- * ConnectorStatusListener_exec_i
- */
- ConnectorStatusListener_exec_i::ConnectorStatusListener_exec_i (
- Sender_exec_i &callback)
- : callback_ (callback)
- {
- }
-
- 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 (status_kind == ::DDS::PUBLICATION_MATCHED_STATUS)
- {
- ACE_DEBUG ((LM_DEBUG, "ConnectorStatusListener_exec_i::on_unexpected_status - "
- "Publication matched received: starting the test\n"));
-
- this->callback_.start ();
- }
- }
-
-
- /**
- * Write ticker
- */
-
- WriteTicker::WriteTicker (Sender_exec_i &callback)
- : callback_ (callback)
- {
- }
-
- int
- WriteTicker::handle_timeout (const ACE_Time_Value &, const void *)
- {
- // Notify the subscribers
- this->callback_.write_one ();
- return 0;
- }
-
- /**
- * Component Executor Implementation Class: Sender_exec_i
- */
-
- Sender_exec_i::Sender_exec_i (void)
- : keys_ (5)
- , iterations_ (10)
- {
- this->ticker_ = new WriteTicker (*this);
- }
-
- Sender_exec_i::~Sender_exec_i (void)
- {
- delete this->ticker_;
- }
-
- // 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::write_one (void)
- {
- if (this->last_key_ != this->samples_.end ())
- {
- try
- {
- ::QCTL_Test::QueryConditionTwoListenersTestConnector::Writer_var writer =
- this->ciao_context_->get_connection_info_write_data ();
-
- ++this->last_key_->second->iteration;
- writer->write_one (this->last_key_->second, ::DDS::HANDLE_NIL);
- ACE_DEBUG ((LM_DEBUG, "Written key <%C> - <%u>\n",
- this->last_key_->first.c_str (),
- this->last_key_->second->iteration));
- }
- catch (const CCM_DDS::InternalError& )
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("ERROR: Internal Error ")
- ACE_TEXT ("while updating writer info for <%C>.\n"),
- this->last_key_->first.c_str ()));
- }
- ++this->last_key_;
- }
- else
- {
- //onto the next iteration
- this->last_key_ = this->samples_.begin ();
- while (this->last_key_ != this->samples_.end ())
- {
- if (this->last_key_->second->iteration == this->iterations_)
- {
- //next key
- ++this->last_key_;
- }
- else
- {
- break;
- }
- }
- if (this->last_key_ == this->samples_.end ())
- {
- this->reactor ()->cancel_timer (this->ticker_);
- }
- }
- }
-
-
- void
- Sender_exec_i::start (void)
- {
- ACE_GUARD_THROW_EX (TAO_SYNCH_MUTEX, _guard,
- this->mutex_, CORBA::INTERNAL ());
-
- for (CORBA::UShort i = 1; i < this->keys_ + 1; ++i)
- {
- char key[7];
- QueryConditionTwoListenersTest* new_key = new QueryConditionTwoListenersTest;
- ACE_OS::sprintf (key, "KEY_%d", i);
- new_key->key = CORBA::string_dup(key);
- new_key->iteration = 0;
-
- this->samples_[key] = new_key;
- }
- this->last_key_ = this->samples_.begin ();
- if (this->reactor ()->schedule_timer (
- this->ticker_,
- 0,
- ACE_Time_Value (5, 50000),
- ACE_Time_Value (0, 50000)) == -1)
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("Sender_exec_i::start : ")
- ACE_TEXT ("Error scheduling timer")));
- }
- }
-
- // Component attributes and port operations.
-
- ::CCM_DDS::CCM_ConnectorStatusListener_ptr
- Sender_exec_i::get_connector_status (void)
- {
- return new ConnectorStatusListener_exec_i (*this);
- }
-
- ::CORBA::UShort
- Sender_exec_i::keys (void)
- {
- return this->keys_;
- }
-
- void
- Sender_exec_i::keys (
- const ::CORBA::UShort keys)
- {
- this->keys_ = keys;
- }
-
- ::CORBA::UShort
- Sender_exec_i::iterations (void)
- {
- return this->iterations_;
- }
-
- void
- Sender_exec_i::iterations (
- const ::CORBA::UShort iterations)
- {
- this->iterations_ = iterations;
- }
-
- // Operations from Components::SessionComponent.
-
- void
- Sender_exec_i::set_session_context (
- ::Components::SessionContext_ptr ctx)
- {
- this->ciao_context_ =
- ::QCTL_Test::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)
- {
- }
-
- void
- Sender_exec_i::ccm_passivate (void)
- {
- /* Your code here. */
- }
-
- void
- Sender_exec_i::ccm_remove (void)
- {
- /* Your code here. */
- }
-
- extern "C" SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_QCTL_Test_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/QueryCondition/TwoListeners/Sender/QCTL_Test_Sender_exec.h b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Sender/QCTL_Test_Sender_exec.h
deleted file mode 100644
index 8782e933fc1..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/Sender/QCTL_Test_Sender_exec.h
+++ /dev/null
@@ -1,177 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-#ifndef CIAO_QCTL_TEST_SENDER_EXEC_1OAY5Q_H_
-#define CIAO_QCTL_TEST_SENDER_EXEC_1OAY5Q_H_
-
-#include /**/ "ace/pre.h"
-
-#include "QCTL_Test_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_QCTL_Test_Sender_Impl
-{
- class Sender_exec_i;
-
- /**
- * ConnectorStatusListener_exec_i
- */
- class SENDER_EXEC_Export ConnectorStatusListener_exec_i
- : public virtual ::CCM_DDS::CCM_ConnectorStatusListener,
- public virtual ::CORBA::LocalObject
- {
- public:
- ConnectorStatusListener_exec_i (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_;
- };
-
- /**
- * Write ticker
- */
-
- class WriteTicker :
- public ACE_Event_Handler
- {
- public:
- WriteTicker (Sender_exec_i &callback);
- int handle_timeout (const ACE_Time_Value &, const void *);
- private:
- 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. */
-
- //@}
-
- //@{
- /** Component attributes and port operations. */
- virtual ::CCM_DDS::CCM_ConnectorStatusListener_ptr get_connector_status (
- void);
-
- virtual ::CORBA::UShort keys (void);
-
- virtual void keys (::CORBA::UShort keys);
-
- virtual ::CORBA::UShort iterations (void);
-
- virtual void iterations (::CORBA::UShort iterations);
- //@}
-
- //@{
- /** 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 start (void);
- void write_one (void);
-
- //@}
-
- private:
- ::QCTL_Test::CCM_Sender_Context_var ciao_context_;
-
- //@{
- /** Component attributes. */
-
- ::CORBA::UShort keys_;
-
- ::CORBA::UShort iterations_;
- //@}
-
- //@{
- /** User defined members. */
- WriteTicker *ticker_;
-
- TAO_SYNCH_MUTEX mutex_;
- typedef std::map<ACE_CString, QueryConditionTwoListenersTest_var> Writer_Table;
- Writer_Table samples_;
-
- Writer_Table::iterator last_key_;
-
- //@}
-
- //@{
- /** User defined private operations. */
-
- //@}
-
- /// Get the ACE_Reactor
- ACE_Reactor* reactor (void);
- };
-
- extern "C" SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_QCTL_Test_Sender_Impl (void);
-}
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/descriptors/Plan.cdp b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/descriptors/Plan.cdp
deleted file mode 100644
index 1360f42e586..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/descriptors/Plan.cdp
+++ /dev/null
@@ -1,492 +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>QCTL_Test_Depl_1</label>
- <UUID>QCTL_Test_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_QCTL_Test_Receiver_Impl</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_QCTL_Test_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="QCTL_Test_ConnectorComponentImplementation">
- <name>QCTL_Test_ConnectorComponentImplementation</name>
- <source/>
- <artifact xmi:idref="QCTL_Test_Connector_ExecArtifact" />
- <artifact xmi:idref="QCTL_Test_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_QCTL_Test_QueryConditionTwoListenersTestConnector_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_QCTL_Test_QueryConditionTwoListenersTestConnector_DDS_Event_Servant</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QCTL_Test_Connector_svnt</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QCTL_Test_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_QCTL_Test_Sender_Impl</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_QCTL_Test_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="ReceiverComponentInstance">
- <name>ReceiverComponent</name>
- <node>ReceiverNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="ReceiverComponentImplementation" />
- <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>
- </instance>
- <instance xmi:id="QCTL_Test_SenderConnectorInstance">
- <name>QCTL_Test_ConnectorComponent</name>
- <node>SenderNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="QCTL_Test_ConnectorComponentImplementation" />
- <configProperty>
- <name>topic_name</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QCTL_Test</string>
- </value>
- </value>
- </configProperty>
- </instance>
- <instance xmi:id="QCTL_Test_ReceiverConnectorInstance_1">
- <name>QCTL_Test_ReceiverConnectorInstance_1</name>
- <node>ReceiverNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="QCTL_Test_ConnectorComponentImplementation" />
- <configProperty>
- <name>topic_name</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QCTL_Test</string>
- </value>
- </value>
- </configProperty>
- </instance>
- <instance xmi:id="QCTL_Test_ReceiverConnectorInstance_2">
- <name>QCTL_Test_ReceiverConnectorInstance_2</name>
- <node>ReceiverNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="QCTL_Test_ConnectorComponentImplementation" />
- <configProperty>
- <name>topic_name</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QCTL_Test</string>
- </value>
- </value>
- </configProperty>
- </instance>
- <instance xmi:id="SenderComponentInstance">
- <name>SenderComponent</name>
- <node>SenderNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="SenderComponentImplementation" />
- <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>
- </instance>
-
- <connection>
- <name>info_listen_1_reader_receiver</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>info_listen_1_data</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>push_consumer_data</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="QCTL_Test_ReceiverConnectorInstance_1" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>info_listen_1_data</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>info_listen_1_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="QCTL_Test_ReceiverConnectorInstance_1" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>info_listen_1_data_control</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>info_listen_1_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="QCTL_Test_ReceiverConnectorInstance_1" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>info_listen_2_reader_receiver</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>info_listen_2_data</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>push_consumer_data</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="QCTL_Test_ReceiverConnectorInstance_2" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>info_listen_2_data</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>info_listen_2_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="QCTL_Test_ReceiverConnectorInstance_2" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>info_listen_2_data_control</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>info_listen_2_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="QCTL_Test_ReceiverConnectorInstance_2" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>test_topic_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="QCTL_Test_SenderConnectorInstance" />
- </internalEndpoint>
- </connection>
-
-
- <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="QCTL_Test_SenderConnectorInstance" />
- </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="QCTL_Test_Connector_ExecArtifact">
- <name>QCTL_Test_Connector_exec</name>
- <source/>
- <node/>
- <location>DDS_QCTL_Test_Connector_exec</location>
- </artifact>
- <artifact xmi:id="QCTL_Test_Connector_SvntArtifact">
- <name>QCTL_Test_Connector_svnt</name>
- <source/>
- <node/>
- <location>DDS_QCTL_Test_Connector_svnt</location>
- </artifact>
- <artifact xmi:id="QCTL_Test_Connector_StubArtifact">
- <name>QCTL_Test_Connector_stub</name>
- <source/>
- <node/>
- <location>DDS_QCTL_Test_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/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/descriptors/run_test.pl b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/descriptors/run_test.pl
deleted file mode 100755
index d8b4eca445d..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoListeners/descriptors/run_test.pl
+++ /dev/null
@@ -1,243 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# -*- perl -*-
-
-use lib "$ENV{'ACE_ROOT'}/bin";
-use PerlACE::TestTarget;
-
-$CIAO_ROOT = "$ENV{'CIAO_ROOT'}";
-$TAO_ROOT = "$ENV{'TAO_ROOT'}";
-$DANCE_ROOT = "$ENV{'DANCE_ROOT'}";
-
-$daemons_running = 0;
-$em_running = 0;
-$ns_running = 0;
-
-$nr_daemon = 2;
-@ports = ( 60001, 60002 );
-@iorbases = ( "NodeApp1.ior", "NodeApp2.ior" );
-@iorfiles = 0;
-@nodenames = ( "SenderNode", "ReceiverNode" );
-
-# 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;
-$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 30 seconds to allow task to complete\n";
-sleep (30);
-
-# Invoke executor - stop the application -.
-print "Invoking executor - stop the application -\n";
-print "by running dance_plan_launcher.exe with -k file://$ior_emfile -x $cdp_file\n";
-
-$E = $tg_executor->CreateProcess ("$DANCE_ROOT/bin/dance_plan_launcher",
- "-k file://$ior_emfile -x $cdp_file -s");
-$pl_status = $E->SpawnWaitKill ($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;
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Base/QCTQ_Starter.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Base/QCTQ_Starter.idl
deleted file mode 100644
index 55aafc4a95c..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Base/QCTQ_Starter.idl
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * @file QCTQ_Starter.idl
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef QUERYCONDITION_STARTER_IDL
-#define QUERYCONDITION_STARTER_IDL
-
-#pragma ciao lem "Base/QCTQ_StarterE.idl"
-
-interface TwoQueriesStarter
-{
- void set_reader_properties (in unsigned short nr_keys,
- in unsigned short nr_iterations);
- void start_read (in unsigned short run);
-};
-
-interface TwoQueriesRestarter
-{
- void restart_write ();
-};
-
-#endif /* QUERYCONDITION_STARTER_IDL */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Base/QCTQ_Starter.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Base/QCTQ_Starter.mpc
deleted file mode 100644
index 6928a4e4c83..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Base/QCTQ_Starter.mpc
+++ /dev/null
@@ -1,109 +0,0 @@
-project(QC_QCTQ_Starter_idl_gen) : componentidldefaults, dds4ccm {
- custom_only = 1
- idlflags += -Wb,stub_export_macro=READER_STARTER_STUB_Export \
- -Wb,stub_export_include=QCTQ_Starter_stub_export.h \
- -Wb,skel_export_macro=READER_STARTER_SVNT_Export \
- -Wb,skel_export_include=QCTQ_Starter_svnt_export.h \
- -Wb,svnt_export_macro=READER_STARTER_SVNT_Export \
- -Wb,svnt_export_include=QCTQ_Starter_svnt_export.h \
- -Wb,exec_export_macro=READER_STARTER_EXEC_Export \
- -Wb,exec_export_include=QCTQ_Starter_exec_export.h -I..
-
- IDL_Files {
- QCTQ_Starter.idl
- }
-}
-
-project(QC_QCTQ_Starter_lem_gen) : ciaoidldefaults, dds4ccm {
- after += QC_QCTQ_Starter_idl_gen
- custom_only = 1
- idlflags += -Wb,stub_export_macro=READER_STARTER_LEM_STUB_Export \
- -Wb,stub_export_include=QCTQ_Starter_lem_stub_export.h \
- -SS -Gxhst -I..
-
- IDL_Files {
- QCTQ_StarterE.idl
- }
-}
-
-project(QC_QCTQ_Starter_lem_stub) : ccm_svnt, dds4ccm_base {
- after += QC_QCTQ_Starter_lem_gen QC_QCTQ_Starter_stub
- libs += QC_QCTQ_Starter_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = QC_QCTQ_Starter_lem_stub
- dynamicflags += READER_STARTER_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQ_StarterEC.cpp
- }
-
- Header_Files {
- QCTQ_StarterEC.h
- QCTQ_Starter_lem_stub_export.h
- }
-
- Inline_Files {
- QCTQ_StarterEC.inl
- }
-}
-
-project(QC_QCTQ_Starter_stub) : ccm_stub, dds4ccm_base {
- after += QC_QCTQ_Starter_idl_gen
- libs +=
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = QC_QCTQ_Starter_stub
- dynamicflags += READER_STARTER_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQ_StarterC.cpp
- }
-
- Header_Files {
- QCTQ_StarterC.h
- QCTQ_Starter_stub_export.h
- }
-
- Inline_Files {
- QCTQ_StarterC.inl
- }
-}
-
-
-project(QC_QCTQ_Starter_svnt) : ciao_servant, dds4ccm_lem_stub, dds4ccm_skel {
- after += QC_QCTQ_Starter_lem_stub QC_QCTQ_Starter_stub
- sharedname = QC_QCTQ_Starter_svnt
- libs += QC_QCTQ_Starter_stub QC_QCTQ_Starter_lem_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += READER_STARTER_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQ_StarterS.cpp
- QCTQ_Starter_svnt.cpp
- }
-
- Header_Files {
- QCTQ_StarterS.h
- QCTQ_Starter_svnt.h
- QCTQ_Starter_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Base/QCTQ_Test_Base.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Base/QCTQ_Test_Base.idl
deleted file mode 100644
index ef66771bb8f..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Base/QCTQ_Test_Base.idl
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * @file QCTQ_Test_Base.idl
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef QUERY_CONDITION_TEST_BASE_IDL
-#define QUERY_CONDITION_TEST_BASE_IDL
-
-#pragma ndds typesupport "Base/QCTQ_Test_BaseSupport.h"
-#pragma opendds typesupport "Base/QCTQ_Test_BaseTypeSupportImpl.h"
-
-#pragma DCPS_DATA_TYPE "QueryConditionTest"
-#pragma DCPS_DATA_KEY "QueryConditionTest symbol"
-
-struct QueryConditionTest {
- string symbol; //@key
- long iteration;
-};
-
-#if defined DDS4CCM_NEEDS_SEQUENCES_DEFINED
-typedef sequence<QueryConditionTest> QueryConditionTestSeq;
-#endif
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Base/QCTQ_Test_Base.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Base/QCTQ_Test_Base.mpc
deleted file mode 100644
index f959ec8a225..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Base/QCTQ_Test_Base.mpc
+++ /dev/null
@@ -1,24 +0,0 @@
-project(QC_QCTQ_Test_Base_stub) : taoidldefaults, dds4ccm_ts_default {
- sharedname = QC_QCTQ_Test_Base_stub
- dynamicflags += QUERY_CONDITION_TEST_BASE_STUB_BUILD_DLL
- libout = ../lib
-
- idlflags += -SS -Sci \
- -Wb,stub_export_macro=QUERY_CONDITION_TEST_BASE_STUB_Export \
- -Wb,stub_export_include=QCTQ_Test_Base_stub_export.h
-
- IDL_Files {
- idlflags += -Gxhst
- QCTQ_Test_Base.idl
- }
-
- opendds_ts_flags += --export=QUERY_CONDITION_TEST_BASE_STUB_Export
-
- DDSGenerator_Files {
- QCTQ_Test_Base.idl
- }
-
- Source_Files {
- }
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Connector/QCTQ_Test_Connector.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Connector/QCTQ_Test_Connector.idl
deleted file mode 100644
index 069d2eda9b8..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Connector/QCTQ_Test_Connector.idl
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * @file QCTQ_Test_Connector.idl
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef QUERY_CONDITION_TEST_CONNECTOR_IDL_
-#define QUERY_CONDITION_TEST_CONNECTOR_IDL_
-
-#include <Components.idl>
-#include <ccm_dds.idl>
-
-#include "Base/QCTQ_Test_Base.idl"
-
-#pragma ciao lem "Connector/QCTQ_Test_ConnectorE.idl"
-
-#if (CIAO_DDS4CCM_OPENDDS==1)
-# include "Base/QCTQ_Test_BaseTypeSupport.idl"
-#endif
-
-module QCTQ_Test
-{
- module ::CCM_DDS::Typed < ::QueryConditionTest, ::QueryConditionTestSeq> QueryConditionTestConnector;
-};
-
-#endif /* QUERY_CONDITION_TEST_CONNECTOR_IDL_ */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Connector/QCTQ_Test_Connector.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Connector/QCTQ_Test_Connector.mpc
deleted file mode 100644
index 091cfc4ba36..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Connector/QCTQ_Test_Connector.mpc
+++ /dev/null
@@ -1,146 +0,0 @@
-// This file is generated with "generate_component_mpc.pl -p QCTQ_Test_Base -l .. -o ../lib -u DDS QCTQ_Test_Connector"
-
-project(QC_QCTQ_Test_Connector_idl_gen) : connectoridldefaults, dds4ccm {
- after += DDS4CCM_idl_gen QC_QCTQ_Test_Base_stub
- custom_only = 1
- idlflags += -Wb,stub_export_macro=QUERY_CONDITION_TEST_CONNECTOR_STUB_Export \
- -Wb,stub_export_include=QCTQ_Test_Connector_stub_export.h \
- -Wb,skel_export_macro=QUERY_CONDITION_TEST_CONNECTOR_SVNT_Export \
- -Wb,skel_export_include=QCTQ_Test_Connector_svnt_export.h \
- -Wb,svnt_export_macro=QUERY_CONDITION_TEST_CONNECTOR_SVNT_Export \
- -Wb,svnt_export_include=QCTQ_Test_Connector_svnt_export.h \
- -Wb,conn_export_macro=QUERY_CONDITION_TEST_CONNECTOR_CONN_Export \
- -Wb,conn_export_include=QCTQ_Test_Connector_conn_export.h \
- -I ..
-
- IDL_Files {
- QCTQ_Test_Connector.idl
- }
-}
-
-project(QC_QCTQ_Test_Connector_lem_gen) : ciaoidldefaults, dds4ccm {
- custom_only = 1
- after += QC_QCTQ_Test_Connector_idl_gen
- idlflags += -Wb,stub_export_macro=QUERY_CONDITION_TEST_CONNECTOR_LEM_STUB_Export \
- -Wb,stub_export_include=QCTQ_Test_Connector_lem_stub_export.h \
- -SS -Gxhst \
- -I ..
-
- IDL_Files {
- QCTQ_Test_ConnectorE.idl
- }
-}
-
-project(QC_QCTQ_Test_Connector_lem_stub) : ccm_svnt, dds4ccm_lem_stub {
- after += QC_QCTQ_Test_Connector_lem_gen QC_QCTQ_Test_Connector_stub \
- QC_QCTQ_Test_Base_stub
- libs += QC_QCTQ_Test_Base_stub QC_QCTQ_Test_Connector_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = QC_QCTQ_Test_Connector_lem_stub
- dynamicflags += QUERY_CONDITION_TEST_CONNECTOR_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQ_Test_ConnectorEC.cpp
- }
-
- Header_Files {
- QCTQ_Test_ConnectorEC.h
- QCTQ_Test_Connector_lem_stub_export.h
- }
-
- Inline_Files {
- QCTQ_Test_ConnectorEC.inl
- }
-}
-
-project(QC_QCTQ_Test_Connector_stub) : ccm_stub, dds4ccm_base {
- after += QC_QCTQ_Test_Connector_idl_gen QC_QCTQ_Test_Base_stub
- libs += QC_QCTQ_Test_Base_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = QC_QCTQ_Test_Connector_stub
- dynamicflags += QUERY_CONDITION_TEST_CONNECTOR_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQ_Test_ConnectorC.cpp
- }
-
- Header_Files {
- QCTQ_Test_ConnectorC.h
- QCTQ_Test_Connector_stub_export.h
- }
-
- Inline_Files {
- QCTQ_Test_ConnectorC.inl
- }
-}
-
-project(QC_QCTQ_Test_Connector_exec) : ciao_executor, dds4ccm_impl {
- after += QC_QCTQ_Test_Connector_lem_stub QC_QCTQ_Test_Connector_stub \
- QC_QCTQ_Test_Base_stub
- sharedname = QC_QCTQ_Test_Connector_exec
- libs += QC_QCTQ_Test_Connector_stub QC_QCTQ_Test_Connector_lem_stub \
- QC_QCTQ_Test_Base_stub QC_QCTQ_Test_Base_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += QUERY_CONDITION_TEST_CONNECTOR_CONN_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQ_Test_Connector_conn.cpp
- }
-
- Header_Files {
- QCTQ_Test_Connector_conn.h
- QCTQ_Test_Connector_conn_export.h
- }
-
- Inline_Files {
- }
-}
-
-
-project(QC_QCTQ_Test_Connector_svnt) : ciao_servant, dds4ccm_impl {
- after += QC_QCTQ_Test_Connector_lem_stub QC_QCTQ_Test_Connector_exec \
- QC_QCTQ_Test_Connector_stub
- sharedname = QC_QCTQ_Test_Connector_svnt
- libs += QC_QCTQ_Test_Connector_stub \
- QC_QCTQ_Test_Connector_lem_stub \
- QC_QCTQ_Test_Base_stub \
- QC_QCTQ_Test_Connector_exec
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += QUERY_CONDITION_TEST_CONNECTOR_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQ_Test_ConnectorS.cpp
- QCTQ_Test_Connector_svnt.cpp
- }
-
- Header_Files {
- QCTQ_Test_ConnectorS.h
- QCTQ_Test_Connector_svnt.h
- QCTQ_Test_Connector_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/README b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/README
deleted file mode 100644
index f2d19fb4eff..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/README
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-The TwoQueries exists of 4 runs. During each run the Sender writes 20 samples to DDS.
-After that it informs the receiver that the samples were written. The receiver
-in turn sets a filter and starts to pull the samples from DDS, using the Getter.
-Once the receiver has received all samples, it informs the Sender that the next
-run can be started.
-Since the getter only receives non-read samples, an extra check is build in. The
-receiver also performs a read on a different port in order to check whether the
-right samples are available in DDS. This Reader should always receive ALL samples
-since the QueryFilter only applies to the Getter.
-
-The following query expression is defined:
- ( (iteration > %0) AND (iteration < %1) )
-
-The following runs are defined:
-
-1. Sender writes iterations 1-20 to DDS for a certain number of keys,
- defined in the deployment plan. The receiver sets the filter and filter
- parameters and starts receiving the samples one by one, using get_one.
- After that it changes the filter parameters and informs the Sender that a
- new run can be started.
-2. Sender writes iterations 21-40 to DDS for the defined number of keys. After
- that it informs the receiver which starts to get the samples from DDS. After
- that, the receiver reset the QueryFilter (by setting the expression to an
- empty string) and informs the Sender that a new run can be started.
-3. Sender writes iterations 41-60 to DDS for the defined number of keys. After
- that it informs the receiver which should receive all samples with iterations
- 1-60 without the ones it read during run 1, 2 and 3.
- The receiver then creates a new filter, using the same expression as used during
- runs 1, 2 and 3 but with different parameters. Again the receiver informs the
- Sender that a new run can be started.
-4. Sender writes iterations 61-80 to DDS for the defined number of keys. Again it
- informs the receiver about this action. The receiver should only get the samples
- according to the query expression and its parameters.
-
-After each get-action, the receiver reads the data from DDS. During this read action,
-the receiver should read all samples the Sender has written up to that moment. Since
-there's no filter applied to this reader, all sample states should be 'FRESH_INFO'. \ No newline at end of file
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Receiver/QCTQ_Test_Receiver.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Receiver/QCTQ_Test_Receiver.idl
deleted file mode 100644
index 80d9f1fb76e..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Receiver/QCTQ_Test_Receiver.idl
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * @file
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef RECEIVER_IDL
-#define RECEIVER_IDL
-
-#include "Connector/QCTQ_Test_Connector.idl"
-#include "Base/QCTQ_Starter.idl"
-
-module QCTQ_Test
-{
- component Receiver
- {
- port QueryConditionTestConnector::DDS_Get get_port;
- port QueryConditionTestConnector::DDS_Read read_port;
-
- provides TwoQueriesStarter reader_start;
- uses TwoQueriesRestarter writer_restart;
- };
-};
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Receiver/QCTQ_Test_Receiver.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Receiver/QCTQ_Test_Receiver.mpc
deleted file mode 100644
index f38fa33da42..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Receiver/QCTQ_Test_Receiver.mpc
+++ /dev/null
@@ -1,155 +0,0 @@
-project(QC_QCTQ_Test_Receiver_idl_gen) : componentidldefaults, dds4ccm {
- custom_only = 1
- after += QC_QCTQ_Test_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 {
- QCTQ_Test_Receiver.idl
- }
-}
-
-project(QC_QCTQ_Test_Receiver_lem_gen) : ciaoidldefaults, dds4ccm {
- after += QC_QCTQ_Test_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 {
- QCTQ_Test_ReceiverE.idl
- }
-}
-
-project(QC_QCTQ_Test_Receiver_lem_stub) : ccm_svnt, dds4ccm_base {
- after += QC_QCTQ_Test_Receiver_lem_gen QC_QCTQ_Test_Receiver_stub \
- QC_QCTQ_Test_Connector_stub QC_QCTQ_Test_Base_stub \
- QC_QCTQ_Starter_stub
- libs += Receiver_stub QC_QCTQ_Test_Connector_stub \
- QC_QCTQ_Test_Base_stub QC_QCTQ_Starter_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = Receiver_lem_stub
- dynamicflags += RECEIVER_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQ_Test_ReceiverEC.cpp
- }
-
- Header_Files {
- QCTQ_Test_ReceiverEC.h
- Receiver_lem_stub_export.h
- }
-
- Inline_Files {
- QCTQ_Test_ReceiverEC.inl
- }
-}
-
-project(QC_QCTQ_Test_Receiver_stub) : ccm_stub, dds4ccm_base {
- after += QC_QCTQ_Test_Receiver_idl_gen QC_QCTQ_Test_Connector_stub \
- QC_QCTQ_Test_Base_stub QC_QCTQ_Test_Connector_lem_gen \
- QC_QCTQ_Starter_stub QC_QCTQ_Starter_lem_stub
- libs += QC_QCTQ_Test_Connector_stub QC_QCTQ_Test_Base_stub \
- QC_QCTQ_Starter_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = Receiver_stub
- dynamicflags += RECEIVER_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQ_Test_ReceiverC.cpp
- }
-
- Header_Files {
- QCTQ_Test_ReceiverC.h
- Receiver_stub_export.h
- }
-
- Inline_Files {
- QCTQ_Test_ReceiverC.inl
- }
-}
-
-project(QC_QCTQ_Test_Receiver_exec) : ciao_executor, dds4ccm_lem_stub {
- after += QC_QCTQ_Test_Receiver_lem_stub QC_QCTQ_Test_Receiver_stub \
- QC_QCTQ_Test_Base_stub QC_QCTQ_Test_Connector_stub \
- QC_QCTQ_Test_Connector_lem_stub \
- QC_QCTQ_Starter_lem_stub QC_QCTQ_Starter_stub
- sharedname = Receiver_exec
- libs += Receiver_stub Receiver_lem_stub QC_QCTQ_Test_Base_stub \
- QC_QCTQ_Test_Connector_stub QC_QCTQ_Test_Connector_lem_stub \
- QC_QCTQ_Starter_lem_stub QC_QCTQ_Starter_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += RECEIVER_EXEC_BUILD_DLL READER_STARTER_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQ_Test_Receiver_exec.cpp
- }
-
- Header_Files {
- QCTQ_Test_Receiver_exec.h
- Receiver_exec_export.h
- }
-
- Inline_Files {
- }
-}
-
-
-project(QC_QCTQ_Test_Receiver_svnt) : ciao_servant, dds4ccm_lem_stub, dds4ccm_skel {
- after += QC_QCTQ_Test_Receiver_lem_stub QC_QCTQ_Test_Base_stub \
- QC_QCTQ_Test_Connector_stub QC_QCTQ_Test_Connector_svnt \
- QC_QCTQ_Test_Receiver_exec QC_QCTQ_Test_Connector_lem_stub \
- QC_QCTQ_Starter_stub \
- QC_QCTQ_Starter_svnt QC_QCTQ_Starter_lem_stub
- sharedname = Receiver_svnt
- libs += Receiver_stub Receiver_lem_stub QC_QCTQ_Test_Base_stub \
- QC_QCTQ_Test_Connector_stub QC_QCTQ_Test_Connector_svnt \
- Receiver_exec QC_QCTQ_Test_Connector_lem_stub \
- QC_QCTQ_Starter_stub QC_QCTQ_Starter_svnt \
- QC_QCTQ_Starter_lem_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += RECEIVER_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQ_Test_ReceiverS.cpp
- QCTQ_Test_Receiver_svnt.cpp
- }
-
- Header_Files {
- QCTQ_Test_ReceiverS.h
- QCTQ_Test_Receiver_svnt.h
- Receiver_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Receiver/QCTQ_Test_Receiver_exec.cpp b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Receiver/QCTQ_Test_Receiver_exec.cpp
deleted file mode 100644
index 5982d0f880f..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Receiver/QCTQ_Test_Receiver_exec.cpp
+++ /dev/null
@@ -1,806 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-
-#include "QCTQ_Test_Receiver_exec.h"
-#include "tao/ORB_Core.h"
-#include "ace/Reactor.h"
-
-#include "dds4ccm/impl/dds4ccm_conf.h"
-#include "dds4ccm/impl/Utils.h"
-#include "dds4ccm/impl/dds4ccm_utils.h"
-
-#define QUERY "( (iteration > %0) AND (iteration < %1) )"
-// #define QUERY_2 "( (iteration > %0) AND (iteration < %1) )"
-
-#define MIN_ITERATION_1 "2"
-#define MAX_ITERATION_1 "5"
-
-#define MIN_ITERATION_2 "22"
-#define MAX_ITERATION_2 "34"
-
-#define MIN_ITERATION_3 "68"
-#define MAX_ITERATION_3 "77"
-
-// Reader also reads already read samples.
-// The getter receives the following iterations:
-// During run 1: 2 (iterations 3 and 4)
-// During run 2: 11 (iterations between 22 and 34)
-// During run 3: 2 (all unread samples, meaning iterations 1-60
-// without iteration 3, 4 and iterations between 22 and 34)
-// During run 4: 8 (iterations between 68 and 77)
-
-#define SAMPLES_PER_KEY_GETTER (2 + 11 + 47 + 8)
-
-namespace CIAO_QCTQ_Test_Receiver_Impl
-{
- /**
- * Read action generator
- */
-
- read_action_Generator::read_action_Generator (Receiver_exec_i &callback, int run)
- : callback_ (callback),
- run_ (run)
- {
- }
-
- read_action_Generator::~read_action_Generator ()
- {
- }
-
- int
- read_action_Generator::handle_timeout (const ACE_Time_Value &, const void *)
- {
- ACE_DEBUG ((LM_DEBUG, "Checking if last sample "
- "is available in DDS...\n"));
- if (this->callback_.check_last ())
- {
- this->callback_.run (this->run_);
- }
- return 0;
- }
-
- /**
- * Facet Executor Implementation Class: get_port_status_exec_i
- */
-
- get_port_status_exec_i::get_port_status_exec_i (
- ::QCTQ_Test::CCM_Receiver_Context_ptr ctx)
- : ciao_context_ (
- ::QCTQ_Test::CCM_Receiver_Context::_duplicate (ctx))
- {
- }
-
- get_port_status_exec_i::~get_port_status_exec_i (void)
- {
- }
-
- // Operations from ::CCM_DDS::PortStatusListener
-
- void
- get_port_status_exec_i::on_requested_deadline_missed (::DDS::DataReader_ptr /* the_reader */,
- const ::DDS::RequestedDeadlineMissedStatus & /* status */)
- {
- /* Your code here. */
- }
-
- void
- get_port_status_exec_i::on_sample_lost (::DDS::DataReader_ptr /* the_reader */,
- const ::DDS::SampleLostStatus & /* status */)
- {
- /* Your code here. */
- }
-
- /**
- * Facet Executor Implementation Class: reader_start_exec_i
- */
-
- reader_start_exec_i::reader_start_exec_i (
- ::QCTQ_Test::CCM_Receiver_Context_ptr ctx,
- Receiver_exec_i & callback)
- : ciao_context_ (
- ::QCTQ_Test::CCM_Receiver_Context::_duplicate (ctx))
- , callback_ (callback)
- {
- }
-
- reader_start_exec_i::~reader_start_exec_i (void)
- {
- }
-
- // Operations from ::TwoQueriesStarter
-
- void
- reader_start_exec_i::set_reader_properties (::CORBA::UShort nr_keys,
- ::CORBA::UShort nr_iterations)
- {
- this->callback_.keys (nr_keys);
- this->callback_.iterations (nr_iterations);
- }
-
- void
- reader_start_exec_i::start_read (::CORBA::UShort run)
- {
- this->callback_.start_read (run);
- }
-
- /**
- * Component Executor Implementation Class: Receiver_exec_i
- */
-
- Receiver_exec_i::Receiver_exec_i (void)
- : iterations_ (20)
- , keys_ (5)
- , current_min_iteration_ (ACE_OS::atoi (MIN_ITERATION_1))
- , current_max_iteration_ (ACE_OS::atoi (MAX_ITERATION_1))
- , ticker_ (0)
- , samples_expected_ (0)
- , samples_received_ (0)
- {
- }
-
- Receiver_exec_i::~Receiver_exec_i (void)
- {
- }
-
- // Supported operations and attributes.
- ACE_Reactor*
- Receiver_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;
- }
-
- bool
- Receiver_exec_i::check_last ()
- {
- ::QCTQ_Test::QueryConditionTestConnector::Reader_var reader =
- this->ciao_context_->get_connection_get_port_data ();
-
- try
- {
- QueryConditionTest queryfiltertest_info;
- ::CCM_DDS::ReadInfo readinfo;
- char key[10];
- ACE_OS::sprintf (key, "KEY_%d", this->keys_);
- queryfiltertest_info.symbol = ::CORBA::string_dup (key);
- reader->read_one_last (
- queryfiltertest_info,
- readinfo,
- ::DDS::HANDLE_NIL);
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::check_last - "
- "last iteration <%02d> - <%02d>\n",
- queryfiltertest_info.iteration,
- this->current_max_iteration_ - 1));
- return queryfiltertest_info.iteration >= this->current_max_iteration_ - 1;
- }
- catch (const ::CCM_DDS::InternalError &)
- {
- }
- catch (const ::CCM_DDS::NonExistent &)
- {
- }
- catch (...)
- {
- ACE_ERROR ((LM_ERROR, "Receiver_exec_i::check_last: "
- "ERROR: Unexpected exception caught\n"));
- }
- return false;
- }
-
- // Supported operations and attributes.
- bool
- Receiver_exec_i::check_iter (const QueryConditionTest & sample,
- ::CORBA::UShort run,
- ::CCM_DDS::ReadInfo * info)
- {
- if (!info)
- {
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("GET ALL : ")
- ACE_TEXT ("sample received for <%C>: iteration <%d>\n"),
- sample.symbol.in (),
- sample.iteration));
- }
- if (run == 3)
- {
- // We need to receive all UNread samples. Therefor we should
- // receive all samples except the ones between
- // MIN_ITERATION_1 and MAX_ITERATION_1 and between
- // MIN_ITERATION_2 and MAX_ITERATION_2
- if ((sample.iteration > ACE_OS::atoi (MIN_ITERATION_1) &&
- sample.iteration < ACE_OS::atoi (MAX_ITERATION_1)) ||
- (sample.iteration > ACE_OS::atoi (MIN_ITERATION_2) &&
- sample.iteration < ACE_OS::atoi (MAX_ITERATION_2)))
- {
- // Read supplies info. There check the sample status mask
- // as well
- if (info != 0)
- { // access mask should be "ALREADY_SEEN" since the getter should
- // already have seen this sample.
- if (info->access_status != ::CCM_DDS::ALREADY_SEEN)
- {
- // READ ALL since this check is only performed
- // during a read.
- ACE_ERROR ((LM_ERROR, "ERROR: READ ALL: "
- "Unexpected sample access mask - "
- "expected <%C> - "
- "received <%C>\n",
- CIAO::DDS4CCM::translate_ccm_dds_accessstatus (::CCM_DDS::ALREADY_SEEN),
- CIAO::DDS4CCM::translate_ccm_dds_accessstatus (info->access_status)
- ));
- return false;
- }
- }
- else
- {
- // Getter functionality
- ACE_ERROR ((LM_ERROR, "ERROR: GET ALL: "
- "Didn't except samples between "
- "<%02d> and <%02d> and between "
- "<%02d> and <%02d>\n",
- ACE_OS::atoi (MIN_ITERATION_1),
- ACE_OS::atoi (MAX_ITERATION_1),
- ACE_OS::atoi (MIN_ITERATION_2),
- ACE_OS::atoi (MAX_ITERATION_2)));
- return false;
- }
- }
- }
- else if (!info)
- {
- if (sample.iteration <= current_min_iteration_)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: GET ALL: "
- "Didn't expect samples with iteration %d "
- "<= %d\n", sample.iteration,
- this->current_min_iteration_));
- return false;
- }
- if (sample.iteration > this->current_max_iteration_)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: GET ALL: "
- "Didn't expect samples with iteration %d "
- "> %2d\n", sample.iteration,
- this->current_max_iteration_));
- return false;
- }
- }
- if (info != 0)
- { // access mask should be "FRESH_INFO" since the getter has not
- // "seen" this sample but the reader has seen the samples
- // of the previous runs.
- if (sample.iteration > this->current_min_iteration_)
- {
- if (info->access_status != ::CCM_DDS::FRESH_INFO)
- {
- // READ ALL since this check is only performed
- // during a read.
- ACE_ERROR ((LM_ERROR, "ERROR: READ ALL: "
- "Unexpected sample access mask - "
- "expected <%C> - "
- "received <%C>\n",
- CIAO::DDS4CCM::translate_ccm_dds_accessstatus (::CCM_DDS::FRESH_INFO),
- CIAO::DDS4CCM::translate_ccm_dds_accessstatus (info->access_status)));
- return false;
- }
- }
- }
- return true;
- }
-
-
- void
- Receiver_exec_i::read_all (::CORBA::UShort run)
- {
- ::QCTQ_Test::QueryConditionTestConnector::Reader_var reader =
- this->ciao_context_->get_connection_read_port_data ();
-
- if (::CORBA::is_nil (reader.in ()))
- {
- ACE_ERROR ((LM_ERROR, "Receiver_exec_i::read_all - "
- "ERROR: No Reader\n"));
- return;
- }
- QueryConditionTestSeq qf_info;
- ::CCM_DDS::ReadInfoSeq readinfos;
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::read_all - "
- "Start checking samples in DDS\n"));
- reader->read_all (qf_info, readinfos);
- ::CORBA::ULong expected =
- static_cast < ::CORBA::ULong > (run * this->iterations_ * this->keys_);
- if (qf_info.length () != expected)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::read_all - "
- "Unexpected number of samples received: "
- "expected <%d> - received <%u>\n",
- expected, qf_info.length ()));
- }
- for (::CORBA::ULong i = 0; i < qf_info.length (); ++i)
- {
- ACE_DEBUG ((LM_DEBUG, "READ ALL : Receiver_exec_i::read_all - "
- "Sample received: key <%C> - iteration <%d> - "
- "sample_read_state <%C>\n",
- qf_info[i].symbol.in (),
- qf_info[i].iteration,
- CIAO::DDS4CCM::translate_ccm_dds_accessstatus (readinfos[i].access_status)));
- if (!this->check_iter (qf_info[i], run, &readinfos[i]))
- break;
- }
- }
-
-
- ::CORBA::ULong
- Receiver_exec_i::get_all (::CORBA::UShort run)
- {
- ::QCTQ_Test::QueryConditionTestConnector::Getter_var getter =
- this->ciao_context_->get_connection_get_port_fresh_data ();
- ::CORBA::ULong samples_received = 0;
-
- if (::CORBA::is_nil (getter.in ()))
- {
- ACE_ERROR ((LM_ERROR, "Receiver_exec_i::get_all - "
- "ERROR: No Getter\n"));
- return 0;
- }
- QueryConditionTest_var qf_info;
- ::CCM_DDS::ReadInfo readinfo;
- ::CORBA::Boolean result = getter->get_one (qf_info.out (), readinfo);
- if (result)
- {
- this->check_iter (qf_info.in (), run);
- ++samples_received;
- }
- else
- {
- ACE_ERROR ((LM_ERROR, "Receiver_exec_i::get_all - "
- "ERROR: time out when retrieving "
- "first sample.\n"));
- }
- while (result)
- {
- result = getter->get_one (qf_info.out (), readinfo);
- if (result)
- {
- if (!this->check_iter (qf_info.in (), run))
- break;
- ++samples_received;
- }
- }
- return samples_received;
- }
-
- ::CORBA::ULong
- Receiver_exec_i::test_all (::CORBA::UShort run)
- {
- try
- {
- return get_all (run);
- }
- catch (const CCM_DDS::NonExistent& ex)
- {
- for (::CORBA::ULong i = 0; i < ex.indexes.length (); ++i)
- {
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("ERROR test_all <%d>: ")
- ACE_TEXT ("caught expected exception: index <%u>\n"),
- run,
- ex.indexes[i]));
- }
- }
- catch (const CCM_DDS::InternalError& ex)
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("ERROR: test_all <%d>: ")
- ACE_TEXT ("caught InternalError exception: retval <%u>\n"),
- run,
- ex.error_code));
- }
- catch (const ::CORBA::Exception& ex)
- {
- ex._tao_print_exception ("test_all");
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("ERROR: Receiver_exec_i::test_all <%d> : Exception caught\n"),
- run));
- }
- return 0;
- }
-
- void
- Receiver_exec_i::check_filter (::CORBA::UShort run)
- {
- ::CCM_DDS::QueryFilter_var filter;
- ::QCTQ_Test::QueryConditionTestConnector::Reader_var reader =
- this->ciao_context_->get_connection_get_port_data ();
- try
- {
- filter = reader->query ();
- }
- catch (const CCM_DDS::InternalError& ex)
- {
- if (run == 3)
- {
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::check_filter - "
- "caught expected InternalEr excep: retval <%u>\n",
- ex.error_code));
- }
- else
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter - "
- "caught InternalError exception: retval <%u>\n",
- ex.error_code));
- }
- return;
- }
- catch (const ::CORBA::Exception& ex)
- {
- ex._tao_print_exception ("ERROR: Receiver_exec_i::check_filter: ");
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter - "
- "Exception caught\n"));
- return;
- }
-
- //check query
- bool error = false;
-
- if (ACE_OS::strcmp (filter->expression, QUERY) != 0)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter - "
- "Unexpected query when retrieving filter: "
- "expected <%C> - received <%C>\n",
- QUERY, filter->expression.in ()));
- error = true;
- }
- //check current parameters.
- if (filter->parameters.length () != 2)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter - "
- "Unexpected number of parameters: "
- "expected <%d> - received <%d>\n",
- 2, filter->parameters.length ()));
- error = true;
- }
-
- if (filter->parameters.length () >= 1)
- {
- if (ACE_OS::atoi (filter->parameters[0]) != this->current_min_iteration_)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter - "
- "Unexpected param value: "
- "expected <%d> - received <%C>\n",
- this->current_min_iteration_,
- filter->parameters[0].in ()));
- error = true;
- }
- }
- if (filter->parameters.length () >= 2)
- {
- if (ACE_OS::atoi (filter->parameters[1]) != this->current_max_iteration_)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter - "
- "Unexpected param value: "
- "expected <%d> - received <%C>\n",
- this->current_max_iteration_,
- filter->parameters[1].in ()));
- error = true;
- }
- }
- if (!error)
- {
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::check_filter - "
- "Passed check_filter test for run <%d>.\n",
- run));
- }
- }
-
- void
- Receiver_exec_i::set_filter (::CORBA::UShort run)
- {
- ACE_DEBUG ((LM_DEBUG, "Set filter for run <%d>\n", run));
- ::QCTQ_Test::QueryConditionTestConnector::Reader_var reader =
- this->ciao_context_->get_connection_get_port_data ();
-
- try
- {
- ::CCM_DDS::QueryFilter filter;
- run != 3 ? filter.expression = ::CORBA::string_dup (QUERY) :
- filter.expression = ::CORBA::string_dup ("");
- filter.parameters.length (2);
- if (run == 1)
- {
- filter.parameters[0] = ::CORBA::string_dup (MIN_ITERATION_1);
- filter.parameters[1] = ::CORBA::string_dup (MAX_ITERATION_1);
- this->current_min_iteration_ = ACE_OS::atoi (MIN_ITERATION_1);
- this->current_max_iteration_ = ACE_OS::atoi (MAX_ITERATION_1);
- }
- else if (run == 2)
- {
- filter.parameters[0] = ::CORBA::string_dup (MIN_ITERATION_2);
- filter.parameters[1] = ::CORBA::string_dup (MAX_ITERATION_2);
- this->current_min_iteration_ = ACE_OS::atoi (MIN_ITERATION_2);
- this->current_max_iteration_ = ACE_OS::atoi (MAX_ITERATION_2);
- }
- else if (run == 3)
- {
- filter.parameters[0] = ::CORBA::string_dup ("0");
- filter.parameters[1] = ::CORBA::string_dup ("0");
- this->current_min_iteration_ = (run - 1) * this->iterations_;
- this->current_max_iteration_ = run * this->iterations_;
- }
- else if (run == 4)
- {
- filter.parameters[0] = ::CORBA::string_dup (MIN_ITERATION_3);
- filter.parameters[1] = ::CORBA::string_dup (MAX_ITERATION_3);
- this->current_min_iteration_ = ACE_OS::atoi (MIN_ITERATION_3);
- this->current_max_iteration_ = ACE_OS::atoi (MAX_ITERATION_3);
- }
- ACE_DEBUG ((LM_DEBUG, "Filter : Query <%C>, parameter[0] <%C>, parameter[1] <%C>\n",
- filter.expression.in (), filter.parameters[0].in (), filter.parameters[1].in ()));
- reader->query (filter);
- }
- catch (const ::CCM_DDS::InternalError &ex)
- {
- ACE_ERROR ((LM_ERROR, "Receiver_exec_i::set_filter - "
- "ERROR: Unexpected InternalError exception caught "
- "with <%C> as error\n.",
- ::CIAO::DDS4CCM::translate_retcode (ex.error_code)));
- }
- catch (...)
- {
- ACE_ERROR ((LM_ERROR, "Receiver_exec_i::set_filter - "
- "ERROR: Unexpected exception caught.\n"));
- }
- }
-
- void
- Receiver_exec_i::start_read (::CORBA::UShort run)
- {
- this->ticker_ = new read_action_Generator (*this, run);
- if (this->reactor ()->schedule_timer (this->ticker_,
- 0,
- ACE_Time_Value(1, 0),
- ACE_Time_Value(1, 0)) == -1)
- {
- ACE_ERROR ((LM_ERROR, "Unable to schedule Timer\n"));
- }
- }
-
- void
- Receiver_exec_i::run (::CORBA::UShort run)
- {
- if (this->ticker_)
- {
- this->reactor ()->cancel_timer (this->ticker_);
- delete this->ticker_;
- this->ticker_ = 0;
- }
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::run - "
- "Starting run number <%d>\n",
- run));
- TwoQueriesRestarter_var restarter =
- this->ciao_context_->get_connection_writer_restart ();
- if (!::CORBA::is_nil (restarter.in ()))
- {
- switch (run)
- {
- case 1:
- {
- this->samples_received_ += this->test_all (run);
- this->check_filter (run);
- this->read_all (run);
- //set filter for the next run
- this->set_filter (run + 1);
- // inform the sender that it may start the next run
- restarter->restart_write ();
- }
- break;
- case 2:
- {
- this->samples_received_ += this->test_all (run);
- check_filter (run);
- this->read_all (run);
- //set filter for the next run
- this->set_filter (run + 1);
- // inform the sender that it may start the next run
- restarter->restart_write ();
- }
- break;
- case 3:
- {
- this->samples_received_ += this->test_all (run);
- this->check_filter (run);
- this->read_all (run);
- //set filter for the next run
- this->set_filter (run + 1);
- // inform the sender that it may start the next run
- restarter->restart_write ();
- }
- break;
- case 4:
- {
- this->samples_received_ += this->test_all (run);
- this->read_all (run);
- }
- }
- }
- else
- {
- ACE_ERROR ((LM_ERROR, "Receiver_exec_i::run - "
- "ERROR: Reference to Restarter not found\n"));
- }
- }
-
- void
- Receiver_exec_i::iterations (::CORBA::UShort iterations)
- {
- this->iterations_ = iterations;
-
- }
-
- void
- Receiver_exec_i::keys (::CORBA::UShort keys)
- {
- this->keys_ = keys;
-
- this->samples_expected_ = (this->keys_ - 1) * SAMPLES_PER_KEY_GETTER;
- }
-
- // Component attributes and port operations.
-
- ::CCM_DDS::CCM_PortStatusListener_ptr
- Receiver_exec_i::get_get_port_status (void)
- {
- if ( ::CORBA::is_nil (this->ciao_get_port_status_.in ()))
- {
- get_port_status_exec_i *tmp = 0;
- ACE_NEW_RETURN (
- tmp,
- get_port_status_exec_i (
- this->ciao_context_.in ()),
- ::CCM_DDS::CCM_PortStatusListener::_nil ());
-
- this->ciao_get_port_status_ = tmp;
- }
-
- return
- ::CCM_DDS::CCM_PortStatusListener::_duplicate (
- this->ciao_get_port_status_.in ());
- }
-
- ::CCM_DDS::CCM_PortStatusListener_ptr
- Receiver_exec_i::get_read_port_status (void)
- {
- return ::CCM_DDS::CCM_PortStatusListener::_nil ();
- }
-
- ::CCM_TwoQueriesStarter_ptr
- Receiver_exec_i::get_reader_start (void)
- {
- if ( ::CORBA::is_nil (this->ciao_reader_start_.in ()))
- {
- reader_start_exec_i *tmp = 0;
- ACE_NEW_RETURN (
- tmp,
- reader_start_exec_i (
- this->ciao_context_.in (),
- *this),
- ::CCM_TwoQueriesStarter::_nil ());
-
- this->ciao_reader_start_ = tmp;
- }
-
- return
- ::CCM_TwoQueriesStarter::_duplicate (
- this->ciao_reader_start_.in ());
- }
-
- // Operations from Components::SessionComponent.
-
- void
- Receiver_exec_i::set_session_context (
- ::Components::SessionContext_ptr ctx)
- {
- this->ciao_context_ =
- ::QCTQ_Test::CCM_Receiver_Context::_narrow (ctx);
-
- if ( ::CORBA::is_nil (this->ciao_context_.in ()))
- {
- throw ::CORBA::INTERNAL ();
- }
- }
-
- void
- Receiver_exec_i::configuration_complete (void)
- {
- /* Your code here. */
- }
-
- void
- Receiver_exec_i::ccm_activate (void)
- {
- ::QCTQ_Test::QueryConditionTestConnector::Getter_var getter =
- this->ciao_context_->get_connection_get_port_fresh_data ();
- DDS::Duration_t to;
- to.sec = 5; to.nanosec = 0;
- getter->time_out (to);
- // Set filter for the first run
- this->set_filter (1);
- }
-
- void
- Receiver_exec_i::ccm_passivate (void)
- {
- if (this->ticker_)
- {
- this->reactor ()->cancel_timer (this->ticker_);
- delete this->ticker_;
- this->ticker_ = 0;
- }
- }
-
- void
- Receiver_exec_i::ccm_remove (void)
- {
- if (this->samples_received_ != this->samples_expected_)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: TWO QUERIES GETTER : "
- "Unexpected number of samples received: "
- "expected <%d> - received <%d>\n",
- this->samples_expected_,
- this->samples_received_));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "TWO QUERIES : GETTER : "
- "Expected number of samples received: "
- "expected <%d> - received <%d>\n",
- this->samples_expected_,
- this->samples_received_));
- }
- }
-
- extern "C" RECEIVER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_QCTQ_Test_Receiver_Impl (void)
- {
- ::Components::EnterpriseComponent_ptr retval =
- ::Components::EnterpriseComponent::_nil ();
-
- ACE_NEW_NORETURN (
- retval,
- Receiver_exec_i);
-
- return retval;
- }
-}
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Receiver/QCTQ_Test_Receiver_exec.h b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Receiver/QCTQ_Test_Receiver_exec.h
deleted file mode 100644
index de5c32eda55..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Receiver/QCTQ_Test_Receiver_exec.h
+++ /dev/null
@@ -1,221 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-#ifndef CIAO_QCTQ_TEST_RECEIVER_EXEC_HWBPVD_H_
-#define CIAO_QCTQ_TEST_RECEIVER_EXEC_HWBPVD_H_
-
-#include /**/ "ace/pre.h"
-
-#include "QCTQ_Test_ReceiverEC.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include /**/ "Receiver_exec_export.h"
-#include "tao/LocalObject.h"
-
-namespace CIAO_QCTQ_Test_Receiver_Impl
-{
-
- class Receiver_exec_i;
-
- /**
- * Read action generator
- */
-
- class read_action_Generator
- : public ACE_Event_Handler
- {
- public:
- read_action_Generator (Receiver_exec_i &callback,
- int run);
-
- ~read_action_Generator ();
-
- virtual int handle_timeout (const ACE_Time_Value &tv,
- const void *arg);
- private:
- Receiver_exec_i &callback_;
- int run_;
-
- };
-
- /**
- * Provider Executor Implementation Class: get_port_status_exec_i
- */
-
- class get_port_status_exec_i
- : public virtual ::CCM_DDS::CCM_PortStatusListener,
- public virtual ::CORBA::LocalObject
- {
- public:
- get_port_status_exec_i (
- ::QCTQ_Test::CCM_Receiver_Context_ptr ctx);
- virtual ~get_port_status_exec_i (void);
-
- //@{
- /** Operations and attributes from CCM_DDS::PortStatusListener. */
-
- virtual
- void on_requested_deadline_missed (::DDS::DataReader_ptr the_reader,
- const ::DDS::RequestedDeadlineMissedStatus & status);
-
- virtual
- void on_sample_lost (::DDS::DataReader_ptr the_reader,
- const ::DDS::SampleLostStatus & status);
- //@}
-
- private:
- ::QCTQ_Test::CCM_Receiver_Context_var ciao_context_;
- };
-
- /**
- * Provider Executor Implementation Class: reader_start_exec_i
- */
-
- class reader_start_exec_i
- : public virtual ::CCM_TwoQueriesStarter,
- public virtual ::CORBA::LocalObject
- {
- public:
- reader_start_exec_i (
- ::QCTQ_Test::CCM_Receiver_Context_ptr ctx,
- Receiver_exec_i & callback);
- virtual ~reader_start_exec_i (void);
-
- //@{
- /** Operations and attributes from TwoQueriesStarter. */
-
- virtual
- void set_reader_properties (::CORBA::UShort nr_keys,
- ::CORBA::UShort nr_iterations);
-
- virtual
- void start_read (::CORBA::UShort run);
- //@}
-
- private:
- ::QCTQ_Test::CCM_Receiver_Context_var ciao_context_;
- Receiver_exec_i & callback_;
- };
-
- /**
- * Component Executor Implementation Class: Receiver_exec_i
- */
-
- class Receiver_exec_i
- : public virtual Receiver_Exec,
- public virtual ::CORBA::LocalObject
- {
- public:
- Receiver_exec_i (void);
- virtual ~Receiver_exec_i (void);
-
- //@{
- /** Supported operations and attributes. */
-
- //@}
-
- //@{
- /** Component attributes and port operations. */
-
- virtual ::CCM_DDS::CCM_PortStatusListener_ptr
- get_get_port_status (void);
-
- virtual ::CCM_DDS::CCM_PortStatusListener_ptr
- get_read_port_status (void);
-
-
- virtual ::CCM_TwoQueriesStarter_ptr
- get_reader_start (void);
- //@}
-
- //@{
- /** Operations from Components::SessionComponent. */
- virtual void set_session_context (::Components::SessionContext_ptr ctx);
- virtual void configuration_complete (void);
- virtual void ccm_activate (void);
- virtual void ccm_passivate (void);
- virtual void ccm_remove (void);
- //@}
-
- //@{
- /** User defined public operations. */
- void iterations (CORBA::UShort iterations);
- void keys (::CORBA::UShort keys);
-
- bool check_last (void);
- void start_read (::CORBA::UShort run);
- void run (::CORBA::UShort run);
- //@}
-
- private:
- ::QCTQ_Test::CCM_Receiver_Context_var ciao_context_;
-
- //@{
- /** Component attributes. */
- ::CCM_DDS::CCM_PortStatusListener_var ciao_get_port_status_;
- ::CCM_TwoQueriesStarter_var ciao_reader_start_;
- //@}
-
- //@{
- /** User defined members. */
- ::CORBA::UShort iterations_;
- ::CORBA::UShort keys_;
-
- int current_min_iteration_;
- int current_max_iteration_;
-
- read_action_Generator *ticker_;
-
- ::CORBA::ULong samples_expected_;
- ::CORBA::ULong samples_received_;
-
- //@}
-
- //@{
- /** User defined private operations. */
- ::CORBA::ULong test_all (::CORBA::UShort run);
- ::CORBA::ULong get_all (::CORBA::UShort run);
- void read_all (::CORBA::UShort run);
- bool check_iter (const QueryConditionTest & sample,
- ::CORBA::UShort run,
- ::CCM_DDS::ReadInfo * info = 0);
- void check_filter (::CORBA::UShort run);
- void set_filter (::CORBA::UShort run);
-
- //@}
-
- /// Get the ACE_Reactor
- ACE_Reactor* reactor (void);
- };
-
- extern "C" RECEIVER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_QCTQ_Test_Receiver_Impl (void);
-}
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Sender/QCTQ_Test_Sender.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Sender/QCTQ_Test_Sender.idl
deleted file mode 100644
index 0b691cb570e..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Sender/QCTQ_Test_Sender.idl
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef DDS_QUERY_CONDITION_TEST_SENDER_IDL
-#define DDS_QUERY_CONDITION_TEST_SENDER_IDL
-
-#include "Connector/QCTQ_Test_Connector.idl"
-#include "Base/QCTQ_Starter.idl"
-
-module QCTQ_Test
-{
- component Sender
- {
- port QCTQ_Test::QueryConditionTestConnector::DDS_Write info_write;
- provides CCM_DDS::ConnectorStatusListener connector_status;
-
- uses TwoQueriesStarter start_reader;
- provides TwoQueriesRestarter restart_writer;
-
- attribute unsigned short keys;
- };
-};
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Sender/QCTQ_Test_Sender.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Sender/QCTQ_Test_Sender.mpc
deleted file mode 100644
index 22fb33b6792..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Sender/QCTQ_Test_Sender.mpc
+++ /dev/null
@@ -1,153 +0,0 @@
-// This file is generated with "generate_component_mpc.pl -p QCTQ_Test_Base -l ../lib -o ../lib -c controller -u DDS Sender"
-
-project(QC_QCTQ_Test_Sender_idl_gen) : componentidldefaults, dds4ccm {
- after += QC_QCTQ_Test_Connector_idl_gen QC_QCTQ_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 {
- QCTQ_Test_Sender.idl
- }
-}
-
-project(QC_QCTQ_Test_Sender_lem_gen) : ciaoidldefaults, dds4ccm {
- after += QC_QCTQ_Test_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 {
- QCTQ_Test_SenderE.idl
- }
-}
-
-project(QC_QCTQ_Test_Sender_lem_stub) : ccm_svnt, dds4ccm_base {
- after += QC_QCTQ_Test_Sender_lem_gen QC_QCTQ_Test_Sender_stub \
- QC_QCTQ_Test_Base_stub QC_QCTQ_Starter_stub
- libs += QC_QCTQ_Test_Base_stub Sender_stub QC_QCTQ_Starter_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = Sender_lem_stub
- dynamicflags += SENDER_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQ_Test_SenderEC.cpp
- }
-
- Header_Files {
- QCTQ_Test_SenderEC.h
- Sender_lem_stub_export.h
- }
-
- Inline_Files {
- QCTQ_Test_SenderEC.inl
- }
-}
-
-project(QC_QCTQ_Test_Sender_stub) : ccm_stub, dds4ccm_base {
- after += QC_QCTQ_Test_Sender_idl_gen QC_QCTQ_Test_Base_stub \
- QC_QCTQ_Test_Connector_stub QC_QCTQ_Starter_stub \
- QC_QCTQ_Starter_lem_stub
- libs += QC_QCTQ_Test_Base_stub QC_QCTQ_Test_Connector_stub \
- QC_QCTQ_Starter_stub
- includes += ..
- libpaths += ../lib
- libout = ../lib
- sharedname = Sender_stub
- dynamicflags += SENDER_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQ_Test_SenderC.cpp
- }
-
- Header_Files {
- QCTQ_Test_SenderC.h
- Sender_stub_export.h
- }
-
- Inline_Files {
- QCTQ_Test_SenderC.inl
- }
-}
-
-project(QC_QCTQ_Test_Sender_exec) : ciao_executor, dds4ccm_lem_stub {
- after += QC_QCTQ_Test_Sender_lem_stub QC_QCTQ_Test_Sender_stub \
- QC_QCTQ_Test_Connector_lem_stub QC_QCTQ_Test_Connector_stub \
- QC_QCTQ_Starter_lem_stub
- sharedname = Sender_exec
- libs += Sender_stub Sender_lem_stub QC_QCTQ_Test_Base_stub \
- QC_QCTQ_Test_Connector_lem_stub QC_QCTQ_Test_Connector_stub \
- QC_QCTQ_Starter_stub QC_QCTQ_Starter_lem_stub \
- QC_QCTQ_Starter_lem_stub
- libpaths += ../lib
- includes += ..
- libout = ../lib
- dynamicflags += SENDER_EXEC_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQ_Test_Sender_exec.cpp
- }
-
- Header_Files {
- QCTQ_Test_Sender_exec.h
- Sender_exec_export.h
- }
-
- Inline_Files {
- }
-}
-
-
-project(QC_QCTQ_Test_Sender_svnt) : ciao_servant, dds4ccm_lem_stub, dds4ccm_skel {
- after += QC_QCTQ_Test_Base_stub QC_QCTQ_Test_Sender_lem_stub \
- QC_QCTQ_Test_Connector_stub \
- QC_QCTQ_Test_Connector_svnt QC_QCTQ_Test_Connector_lem_stub \
- QC_QCTQ_Starter_stub QC_QCTQ_Starter_svnt \
- QC_QCTQ_Starter_lem_stub
- sharedname = Sender_svnt
- libs += Sender_stub Sender_lem_stub QC_QCTQ_Test_Base_stub \
- QC_QCTQ_Test_Connector_stub QC_QCTQ_Test_Connector_svnt \
- QC_QCTQ_Test_Connector_lem_stub QC_QCTQ_Starter_stub \
- QC_QCTQ_Starter_svnt QC_QCTQ_Starter_lem_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += SENDER_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQ_Test_SenderS.cpp
- QCTQ_Test_Sender_svnt.cpp
- }
-
- Header_Files {
- QCTQ_Test_SenderS.h
- QCTQ_Test_Sender_svnt.h
- Sender_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Sender/QCTQ_Test_Sender_exec.cpp b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Sender/QCTQ_Test_Sender_exec.cpp
deleted file mode 100644
index 6f3213ead99..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Sender/QCTQ_Test_Sender_exec.cpp
+++ /dev/null
@@ -1,349 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-
-#include "QCTQ_Test_Sender_exec.h"
-#include "tao/ORB_Core.h"
-#include "ace/Reactor.h"
-
-#define ITERATIONS 20
-
-namespace CIAO_QCTQ_Test_Sender_Impl
-{
- /**
- * ConnectorStatusListener_exec_i
- */
- ConnectorStatusListener_exec_i::ConnectorStatusListener_exec_i (
- Sender_exec_i &callback)
- : callback_ (callback)
- , 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 (!this->started_ && status_kind == ::DDS::PUBLICATION_MATCHED_STATUS)
- {
- this->started_ = true;
- ACE_DEBUG ((LM_DEBUG, "ConnectorStatusListener_exec_i::on_unexpected_status - "
- "Publication matched received: starting the test\n"));
-
- this->callback_.get_started ();
- }
- }
-
- /**
- * WriteHandler
- */
-
- WriteHandler::WriteHandler (Sender_exec_i &callback)
- : callback_ (callback)
- {
- }
-
- int
- WriteHandler::handle_exception (ACE_HANDLE)
- {
- this->callback_.start ();
- return 0;
- }
-
- /**
- * Facet Executor Implementation Class: restart_writer_exec_i
- */
-
- restart_writer_exec_i::restart_writer_exec_i (
- ::QCTQ_Test::CCM_Sender_Context_ptr ctx,
- Sender_exec_i & callback)
- : ciao_context_ (
- ::QCTQ_Test::CCM_Sender_Context::_duplicate (ctx))
- , callback_ (callback)
- {
- }
-
- restart_writer_exec_i::~restart_writer_exec_i (void)
- {
- }
-
- // Operations from ::TwoQueriesRestarter
-
- void
- restart_writer_exec_i::restart_write (void)
- {
- this->callback_.restart ();
- }
-
- /**
- * Component Executor Implementation Class: Sender_exec_i
- */
-
- Sender_exec_i::Sender_exec_i (void)
- : keys_ (0)
- , iterations_ (ITERATIONS)
- , run_ (1)
- , wh_ (0)
-
- {
- }
-
- Sender_exec_i::~Sender_exec_i (void)
- {
- if (this->wh_)
- {
- delete this->wh_;
- }
- }
-
- // 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::restart (void)
- {
- ++this->run_;
- if (this->wh_)
- {
- delete this->wh_;
- this->wh_ = 0;
- }
- ACE_NEW_THROW_EX (this->wh_,
- WriteHandler (*this),
- ::CORBA::NO_MEMORY ());
- this->reactor ()->notify (this->wh_);
- }
-
-
- void
- Sender_exec_i::get_started (void)
- {
- try
- {
- if (this->wh_)
- {
- delete this->wh_;
- this->wh_ = 0;
- }
- ACE_NEW_THROW_EX (this->wh_,
- WriteHandler (*this),
- ::CORBA::NO_MEMORY ());
- this->reactor ()->notify (this->wh_);
- }
- catch (const ::CORBA::Exception& ex)
- {
- ex._tao_print_exception ("Exception caught:");
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("ERROR: get_started : Exception caught\n")));
- }
- catch (...)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("ERROR: get_started : Unknown exception caught\n")));
- }
- }
-
- void
- Sender_exec_i::start (void)
- {
- ::QCTQ_Test::QueryConditionTestConnector::Writer_var writer =
- this->ciao_context_->get_connection_info_write_data ();
- TwoQueriesStarter_var starter =
- this->ciao_context_->get_connection_start_reader ();
-
- if (! ::CORBA::is_nil (starter.in ()))
- {
- starter->set_reader_properties (this->keys_, this->iterations_);
- }
- else
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("ERROR: Unable to start the reader\n")));
- return;
- }
- for (CORBA::UShort iter_key = 1; iter_key < this->keys_ + 1; ++iter_key)
- {
- char key[7];
- QueryConditionTest new_key;
- ACE_OS::sprintf (key, "KEY_%d", iter_key);
- new_key.symbol = CORBA::string_dup(key);
- CORBA::UShort iter = ((this->run_ - 1) * this->iterations_) + 1;
- while (iter < this->run_ * this->iterations_ + 1)
- {
- new_key.iteration = iter;
- writer->write_one (new_key, ::DDS::HANDLE_NIL);
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Written key <%C> with <%d>\n"),
- key, iter));
- ++iter;
- }
- }
- ACE_OS::sleep (2);
- starter->start_read (this->run_);
- }
-
- // Component attributes and port operations.
- ::CCM_DDS::CCM_ConnectorStatusListener_ptr
- Sender_exec_i::get_connector_status (void)
- {
- return new ConnectorStatusListener_exec_i (*this);
- }
-
- ::CCM_TwoQueriesRestarter_ptr
- Sender_exec_i::get_restart_writer (void)
- {
- if ( ::CORBA::is_nil (this->ciao_restart_writer_.in ()))
- {
- restart_writer_exec_i *tmp = 0;
- ACE_NEW_RETURN (
- tmp,
- restart_writer_exec_i (
- this->ciao_context_.in (),
- *this),
- ::CCM_TwoQueriesRestarter::_nil ());
-
- this->ciao_restart_writer_ = tmp;
- }
-
- return
- ::CCM_TwoQueriesRestarter::_duplicate (
- this->ciao_restart_writer_.in ());
- }
-
- ::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_ =
- ::QCTQ_Test::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)
- {
- }
-
- void
- Sender_exec_i::ccm_passivate (void)
- {
- /* Your code here. */
- }
-
- void
- Sender_exec_i::ccm_remove (void)
- {
- /* Your code here. */
- }
-
- extern "C" SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_QCTQ_Test_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/QueryCondition/TwoQueries/Sender/QCTQ_Test_Sender_exec.h b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Sender/QCTQ_Test_Sender_exec.h
deleted file mode 100644
index 37b8f265fb3..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/Sender/QCTQ_Test_Sender_exec.h
+++ /dev/null
@@ -1,196 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-#ifndef CIAO_QCTQ_TEST_SENDER_EXEC_VZMKKL_H_
-#define CIAO_QCTQ_TEST_SENDER_EXEC_VZMKKL_H_
-
-#include /**/ "ace/pre.h"
-
-#include "QCTQ_Test_SenderEC.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include /**/ "Sender_exec_export.h"
-#include "tao/LocalObject.h"
-
-namespace CIAO_QCTQ_Test_Sender_Impl
-{
- class Sender_exec_i;
-
- /**
- * ConnectorStatusListener_exec_i
- */
- class SENDER_EXEC_Export ConnectorStatusListener_exec_i
- : public virtual ::CCM_DDS::CCM_ConnectorStatusListener,
- public virtual ::CORBA::LocalObject
- {
- public:
- ConnectorStatusListener_exec_i (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_;
- bool started_;
- };
-
- /**
- * WriteHandler
- */
-
- class WriteHandler :
- public ACE_Event_Handler
- {
- public:
- WriteHandler (Sender_exec_i &callback);
- virtual int handle_exception (ACE_HANDLE fc = ACE_INVALID_HANDLE);
- private:
- Sender_exec_i &callback_;
- };
-
- /**
- * Provider Executor Implementation Class: restart_writer_exec_i
- */
-
- class restart_writer_exec_i
- : public virtual ::CCM_TwoQueriesRestarter,
- public virtual ::CORBA::LocalObject
- {
- public:
- restart_writer_exec_i (
- ::QCTQ_Test::CCM_Sender_Context_ptr ctx,
- Sender_exec_i & callback);
- virtual ~restart_writer_exec_i (void);
-
- //@{
- /** Operations and attributes from TwoQueriesRestarter. */
-
- virtual
- void restart_write (void);
- //@}
-
- private:
- ::QCTQ_Test::CCM_Sender_Context_var ciao_context_;
- 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. */
-
- //@}
-
- //@{
- /** Component attributes and port operations. */
- virtual ::CCM_DDS::CCM_ConnectorStatusListener_ptr
- get_connector_status (void);
-
- virtual ::CCM_TwoQueriesRestarter_ptr
- get_restart_writer (void);
-
- 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 get_started (void);
- void start (void);
- void restart (void);
-
- //@}
-
- private:
- ::QCTQ_Test::CCM_Sender_Context_var ciao_context_;
-
- //@{
- /** Component attributes. */
- ::CCM_TwoQueriesRestarter_var ciao_restart_writer_;
-
- ::CORBA::UShort keys_;
- //@}
-
- //@{
- /** User defined members. */
- CORBA::UShort iterations_;
- CORBA::UShort run_;
- WriteHandler *wh_;
- //@}
-
- //@{
- /** User defined private operations. */
-
- //@}
-
- /// Get the ACE_Reactor
- ACE_Reactor* reactor (void);
- };
-
- extern "C" SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_QCTQ_Test_Sender_Impl (void);
-}
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/descriptors/Plan.cdp b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/descriptors/Plan.cdp
deleted file mode 100644
index 8349f74fcb1..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/descriptors/Plan.cdp
+++ /dev/null
@@ -1,520 +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>QCTQ_Test_Depl_1</label>
- <UUID>QCTQ_Test_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_QCTQ_Test_Receiver_Impl</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_QCTQ_Test_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="QCTQ_Test_EventConnectorImplementation">
- <name>QCTQ_Test_EventConnectorImplementation</name>
- <source/>
- <artifact xmi:idref="QCTQ_Test_Connector_ExecArtifact" />
- <artifact xmi:idref="QCTQ_Test_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_QCTQ_Test_QueryConditionTestConnector_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_QCTQ_Test_QueryConditionTestConnector_DDS_Event_Servant</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QC_QCTQ_Test_Connector_svnt</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QC_QCTQ_Test_Connector_exec</string>
- </value>
- </value>
- </execParameter>
- </implementation>
-
- <implementation xmi:id="QCTQ_Test_StateConnectorImplementation">
- <name>QCTQ_Test_StateConnectorImplementation</name>
- <source/>
- <artifact xmi:idref="QCTQ_Test_Connector_ExecArtifact" />
- <artifact xmi:idref="QCTQ_Test_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_QCTQ_Test_QueryConditionTestConnector_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_QCTQ_Test_QueryConditionTestConnector_DDS_State_Servant</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QC_QCTQ_Test_Connector_svnt</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QC_QCTQ_Test_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_QCTQ_Test_Sender_Impl</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_QCTQ_Test_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="ReceiverComponentInstance">
- <name>ReceiverComponent</name>
- <node>ReceiverNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="ReceiverComponentImplementation" />
- </instance>
-
- <instance xmi:id="QCTQ_Test_SenderConnectorInstance">
- <name>QCTQ_Test_ConnectorComponent</name>
- <node>SenderNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="QCTQ_Test_EventConnectorImplementation" />
- <configProperty>
- <name>qos_profile</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QueryCondition_Library#QueryConditionProfile</string>
- </value>
- </value>
- </configProperty>
- <configProperty>
- <name>topic_name</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QCTQ_Test</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <instance xmi:id="QCTQ_Test_EventConnector">
- <name>QCTQ_Test_EventConnector</name>
- <node>ReceiverNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="QCTQ_Test_EventConnectorImplementation" />
- <configProperty>
- <name>qos_profile</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QueryCondition_Library#QueryConditionProfile</string>
- </value>
- </value>
- </configProperty>
- <configProperty>
- <name>topic_name</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QCTQ_Test</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <instance xmi:id="QCTQ_Test_StateConnector">
- <name>QCTQ_Test_StateConnector</name>
- <node>ReceiverNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="QCTQ_Test_StateConnectorImplementation" />
- <configProperty>
- <name>qos_profile</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QueryCondition_Library#QueryConditionProfile</string>
- </value>
- </value>
- </configProperty>
- <configProperty>
- <name>topic_name</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QCTQ_Test</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <instance xmi:id="SenderComponentInstance">
- <name>SenderComponent</name>
- <node>SenderNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="SenderComponentImplementation" />
- <configProperty>
- <name>keys</name>
- <value>
- <type>
- <kind>tk_ushort</kind>
- </type>
- <value>
- <ushort>5</ushort>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <connection>
- <name>read_port_data</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>read_port_data</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>passive_observer_data</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="QCTQ_Test_StateConnector" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>get_port_data</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>get_port_data</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>pull_consumer_data</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="QCTQ_Test_EventConnector" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>get_port_fresh_data</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>get_port_fresh_data</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>pull_consumer_fresh_data</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="QCTQ_Test_EventConnector" />
- </internalEndpoint>
- </connection>
-
- <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="QCTQ_Test_SenderConnectorInstance" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>reader_starter</name>
- <internalEndpoint>
- <portName>start_reader</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="SenderComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>reader_start</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>restart_writer</name>
- <internalEndpoint>
- <portName>writer_restart</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>restart_writer</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="SenderComponentInstance" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>connector_status_connection</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>error_listener</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="QCTQ_Test_SenderConnectorInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>connector_status</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="SenderComponentInstance" />
- </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="QCTQ_Test_Connector_ExecArtifact">
- <name>QC_QCTQ_Test_Connector_exec</name>
- <source/>
- <node/>
- <location>QC_QCTQ_Test_Connector_exec</location>
- </artifact>
- <artifact xmi:id="QCTQ_Test_Connector_SvntArtifact">
- <name>QC_QCTQ_Test_Connector_svnt</name>
- <source/>
- <node/>
- <location>QC_QCTQ_Test_Connector_svnt</location>
- </artifact>
- <artifact xmi:id="QCTQ_Test_Connector_StubArtifact">
- <name>QC_QCTQ_Test_Connector_stub</name>
- <source/>
- <node/>
- <location>QC_QCTQ_Test_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/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/descriptors/QueryCondition_Library.xml b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/descriptors/QueryCondition_Library.xml
deleted file mode 100644
index b9cba6277a3..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/descriptors/QueryCondition_Library.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<!-- -->
-<dds xmlns="http://www.omg.org/dds"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.omg.org/dds dds_qos.xsd">
-
- <qos_profile name="QueryConditionProfile">
- <!-- QoS used to configure the data writer created in the example code -->
- <datawriter_qos>
- <reliability>
- <kind>RELIABLE_RELIABILITY_QOS</kind>
- <max_blocking_time>
- <sec>10</sec>
- <nanosec>0</nanosec>
- </max_blocking_time>
- </reliability>
- <durability>
- <kind>TRANSIENT_DURABILITY_QOS</kind>
- </durability>
- <history>
- <kind>KEEP_ALL_HISTORY_QOS</kind>
- </history>
- </datawriter_qos>
- <!-- QoS used to configure the data reader created in the example code -->
- <datareader_qos>
- <reliability>
- <kind>RELIABLE_RELIABILITY_QOS</kind>
- </reliability>
- <history>
- <kind>KEEP_ALL_HISTORY_QOS</kind>
- </history>
- <durability>
- <kind>TRANSIENT_LOCAL_DURABILITY_QOS</kind>
- </durability>
- </datareader_qos>
- </qos_profile>
-</dds>
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/descriptors/USER_QOS_PROFILES.xml b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/descriptors/USER_QOS_PROFILES.xml
deleted file mode 100644
index 37e7ff8dec9..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/descriptors/USER_QOS_PROFILES.xml
+++ /dev/null
@@ -1,67 +0,0 @@
-<?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 environment 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.5d/scripts/../resource/rtiddsgen/../qos_profiles_4.5d/schema/rti_dds_qos_profiles.xsd" version="4.5d">
- <!-- QoS Library containing the QoS profile used in the generated example.
-
- A QoS library is a named set of QoS profiles.
- -->
- <qos_library name="QueryCondition_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="QueryConditionProfile" is_default_qos="false">
- <!-- QoS used to configure the data writer created in the example code -->
- <datawriter_qos>
- <reliability>
- <kind>RELIABLE_RELIABILITY_QOS</kind>
- <max_blocking_time>
- <sec>10</sec>
- <nanosec>0</nanosec>
- </max_blocking_time>
- </reliability>
- <durability>
- <kind>TRANSIENT_DURABILITY_QOS</kind>
- </durability>
- <history>
- <kind>KEEP_ALL_HISTORY_QOS</kind>
- </history>
- <protocol>
- <rtps_reliable_writer>
- <max_heartbeat_retries>10</max_heartbeat_retries>
- </rtps_reliable_writer>
- </protocol>
- </datawriter_qos>
- <!-- QoS used to configure the data reader created in the example code -->
- <datareader_qos>
- <reliability>
- <kind>RELIABLE_RELIABILITY_QOS</kind>
- </reliability>
- <history>
- <kind>KEEP_ALL_HISTORY_QOS</kind>
- </history>
- <durability>
- <kind>TRANSIENT_LOCAL_DURABILITY_QOS</kind>
- </durability>
- </datareader_qos>
- </qos_profile>
- </qos_library>
-</dds>
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/descriptors/run_test.pl b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/descriptors/run_test.pl
deleted file mode 100755
index b87434bef7e..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueries/descriptors/run_test.pl
+++ /dev/null
@@ -1,243 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# -*- perl -*-
-
-use lib "$ENV{'ACE_ROOT'}/bin";
-use PerlACE::TestTarget;
-
-$CIAO_ROOT = "$ENV{'CIAO_ROOT'}";
-$TAO_ROOT = "$ENV{'TAO_ROOT'}";
-$DANCE_ROOT = "$ENV{'DANCE_ROOT'}";
-
-$daemons_running = 0;
-$em_running = 0;
-$ns_running = 0;
-
-$nr_daemon = 2;
-@ports = ( 60001, 60002 );
-@iorbases = ( "NodeApp1.ior", "NodeApp2.ior" );
-@iorfiles = 0;
-@nodenames = ( "SenderNode", "ReceiverNode" );
-
-# 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;
-$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 60 seconds to allow task to complete\n";
-sleep (60);
-
-# 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");
-$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;
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Base/QCTQM_Starter.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Base/QCTQM_Starter.idl
deleted file mode 100644
index d9b7dc87807..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Base/QCTQM_Starter.idl
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * @file QCTQM_Starter.idl
- * @author Marijke Hengstmengel (mhengstmengel@remedy.nl)
- */
-
-#ifndef QUERYCONDITION_STARTER_IDL
-#define QUERYCONDITION_STARTER_IDL
-
-#pragma ciao lem "Base/QCTQM_StarterE.idl"
-
-interface TwoQueriesStarter
-{
- void set_reader_properties (in unsigned short nr_keys,
- in unsigned short nr_iterations);
- void start_read (in unsigned short run);
-};
-
-interface TwoQueriesRestarter
-{
- void restart_write ();
-};
-
-#endif /* QUERYCONDITION_STARTER_IDL */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Base/QCTQM_Starter.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Base/QCTQM_Starter.mpc
deleted file mode 100644
index d5696898dd6..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Base/QCTQM_Starter.mpc
+++ /dev/null
@@ -1,109 +0,0 @@
-project(QC_QCTQM_Starter_idl_gen) : componentidldefaults, dds4ccm {
- custom_only = 1
- idlflags += -Wb,stub_export_macro=READER_STARTER_STUB_Export \
- -Wb,stub_export_include=QCTQM_Starter_stub_export.h \
- -Wb,skel_export_macro=READER_STARTER_SVNT_Export \
- -Wb,skel_export_include=QCTQM_Starter_svnt_export.h \
- -Wb,svnt_export_macro=READER_STARTER_SVNT_Export \
- -Wb,svnt_export_include=QCTQM_Starter_svnt_export.h \
- -Wb,exec_export_macro=READER_STARTER_EXEC_Export \
- -Wb,exec_export_include=QCTQM_Starter_exec_export.h -I..
-
- IDL_Files {
- QCTQM_Starter.idl
- }
-}
-
-project(QC_QCTQM_Starter_lem_gen) : ciaoidldefaults, dds4ccm {
- after += QC_QCTQM_Starter_idl_gen
- custom_only = 1
- idlflags += -Wb,stub_export_macro=READER_STARTER_LEM_STUB_Export \
- -Wb,stub_export_include=QCTQM_Starter_lem_stub_export.h \
- -SS -Gxhst -I..
-
- IDL_Files {
- QCTQM_StarterE.idl
- }
-}
-
-project(QC_QCTQM_Starter_lem_stub) : ccm_svnt, dds4ccm_base {
- after += QC_QCTQM_Starter_lem_gen QC_QCTQM_Starter_stub
- libs += QC_QCTQM_Starter_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = QC_QCTQM_Starter_lem_stub
- dynamicflags += READER_STARTER_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQM_StarterEC.cpp
- }
-
- Header_Files {
- QCTQM_StarterEC.h
- QCTQM_Starter_lem_stub_export.h
- }
-
- Inline_Files {
- QCTQM_StarterEC.inl
- }
-}
-
-project(QC_QCTQM_Starter_stub) : ccm_stub, dds4ccm_base {
- after += QC_QCTQM_Starter_idl_gen
- libs +=
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = QC_QCTQM_Starter_stub
- dynamicflags += READER_STARTER_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQM_StarterC.cpp
- }
-
- Header_Files {
- QCTQM_StarterC.h
- QCTQM_Starter_stub_export.h
- }
-
- Inline_Files {
- QCTQM_StarterC.inl
- }
-}
-
-
-project(QC_QCTQM_Starter_svnt) : ciao_servant, dds4ccm_lem_stub, dds4ccm_skel {
- after += QC_QCTQM_Starter_lem_stub QC_QCTQM_Starter_stub
- sharedname = QC_QCTQM_Starter_svnt
- libs += QC_QCTQM_Starter_stub QC_QCTQM_Starter_lem_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += READER_STARTER_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQM_StarterS.cpp
- QCTQM_Starter_svnt.cpp
- }
-
- Header_Files {
- QCTQM_StarterS.h
- QCTQM_Starter_svnt.h
- QCTQM_Starter_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Base/QCTQM_Test_Base.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Base/QCTQM_Test_Base.idl
deleted file mode 100644
index 71a086999ce..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Base/QCTQM_Test_Base.idl
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * @file QCTQM_Test_Base.idl
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef QUERY_CONDITION_TEST_BASE_IDL
-#define QUERY_CONDITION_TEST_BASE_IDL
-
-#pragma ndds typesupport "Base/QCTQM_Test_BaseSupport.h"
-#pragma opendds typesupport "Base/QCTQM_Test_BaseTypeSupportImpl.h"
-
-#pragma DCPS_DATA_TYPE "QueryConditionTest"
-#pragma DCPS_DATA_KEY "QueryConditionTest symbol"
-
-struct QueryConditionTest {
- string symbol; //@key
- long iteration;
-};
-
-#if defined DDS4CCM_NEEDS_SEQUENCES_DEFINED
-typedef sequence<QueryConditionTest> QueryConditionTestSeq;
-#endif
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Base/QCTQM_Test_Base.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Base/QCTQM_Test_Base.mpc
deleted file mode 100644
index 148f7d99637..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Base/QCTQM_Test_Base.mpc
+++ /dev/null
@@ -1,24 +0,0 @@
-project(QC_QCTQM_Test_Base_stub) : taoidldefaults, dds4ccm_ts_default {
- sharedname = QC_QCTQM_Test_Base_stub
- dynamicflags += QUERY_CONDITION_TEST_BASE_STUB_BUILD_DLL
- libout = ../lib
-
- idlflags += -SS -Sci \
- -Wb,stub_export_macro=QUERY_CONDITION_TEST_BASE_STUB_Export \
- -Wb,stub_export_include=QCTQM_Test_Base_stub_export.h
-
- IDL_Files {
- idlflags += -Gxhst
- QCTQM_Test_Base.idl
- }
-
- opendds_ts_flags += --export=QUERY_CONDITION_TEST_BASE_STUB_Export
-
- DDSGenerator_Files {
- QCTQM_Test_Base.idl
- }
-
- Source_Files {
- }
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Connector/QCTQM_Test_Connector.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Connector/QCTQM_Test_Connector.idl
deleted file mode 100644
index a390ca52507..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Connector/QCTQM_Test_Connector.idl
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * @file QCTQM_Test_Connector.idl
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef QUERY_CONDITION_TEST_CONNECTOR_IDL_
-#define QUERY_CONDITION_TEST_CONNECTOR_IDL_
-
-#include <Components.idl>
-#include <ccm_dds.idl>
-
-#include "Base/QCTQM_Test_Base.idl"
-
-#pragma ciao lem "Connector/QCTQM_Test_ConnectorE.idl"
-
-#if (CIAO_DDS4CCM_OPENDDS==1)
-# include "Base/QCTQM_Test_BaseTypeSupport.idl"
-#endif
-
-module QCTQM_Test
-{
- module ::CCM_DDS::Typed < ::QueryConditionTest, ::QueryConditionTestSeq> QueryConditionTestConnector;
-};
-
-#endif /* QUERY_CONDITION_TEST_CONNECTOR_IDL_ */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Connector/QCTQM_Test_Connector.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Connector/QCTQM_Test_Connector.mpc
deleted file mode 100644
index cbbeffe6a03..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Connector/QCTQM_Test_Connector.mpc
+++ /dev/null
@@ -1,146 +0,0 @@
-// This file is generated with "generate_component_mpc.pl -p QCTQM_Test_Base -l .. -o ../lib -u DDS QCTQM_Test_Connector"
-
-project(QC_QCTQM_Test_Connector_idl_gen) : connectoridldefaults, dds4ccm {
- after += DDS4CCM_idl_gen QC_QCTQM_Test_Base_stub
- custom_only = 1
- idlflags += -Wb,stub_export_macro=QUERY_CONDITION_TEST_CONNECTOR_STUB_Export \
- -Wb,stub_export_include=QCTQM_Test_Connector_stub_export.h \
- -Wb,skel_export_macro=QUERY_CONDITION_TEST_CONNECTOR_SVNT_Export \
- -Wb,skel_export_include=QCTQM_Test_Connector_svnt_export.h \
- -Wb,svnt_export_macro=QUERY_CONDITION_TEST_CONNECTOR_SVNT_Export \
- -Wb,svnt_export_include=QCTQM_Test_Connector_svnt_export.h \
- -Wb,conn_export_macro=QUERY_CONDITION_TEST_CONNECTOR_CONN_Export \
- -Wb,conn_export_include=QCTQM_Test_Connector_conn_export.h \
- -I ..
-
- IDL_Files {
- QCTQM_Test_Connector.idl
- }
-}
-
-project(QC_QCTQM_Test_Connector_lem_gen) : ciaoidldefaults, dds4ccm {
- custom_only = 1
- after += QC_QCTQM_Test_Connector_idl_gen
- idlflags += -Wb,stub_export_macro=QUERY_CONDITION_TEST_CONNECTOR_LEM_STUB_Export \
- -Wb,stub_export_include=QCTQM_Test_Connector_lem_stub_export.h \
- -SS -Gxhst \
- -I ..
-
- IDL_Files {
- QCTQM_Test_ConnectorE.idl
- }
-}
-
-project(QC_QCTQM_Test_Connector_lem_stub) : ccm_svnt, dds4ccm_lem_stub {
- after += QC_QCTQM_Test_Connector_lem_gen QC_QCTQM_Test_Connector_stub \
- QC_QCTQM_Test_Base_stub
- libs += QC_QCTQM_Test_Base_stub QC_QCTQM_Test_Connector_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = QC_QCTQM_Test_Connector_lem_stub
- dynamicflags += QUERY_CONDITION_TEST_CONNECTOR_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQM_Test_ConnectorEC.cpp
- }
-
- Header_Files {
- QCTQM_Test_ConnectorEC.h
- QCTQM_Test_Connector_lem_stub_export.h
- }
-
- Inline_Files {
- QCTQM_Test_ConnectorEC.inl
- }
-}
-
-project(QC_QCTQM_Test_Connector_stub) : ccm_stub, dds4ccm_base {
- after += QC_QCTQM_Test_Connector_idl_gen QC_QCTQM_Test_Base_stub
- libs += QC_QCTQM_Test_Base_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = QC_QCTQM_Test_Connector_stub
- dynamicflags += QUERY_CONDITION_TEST_CONNECTOR_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQM_Test_ConnectorC.cpp
- }
-
- Header_Files {
- QCTQM_Test_ConnectorC.h
- QCTQM_Test_Connector_stub_export.h
- }
-
- Inline_Files {
- QCTQM_Test_ConnectorC.inl
- }
-}
-
-project(QC_QCTQM_Test_Connector_exec) : ciao_executor, dds4ccm_impl {
- after += QC_QCTQM_Test_Connector_lem_stub QC_QCTQM_Test_Connector_stub \
- QC_QCTQM_Test_Base_stub
- sharedname = QC_QCTQM_Test_Connector_exec
- libs += QC_QCTQM_Test_Connector_stub QC_QCTQM_Test_Connector_lem_stub \
- QC_QCTQM_Test_Base_stub QC_QCTQM_Test_Base_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += QUERY_CONDITION_TEST_CONNECTOR_CONN_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQM_Test_Connector_conn.cpp
- }
-
- Header_Files {
- QCTQM_Test_Connector_conn.h
- QCTQM_Test_Connector_conn_export.h
- }
-
- Inline_Files {
- }
-}
-
-
-project(QC_QCTQM_Test_Connector_svnt) : ciao_servant, dds4ccm_impl {
- after += QC_QCTQM_Test_Connector_lem_stub QC_QCTQM_Test_Connector_exec \
- QC_QCTQM_Test_Connector_stub
- sharedname = QC_QCTQM_Test_Connector_svnt
- libs += QC_QCTQM_Test_Connector_stub \
- QC_QCTQM_Test_Connector_lem_stub \
- QC_QCTQM_Test_Base_stub \
- QC_QCTQM_Test_Connector_exec
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += QUERY_CONDITION_TEST_CONNECTOR_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQM_Test_ConnectorS.cpp
- QCTQM_Test_Connector_svnt.cpp
- }
-
- Header_Files {
- QCTQM_Test_ConnectorS.h
- QCTQM_Test_Connector_svnt.h
- QCTQM_Test_Connector_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/README b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/README
deleted file mode 100644
index 81b1c73a9cb..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/README
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-The TwoQueriesMany exists of 4 runs. During each run the Sender writes 20 samples to DDS.
-After that it informs the receiver that the samples were written. The receiver
-in turn sets a filter and starts to pull the samples from DDS, using the Getter.
-Once the receiver has received all samples, it informs the Sender that the next
-run can be started.
-Since the getter only receives non-read samples, an extra check is build in. The
-receiver also performs a read on a different port in order to check whether the
-right samples are available in DDS. This Reader should always receive ALL samples
-since the QueryFilter only applies to the Getter.
-
-The following query expression is defined:
- ( (iteration > %0) AND (iteration < %1) )
-
-The following runs are defined:
-
-1. Sender writes iterations 1-20 to DDS for a certain number of keys,
- defined in the deployment plan. The receiver sets the filter and filter
- parameters and starts receiving the samples at once, using get_many.
- After that it changes the filter parameters and informs the Sender that a
- new run can be started.
-2. Sender writes iterations 21-40 to DDS for the defined number of keys. After
- that it informs the receiver which starts to get the samples from DDS. After
- that, the receiver reset the QueryFilter (by setting the expression to an
- empty string) and informs the Sender that a new run can be started.
-3. Sender writes iterations 41-60 to DDS for the defined number of keys. After
- that it informs the receiver which should receive with a get_many all samples
- with iterations 1-60 without the ones it read during run 1 and 2.
- The receiver then creates a new filter, using the same expression as used during
- runs 1 and 2 but with different parameters. Again the receiver informs the
- Sender that a new run can be started.
-4. Sender writes iterations 61-80 to DDS for the defined number of keys. Again it
- informs the receiver about this action. The receiver should only get the samples
- according to the query expression and its parameters.
-
-After each get-action, the receiver reads the data from DDS. During this read action,
-the receiver should read all samples the Sender has written up to that moment. Since
-there's no filter applied to this reader, all sample states should be 'FRESH_INFO'. \ No newline at end of file
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Receiver/QCTQM_Test_Receiver.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Receiver/QCTQM_Test_Receiver.idl
deleted file mode 100644
index 5b6a79bf452..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Receiver/QCTQM_Test_Receiver.idl
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * @file
- * @author Marcel Smit (msmit@remedy.nl)
- */
-
-#ifndef RECEIVER_IDL
-#define RECEIVER_IDL
-
-#include "Connector/QCTQM_Test_Connector.idl"
-#include "Base/QCTQM_Starter.idl"
-
-module QCTQM_Test
-{
- component Receiver
- {
- port QueryConditionTestConnector::DDS_Get get_port;
- port QueryConditionTestConnector::DDS_Read read_port;
-
- provides TwoQueriesStarter reader_start;
- uses TwoQueriesRestarter writer_restart;
- };
-};
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Receiver/QCTQM_Test_Receiver.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Receiver/QCTQM_Test_Receiver.mpc
deleted file mode 100644
index d81eac6889b..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Receiver/QCTQM_Test_Receiver.mpc
+++ /dev/null
@@ -1,155 +0,0 @@
-project(QC_QCTQM_Test_Receiver_idl_gen) : componentidldefaults, dds4ccm {
- custom_only = 1
- after += QC_QCTQM_Test_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 {
- QCTQM_Test_Receiver.idl
- }
-}
-
-project(QC_QCTQM_Test_Receiver_lem_gen) : ciaoidldefaults, dds4ccm {
- after += QC_QCTQM_Test_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 {
- QCTQM_Test_ReceiverE.idl
- }
-}
-
-project(QC_QCTQM_Test_Receiver_lem_stub) : ccm_svnt, dds4ccm_base {
- after += QC_QCTQM_Test_Receiver_lem_gen QC_QCTQM_Test_Receiver_stub \
- QC_QCTQM_Test_Connector_stub QC_QCTQM_Test_Base_stub \
- QC_QCTQM_Starter_stub
- libs += Receiver_stub QC_QCTQM_Test_Connector_stub \
- QC_QCTQM_Test_Base_stub QC_QCTQM_Starter_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = Receiver_lem_stub
- dynamicflags += RECEIVER_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQM_Test_ReceiverEC.cpp
- }
-
- Header_Files {
- QCTQM_Test_ReceiverEC.h
- Receiver_lem_stub_export.h
- }
-
- Inline_Files {
- QCTQM_Test_ReceiverEC.inl
- }
-}
-
-project(QC_QCTQM_Test_Receiver_stub) : ccm_stub, dds4ccm_base {
- after += QC_QCTQM_Test_Receiver_idl_gen QC_QCTQM_Test_Connector_stub \
- QC_QCTQM_Test_Base_stub QC_QCTQM_Test_Connector_lem_gen \
- QC_QCTQM_Starter_stub QC_QCTQM_Starter_lem_stub
- libs += QC_QCTQM_Test_Connector_stub QC_QCTQM_Test_Base_stub \
- QC_QCTQM_Starter_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = Receiver_stub
- dynamicflags += RECEIVER_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQM_Test_ReceiverC.cpp
- }
-
- Header_Files {
- QCTQM_Test_ReceiverC.h
- Receiver_stub_export.h
- }
-
- Inline_Files {
- QCTQM_Test_ReceiverC.inl
- }
-}
-
-project(QC_QCTQM_Test_Receiver_exec) : ciao_executor, dds4ccm_lem_stub {
- after += QC_QCTQM_Test_Receiver_lem_stub QC_QCTQM_Test_Receiver_stub \
- QC_QCTQM_Test_Base_stub QC_QCTQM_Test_Connector_stub \
- QC_QCTQM_Test_Connector_lem_stub \
- QC_QCTQM_Starter_lem_stub QC_QCTQM_Starter_stub
- sharedname = Receiver_exec
- libs += Receiver_stub Receiver_lem_stub QC_QCTQM_Test_Base_stub \
- QC_QCTQM_Test_Connector_stub QC_QCTQM_Test_Connector_lem_stub \
- QC_QCTQM_Starter_lem_stub QC_QCTQM_Starter_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += RECEIVER_EXEC_BUILD_DLL READER_STARTER_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQM_Test_Receiver_exec.cpp
- }
-
- Header_Files {
- QCTQM_Test_Receiver_exec.h
- Receiver_exec_export.h
- }
-
- Inline_Files {
- }
-}
-
-
-project(QC_QCTQM_Test_Receiver_svnt) : ciao_servant, dds4ccm_lem_stub, dds4ccm_skel {
- after += QC_QCTQM_Test_Receiver_lem_stub QC_QCTQM_Test_Base_stub \
- QC_QCTQM_Test_Connector_stub QC_QCTQM_Test_Connector_svnt \
- QC_QCTQM_Test_Receiver_exec QC_QCTQM_Test_Connector_lem_stub \
- QC_QCTQM_Starter_stub \
- QC_QCTQM_Starter_svnt QC_QCTQM_Starter_lem_stub
- sharedname = Receiver_svnt
- libs += Receiver_stub Receiver_lem_stub QC_QCTQM_Test_Base_stub \
- QC_QCTQM_Test_Connector_stub QC_QCTQM_Test_Connector_svnt \
- Receiver_exec QC_QCTQM_Test_Connector_lem_stub \
- QC_QCTQM_Starter_stub QC_QCTQM_Starter_svnt \
- QC_QCTQM_Starter_lem_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += RECEIVER_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQM_Test_ReceiverS.cpp
- QCTQM_Test_Receiver_svnt.cpp
- }
-
- Header_Files {
- QCTQM_Test_ReceiverS.h
- QCTQM_Test_Receiver_svnt.h
- Receiver_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Receiver/QCTQM_Test_Receiver_exec.cpp b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Receiver/QCTQM_Test_Receiver_exec.cpp
deleted file mode 100644
index 58bd8cc763f..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Receiver/QCTQM_Test_Receiver_exec.cpp
+++ /dev/null
@@ -1,831 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-
-#include "QCTQM_Test_Receiver_exec.h"
-#include "tao/ORB_Core.h"
-#include "ace/Reactor.h"
-#include "ace/OS_NS_unistd.h"
-
-#include "dds4ccm/impl/dds4ccm_conf.h"
-#include "dds4ccm/impl/Utils.h"
-#include "dds4ccm/impl/dds4ccm_utils.h"
-
-#define QUERY "( (iteration > %0) AND (iteration < %1) )"
-
-//run 1
-#define MIN_ITERATION_1 "2"
-#define MAX_ITERATION_1 "5"
-//run 2
-#define MIN_ITERATION_2 "22"
-#define MAX_ITERATION_2 "34"
-//run 4
-#define MIN_ITERATION_3 "68"
-#define MAX_ITERATION_3 "77"
-
-// Reader also reads already read samples.
-// The getter receives the following iterations:
-// During run 1: 2 (iterations 3 and 4)
-// During run 2: 11 (iterations between 22 and 34)
-// During run 3: 47 (all unread samples, meaning iterations 1-60
-// without iteration 3, 4 and iterations between 22 and 34)
-// During run 4: 8 (iterations between 68 and 77)
-
-#define SAMPLES_PER_KEY_GETTER (2 + 11 + 47 + 8)
-
-namespace CIAO_QCTQM_Test_Receiver_Impl
-{
- /**
- * Read action generator
- */
-
- read_action_Generator::read_action_Generator (Receiver_exec_i &callback, int run)
- : callback_ (callback),
- run_ (run)
- {
- }
-
- read_action_Generator::~read_action_Generator ()
- {
- }
-
- int
- read_action_Generator::handle_timeout (const ACE_Time_Value &, const void *)
- {
- ACE_DEBUG ((LM_DEBUG, "Checking if last sample "
- "is available in DDS...\n"));
- if (this->callback_.check_last ())
- {
- this->callback_.run (this->run_);
- }
- return 0;
- }
-
- /**
- * Facet Executor Implementation Class: get_port_status_exec_i
- */
-
- get_port_status_exec_i::get_port_status_exec_i (
- ::QCTQM_Test::CCM_Receiver_Context_ptr ctx)
- : ciao_context_ (
- ::QCTQM_Test::CCM_Receiver_Context::_duplicate (ctx))
- {
- }
-
- get_port_status_exec_i::~get_port_status_exec_i (void)
- {
- }
-
- // Operations from ::CCM_DDS::PortStatusListener
-
- void
- get_port_status_exec_i::on_requested_deadline_missed (::DDS::DataReader_ptr /* the_reader */,
- const ::DDS::RequestedDeadlineMissedStatus & /* status */)
- {
- /* Your code here. */
- }
-
- void
- get_port_status_exec_i::on_sample_lost (::DDS::DataReader_ptr /* the_reader */,
- const ::DDS::SampleLostStatus & /* status */)
- {
- /* Your code here. */
- }
-
- /**
- * Facet Executor Implementation Class: reader_start_exec_i
- */
-
- reader_start_exec_i::reader_start_exec_i (
- ::QCTQM_Test::CCM_Receiver_Context_ptr ctx,
- Receiver_exec_i & callback)
- : ciao_context_ (
- ::QCTQM_Test::CCM_Receiver_Context::_duplicate (ctx))
- , callback_ (callback)
- {
- }
-
- reader_start_exec_i::~reader_start_exec_i (void)
- {
- }
-
- // Operations from ::TwoQueriesStarter
-
- void
- reader_start_exec_i::set_reader_properties (::CORBA::UShort nr_keys,
- ::CORBA::UShort nr_iterations)
- {
- ACE_DEBUG ((LM_DEBUG, "Set reader propeties nr_keys %u, nr_iterations %u\n",
- nr_keys, nr_iterations));
-
- this->callback_.keys (nr_keys);
- this->callback_.iterations (nr_iterations);
- }
-
- void
- reader_start_exec_i::start_read (::CORBA::UShort run)
- {
- this->callback_.start_read (run);
- }
-
- /**
- * Component Executor Implementation Class: Receiver_exec_i
- */
-
- Receiver_exec_i::Receiver_exec_i (void)
- : iterations_ (20)
- , keys_ (5)
- , current_min_iteration_ (ACE_OS::atoi (MIN_ITERATION_1))
- , current_max_iteration_ (ACE_OS::atoi (MAX_ITERATION_1))
- , ticker_ (0)
- , samples_expected_ (0)
- , samples_received_ (0)
- {
- }
-
- Receiver_exec_i::~Receiver_exec_i (void)
- {
- }
-
- // Supported operations and attributes.
- ACE_Reactor*
- Receiver_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;
- }
-
- // check if last key is received, if so we can assume
- // that other key's are arrived too in Receiver.
- bool
- Receiver_exec_i::check_last ()
- {
- ::QCTQM_Test::QueryConditionTestConnector::Reader_var reader =
- this->ciao_context_->get_connection_get_port_data ();
-
- try
- {
- QueryConditionTest queryfiltertest_info;
- ::CCM_DDS::ReadInfo readinfo;
- char key[10];
- ACE_OS::sprintf (key, "KEY_%d", this->keys_);
-
- queryfiltertest_info.symbol = ::CORBA::string_dup (key);
- reader->read_one_last (
- queryfiltertest_info,
- readinfo,
- ::DDS::HANDLE_NIL);
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::check_last - "
- "last iteration <%02d> - <%02d> this->keys_ %s\n",
- queryfiltertest_info.iteration,
- this->current_max_iteration_ - 1, key));
- return queryfiltertest_info.iteration >= this->current_max_iteration_ - 1;
- }
- catch (const ::CCM_DDS::InternalError &)
- {
- }
- catch (const ::CCM_DDS::NonExistent &)
- {
- }
- catch (...)
- {
- ACE_ERROR ((LM_ERROR, "Receiver_exec_i::check_last: "
- "ERROR: Unexpected exception caught\n"));
- }
- return false;
- }
-
- // Supported operations and attributes.
-
- // Check for correct iteration belonging to a run.
- // If info == 0, check iteration after a get,
- // else check iteration after a read
- void
- Receiver_exec_i::check_iter (const QueryConditionTest & sample,
- ::CORBA::UShort run,
- ::CCM_DDS::ReadInfo * info)
- {
- if (run == 3)
- {
- // We need to receive all UNread samples. Therefore we should
- // receive all samples except the ones between
- // MIN_ITERATION_1 and MAX_ITERATION_1 and between
- // MIN_ITERATION_2 and MAX_ITERATION_2
- if ((sample.iteration > ACE_OS::atoi (MIN_ITERATION_1) &&
- sample.iteration < ACE_OS::atoi (MAX_ITERATION_1)) ||
- (sample.iteration > ACE_OS::atoi (MIN_ITERATION_2) &&
- sample.iteration < ACE_OS::atoi (MAX_ITERATION_2)))
- {
- // Read supplies info. There check the sample status mask
- // as well
- if (info != 0)
- { // access mask should be "ALREADY_SEEN" since the getter should
- // already have seen this sample.
- if (info->access_status != ::CCM_DDS::ALREADY_SEEN)
- {
- // READ ALL since this check is only performed
- // during a read.
- ACE_ERROR ((LM_ERROR, "ERROR: READ ALL: "
- "Unexpected sample access mask - "
- "expected <%C> - "
- "received <%C>\n",
- CIAO::DDS4CCM::translate_ccm_dds_accessstatus (::CCM_DDS::ALREADY_SEEN),
- CIAO::DDS4CCM::translate_ccm_dds_accessstatus (info->access_status)
- ));
- }
- }
- else
- {
- // Getter functionality
- ACE_ERROR ((LM_ERROR, "ERROR: GET ALL: "
- "Didn't except samples between "
- "<%02d> and <%02d> and between "
- "<%02d> and <%02d>\n",
- ACE_OS::atoi (MIN_ITERATION_1),
- ACE_OS::atoi (MAX_ITERATION_1),
- ACE_OS::atoi (MIN_ITERATION_2),
- ACE_OS::atoi (MAX_ITERATION_2)));
- }
- }
- }
- else //run 1,2, and 4
- {
- //after get
- if (!info)
- {
- if (sample.iteration <= current_min_iteration_)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: GET ALL: "
- "Didn't expect samples with iterations "
- "<= %02d\n",
- this->current_min_iteration_));
- }
- if (sample.iteration > this->current_max_iteration_)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: GET ALL: "
- "Didn't expect samples with iterations "
- "> %02d\n",
- this->current_max_iteration_));
- }
- }
- // after read
- else if (info != 0)
- { // access mask should be "FRESH_INFO" since the getter has not
- // "seen" this sample.
- if (sample.iteration > this->current_min_iteration_)
- {
- if (info->access_status != ::CCM_DDS::FRESH_INFO)
- {
- // READ ALL since this check is only performed
- // during a read.
- ACE_ERROR ((LM_ERROR, "ERROR: READ ALL: "
- "Unexpected sample access mask - "
- "expected <%C> - "
- "received <%C>\n",
- CIAO::DDS4CCM::translate_ccm_dds_accessstatus (::CCM_DDS::FRESH_INFO),
- CIAO::DDS4CCM::translate_ccm_dds_accessstatus (info->access_status)
- ));
- }
- }
- }
- }
- }
-
-
- void
- Receiver_exec_i::read_all (::CORBA::UShort run)
- {
- ::QCTQM_Test::QueryConditionTestConnector::Reader_var reader =
- this->ciao_context_->get_connection_read_port_data ();
-
- if (::CORBA::is_nil (reader.in ()))
- {
- ACE_ERROR ((LM_ERROR, "Receiver_exec_i::read_all - "
- "ERROR: No Reader\n"));
- return;
- }
- QueryConditionTestSeq qf_info;
- ::CCM_DDS::ReadInfoSeq readinfos;
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::read_all - "
- "Start checking samples in DDS\n"));
- reader->read_all (qf_info, readinfos);
- if (qf_info.length () !=
- static_cast < ::CORBA::ULong > (run * this->iterations_ * this->keys_))
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::read_all - "
- "Unexpected number of samples received: "
- "expected <%d> - received <%u>\n",
- run * this->iterations_, qf_info.length ()));
- }
- for (::CORBA::ULong i = 0; i < qf_info.length (); ++i)
- {
- /* ACE_DEBUG ((LM_DEBUG, "READ ALL : Receiver_exec_i::read_all - "
- "Sample received: key <%C> - iteration <%d> - "
- "sample_read_state <%d>\n",
- qf_info[i].symbol.in (),
- qf_info[i].iteration,
- readinfos[i].access_status));
- */
- this->check_iter (qf_info[i], run, &readinfos[i]);
- }
- }
-
-
- ::CORBA::ULong
- Receiver_exec_i::get_all (::CORBA::UShort run)
- {
-
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("GET ALL run %d: \n"), run));
- ACE_OS::sleep (3);
-
- ::QCTQM_Test::QueryConditionTestConnector::Getter_var getter =
- this->ciao_context_->get_connection_get_port_fresh_data ();
- ::CORBA::ULong samples_received = 0;
-
- if (::CORBA::is_nil (getter.in ()))
- {
- ACE_ERROR ((LM_ERROR, "Receiver_exec_i::get_all - "
- "ERROR: No Getter\n"));
- return 0;
- }
- DDS::Duration_t to;
- to.sec = 10;
- to.nanosec = 0;
-
- getter->time_out (to);
- getter->max_delivered_data (0);
- QueryConditionTestSeq gettertest_seq;
- ::CCM_DDS::ReadInfoSeq readinfo;
- bool const res = getter->get_many (gettertest_seq, readinfo);
- if (res)
- {
- if (gettertest_seq.length () == 0)
- {
- ACE_ERROR ((LM_ERROR, "Receiver_exec_i::get_many: "
- "No data returned. "
- "number of samples: "
- "expected at least one - received <0>, res = %u\n", res));
- }
- for (CORBA::ULong i = 0; i < gettertest_seq.length (); ++i)
- {
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::get_many: "
- "Returned data : key <%C> - iteration <%d>,"
- "instance status <%u> - access status <%C>\n",
- gettertest_seq[i].symbol.in (),
- gettertest_seq[i].iteration,
- readinfo[i].instance_status,
- CIAO::DDS4CCM::translate_ccm_dds_accessstatus(readinfo[i].access_status)));
- this->check_iter (gettertest_seq[i], run);
- ++samples_received;
- }
- }
- else
- {
- ACE_ERROR ((LM_ERROR, "ERROR: GET MANY: "
- "Time out occurred\n"));
- }
- return samples_received;
- }
-
- ::CORBA::ULong
- Receiver_exec_i::test_all (::CORBA::UShort run)
- {
- try
- {
- return get_all (run);
- }
- catch (const CCM_DDS::NonExistent& ex)
- {
- for (::CORBA::ULong i = 0; i < ex.indexes.length (); ++i)
- {
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("ERROR test_all <%d>: ")
- ACE_TEXT ("caught expected exception: index <%u>\n"),
- run,
- ex.indexes[i]));
- }
- }
- catch (const CCM_DDS::InternalError& ex)
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("ERROR: test_all <%d>: ")
- ACE_TEXT ("caught InternalError exception: retval <%u>\n"),
- run,
- ex.error_code));
- }
- catch (const ::CORBA::Exception& ex)
- {
- ex._tao_print_exception ("test_all");
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("ERROR: Receiver_exec_i::test_all <%d> : Exception caught\n"),
- run));
- }
- return 0;
- }
-
- void
- Receiver_exec_i::check_filter (::CORBA::UShort run)
- {
- ::CCM_DDS::QueryFilter_var filter;
- ::QCTQM_Test::QueryConditionTestConnector::Reader_var reader =
- this->ciao_context_->get_connection_get_port_data ();
- try
- {
- filter = reader->query ();
- }
- catch (const CCM_DDS::InternalError& ex)
- {
- if (run == 3)
- {
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::check_filter - "
- "caught expected InternalEr excep: retval <%u>\n",
- ex.error_code));
- }
- else
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter - "
- "caught InternalError exception: retval <%u>\n",
- ex.error_code));
- }
- return;
- }
- catch (const ::CORBA::Exception& ex)
- {
- ex._tao_print_exception ("ERROR: Receiver_exec_i::check_filter: ");
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter - "
- "Exception caught\n"));
- return;
- }
-
- //check query
- bool error = false;
-
- if (run != 3)
- {
- if (ACE_OS::strcmp (filter->expression, QUERY) != 0)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter - "
- "Unexpected query when retrieving filter: "
- "expected <%C> - received <%C>\n",
- QUERY, filter->expression.in ()));
- error = true;
- }
- //check current parameters.
- if (filter->parameters.length () != 2)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter - "
- "Unexpected number of parameters: "
- "expected <%d> - received <%d>\n",
- 2, filter->parameters.length ()));
- error = true;
- }
-
- if (filter->parameters.length () >= 1)
- {
- if (ACE_OS::atoi (filter->parameters[0]) != this->current_min_iteration_)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter - "
- "Unexpected param value: "
- "expected <%d> - received <%C>\n",
- this->current_min_iteration_,
- filter->parameters[0].in ()));
- error = true;
- }
- }
- if (filter->parameters.length () >= 2)
- {
- if (ACE_OS::atoi (filter->parameters[1]) != this->current_max_iteration_)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Receiver_exec_i::check_filter - "
- "Unexpected param value: "
- "expected <%d> - received <%C>\n",
- this->current_max_iteration_,
- filter->parameters[1].in ()));
- error = true;
- }
- }
- }
- if (!error)
- {
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::check_filter - "
- "Passed check_filter test for run <%d>.\n",
- run));
- }
- }
-
- void
- Receiver_exec_i::set_filter (::CORBA::UShort run)
- {
- ACE_DEBUG ((LM_DEBUG, "Set filter for run <%d>\n", run));
- ::QCTQM_Test::QueryConditionTestConnector::Reader_var reader =
- this->ciao_context_->get_connection_get_port_data ();
-
- try
- {
- ::CCM_DDS::QueryFilter filter;
- run != 3 ? filter.expression = ::CORBA::string_dup (QUERY) :
- filter.expression = ::CORBA::string_dup ("");
-
- filter.parameters.length (2);
- if (run == 1)
- {
- filter.parameters[0] = ::CORBA::string_dup (MIN_ITERATION_1);
- filter.parameters[1] = ::CORBA::string_dup (MAX_ITERATION_1);
- this->current_min_iteration_ = ACE_OS::atoi (MIN_ITERATION_1);
- this->current_max_iteration_ = ACE_OS::atoi (MAX_ITERATION_1);
- }
- else if (run == 2)
- {
- filter.parameters[0] = ::CORBA::string_dup (MIN_ITERATION_2);
- filter.parameters[1] = ::CORBA::string_dup (MAX_ITERATION_2);
- this->current_min_iteration_ = ACE_OS::atoi (MIN_ITERATION_2);
- this->current_max_iteration_ = ACE_OS::atoi (MAX_ITERATION_2);
- }
- else if (run == 3)
- {
- // get all not yet seen by the getter samples of run 1, 2 and 3.
- this->current_min_iteration_ = 1;
- this->current_max_iteration_ = run * this->iterations_;
- filter.parameters[0] = ::CORBA::string_dup (0);
- filter.parameters[1] = ::CORBA::string_dup (0);
- }
- else if (run == 4)
- {
- filter.parameters[0] = ::CORBA::string_dup (MIN_ITERATION_3);
- filter.parameters[1] = ::CORBA::string_dup (MAX_ITERATION_3);
- this->current_min_iteration_ = ACE_OS::atoi (MIN_ITERATION_3);
- this->current_max_iteration_ = ACE_OS::atoi (MAX_ITERATION_3);
- }
- ACE_DEBUG ((LM_DEBUG, "Filter : Query <%C>, parameter[0] <%C>, parameter[1] <%C>\n",
- filter.expression.in (), filter.parameters[0].in (), filter.parameters[1].in ()));
- reader->query (filter);
- }
- catch (const ::CCM_DDS::InternalError &ex)
- {
- ACE_ERROR ((LM_ERROR, "Receiver_exec_i::set_filter - "
- "ERROR: Unexpected InternalError exception caught "
- "with <%C> as error\n.",
- ::CIAO::DDS4CCM::translate_retcode (ex.error_code)));
- }
- catch (...)
- {
- ACE_ERROR ((LM_ERROR, "Receiver_exec_i::set_filter - "
- "ERROR: Unexpected exception caught.\n"));
- }
- }
-
- void
- Receiver_exec_i::start_read (::CORBA::UShort run)
- {
- this->ticker_ = new read_action_Generator (*this, run);
- if (this->reactor ()->schedule_timer (this->ticker_,
- 0,
- ACE_Time_Value(1, 0),
- ACE_Time_Value(1, 0)) == -1)
- {
- ACE_ERROR ((LM_ERROR, "Unable to schedule Timer\n"));
- }
- }
-
- void
- Receiver_exec_i::run (::CORBA::UShort run)
- {
- if (this->ticker_)
- {
- this->reactor ()->cancel_timer (this->ticker_);
- delete this->ticker_;
- this->ticker_ = 0;
- }
- ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::run - "
- "Starting run number <%d>\n",
- run));
- TwoQueriesRestarter_var restarter =
- this->ciao_context_->get_connection_writer_restart ();
- if (!::CORBA::is_nil (restarter.in ()))
- {
- switch (run)
- {
- case 1:
- {
- this->samples_received_ += this->test_all (run);
- this->check_filter (run);
- this->read_all (run);
- //set filter for the next run
- this->set_filter (run + 1);
- // inform the sender that it may start the next run
- restarter->restart_write ();
- }
- break;
- case 2:
- {
- this->samples_received_ += this->test_all (run);
- check_filter (run);
- this->read_all (run);
- //set filter for the next run
- this->set_filter (run + 1);
- // inform the sender that it may start the next run
- restarter->restart_write ();
- }
- break;
- case 3:
- {
- this->samples_received_ += this->test_all (run);
- this->check_filter (run);
- this->read_all (run);
- //set filter for the next run
- this->set_filter (run + 1);
- // inform the sender that it may start the next run
- restarter->restart_write ();
- }
- break;
- case 4:
- {
- this->samples_received_ += this->test_all (run);
- this->read_all (run);
- }
- }
- }
- else
- {
- ACE_ERROR ((LM_ERROR, "Receiver_exec_i::run - "
- "ERROR: Reference to Restarter not found\n"));
- }
- }
-
- void
- Receiver_exec_i::iterations (::CORBA::UShort iterations)
- {
- this->iterations_ = iterations;
- }
-
- void
- Receiver_exec_i::keys (::CORBA::UShort keys)
- {
- this->keys_ = keys;
-
- //the last key is used for checking if all samples are received and therefore
- //get access status 1. So these samples are not read by following
- //get_all method.
- this->samples_expected_ = (this->keys_ - 1) * SAMPLES_PER_KEY_GETTER;
- }
-
- // Component attributes and port operations.
-
- ::CCM_DDS::CCM_PortStatusListener_ptr
- Receiver_exec_i::get_get_port_status (void)
- {
- if ( ::CORBA::is_nil (this->ciao_get_port_status_.in ()))
- {
- get_port_status_exec_i *tmp = 0;
- ACE_NEW_RETURN (
- tmp,
- get_port_status_exec_i (
- this->ciao_context_.in ()),
- ::CCM_DDS::CCM_PortStatusListener::_nil ());
-
- this->ciao_get_port_status_ = tmp;
- }
-
- return
- ::CCM_DDS::CCM_PortStatusListener::_duplicate (
- this->ciao_get_port_status_.in ());
- }
-
- ::CCM_DDS::CCM_PortStatusListener_ptr
- Receiver_exec_i::get_read_port_status (void)
- {
- return ::CCM_DDS::CCM_PortStatusListener::_nil ();
- }
-
- ::CCM_TwoQueriesStarter_ptr
- Receiver_exec_i::get_reader_start (void)
- {
- if ( ::CORBA::is_nil (this->ciao_reader_start_.in ()))
- {
- reader_start_exec_i *tmp = 0;
- ACE_NEW_RETURN (
- tmp,
- reader_start_exec_i (
- this->ciao_context_.in (),
- *this),
- ::CCM_TwoQueriesStarter::_nil ());
-
- this->ciao_reader_start_ = tmp;
- }
-
- return
- ::CCM_TwoQueriesStarter::_duplicate (
- this->ciao_reader_start_.in ());
- }
-
- // Operations from Components::SessionComponent.
-
- void
- Receiver_exec_i::set_session_context (
- ::Components::SessionContext_ptr ctx)
- {
- this->ciao_context_ =
- ::QCTQM_Test::CCM_Receiver_Context::_narrow (ctx);
-
- if ( ::CORBA::is_nil (this->ciao_context_.in ()))
- {
- throw ::CORBA::INTERNAL ();
- }
- }
-
- void
- Receiver_exec_i::configuration_complete (void)
- {
- /* Your code here. */
- }
-
- void
- Receiver_exec_i::ccm_activate (void)
- {
- ::QCTQM_Test::QueryConditionTestConnector::Getter_var getter =
- this->ciao_context_->get_connection_get_port_fresh_data ();
- DDS::Duration_t to;
- to.sec = 5; to.nanosec = 0;
- getter->time_out (to);
- //set filter for the first run
- this->set_filter (1);
- }
-
- void
- Receiver_exec_i::ccm_passivate (void)
- {
- if (this->ticker_)
- {
- this->reactor ()->cancel_timer (this->ticker_);
- delete this->ticker_;
- this->ticker_ = 0;
- }
- }
-
- void
- Receiver_exec_i::ccm_remove (void)
- {
- if (this->samples_received_ != this->samples_expected_)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: TWO QUERIES GET_MANY : "
- "Unexpected number of samples received: "
- "expected <%d> - received <%d>\n",
- this->samples_expected_,
- this->samples_received_));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "TWO QUERIES : GET_MANY : "
- "Expected number of samples received: "
- "expected <%d> - received <%d>\n",
- this->samples_expected_,
- this->samples_received_));
- }
- }
-
- extern "C" RECEIVER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_QCTQM_Test_Receiver_Impl (void)
- {
- ::Components::EnterpriseComponent_ptr retval =
- ::Components::EnterpriseComponent::_nil ();
-
- ACE_NEW_NORETURN (
- retval,
- Receiver_exec_i);
-
- return retval;
- }
-}
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Receiver/QCTQM_Test_Receiver_exec.h b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Receiver/QCTQM_Test_Receiver_exec.h
deleted file mode 100644
index 43cec44cf93..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Receiver/QCTQM_Test_Receiver_exec.h
+++ /dev/null
@@ -1,221 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-#ifndef CIAO_QCTQM_TEST_RECEIVER_EXEC_HWBPVD_H_
-#define CIAO_QCTQM_TEST_RECEIVER_EXEC_HWBPVD_H_
-
-#include /**/ "ace/pre.h"
-
-#include "QCTQM_Test_ReceiverEC.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include /**/ "Receiver_exec_export.h"
-#include "tao/LocalObject.h"
-
-namespace CIAO_QCTQM_Test_Receiver_Impl
-{
-
- class Receiver_exec_i;
-
- /**
- * Read action generator
- */
-
- class read_action_Generator
- : public ACE_Event_Handler
- {
- public:
- read_action_Generator (Receiver_exec_i &callback,
- int run);
-
- ~read_action_Generator ();
-
- virtual int handle_timeout (const ACE_Time_Value &tv,
- const void *arg);
- private:
- Receiver_exec_i &callback_;
- int run_;
-
- };
-
- /**
- * Provider Executor Implementation Class: get_port_status_exec_i
- */
-
- class get_port_status_exec_i
- : public virtual ::CCM_DDS::CCM_PortStatusListener,
- public virtual ::CORBA::LocalObject
- {
- public:
- get_port_status_exec_i (
- ::QCTQM_Test::CCM_Receiver_Context_ptr ctx);
- virtual ~get_port_status_exec_i (void);
-
- //@{
- /** Operations and attributes from CCM_DDS::PortStatusListener. */
-
- virtual
- void on_requested_deadline_missed (::DDS::DataReader_ptr the_reader,
- const ::DDS::RequestedDeadlineMissedStatus & status);
-
- virtual
- void on_sample_lost (::DDS::DataReader_ptr the_reader,
- const ::DDS::SampleLostStatus & status);
- //@}
-
- private:
- ::QCTQM_Test::CCM_Receiver_Context_var ciao_context_;
- };
-
- /**
- * Provider Executor Implementation Class: reader_start_exec_i
- */
-
- class reader_start_exec_i
- : public virtual ::CCM_TwoQueriesStarter,
- public virtual ::CORBA::LocalObject
- {
- public:
- reader_start_exec_i (
- ::QCTQM_Test::CCM_Receiver_Context_ptr ctx,
- Receiver_exec_i & callback);
- virtual ~reader_start_exec_i (void);
-
- //@{
- /** Operations and attributes from TwoQueriesStarter. */
-
- virtual
- void set_reader_properties (::CORBA::UShort nr_keys,
- ::CORBA::UShort nr_iterations);
-
- virtual
- void start_read (::CORBA::UShort run);
- //@}
-
- private:
- ::QCTQM_Test::CCM_Receiver_Context_var ciao_context_;
- Receiver_exec_i & callback_;
- };
-
- /**
- * Component Executor Implementation Class: Receiver_exec_i
- */
-
- class Receiver_exec_i
- : public virtual Receiver_Exec,
- public virtual ::CORBA::LocalObject
- {
- public:
- Receiver_exec_i (void);
- virtual ~Receiver_exec_i (void);
-
- //@{
- /** Supported operations and attributes. */
-
- //@}
-
- //@{
- /** Component attributes and port operations. */
-
- virtual ::CCM_DDS::CCM_PortStatusListener_ptr
- get_get_port_status (void);
-
- virtual ::CCM_DDS::CCM_PortStatusListener_ptr
- get_read_port_status (void);
-
-
- virtual ::CCM_TwoQueriesStarter_ptr
- get_reader_start (void);
- //@}
-
- //@{
- /** Operations from Components::SessionComponent. */
- virtual void set_session_context (::Components::SessionContext_ptr ctx);
- virtual void configuration_complete (void);
- virtual void ccm_activate (void);
- virtual void ccm_passivate (void);
- virtual void ccm_remove (void);
- //@}
-
- //@{
- /** User defined public operations. */
- void iterations (CORBA::UShort iterations);
- void keys (::CORBA::UShort keys);
-
- bool check_last (void);
- void start_read (::CORBA::UShort run);
- void run (::CORBA::UShort run);
- //@}
-
- private:
- ::QCTQM_Test::CCM_Receiver_Context_var ciao_context_;
-
- //@{
- /** Component attributes. */
- ::CCM_DDS::CCM_PortStatusListener_var ciao_get_port_status_;
- ::CCM_TwoQueriesStarter_var ciao_reader_start_;
- //@}
-
- //@{
- /** User defined members. */
- ::CORBA::UShort iterations_;
- ::CORBA::UShort keys_;
-
- int current_min_iteration_;
- int current_max_iteration_;
-
- read_action_Generator *ticker_;
-
- ::CORBA::ULong samples_expected_;
- ::CORBA::ULong samples_received_;
-
- //@}
-
- //@{
- /** User defined private operations. */
- ::CORBA::ULong test_all (::CORBA::UShort run);
- ::CORBA::ULong get_all (::CORBA::UShort run);
- void read_all (::CORBA::UShort run);
- void check_iter (const QueryConditionTest & sample,
- ::CORBA::UShort run,
- ::CCM_DDS::ReadInfo * info = 0);
- void check_filter (::CORBA::UShort run);
- void set_filter (::CORBA::UShort run);
-
- //@}
-
- /// Get the ACE_Reactor
- ACE_Reactor* reactor (void);
- };
-
- extern "C" RECEIVER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_QCTQM_Test_Receiver_Impl (void);
-}
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Sender/QCTQM_Test_Sender.idl b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Sender/QCTQM_Test_Sender.idl
deleted file mode 100644
index 90894c16c64..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Sender/QCTQM_Test_Sender.idl
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * @author Marijke Hengstmengel (mhengstmengel@remedy.nl)
- */
-
-#ifndef DDS_QUERY_CONDITION_TEST_SENDER_IDL
-#define DDS_QUERY_CONDITION_TEST_SENDER_IDL
-
-#include "Connector/QCTQM_Test_Connector.idl"
-#include "Base/QCTQM_Starter.idl"
-
-module QCTQM_Test
-{
- component Sender
- {
- port QCTQM_Test::QueryConditionTestConnector::DDS_Write info_write;
- provides CCM_DDS::ConnectorStatusListener connector_status;
-
- uses TwoQueriesStarter start_reader;
- provides TwoQueriesRestarter restart_writer;
-
- attribute unsigned short keys;
- };
-};
-
-#endif
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Sender/QCTQM_Test_Sender.mpc b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Sender/QCTQM_Test_Sender.mpc
deleted file mode 100644
index 07f150ee5b1..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Sender/QCTQM_Test_Sender.mpc
+++ /dev/null
@@ -1,153 +0,0 @@
-// This file is generated with "generate_component_mpc.pl -p QCTQM_Test_Base -l ../lib -o ../lib -c controller -u DDS Sender"
-
-project(QC_QCTQM_Test_Sender_idl_gen) : componentidldefaults, dds4ccm {
- after += QC_QCTQM_Test_Connector_idl_gen QC_QCTQM_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 {
- QCTQM_Test_Sender.idl
- }
-}
-
-project(QC_QCTQM_Test_Sender_lem_gen) : ciaoidldefaults, dds4ccm {
- after += QC_QCTQM_Test_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 {
- QCTQM_Test_SenderE.idl
- }
-}
-
-project(QC_QCTQM_Test_Sender_lem_stub) : ccm_svnt, dds4ccm_base {
- after += QC_QCTQM_Test_Sender_lem_gen QC_QCTQM_Test_Sender_stub \
- QC_QCTQM_Test_Base_stub QC_QCTQM_Starter_stub
- libs += QC_QCTQM_Test_Base_stub Sender_stub QC_QCTQM_Starter_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- sharedname = Sender_lem_stub
- dynamicflags += SENDER_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQM_Test_SenderEC.cpp
- }
-
- Header_Files {
- QCTQM_Test_SenderEC.h
- Sender_lem_stub_export.h
- }
-
- Inline_Files {
- QCTQM_Test_SenderEC.inl
- }
-}
-
-project(QC_QCTQM_Test_Sender_stub) : ccm_stub, dds4ccm_base {
- after += QC_QCTQM_Test_Sender_idl_gen QC_QCTQM_Test_Base_stub \
- QC_QCTQM_Test_Connector_stub QC_QCTQM_Starter_stub \
- QC_QCTQM_Starter_lem_stub
- libs += QC_QCTQM_Test_Base_stub QC_QCTQM_Test_Connector_stub \
- QC_QCTQM_Starter_stub
- includes += ..
- libpaths += ../lib
- libout = ../lib
- sharedname = Sender_stub
- dynamicflags += SENDER_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQM_Test_SenderC.cpp
- }
-
- Header_Files {
- QCTQM_Test_SenderC.h
- Sender_stub_export.h
- }
-
- Inline_Files {
- QCTQM_Test_SenderC.inl
- }
-}
-
-project(QC_QCTQM_Test_Sender_exec) : ciao_executor, dds4ccm_lem_stub {
- after += QC_QCTQM_Test_Sender_lem_stub QC_QCTQM_Test_Sender_stub \
- QC_QCTQM_Test_Connector_lem_stub QC_QCTQM_Test_Connector_stub \
- QC_QCTQM_Starter_lem_stub
- sharedname = Sender_exec
- libs += Sender_stub Sender_lem_stub QC_QCTQM_Test_Base_stub \
- QC_QCTQM_Test_Connector_lem_stub QC_QCTQM_Test_Connector_stub \
- QC_QCTQM_Starter_stub QC_QCTQM_Starter_lem_stub \
- QC_QCTQM_Starter_lem_stub
- libpaths += ../lib
- includes += ..
- libout = ../lib
- dynamicflags += SENDER_EXEC_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQM_Test_Sender_exec.cpp
- }
-
- Header_Files {
- QCTQM_Test_Sender_exec.h
- Sender_exec_export.h
- }
-
- Inline_Files {
- }
-}
-
-
-project(QC_QCTQM_Test_Sender_svnt) : ciao_servant, dds4ccm_lem_stub, dds4ccm_skel {
- after += QC_QCTQM_Test_Base_stub QC_QCTQM_Test_Sender_lem_stub \
- QC_QCTQM_Test_Connector_stub \
- QC_QCTQM_Test_Connector_svnt QC_QCTQM_Test_Connector_lem_stub \
- QC_QCTQM_Starter_stub QC_QCTQM_Starter_svnt \
- QC_QCTQM_Starter_lem_stub
- sharedname = Sender_svnt
- libs += Sender_stub Sender_lem_stub QC_QCTQM_Test_Base_stub \
- QC_QCTQM_Test_Connector_stub QC_QCTQM_Test_Connector_svnt \
- QC_QCTQM_Test_Connector_lem_stub QC_QCTQM_Starter_stub \
- QC_QCTQM_Starter_svnt QC_QCTQM_Starter_lem_stub
- libpaths += ../lib
- libout = ../lib
- includes += ..
- dynamicflags += SENDER_SVNT_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- QCTQM_Test_SenderS.cpp
- QCTQM_Test_Sender_svnt.cpp
- }
-
- Header_Files {
- QCTQM_Test_SenderS.h
- QCTQM_Test_Sender_svnt.h
- Sender_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Sender/QCTQM_Test_Sender_exec.cpp b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Sender/QCTQM_Test_Sender_exec.cpp
deleted file mode 100644
index 214e6d60e30..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Sender/QCTQM_Test_Sender_exec.cpp
+++ /dev/null
@@ -1,348 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-
-#include "QCTQM_Test_Sender_exec.h"
-#include "tao/ORB_Core.h"
-#include "ace/Reactor.h"
-
-#define ITERATIONS 20
-
-
-namespace CIAO_QCTQM_Test_Sender_Impl
-{
- /**
- * ConnectorStatusListener_exec_i
- */
- ConnectorStatusListener_exec_i::ConnectorStatusListener_exec_i (
- Sender_exec_i &callback)
- : callback_ (callback)
- , 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 (!this->started_ && status_kind == ::DDS::PUBLICATION_MATCHED_STATUS)
- {
- this->started_ = true;
- ACE_DEBUG ((LM_DEBUG, "ConnectorStatusListener_exec_i::on_unexpected_status - "
- "Publication matched received: starting the test\n"));
-
- this->callback_.get_started ();
- }
- }
-
- /**
- * WriteHandler
- */
-
- WriteHandler::WriteHandler (Sender_exec_i &callback)
- : callback_ (callback)
- {
- }
-
- int
- WriteHandler::handle_exception (ACE_HANDLE)
- {
- this->callback_.start ();
- return 0;
- }
-
- /**
- * Facet Executor Implementation Class: restart_writer_exec_i
- */
-
- restart_writer_exec_i::restart_writer_exec_i (
- ::QCTQM_Test::CCM_Sender_Context_ptr ctx,
- Sender_exec_i & callback)
- : ciao_context_ (
- ::QCTQM_Test::CCM_Sender_Context::_duplicate (ctx))
- , callback_ (callback)
- {
- }
-
- restart_writer_exec_i::~restart_writer_exec_i (void)
- {
- }
-
- // Operations from ::TwoQueriesRestarter
-
- void
- restart_writer_exec_i::restart_write (void)
- {
- this->callback_.restart ();
- }
-
- /**
- * Component Executor Implementation Class: Sender_exec_i
- */
-
- Sender_exec_i::Sender_exec_i (void)
- : keys_ (5)
- , iterations_ (ITERATIONS)
- , run_ (1)
- , wh_ (0)
-
- {
- }
-
- Sender_exec_i::~Sender_exec_i (void)
- {
- if (this->wh_)
- {
- delete this->wh_;
- }
- }
-
- // 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::restart (void)
- {
- ++this->run_;
- this->reactor ()->notify (this->wh_);
- }
-
- void
- Sender_exec_i::get_started (void)
- {
- try
- {
- if (this->wh_)
- {
- delete this->wh_;
- this->wh_ = 0;
- }
- ACE_NEW_THROW_EX (this->wh_,
- WriteHandler (*this),
- ::CORBA::NO_MEMORY ());
- this->reactor ()->notify (this->wh_);
- }
- catch (const ::CORBA::Exception& ex)
- {
- ex._tao_print_exception ("Exception caught:");
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("ERROR: get_started : Exception caught\n")));
- }
- catch (...)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("ERROR: get_started : Unknown exception caught\n")));
- }
- }
-
- void
- Sender_exec_i::start (void)
- {
- ::QCTQM_Test::QueryConditionTestConnector::Writer_var writer =
- this->ciao_context_->get_connection_info_write_data ();
- TwoQueriesStarter_var starter =
- this->ciao_context_->get_connection_start_reader ();
-
- if (! ::CORBA::is_nil (starter.in ()))
- {
- starter->set_reader_properties (this->keys_, this->iterations_);
- }
- else
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("ERROR: Unable to start the reader\n")));
- return;
- }
- for (CORBA::UShort iter_key = 1; iter_key < this->keys_ + 1; ++iter_key)
- {
- char key[7];
- QueryConditionTest new_key;
- ACE_OS::sprintf (key, "KEY_%d", iter_key);
-
- new_key.symbol = CORBA::string_dup(key);
- CORBA::UShort iter = ((this->run_ - 1) * this->iterations_) + 1;
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("Write key <%C> with iterations <%d> to <%d>\n"),
- key, iter, (iter + this->iterations_)));
-
- while (iter < this->run_ * this->iterations_ + 1)
- {
- new_key.iteration = iter;
- writer->write_one (new_key, ::DDS::HANDLE_NIL);
- ++iter;
- }
- }
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("Sender call start read with run_ = <%u>\n"),
- this->run_));
-
- ACE_OS::sleep (2);
- starter->start_read (this->run_);
- }
-
- // Component attributes and port operations.
- ::CCM_DDS::CCM_ConnectorStatusListener_ptr
- Sender_exec_i::get_connector_status (void)
- {
- return new ConnectorStatusListener_exec_i (*this);
- }
-
- ::CCM_TwoQueriesRestarter_ptr
- Sender_exec_i::get_restart_writer (void)
- {
- if ( ::CORBA::is_nil (this->ciao_restart_writer_.in ()))
- {
- restart_writer_exec_i *tmp = 0;
- ACE_NEW_RETURN (
- tmp,
- restart_writer_exec_i (
- this->ciao_context_.in (),
- *this),
- ::CCM_TwoQueriesRestarter::_nil ());
-
- this->ciao_restart_writer_ = tmp;
- }
-
- return
- ::CCM_TwoQueriesRestarter::_duplicate (
- this->ciao_restart_writer_.in ());
- }
-
- ::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_ =
- ::QCTQM_Test::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)
- {
- }
-
- void
- Sender_exec_i::ccm_passivate (void)
- {
- /* Your code here. */
- }
-
- void
- Sender_exec_i::ccm_remove (void)
- {
- /* Your code here. */
- }
-
- extern "C" SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_QCTQM_Test_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/QueryCondition/TwoQueriesMany/Sender/QCTQM_Test_Sender_exec.h b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Sender/QCTQM_Test_Sender_exec.h
deleted file mode 100644
index 2a991d94156..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/Sender/QCTQM_Test_Sender_exec.h
+++ /dev/null
@@ -1,196 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-#ifndef CIAO_QCTQM_TEST_SENDER_EXEC_VZMKKL_H_
-#define CIAO_QCTQM_TEST_SENDER_EXEC_VZMKKL_H_
-
-#include /**/ "ace/pre.h"
-
-#include "QCTQM_Test_SenderEC.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include /**/ "Sender_exec_export.h"
-#include "tao/LocalObject.h"
-
-namespace CIAO_QCTQM_Test_Sender_Impl
-{
- class Sender_exec_i;
-
- /**
- * ConnectorStatusListener_exec_i
- */
- class SENDER_EXEC_Export ConnectorStatusListener_exec_i
- : public virtual ::CCM_DDS::CCM_ConnectorStatusListener,
- public virtual ::CORBA::LocalObject
- {
- public:
- ConnectorStatusListener_exec_i (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_;
- bool started_;
- };
-
- /**
- * WriteHandler
- */
-
- class WriteHandler :
- public ACE_Event_Handler
- {
- public:
- WriteHandler (Sender_exec_i &callback);
- virtual int handle_exception (ACE_HANDLE fc = ACE_INVALID_HANDLE);
- private:
- Sender_exec_i &callback_;
- };
-
- /**
- * Provider Executor Implementation Class: restart_writer_exec_i
- */
-
- class restart_writer_exec_i
- : public virtual ::CCM_TwoQueriesRestarter,
- public virtual ::CORBA::LocalObject
- {
- public:
- restart_writer_exec_i (
- ::QCTQM_Test::CCM_Sender_Context_ptr ctx,
- Sender_exec_i & callback);
- virtual ~restart_writer_exec_i (void);
-
- //@{
- /** Operations and attributes from TwoQueriesRestarter. */
-
- virtual
- void restart_write (void);
- //@}
-
- private:
- ::QCTQM_Test::CCM_Sender_Context_var ciao_context_;
- 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. */
-
- //@}
-
- //@{
- /** Component attributes and port operations. */
- virtual ::CCM_DDS::CCM_ConnectorStatusListener_ptr
- get_connector_status (void);
-
- virtual ::CCM_TwoQueriesRestarter_ptr
- get_restart_writer (void);
-
- 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 get_started (void);
- void start (void);
- void restart (void);
-
- //@}
-
- private:
- ::QCTQM_Test::CCM_Sender_Context_var ciao_context_;
-
- //@{
- /** Component attributes. */
- ::CCM_TwoQueriesRestarter_var ciao_restart_writer_;
-
- ::CORBA::UShort keys_;
- //@}
-
- //@{
- /** User defined members. */
- CORBA::UShort iterations_;
- CORBA::UShort run_;
- WriteHandler *wh_;
- //@}
-
- //@{
- /** User defined private operations. */
-
- //@}
-
- /// Get the ACE_Reactor
- ACE_Reactor* reactor (void);
- };
-
- extern "C" SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_QCTQM_Test_Sender_Impl (void);
-}
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/descriptors/Plan.cdp b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/descriptors/Plan.cdp
deleted file mode 100644
index 12808211107..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/descriptors/Plan.cdp
+++ /dev/null
@@ -1,520 +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>QCTQM_Test_Depl_1</label>
- <UUID>QCTQM_Test_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_QCTQM_Test_Receiver_Impl</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_QCTQM_Test_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="QCTQM_Test_EventConnectorImplementation">
- <name>QCTQM_Test_EventConnectorImplementation</name>
- <source/>
- <artifact xmi:idref="QCTQM_Test_Connector_ExecArtifact" />
- <artifact xmi:idref="QCTQM_Test_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_QCTQM_Test_QueryConditionTestConnector_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_QCTQM_Test_QueryConditionTestConnector_DDS_Event_Servant</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QC_QCTQM_Test_Connector_svnt</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QC_QCTQM_Test_Connector_exec</string>
- </value>
- </value>
- </execParameter>
- </implementation>
-
- <implementation xmi:id="QCTQM_Test_StateConnectorImplementation">
- <name>QCTQM_Test_StateConnectorImplementation</name>
- <source/>
- <artifact xmi:idref="QCTQM_Test_Connector_ExecArtifact" />
- <artifact xmi:idref="QCTQM_Test_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_QCTQM_Test_QueryConditionTestConnector_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_QCTQM_Test_QueryConditionTestConnector_DDS_State_Servant</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QC_QCTQM_Test_Connector_svnt</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QC_QCTQM_Test_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_QCTQM_Test_Sender_Impl</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_QCTQM_Test_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="ReceiverComponentInstance">
- <name>ReceiverComponent</name>
- <node>ReceiverNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="ReceiverComponentImplementation" />
- </instance>
-
- <instance xmi:id="QCTQM_Test_SenderConnectorInstance">
- <name>QCTQM_Test_ConnectorComponent</name>
- <node>SenderNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="QCTQM_Test_EventConnectorImplementation" />
- <configProperty>
- <name>qos_profile</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QueryCondition_Library#QueryConditionProfile</string>
- </value>
- </value>
- </configProperty>
- <configProperty>
- <name>topic_name</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QCTQM_Test</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <instance xmi:id="QCTQM_Test_EventConnector">
- <name>QCTQM_Test_EventConnector</name>
- <node>ReceiverNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="QCTQM_Test_EventConnectorImplementation" />
- <configProperty>
- <name>qos_profile</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QueryCondition_Library#QueryConditionProfile</string>
- </value>
- </value>
- </configProperty>
- <configProperty>
- <name>topic_name</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QCTQM_Test</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <instance xmi:id="QCTQM_Test_StateConnector">
- <name>QCTQM_Test_StateConnector</name>
- <node>ReceiverNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="QCTQM_Test_StateConnectorImplementation" />
- <configProperty>
- <name>qos_profile</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QueryCondition_Library#QueryConditionProfile</string>
- </value>
- </value>
- </configProperty>
- <configProperty>
- <name>topic_name</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>QCTQM_Test</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <instance xmi:id="SenderComponentInstance">
- <name>SenderComponent</name>
- <node>SenderNode</node>
- <!-- hostname -->
- <source/>
- <implementation xmi:idref="SenderComponentImplementation" />
- <configProperty>
- <name>keys</name>
- <value>
- <type>
- <kind>tk_ushort</kind>
- </type>
- <value>
- <ushort>5</ushort>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <connection>
- <name>read_port_data</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>read_port_data</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>passive_observer_data</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="QCTQM_Test_StateConnector" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>get_port_data</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>get_port_data</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>pull_consumer_data</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="QCTQM_Test_EventConnector" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>get_port_fresh_data</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>get_port_fresh_data</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>pull_consumer_fresh_data</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="QCTQM_Test_EventConnector" />
- </internalEndpoint>
- </connection>
-
- <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="QCTQM_Test_SenderConnectorInstance" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>reader_starter</name>
- <internalEndpoint>
- <portName>start_reader</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="SenderComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>reader_start</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>restart_writer</name>
- <internalEndpoint>
- <portName>writer_restart</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="ReceiverComponentInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>restart_writer</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="SenderComponentInstance" />
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>connector_status_connection</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>error_listener</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="QCTQM_Test_SenderConnectorInstance" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>connector_status</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="SenderComponentInstance" />
- </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="QCTQM_Test_Connector_ExecArtifact">
- <name>QC_QCTQM_Test_Connector_exec</name>
- <source/>
- <node/>
- <location>QC_QCTQM_Test_Connector_exec</location>
- </artifact>
- <artifact xmi:id="QCTQM_Test_Connector_SvntArtifact">
- <name>QC_QCTQM_Test_Connector_svnt</name>
- <source/>
- <node/>
- <location>QC_QCTQM_Test_Connector_svnt</location>
- </artifact>
- <artifact xmi:id="QCTQM_Test_Connector_StubArtifact">
- <name>QC_QCTQM_Test_Connector_stub</name>
- <source/>
- <node/>
- <location>QC_QCTQM_Test_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/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/descriptors/QueryCondition_Library.xml b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/descriptors/QueryCondition_Library.xml
deleted file mode 100644
index a422b34b272..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/descriptors/QueryCondition_Library.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!-- -->
-
-<dds xmlns="http://www.omg.org/dds"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.omg.org/dds dds_qos.xsd">
- <qos_profile name="QueryConditionProfile">
- <datawriter_qos>
- <reliability>
- <kind>RELIABLE_RELIABILITY_QOS</kind>
- <max_blocking_time>
- <sec>10</sec>
- <nanosec>0</nanosec>
- </max_blocking_time>
- </reliability>
- <durability>
- <kind>TRANSIENT_DURABILITY_QOS</kind>
- </durability>
- <history>
- <kind>KEEP_ALL_HISTORY_QOS</kind>
- </history>
- </datawriter_qos>
- <!-- QoS used to configure the data reader created in the example code -->
- <datareader_qos>
- <reliability>
- <kind>RELIABLE_RELIABILITY_QOS</kind>
- </reliability>
- <history>
- <kind>KEEP_ALL_HISTORY_QOS</kind>
- </history>
- <durability>
- <kind>TRANSIENT_LOCAL_DURABILITY_QOS</kind>
- </durability>
- </datareader_qos>
- </qos_profile>
-</dds>
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/descriptors/USER_QOS_PROFILES.xml b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/descriptors/USER_QOS_PROFILES.xml
deleted file mode 100644
index b475d554b4d..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/descriptors/USER_QOS_PROFILES.xml
+++ /dev/null
@@ -1,67 +0,0 @@
-<?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 environment 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="QueryCondition_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="QueryConditionProfile" is_default_qos="false">
- <!-- QoS used to configure the data writer created in the example code -->
- <datawriter_qos>
- <reliability>
- <kind>RELIABLE_RELIABILITY_QOS</kind>
- <max_blocking_time>
- <sec>10</sec>
- <nanosec>0</nanosec>
- </max_blocking_time>
- </reliability>
- <durability>
- <kind>TRANSIENT_DURABILITY_QOS</kind>
- </durability>
- <history>
- <kind>KEEP_ALL_HISTORY_QOS</kind>
- </history>
- <protocol>
- <rtps_reliable_writer>
- <max_heartbeat_retries>10</max_heartbeat_retries>
- </rtps_reliable_writer>
- </protocol>
- </datawriter_qos>
- <!-- QoS used to configure the data reader created in the example code -->
- <datareader_qos>
- <reliability>
- <kind>RELIABLE_RELIABILITY_QOS</kind>
- </reliability>
- <history>
- <kind>KEEP_ALL_HISTORY_QOS</kind>
- </history>
- <durability>
- <kind>TRANSIENT_LOCAL_DURABILITY_QOS</kind>
- </durability>
- </datareader_qos>
- </qos_profile>
- </qos_library>
-</dds>
diff --git a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/descriptors/run_test.pl b/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/descriptors/run_test.pl
deleted file mode 100755
index b87434bef7e..00000000000
--- a/CIAO/connectors/dds4ccm/tests/QueryCondition/TwoQueriesMany/descriptors/run_test.pl
+++ /dev/null
@@ -1,243 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# -*- perl -*-
-
-use lib "$ENV{'ACE_ROOT'}/bin";
-use PerlACE::TestTarget;
-
-$CIAO_ROOT = "$ENV{'CIAO_ROOT'}";
-$TAO_ROOT = "$ENV{'TAO_ROOT'}";
-$DANCE_ROOT = "$ENV{'DANCE_ROOT'}";
-
-$daemons_running = 0;
-$em_running = 0;
-$ns_running = 0;
-
-$nr_daemon = 2;
-@ports = ( 60001, 60002 );
-@iorbases = ( "NodeApp1.ior", "NodeApp2.ior" );
-@iorfiles = 0;
-@nodenames = ( "SenderNode", "ReceiverNode" );
-
-# 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;
-$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 60 seconds to allow task to complete\n";
-sleep (60);
-
-# 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");
-$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;