summaryrefslogtreecommitdiff
path: root/java/demo/Ice/throughput/ThroughputI.java
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2015-03-18 12:58:16 -0230
committerMatthew Newhook <matthew@zeroc.com>2015-03-18 12:58:16 -0230
commit9b7668c7c92cf9cb311fe444cdddb489cd2a219d (patch)
tree5016567c58c81f5654e9d01935e199c6bf4761d2 /java/demo/Ice/throughput/ThroughputI.java
parentVS add-in & build updates: (diff)
downloadice-9b7668c7c92cf9cb311fe444cdddb489cd2a219d.tar.bz2
ice-9b7668c7c92cf9cb311fe444cdddb489cd2a219d.tar.xz
ice-9b7668c7c92cf9cb311fe444cdddb489cd2a219d.zip
Removed demos.
Moved demoscript to distribution.
Diffstat (limited to 'java/demo/Ice/throughput/ThroughputI.java')
-rw-r--r--java/demo/Ice/throughput/ThroughputI.java193
1 files changed, 0 insertions, 193 deletions
diff --git a/java/demo/Ice/throughput/ThroughputI.java b/java/demo/Ice/throughput/ThroughputI.java
deleted file mode 100644
index f4c26477d4c..00000000000
--- a/java/demo/Ice/throughput/ThroughputI.java
+++ /dev/null
@@ -1,193 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved.
-//
-// This copy of Ice is licensed to you under the terms described in the
-// ICE_LICENSE file included in this distribution.
-//
-// **********************************************************************
-
-import Demo.*;
-
-public final class ThroughputI extends _ThroughputDisp
-{
- public
- ThroughputI()
- {
- _byteSeq = new byte[ByteSeqSize.value];
-
- _stringSeq = new String[StringSeqSize.value];
- for(int i = 0; i < StringSeqSize.value; ++i)
- {
- _stringSeq[i] = "hello";
- }
-
- _structSeq = new StringDouble[StringDoubleSeqSize.value];
- for(int i = 0; i < StringDoubleSeqSize.value; ++i)
- {
- _structSeq[i] = new StringDouble();
- _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;
- }
- }
-
- @Override
- public boolean
- needsWarmup(Ice.Current current)
- {
- _warmup = false;
- return _needsWarmup;
- }
-
- @Override
- public void
- startWarmup(Ice.Current current)
- {
- _warmup = true;
- }
-
- @Override
- public void
- endWarmup(Ice.Current current)
- {
- _warmup = false;
- _needsWarmup = false;
- }
-
- @Override
- public void
- sendByteSeq(byte[] seq, Ice.Current current)
- {
- }
-
- @Override
- public byte[]
- recvByteSeq(Ice.Current current)
- {
- if(_warmup)
- {
- return _emptyByteSeq;
- }
- else
- {
- return _byteSeq;
- }
- }
-
- @Override
- public byte[]
- echoByteSeq(byte[] seq, Ice.Current current)
- {
- return seq;
- }
-
- @Override
- public void
- sendStringSeq(String[] seq, Ice.Current current)
- {
- }
-
- @Override
- public String[]
- recvStringSeq(Ice.Current current)
- {
- if(_warmup)
- {
- return _emptyStringSeq;
- }
- else
- {
- return _stringSeq;
- }
- }
-
- @Override
- public String[]
- echoStringSeq(String[] seq, Ice.Current current)
- {
- return seq;
- }
-
- @Override
- public void
- sendStructSeq(StringDouble[] seq, Ice.Current current)
- {
- }
-
- @Override
- public StringDouble[]
- recvStructSeq(Ice.Current current)
- {
- if(_warmup)
- {
- return _emptyStructSeq;
- }
- else
- {
- return _structSeq;
- }
- }
-
- @Override
- public StringDouble[]
- echoStructSeq(StringDouble[] seq, Ice.Current current)
- {
- return seq;
- }
-
- @Override
- public void
- sendFixedSeq(Fixed[] seq, Ice.Current current)
- {
- }
-
- @Override
- public Fixed[]
- recvFixedSeq(Ice.Current current)
- {
- if(_warmup)
- {
- return _emptyFixedSeq;
- }
- else
- {
- return _fixedSeq;
- }
- }
-
- @Override
- public Fixed[]
- echoFixedSeq(Fixed[] seq, Ice.Current current)
- {
- return seq;
- }
-
- @Override
- public void
- shutdown(Ice.Current current)
- {
- current.adapter.getCommunicator().shutdown();
- }
-
- private byte[] _byteSeq;
- private String[] _stringSeq;
- private StringDouble[] _structSeq;
- private Fixed[] _fixedSeq;
-
- private byte[] _emptyByteSeq = new byte[0];
- private String[] _emptyStringSeq = new String[0];
- private StringDouble[] _emptyStructSeq = new StringDouble[0];
- private Fixed[] _emptyFixedSeq = new Fixed[0];
-
- private boolean _needsWarmup = true;
- private boolean _warmup = false;
-}