summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/Sequence_Latency/AMI/Test.idl
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/performance-tests/Sequence_Latency/AMI/Test.idl')
-rw-r--r--TAO/performance-tests/Sequence_Latency/AMI/Test.idl49
1 files changed, 49 insertions, 0 deletions
diff --git a/TAO/performance-tests/Sequence_Latency/AMI/Test.idl b/TAO/performance-tests/Sequence_Latency/AMI/Test.idl
new file mode 100644
index 00000000000..8589f1e7a79
--- /dev/null
+++ b/TAO/performance-tests/Sequence_Latency/AMI/Test.idl
@@ -0,0 +1,49 @@
+//
+// $Id$
+//
+
+/// A simple module to avoid namespace pollution
+module Test
+{
+ /// Use a timestamp to measure the roundtrip delay
+ typedef unsigned long long Timestamp;
+
+ typedef sequence<octet> octet_load;
+ typedef sequence<long> long_load;
+ typedef sequence<char> char_load;
+ typedef sequence<short> short_load;
+ typedef sequence<long long> longlong_load;
+ typedef sequence<double> double_load;
+
+ /// Measure roundtrip delay
+ interface Roundtrip
+ {
+ /// A simple method to measure roundtrip delays
+ /**
+ * The operation simply returns one of 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_octet_method (in octet_load ol,
+ in Timestamp send_time);
+
+ Timestamp test_long_method (in long_load ol,
+ in Timestamp send_time);
+
+ Timestamp test_short_method (in short_load ol,
+ in Timestamp send_time);
+
+ Timestamp test_char_method (in char_load ol,
+ in Timestamp send_time);
+
+ Timestamp test_longlong_method (in longlong_load ol,
+ in Timestamp send_time);
+
+ Timestamp test_double_method (in double_load ol,
+ in Timestamp send_time);
+
+ /// Shutdown the ORB
+ void shutdown ();
+ };
+};