diff options
author | arvindk <arvindk@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-08-07 00:04:20 +0000 |
---|---|---|
committer | arvindk <arvindk@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-08-07 00:04:20 +0000 |
commit | ba16266283cfc3e40d25348937ec111be7bfcc02 (patch) | |
tree | 5d40221c46e4e4d88bf7d7351f7fd1747e3e8604 | |
parent | 5ab259b6c7dd070f28c0093588762ab1a1a100e4 (diff) | |
download | ATCD-ba16266283cfc3e40d25348937ec111be7bfcc02.tar.gz |
ChangeLogTag: Wed Aug 6 18:39:32 CDT 2003 Arvind S. Krishna <arvindk@dre.vanderbilt.edu>
-rw-r--r-- | TAO/performance-tests/Latency/Collocation/Client_Task.cpp | 10 | ||||
-rw-r--r-- | TAO/performance-tests/Latency/Collocation/Test.idl | 26 | ||||
-rw-r--r-- | TAO/performance-tests/Latency/Collocation/svc.conf | 6 |
3 files changed, 37 insertions, 5 deletions
diff --git a/TAO/performance-tests/Latency/Collocation/Client_Task.cpp b/TAO/performance-tests/Latency/Collocation/Client_Task.cpp index 32bcb223503..84ab0cae4ec 100644 --- a/TAO/performance-tests/Latency/Collocation/Client_Task.cpp +++ b/TAO/performance-tests/Latency/Collocation/Client_Task.cpp @@ -11,8 +11,8 @@ Client_Task::Client_Task (const char *ior, int iterations, - CORBA::ORB_ptr corb, - ACE_Thread_Manager *thr_mgr) + CORBA::ORB_ptr corb, + ACE_Thread_Manager *thr_mgr) : ACE_Task_Base (thr_mgr), input_ (ior), niterations (iterations), @@ -31,12 +31,12 @@ Client_Task::svc (void) ior += input_; CORBA::Object_var tmp = - this->corb_->string_to_object (ior.c_str() - ACE_ENV_ARG_PARAMETER); + this->corb_->string_to_object (ior.c_str() + ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; Test::Roundtrip_var rt = - Test::Roundtrip::_narrow(tmp.in () ACE_ENV_ARG_PARAMETER); + Test::Roundtrip::_narrow(tmp.in () ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; if (CORBA::is_nil (rt.in ())) diff --git a/TAO/performance-tests/Latency/Collocation/Test.idl b/TAO/performance-tests/Latency/Collocation/Test.idl new file mode 100644 index 00000000000..871af8fd7e3 --- /dev/null +++ b/TAO/performance-tests/Latency/Collocation/Test.idl @@ -0,0 +1,26 @@ +// +// $Id$ +// + +/// A simple module to avoid namespace pollution +module Test +{ + /// Use a timestamp to measure the roundtrip delay + typedef unsigned long long Timestamp; + + /// Measure roundtrip delay + interface Roundtrip + { + /// A simple method to measure roundtrip delays + /** + * The operation simply returns its argument, this is used in AMI + * and deferred synchronous tests to measure the roundtrip delay + * without the need for a different reply handler for each + * request. + */ + Timestamp test_method (in Timestamp send_time); + + /// Shutdown the ORB + void shutdown (); + }; +}; diff --git a/TAO/performance-tests/Latency/Collocation/svc.conf b/TAO/performance-tests/Latency/Collocation/svc.conf new file mode 100644 index 00000000000..9e0c5ed01ed --- /dev/null +++ b/TAO/performance-tests/Latency/Collocation/svc.conf @@ -0,0 +1,6 @@ +# +# $Id$ +# +static Advanced_Resource_Factory "-ORBReactorMaskSignals 0 -ORBInputCDRAllocator null -ORBReactorType select_st -ORBConnectionCacheLock null" +static Server_Strategy_Factory "-ORBPOALock null -ORBAllowReactivationOfSystemids 0" +static Client_Strategy_Factory "-ORBTransportMuxStrategy EXCLUSIVE -ORBProfileLock null -ORBClientConnectionHandler RW" |