Class JMSProperties
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.protocol.jms.sampler.JMSProperties
- All Implemented Interfaces:
Serializable, Cloneable, Searchable, TestElement
A set of JMSProperty objects.
- Since:
- 2.11
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the property used to store the JmsProperties.Fields inherited from interface TestElement
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddJmsProperty(String name, String value) Add a new JMSProperty with the given name and value.voidaddJmsProperty(String name, String value, String type) Add a new argument with the given name, value, and metadata.voidAdd a new argument.voidclear()Clear the JmsProperties.getJmsProperty(int row) Get a single JMSProperty.intGet the number of JmsProperties in the list.Get the JmsProperties as a Map.Get the JmsPropertiess.iterator()Get a PropertyIterator of the JmsProperties.voidRemove all JmsProperties from the list.voidremoveJmsProperty(int row) Remove the specified argument from the list.voidremoveJmsProperty(String argName) Remove the argument with the specified name.voidRemove the specified argument from the list.voidsetProperties(List<JMSProperty> jmsProperties) Set the list of JmsProperties.toString()Create a string representation of the JmsProperties.Methods inherited from class AbstractTestElement
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, 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, traverseProperty
-
Field Details
-
JMS_PROPERTIES
The name of the property used to store the JmsProperties.- See Also:
-
-
Constructor Details
-
JMSProperties
public JMSProperties()Create a new JmsPropertys object with no JmsProperties
-
-
Method Details
-
getProperties
-
clear
public void clear()Clear the JmsProperties.- Specified by:
clearin interfaceTestElement- Overrides:
clearin classAbstractTestElement
-
setProperties
Set the list of JmsProperties. Any existing JmsProperties will be lost.- Parameters:
jmsProperties- the new JmsProperties
-
getJmsPropertysAsMap
-
addJmsProperty
-
addJmsProperty
-
addJmsProperty
-
iterator
Get a PropertyIterator of the JmsProperties.- Returns:
- an iteration of the JmsProperties
-
toString
-
removeJmsProperty
public void removeJmsProperty(int row) Remove the specified argument from the list.- Parameters:
row- the index of the argument to remove
-
removeJmsProperty
Remove the specified argument from the list.- Parameters:
arg- the argument to remove
-
removeJmsProperty
Remove the argument with the specified name.- Parameters:
argName- the name of the argument to remove
-
removeAllJmsPropertys
public void removeAllJmsPropertys()Remove all JmsProperties from the list. -
getJmsPropertyCount
public int getJmsPropertyCount()Get the number of JmsProperties in the list.- Returns:
- the number of JmsProperties
-
getJmsProperty
Get a single JMSProperty.- Parameters:
row- the index of the JMSProperty to return.- Returns:
- the JMSProperty at the specified index, or null if no JMSProperty exists at that index.
-