|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jmeter.threads.JMeterVariables
public class JMeterVariables
Class which defines JMeter variables. These are similar to properties, but they are local to a single thread.
Constructor Summary | |
---|---|
JMeterVariables()
|
Method Summary | |
---|---|
Set<Map.Entry<String,Object>> |
entrySet()
|
String |
get(String key)
Gets the value of a variable, coerced to a String. |
int |
getIteration()
|
Iterator<Map.Entry<String,Object>> |
getIterator()
Gets a read-only Iterator over the variables. |
Object |
getObject(String key)
Gets the value of a variable (not converted to String). |
String |
getThreadName()
|
void |
incIteration()
|
void |
initialize()
|
void |
put(String key,
String value)
Creates or updates a variable with a String value. |
void |
putAll(JMeterVariables vars)
|
void |
putAll(Map<String,?> vars)
|
void |
putObject(String key,
Object value)
Creates or updates a variable with a value that does not have to be a String. |
Object |
remove(String key)
Remove a variable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JMeterVariables()
Method Detail |
---|
public String getThreadName()
public int getIteration()
public void incIteration()
public void initialize()
public Object remove(String key)
key
- the variable name to remove
null
if there was no such variablepublic void put(String key, String value)
key
- the variable namevalue
- the variable valuepublic void putObject(String key, Object value)
key
- the variable namevalue
- the variable valuepublic void putAll(Map<String,?> vars)
public void putAll(JMeterVariables vars)
public String get(String key)
key
- the name of the variable
null
if it does not existpublic Object getObject(String key)
key
- the name of the variable
null
if it does not existpublic Iterator<Map.Entry<String,Object>> getIterator()
public Set<Map.Entry<String,Object>> entrySet()
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |