Class JavaConfig
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.config.ConfigTestElement
org.apache.jmeter.protocol.java.config.JavaConfig
- All Implemented Interfaces:
- Serializable,- Cloneable,- ConfigElement,- Searchable,- org.apache.jmeter.testelement.TestElement
The 
JavaConfig class contains the configuration data necessary
 for the Java protocol. This data is used to configure a
 JavaSamplerClient instance to
 perform performance test samples.- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.jmeter.testelement.TestElementorg.apache.jmeter.testelement.TestElement.Companion
- 
Field SummaryFields inherited from class org.apache.jmeter.config.ConfigTestElementPASSWORD, USERNAMEFields inherited from interface org.apache.jmeter.testelement.TestElementCOMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddArgument(String name, String value) Adds an argument to the list of arguments for this JavaConfig object.Gets the arguments for this JavaConfig object.Gets the class name attribute of the JavaConfig object.voidRemoves all of the arguments associated with this JavaConfig object.voidsetArguments(Arguments args) Set all of the arguments for this JavaConfig object.voidsetClassname(String classname) Sets the class name attribute of the JavaConfig object.Methods inherited from class org.apache.jmeter.config.ConfigTestElementaddConfigElement, addTestElement, expectsModification, getProps, getSchemaMethods inherited from class org.apache.jmeter.testelement.AbstractTestElementaddPropertiesValues, addProperty, addProperty, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traversePropertyMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jmeter.config.ConfigElementcloneMethods inherited from interface org.apache.jmeter.testelement.TestElementget, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getPropertyOrNull, getString, removed, removeProperty, set, set, set, set, set, set, set, set, set
- 
Constructor Details- 
JavaConfigpublic JavaConfig()Constructor for the JavaConfig object
 
- 
- 
Method Details- 
setClassnameSets the class name attribute of the JavaConfig object. This is the class name of theJavaSamplerClientimplementation which will be used to execute the test.- Parameters:
- classname- the new classname value
 
- 
getClassnameGets the class name attribute of the JavaConfig object. This is the class name of theJavaSamplerClientimplementation which will be used to execute the test.- Returns:
- the classname value
 
- 
addArgumentAdds an argument to the list of arguments for this JavaConfig object. TheJavaSamplerClientimplementation can access these arguments through theJavaSamplerContext.- Parameters:
- name- the name of the argument to be added
- value- the value of the argument to be added
 
- 
removeArgumentspublic void removeArguments()Removes all of the arguments associated with this JavaConfig object.
- 
setArgumentsSet all of the arguments for this JavaConfig object. This will replace any previously added arguments. TheJavaSamplerClientimplementation can access these arguments through theJavaSamplerContext.- Parameters:
- args- the new arguments
 
- 
getArgumentsGets the arguments for this JavaConfig object. TheJavaSamplerClientimplementation can access these arguments through theJavaSamplerContext.- Returns:
- the arguments
 
 
-