summaryrefslogtreecommitdiff
path: root/CIAO/DAnCE/tests/NodeApplicationTest/RoundTrip_exec.cpp
diff options
context:
space:
mode:
authorAbdullah Sowayan <sowayan@users.noreply.github.com>2007-03-18 22:23:37 +0000
committerAbdullah Sowayan <sowayan@users.noreply.github.com>2007-03-18 22:23:37 +0000
commit06a34455bd98b1379cc69bbc5b2cf085e0fc0d9b (patch)
tree8815ce3b3a85c3c4285429295f338e00ea4497f4 /CIAO/DAnCE/tests/NodeApplicationTest/RoundTrip_exec.cpp
parentd66fcc9b4aaec8e88eeb83fc578fdf8a3cc963de (diff)
downloadATCD-06a34455bd98b1379cc69bbc5b2cf085e0fc0d9b.tar.gz
Diffstat (limited to 'CIAO/DAnCE/tests/NodeApplicationTest/RoundTrip_exec.cpp')
-rw-r--r--CIAO/DAnCE/tests/NodeApplicationTest/RoundTrip_exec.cpp131
1 files changed, 131 insertions, 0 deletions
diff --git a/CIAO/DAnCE/tests/NodeApplicationTest/RoundTrip_exec.cpp b/CIAO/DAnCE/tests/NodeApplicationTest/RoundTrip_exec.cpp
new file mode 100644
index 00000000000..044e6acc8af
--- /dev/null
+++ b/CIAO/DAnCE/tests/NodeApplicationTest/RoundTrip_exec.cpp
@@ -0,0 +1,131 @@
+// $Id$
+
+#include "RoundTrip_exec.h"
+#include "CIAO_common.h"
+
+//-- ACE Scheduling Params
+#include "ace/OS_NS_errno.h"
+
+//=================================================================
+
+namespace CIDL_RoundTrip_Impl
+{
+ RoundTrip_exec_i::RoundTrip_exec_i ()
+ {
+
+ }
+
+ RoundTrip_exec_i::~RoundTrip_exec_i ()
+ {
+ }
+
+ NodeAppTest::CCM_LatencyTest_ptr
+ RoundTrip_exec_i::get_facet_1 ()
+ {
+ return new LatencyTest_Impl;
+ }
+
+ NodeAppTest::CCM_LatencyTest_ptr
+ RoundTrip_exec_i::get_facet_2 ()
+ {
+ return new LatencyTest_Impl;
+ }
+
+ CORBA::Long
+ RoundTrip_exec_i::cube_long (CORBA::Long data)
+ {
+ return data * data * data;
+ }
+
+ // Operations from Components::SessionComponent
+ void
+ RoundTrip_exec_i::set_session_context (Components::SessionContext_ptr)
+ {
+ if (CIAO::debug_level () > 0)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "RoundTrip_exec_i::set_session_context\n"));
+ }
+ }
+
+ void
+ RoundTrip_exec_i::ccm_activate ()
+ {
+ if (CIAO::debug_level () > 0)
+ {
+ ACE_DEBUG ((LM_DEBUG, "RoundTrip_exec_i::ccm_activate\n"));
+ }
+
+ }
+
+ void
+ RoundTrip_exec_i::ccm_passivate ()
+ {
+ if (CIAO::debug_level () > 0)
+ {
+ ACE_DEBUG ((LM_DEBUG, "RoundTrip_exec_i::ccm_passivate\n"));
+ }
+ }
+
+ void
+ RoundTrip_exec_i::ccm_remove ()
+ {
+ if (CIAO::debug_level () > 0)
+ {
+ ACE_DEBUG ((LM_DEBUG, "RoundTrip_exec_i::ccm_remove\n"));
+ }
+ }
+
+ void
+ RoundTrip_exec_i::ciao_preactivate ()
+ {
+ if (CIAO::debug_level () > 0)
+ {
+ ACE_DEBUG ((LM_DEBUG, "RoundTrip_exec_i::ciao_preactivate\n"));
+ }
+
+ }
+
+ void
+ RoundTrip_exec_i::ciao_postactivate ()
+ {
+ if (CIAO::debug_level () > 0)
+ {
+ ACE_DEBUG ((LM_DEBUG, "RoundTrip_exec_i::ciao_postactivate\n"));
+ }
+ }
+
+ RoundTripHome_exec_i::RoundTripHome_exec_i ()
+ {
+ }
+
+ RoundTripHome_exec_i::~RoundTripHome_exec_i ()
+ {
+ }
+
+ ::Components::EnterpriseComponent_ptr
+ RoundTripHome_exec_i::create ()
+ {
+ return new RoundTrip_exec_i;
+ }
+
+ // Implementation for the probided inferface.
+ CORBA::Long
+ LatencyTest_Impl::cube_long (CORBA::Long data)
+ {
+ return data*data*data;
+ }
+
+ extern "C" NODEAPPTEST_ROUNDTRIP_EXEC_Export
+ ::Components::HomeExecutorBase_ptr
+ createRoundTripHome_Impl (void)
+ {
+ if (CIAO::debug_level () > 0)
+ {
+ ACE_DEBUG ((LM_DEBUG, "Creating Round_trip impl\n"));
+ }
+
+ return new RoundTripHome_exec_i ();
+ }
+}
+