com.lazerycode.jmeter.configuration.JMeterProcessJVMSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of perfana-jmeter-maven-plugin Show documentation
Show all versions of perfana-jmeter-maven-plugin Show documentation
Forked from jmeter-maven-plugin, with Perfana integration.
package com.lazerycode.jmeter.configuration;
import java.util.ArrayList;
import java.util.List;
/**
* Used to detect which artifacts are JMeter plugins
*
* Configuration in pom.xml:
*
*
* {@code
*
*
* ${env.JAVA_HOME}/bin/java
* 512
* 1024
*
* foo
*
*
*
* }
*
*
* @author Mark Collin
*/
public class JMeterProcessJVMSettings {
private int xms = 512;
private int xmx = 512;
private String java = "java";
private List arguments = new ArrayList<>();
/**
* Empty constructor
*/
public JMeterProcessJVMSettings() {
super();
}
/**
* Copy constructor
* @param source {@link JMeterProcessJVMSettings}
*/
public JMeterProcessJVMSettings(JMeterProcessJVMSettings source) {
this.xmx = source.xms;
this.xms = source.xms;
this.java = source.java;
this.arguments = new ArrayList<>();
this.arguments.addAll(source.arguments);
}
public int getXms() {
return xms;
}
public void setXms(int xms) {
this.xms = xms;
}
public int getXmx() {
return xmx;
}
public void setXmx(int xmx) {
this.xmx = xmx;
}
public List getArguments() {
return arguments;
}
public void setArguments(List arguments) {
this.arguments = arguments;
}
public void setJavaRuntime(String java) {
this.java = java;
}
public String getJavaRuntime() {
return this.java;
}
}