org.apache.lucene.benchmark.byTask.tasks

Class TaskSequence

public class TaskSequence extends PerfTask

Sequence of parallel or sequential tasks.
Field Summary
static intREPEAT_EXHAUST
Constructor Summary
TaskSequence(PerfRunData runData, String name, TaskSequence parent, boolean parallel)
Method Summary
voidaddTask(PerfTask task)
protected Objectclone()
intdoLogic()
StringgetName()
TaskSequencegetParent()
intgetRate()
Returns the rate per minute: how many operations should be performed in a minute.
intgetRepetitions()
ArrayListgetTasks()
booleanisParallel()
voidsetNoChildReport()
Execute child tasks in a way that they do not report their time separately.
voidsetRate(int rate, boolean perMin)
voidsetRepetitions(int repetitions)
StringtoString()

Field Detail

REPEAT_EXHAUST

public static int REPEAT_EXHAUST

Constructor Detail

TaskSequence

public TaskSequence(PerfRunData runData, String name, TaskSequence parent, boolean parallel)

Method Detail

addTask

public void addTask(PerfTask task)

clone

protected Object clone()

doLogic

public int doLogic()

getName

public String getName()

getParent

public TaskSequence getParent()

Returns: Returns the parent.

getRate

public int getRate()
Returns the rate per minute: how many operations should be performed in a minute. If 0 this has no effect.

Returns: the rate per min: how many operations should be performed in a minute.

getRepetitions

public int getRepetitions()

Returns: Returns the repetitions.

getTasks

public ArrayList getTasks()

Returns: Returns the tasks.

isParallel

public boolean isParallel()

Returns: Returns the parallel.

setNoChildReport

public void setNoChildReport()
Execute child tasks in a way that they do not report their time separately.

setRate

public void setRate(int rate, boolean perMin)

Parameters: rate The rate to set.

setRepetitions

public void setRepetitions(int repetitions)

Parameters: repetitions The repetitions to set.

Throws: Exception

toString

public String toString()
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.