diff options
author | Michi Henning <michi@zeroc.com> | 2005-04-14 03:13:16 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2005-04-14 03:13:16 +0000 |
commit | f3057e42096f1dc8110ae4f498528ecea02b6ea6 (patch) | |
tree | 30666ca629ecc94523b1c546b89514dcd82d05ed /java/demo/Ice/throughput/ThroughputI.java | |
parent | fix for revision 1.34 (diff) | |
download | ice-f3057e42096f1dc8110ae4f498528ecea02b6ea6.tar.bz2 ice-f3057e42096f1dc8110ae4f498528ecea02b6ea6.tar.xz ice-f3057e42096f1dc8110ae4f498528ecea02b6ea6.zip |
Added fixed-length struct sequence to throughput demo.
Diffstat (limited to 'java/demo/Ice/throughput/ThroughputI.java')
-rw-r--r-- | java/demo/Ice/throughput/ThroughputI.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/java/demo/Ice/throughput/ThroughputI.java b/java/demo/Ice/throughput/ThroughputI.java index d31b91fdac1..d9af6d59ae6 100644 --- a/java/demo/Ice/throughput/ThroughputI.java +++ b/java/demo/Ice/throughput/ThroughputI.java @@ -29,6 +29,15 @@ public final class ThroughputI extends _ThroughputDisp _structSeq[i].s = "hello"; _structSeq[i].d = 3.14; } + + _fixedSeq = new Fixed[FixedSeqSize.value]; + for(int i = 0; i < FixedSeqSize.value; ++i) + { + _fixedSeq[i] = new Fixed(); + _fixedSeq[i].i = 0; + _fixedSeq[i].j = 0; + _fixedSeq[i].d = 0; + } } public void @@ -83,6 +92,23 @@ public final class ThroughputI extends _ThroughputDisp } public void + sendFixedSeq(Fixed[] seq, Ice.Current current) + { + } + + public Fixed[] + recvFixedSeq(Ice.Current current) + { + return _fixedSeq; + } + + public Fixed[] + echoFixedSeq(Fixed[] seq, Ice.Current current) + { + return seq; + } + + public void shutdown(Ice.Current current) { current.adapter.getCommunicator().shutdown(); @@ -91,4 +117,5 @@ public final class ThroughputI extends _ThroughputDisp private byte[] _byteSeq; private String[] _stringSeq; private StringDouble[] _structSeq; + private Fixed[] _fixedSeq; } |