Class JavaConfig
-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Cloneable,org.apache.jmeter.config.ConfigElement,org.apache.jmeter.gui.Searchable,org.apache.jmeter.testelement.TestElement
public class JavaConfig extends ConfigTestElement implements Serializable
The
JavaConfigclass contains the configuration data necessary for the Java protocol. This data is used to configure a org.apache.jmeter.protocol.java.sampler.JavaSamplerClient instance to perform performance test samples.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringUSERNAMEpublic final static StringPASSWORDpublic transient JMeterContextthreadContextpublic transient StringthreadNamepublic final static TestElement.CompanionCompanionpublic final static StringNAMEpublic final static StringGUI_CLASSpublic final static StringENABLEDpublic final static StringTEST_CLASSpublic final static StringCOMMENTS
-
Constructor Summary
Constructors Constructor Description JavaConfig()Constructor for the JavaConfig object
-
Method Summary
Modifier and Type Method Description voidsetClassname(String classname)Sets the class name attribute of the JavaConfig object. StringgetClassname()Gets the class name attribute of the JavaConfig object. voidaddArgument(String name, String value)Adds an argument to the list of arguments for this JavaConfig object. voidremoveArguments()Removes all of the arguments associated with this JavaConfig object. voidsetArguments(Arguments args)Set all of the arguments for this JavaConfig object. ArgumentsgetArguments()Gets the arguments for this JavaConfig object. -
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
canRemove, clear, clearTestElementChildren, clone, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse -
Methods inherited from class org.apache.jmeter.config.ConfigTestElement
addConfigElement, addTestElement, expectsModification, getProps, getSchema -
Methods inherited from class org.apache.jmeter.testelement.TestElement
get, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getProps, getSchema, getString, removed, set -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setClassname
void setClassname(String classname)
Sets the class name attribute of the JavaConfig object. This is the class name of the org.apache.jmeter.protocol.java.sampler.JavaSamplerClient implementation which will be used to execute the test.
- Parameters:
classname- the new classname value
-
getClassname
String getClassname()
Gets the class name attribute of the JavaConfig object. This is the class name of the org.apache.jmeter.protocol.java.sampler.JavaSamplerClient implementation which will be used to execute the test.
-
addArgument
void addArgument(String name, String value)
Adds an argument to the list of arguments for this JavaConfig object. The org.apache.jmeter.protocol.java.sampler.JavaSamplerClient implementation can access these arguments through the org.apache.jmeter.protocol.java.sampler.JavaSamplerContext.
- Parameters:
name- the name of the argument to be addedvalue- the value of the argument to be added
-
removeArguments
void removeArguments()
Removes all of the arguments associated with this JavaConfig object.
-
setArguments
void setArguments(Arguments args)
Set all of the arguments for this JavaConfig object. This will replace any previously added arguments. The org.apache.jmeter.protocol.java.sampler.JavaSamplerClient implementation can access these arguments through the org.apache.jmeter.protocol.java.sampler.JavaSamplerContext.
- Parameters:
args- the new arguments
-
getArguments
Arguments getArguments()
Gets the arguments for this JavaConfig object. The org.apache.jmeter.protocol.java.sampler.JavaSamplerClient implementation can access these arguments through the org.apache.jmeter.protocol.java.sampler.JavaSamplerContext.
-
-
-
-