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
JavaConfig
class 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 String
USERNAME
public final static String
PASSWORD
public transient JMeterContext
threadContext
public transient String
threadName
public final static TestElement.Companion
Companion
public final static String
NAME
public final static String
GUI_CLASS
public final static String
ENABLED
public final static String
TEST_CLASS
public final static String
COMMENTS
-
Constructor Summary
Constructors Constructor Description JavaConfig()
Constructor for the JavaConfig object
-
Method Summary
Modifier and Type Method Description void
setClassname(String classname)
Sets the class name attribute of the JavaConfig object. String
getClassname()
Gets the class name attribute of the JavaConfig object. void
addArgument(String name, String value)
Adds an argument to the list of arguments for this JavaConfig object. void
removeArguments()
Removes all of the arguments associated with this JavaConfig object. void
setArguments(Arguments args)
Set all of the arguments for this JavaConfig object. Arguments
getArguments()
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.
- Returns:
the classname value
-
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.
- Returns:
the arguments
-
-
-
-