org.apache.lucene.benchmark.byTask.tasks
Class TaskSequence
- Cloneable
public class TaskSequence
Sequence of parallel or sequential tasks.
clone , doLogic , getDepth , getName , getParams , getRunData , runAndMaybeStats , setDepth , setName , setParams , setup , shouldNeverLogAtStart , shouldNotRecordStats , tearDown , toString |
addTask
public void addTask(PerfTask task)
clone
protected Object clone()
throws CloneNotSupportedException
- clone in interface PerfTask
doLogic
public int doLogic()
throws Exception
Perform the task once (ignoring repetions specification)
Return number of work items done by this task.
For indexing that can be number of docs added.
For warming that can be number of scanned items, etc.
- doLogic in interface PerfTask
- number of work items done by this task.
getRate
public int getRate()
Returns the rate per minute: how many operations should be performed in a minute.
If 0 this has no effect.
- the rate per min: how many operations should be performed in a minute.
getRepetitions
public int getRepetitions()
getTasks
public ArrayList getTasks()
isParallel
public boolean isParallel()
setNoChildReport
public void setNoChildReport()
Execute child tasks in a way that they do not reprt their time separately.
Current implementation if child tasks has child tasks of their own, those are not affected by this call.
setRate
public void setRate(int rate,
boolean perMin)
setRepetitions
public void setRepetitions(int repetitions)
repetitions
- The repetitions to set.
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.