summaryrefslogtreecommitdiff
path: root/java/demo/Ice/throughput/ThroughputI.java
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2003-04-25 19:59:14 +0000
committerMark Spruiell <mes@zeroc.com>2003-04-25 19:59:14 +0000
commit95a9deb459eada060fbeb1186c53ba93d94580dc (patch)
tree59e6312d24668ae41333a2541fd48ff3796f4137 /java/demo/Ice/throughput/ThroughputI.java
parentminor fix for const problem (diff)
downloadice-95a9deb459eada060fbeb1186c53ba93d94580dc.tar.bz2
ice-95a9deb459eada060fbeb1186c53ba93d94580dc.tar.xz
ice-95a9deb459eada060fbeb1186c53ba93d94580dc.zip
porting throughput demo
Diffstat (limited to 'java/demo/Ice/throughput/ThroughputI.java')
-rw-r--r--java/demo/Ice/throughput/ThroughputI.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/java/demo/Ice/throughput/ThroughputI.java b/java/demo/Ice/throughput/ThroughputI.java
new file mode 100644
index 00000000000..c2f26cf4830
--- /dev/null
+++ b/java/demo/Ice/throughput/ThroughputI.java
@@ -0,0 +1,41 @@
+// **********************************************************************
+//
+// Copyright (c) 2003
+// ZeroC, Inc.
+// Billerica, MA, USA
+//
+// All Rights Reserved.
+//
+// Ice is free software; you can redistribute it and/or modify it under
+// the terms of the GNU General Public License version 2 as published by
+// the Free Software Foundation.
+//
+// **********************************************************************
+
+public final class ThroughputI extends _ThroughputDisp
+{
+ public
+ ThroughputI()
+ {
+ _seq = new byte[seqSize.value];
+ }
+
+ public byte[]
+ echoByteSeq(byte[] seq, Ice.Current current)
+ {
+ return seq;
+ }
+
+ public byte[]
+ recvByteSeq(Ice.Current current)
+ {
+ return _seq;
+ }
+
+ public void
+ sendByteSeq(byte[] seq, Ice.Current current)
+ {
+ }
+
+ private byte[] _seq;
+}