summaryrefslogtreecommitdiff
path: root/CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/connectors/dds4ccm/tests/QueryCondition/ReadGet')
-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
18 files changed, 0 insertions, 3188 deletions
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;