summaryrefslogtreecommitdiff
path: root/java/demo/Ice/throughput/ThroughputI.java
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2007-06-11 15:59:31 +0800
committerMatthew Newhook <matthew@zeroc.com>2007-06-11 15:59:31 +0800
commitcec251ca44005882f610ba110b6886dc2112761b (patch)
tree121f94ad141c71838f92e0745819847e31a13eb5 /java/demo/Ice/throughput/ThroughputI.java
parentMerged Bernards change for http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id... (diff)
downloadice-cec251ca44005882f610ba110b6886dc2112761b.tar.bz2
ice-cec251ca44005882f610ba110b6886dc2112761b.tar.xz
ice-cec251ca44005882f610ba110b6886dc2112761b.zip
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=2039
Diffstat (limited to 'java/demo/Ice/throughput/ThroughputI.java')
-rw-r--r--java/demo/Ice/throughput/ThroughputI.java19
1 files changed, 16 insertions, 3 deletions
diff --git a/java/demo/Ice/throughput/ThroughputI.java b/java/demo/Ice/throughput/ThroughputI.java
index 5508620ee41..ca542e31764 100644
--- a/java/demo/Ice/throughput/ThroughputI.java
+++ b/java/demo/Ice/throughput/ThroughputI.java
@@ -14,8 +14,6 @@ public final class ThroughputI extends _ThroughputDisp
public
ThroughputI()
{
- _warmup = true;
-
_byteSeq = new byte[ByteSeqSize.value];
_stringSeq = new String[StringSeqSize.value];
@@ -42,10 +40,24 @@ public final class ThroughputI extends _ThroughputDisp
}
}
+ public boolean
+ needsWarmup(Ice.Current current)
+ {
+ _warmup = false;
+ return _needsWarmup;
+ }
+
+ public void
+ startWarmup(Ice.Current current)
+ {
+ _warmup = true;
+ }
+
public void
endWarmup(Ice.Current current)
{
_warmup = false;
+ _needsWarmup = false;
}
public void
@@ -160,5 +172,6 @@ public final class ThroughputI extends _ThroughputDisp
private StringDouble[] _emptyStructSeq = new StringDouble[0];
private Fixed[] _emptyFixedSeq = new Fixed[0];
- private boolean _warmup;
+ private boolean _needsWarmup = true;
+ private boolean _warmup = false;
}