org.apache.lucene.benchmark.byTask.tasks

Class SetPropTask

Implemented Interfaces:
Cloneable

public 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.
See Also:
NewRoundTask

Field Summary

Fields inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask

NEW_LINE, params

Constructor Summary

SetPropTask(PerfRunData runData)

Method Summary

int
doLogic()
void
setParams(String params)
Set the params (property name and value).

Methods inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask

clone, doLogic, getDepth, getName, getParams, getRunData, runAndMaybeStats, setDepth, setName, setParams, setup, shouldNeverLogAtStart, shouldNotRecordStats, tearDown, toString

Constructor Details

SetPropTask

public SetPropTask(PerfRunData runData)

Method Details

doLogic

public int doLogic()
            throws Exception
Overrides:
doLogic in interface PerfTask

setParams

public void setParams(String params)
Set the params (property name and value).
Overrides:
setParams in interface PerfTask
Parameters:
params - property name and value separated by ','.

Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.