org.apache.jmeter.functions
Class AbstractFunction
- Function
public abstract class AbstractFunction
Provides common methods for all functions
protected void | checkMinParameterCount(Collection parameters, int minimum) - Utility method to check parameter counts.
|
protected void | checkParameterCount(Collection parameters, int count) - Utility method to check parameter counts.
|
protected void | checkParameterCount(Collection parameters, int min, int max) - Utility method to check parameter counts.
|
String | execute()
|
abstract String | execute(SampleResult previousResult, Sampler currentSampler) -
N.B. setParameters() and execute() are called from different threads,
so both must be synchronized unless there are no parameters to save
|
abstract String | getReferenceKey()
|
protected JMeterVariables | getVariables()
|
abstract void | setParameters(Collection parameters) -
N.B. setParameters() and execute() are called from different threads,
so both must be synchronized unless there are no parameters to save
|
checkMinParameterCount
protected void checkMinParameterCount(Collection parameters,
int minimum)
throws InvalidVariableException
Utility method to check parameter counts.
parameters
- collection of parametersminimum
- number of parameters expected
checkParameterCount
protected void checkParameterCount(Collection parameters,
int count)
throws InvalidVariableException
Utility method to check parameter counts.
parameters
- collection of parameterscount
- number of parameters expected
checkParameterCount
protected void checkParameterCount(Collection parameters,
int min,
int max)
throws InvalidVariableException
Utility method to check parameter counts.
parameters
- collection of parametersmin
- minimum number of parameters allowedmax
- maximum number of parameters allowed
execute
public abstract String execute(SampleResult previousResult,
Sampler currentSampler)
throws InvalidVariableException
N.B. setParameters() and execute() are called from different threads,
so both must be synchronized unless there are no parameters to save
- execute in interface Function
setParameters
public abstract void setParameters(Collection parameters)
throws InvalidVariableException
N.B. setParameters() and execute() are called from different threads,
so both must be synchronized unless there are no parameters to save
- setParameters in interface Function
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.