diff options
author | Martin Ritchie <ritchiem@apache.org> | 2007-06-27 14:23:52 +0000 |
---|---|---|
committer | Martin Ritchie <ritchiem@apache.org> | 2007-06-27 14:23:52 +0000 |
commit | e240a64c89c59bfd4154f3612cbef7a3265edaee (patch) | |
tree | 162872cb06e0e6fd7acb2e61b021066aa6d54982 | |
parent | c54fed01974c12730ca334303185be7806d99bc5 (diff) | |
download | qpid-python-e240a64c89c59bfd4154f3612cbef7a3265edaee.tar.gz |
Allowed more of the constants to be set via system properties.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@551175 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | java/integrationtests/src/main/java/org/apache/qpid/sustained/SustainedTestClient.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/java/integrationtests/src/main/java/org/apache/qpid/sustained/SustainedTestClient.java b/java/integrationtests/src/main/java/org/apache/qpid/sustained/SustainedTestClient.java index 6f2089290a..79707bafa5 100644 --- a/java/integrationtests/src/main/java/org/apache/qpid/sustained/SustainedTestClient.java +++ b/java/integrationtests/src/main/java/org/apache/qpid/sustained/SustainedTestClient.java @@ -425,7 +425,7 @@ public class SustainedTestClient extends TestCase3BasicPubSub implements Excepti class SustainedRateAdapter implements MessageListener, Runnable { private SustainedTestClient _client; - private long _batchVariance = 3; //no. batches to allow drifting + private long _batchVariance = Integer.getInteger("batchVariance", 3); //no. batches to allow drifting private long _timeVariance = TEN_MILLI_SEC * 5; // no. nanos between send and report delay (10ms) private volatile long _delay; //in nanos private long _sent; @@ -434,9 +434,11 @@ public class SustainedTestClient extends TestCase3BasicPubSub implements Excepti private static final long NO_CLIENT_SLEEP = 1000; // 1s private volatile boolean NO_CLIENTS = true; private int _delayShifting; - private static final int REPORTS_WITHOUT_CHANGE = 5; + private final int REPORTS_WITHOUT_CHANGE = Integer.getInteger("stableReportCount", 5); private boolean _warmedup = false; private static final long EXPECTED_TIME_PER_BATCH = 100000L; + private int _warmUpBatches = Integer.getInteger("warmUpBatches", 10); + SustainedRateAdapter(SustainedTestClient client) { @@ -493,8 +495,6 @@ public class SustainedTestClient extends TestCase3BasicPubSub implements Excepti CountDownLatch _warmup = new CountDownLatch(1); - int _warmUpBatches = Integer.getInteger("warmUpBatches", 10); - int _numBatches = 10000; // long[] _timings = new long[_numBatches]; |