|
Apache JMeter 2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.functions.AbstractFunction
Provides common methods for all functions
Constructor Summary | |
AbstractFunction()
|
Method Summary | |
protected void |
checkParameterCount(Collection parameters,
int min,
int max)
|
String |
execute()
|
abstract String |
execute(SampleResult previousResult,
Sampler currentSampler)
Given the previous SampleResult and the current Sampler, return a string to use as a replacement value for the function call. |
abstract String |
getReferenceKey()
Return the name of your function. |
protected JMeterVariables |
getVariables()
|
abstract void |
setParameters(Collection parameters)
A collection of the parameters used to configure your function. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.jmeter.functions.Function |
getArgumentDesc |
Constructor Detail |
public AbstractFunction()
Method Detail |
public abstract String execute(SampleResult previousResult, Sampler currentSampler) throws InvalidVariableException
Function
execute
in interface Function
InvalidVariableException
Function.execute(SampleResult, Sampler)
public String execute() throws InvalidVariableException
InvalidVariableException
public abstract void setParameters(Collection parameters) throws InvalidVariableException
Function
setParameters
in interface Function
parameters
-
InvalidVariableException
Note: This may not be called (e.g. if no parameters are provided)
public abstract String getReferenceKey()
Function
getReferenceKey
in interface Function
Function.getReferenceKey()
protected JMeterVariables getVariables()
protected void checkParameterCount(Collection parameters, int min, int max) throws InvalidVariableException
InvalidVariableException
|
Apache JMeter 2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |