Fixed error when starting perf test.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@412074 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Frederick G. Oconer 2006-06-06 10:50:31 +00:00
parent 52602f0377
commit 11a2950e16
2 changed files with 10 additions and 7 deletions

View File

@ -33,7 +33,7 @@ public class ConsumerMojo
extends AbstractMojo { extends AbstractMojo {
/** /**
* @parameter expression="${sampler.durable}" default-value="60000" * @parameter expression="${sampler.duration}" default-value="60000"
* @required * @required
*/ */
private String duration; private String duration;
@ -195,6 +195,8 @@ public class ConsumerMojo
public String[] createArgument() { public String[] createArgument() {
String[] options = new String[25]; String[] options = new String[25];
System.out.println("--- " + duration + " ----");
options[0] = "-Dsampler.duration=" + duration; // 1 min options[0] = "-Dsampler.duration=" + duration; // 1 min
options[1] = "-Dsampler.interval=" + interval; // 5 secs options[1] = "-Dsampler.interval=" + interval; // 5 secs
options[2] = "-Dsampler.rampUpTime=" + rampUpTime; // 10 secs options[2] = "-Dsampler.rampUpTime=" + rampUpTime; // 10 secs

View File

@ -31,7 +31,7 @@ public class ProducerMojo
extends AbstractMojo { extends AbstractMojo {
/** /**
* @parameter expression="${sampler.durable}" default-value="60000" * @parameter expression="${sampler.duration}" default-value="60000"
* @required * @required
*/ */
private String duration; private String duration;
@ -158,7 +158,8 @@ public class ProducerMojo
} }
public String[] createArgument() { public String[] createArgument() {
String[] options = new String[25];
String[] options = new String[20];
options[0] = "-Dsampler.duration=" + duration; // 1 min options[0] = "-Dsampler.duration=" + duration; // 1 min
options[1] = "-Dsampler.interval=" + interval; // 5 secs options[1] = "-Dsampler.interval=" + interval; // 5 secs
options[2] = "-Dsampler.rampUpTime=" + rampUpTime; // 10 secs options[2] = "-Dsampler.rampUpTime=" + rampUpTime; // 10 secs
@ -179,10 +180,10 @@ public class ProducerMojo
options[14] = "-Dfactory.brokerUrl="+brokerUrl; options[14] = "-Dfactory.brokerUrl="+brokerUrl;
options[15] = "-Dfactory.asyncSend="+asyncSend; options[15] = "-Dfactory.asyncSend="+asyncSend;
options[21] = "-DsysTest.numClients=" + numClients; options[16] = "-DsysTest.numClients=" + numClients;
options[22] = "-DsysTest.totalDests=" + totalDests; options[17] = "-DsysTest.totalDests=" + totalDests;
options[23] = "-DsysTest.destDistro=" + destDistro; options[18] = "-DsysTest.destDistro=" + destDistro;
options[24] = "-DsysTest.reportDirectory=" + reportDirectory; options[19] = "-DsysTest.reportDirectory=" + reportDirectory;
return options; return options;
} }