mirror of https://github.com/apache/activemq.git
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:
parent
52602f0377
commit
11a2950e16
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue