SetPropTaskpublic class SetPropTask extends PerfTask Set a performance test configuration property.
A property may have a single value, or a sequence of values, seprated by ":".
If a sequence of values is specified, each time a new round starts,
the next (cyclic) value is taken.
Other side effects: none.
Takes mandatory param: "name,value" pair. |
Fields Summary |
---|
private String | name | private String | value |
Methods Summary |
---|
public int | doLogic()
if (name==null || value==null) {
throw new Exception(getName()+" - undefined name or value: name="+name+" value="+value);
}
getRunData().getConfig().set(name,value);
return 0;
| public void | setParams(java.lang.String params)Set the params (property name and value).
super.setParams(params);
int k = params.indexOf(",");
name = params.substring(0,k).trim();
value = params.substring(k+1).trim();
| public boolean | supportsParams()
return true;
|
|