mirror of https://github.com/apache/activemq.git
Merge branch 'perf-tool-broker-gplus-thread' into trunk
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1466499 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
32042a5b8b
commit
e33e994f91
|
@ -29,79 +29,79 @@ import org.apache.maven.plugin.MojoExecutionException;
|
|||
public class MemtestMojo extends AbstractMojo {
|
||||
|
||||
/**
|
||||
* @parameter property="${url}
|
||||
* @parameter property="url"
|
||||
*/
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* @parameter property="${topic}" default-value="true"
|
||||
* @parameter property="topic" default-value="true"
|
||||
* @required
|
||||
*/
|
||||
private String topic;
|
||||
|
||||
/**
|
||||
* @parameter property="${connectionCheckpointSize}" default-value="-1"
|
||||
* @parameter property="connectionCheckpointSize" default-value="-1"
|
||||
* @required
|
||||
*/
|
||||
private String connectionCheckpointSize;
|
||||
|
||||
/**
|
||||
* @parameter property="${durable}" default-value="false"
|
||||
* @parameter property="durable" default-value="false"
|
||||
* @required
|
||||
*/
|
||||
private String durable;
|
||||
|
||||
/**
|
||||
* @parameter property="${producerCount}" default-value="1"
|
||||
* @parameter property="producerCount" default-value="1"
|
||||
* @required
|
||||
*/
|
||||
private String producerCount;
|
||||
|
||||
/**
|
||||
* @parameter property="${prefetchSize}" default-value="-1"
|
||||
* @parameter property="prefetchSize" default-value="-1"
|
||||
* @required
|
||||
*/
|
||||
private String prefetchSize;
|
||||
|
||||
/**
|
||||
* @parameter property="${consumerCount}" default-value="1"
|
||||
* @parameter property="consumerCount" default-value="1"
|
||||
* @required
|
||||
*/
|
||||
private String consumerCount;
|
||||
|
||||
/**
|
||||
* @parameter property="${messageCount}" default-value="100000"
|
||||
* @parameter property="messageCount" default-value="100000"
|
||||
* @required
|
||||
*/
|
||||
private String messageCount;
|
||||
|
||||
/**
|
||||
* @parameter property="${messageSize}" default-value="10240"
|
||||
* @parameter property="messageSize" default-value="10240"
|
||||
* @required
|
||||
*/
|
||||
private String messageSize;
|
||||
|
||||
/**
|
||||
* @parameter property="${checkpointInterval}" default-value="2"
|
||||
* @parameter property="checkpointInterval" default-value="2"
|
||||
* @required
|
||||
*/
|
||||
private String checkpointInterval;
|
||||
|
||||
/**
|
||||
* @parameter property="${destinationName}" default-value="FOO.BAR"
|
||||
* @parameter property="destinationName" default-value="FOO.BAR"
|
||||
* @required
|
||||
*/
|
||||
private String destinationName;
|
||||
|
||||
/**
|
||||
* @parameter property="${reportName}"
|
||||
* @parameter property="$reportName"
|
||||
* default-value="activemq-memory-usage-report"
|
||||
* @required
|
||||
*/
|
||||
private String reportName;
|
||||
|
||||
/**
|
||||
* @parameter property="${reportDirectory}"
|
||||
* @parameter property="reportDirectory"
|
||||
* default-value="${project.build.directory}/test-memtest"
|
||||
* @required
|
||||
*/
|
||||
|
|
|
@ -38,6 +38,10 @@
|
|||
<groupId>org.apache.activemq</groupId>
|
||||
<artifactId>activemq-broker</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.activemq</groupId>
|
||||
<artifactId>activemq-spring</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.activemq</groupId>
|
||||
<artifactId>activemq-console</artifactId>
|
||||
|
|
|
@ -37,7 +37,7 @@ public class ServerMojo extends AbstractMojo {
|
|||
/**
|
||||
* Location of the output directory. Defaults to target.
|
||||
*
|
||||
* @parameter property="${project.build.directory}"
|
||||
* @parameter property="project.build.directory"
|
||||
* @required
|
||||
*/
|
||||
private File outputDirectory;
|
||||
|
@ -45,7 +45,7 @@ public class ServerMojo extends AbstractMojo {
|
|||
/**
|
||||
* Location of the predefined config files.
|
||||
*
|
||||
* @parameter property="${configDirectory}"
|
||||
* @parameter property="configDirectory"
|
||||
* default-value="${basedir}/src/main/resources/broker-conf"
|
||||
* @required
|
||||
*/
|
||||
|
@ -54,7 +54,7 @@ public class ServerMojo extends AbstractMojo {
|
|||
/**
|
||||
* Type of activemq configuration to use. This is also the filename used.
|
||||
*
|
||||
* @parameter property="${configType}" default-value="activemq"
|
||||
* @parameter property="configType" default-value="activemq"
|
||||
* @required
|
||||
*/
|
||||
private String configType;
|
||||
|
@ -62,14 +62,14 @@ public class ServerMojo extends AbstractMojo {
|
|||
/**
|
||||
* Location of activemq config file other those found in resources/config.
|
||||
*
|
||||
* @parameter property="${configFile}"
|
||||
* @parameter property="configFile"
|
||||
*/
|
||||
private File configFile;
|
||||
|
||||
/**
|
||||
* Broker URL.
|
||||
*
|
||||
* @parameter property="${url}"
|
||||
* @parameter property="url"
|
||||
*/
|
||||
private String url;
|
||||
|
||||
|
@ -105,6 +105,7 @@ public class ServerMojo extends AbstractMojo {
|
|||
args[1] = "xbean:" + (config.toURI()).toString();
|
||||
}
|
||||
|
||||
getLog().info("Starting broker with configuration in: " + args[1]);
|
||||
Main.main(args);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue