public class TaskSequence extends PerfTask
Modifier and Type | Field and Description |
---|---|
static int |
REPEAT_EXHAUST |
Constructor and Description |
---|
TaskSequence(PerfRunData runData,
java.lang.String name,
TaskSequence parent,
boolean parallel) |
Modifier and Type | Method and Description |
---|---|
void |
addTask(PerfTask task) |
protected TaskSequence |
clone() |
void |
close() |
int |
doLogic()
Perform the task once (ignoring repetitions specification)
Return number of work items done by this task.
|
java.lang.String |
getName() |
TaskSequence |
getParent() |
int |
getRate()
Returns the rate per minute: how many operations should be performed in a minute.
|
int |
getRepetitions() |
java.util.ArrayList<PerfTask> |
getTasks() |
boolean |
isCollapsable()
Return true if can be collapsed in case it is outermost sequence
|
boolean |
isParallel() |
void |
setNoChildReport()
Execute child tasks in a way that they do not report their time separately.
|
void |
setRate(int rate,
boolean perMin) |
void |
setRepetitions(int repetitions) |
void |
setRunTime(double sec) |
void |
stopNow() |
java.lang.String |
toString() |
getAlgLineNum, getBackgroundDeltaPriority, getDepth, getLogMessage, getParams, getRunData, getRunInBackground, isDisableCounting, runAndMaybeStats, setAlgLineNum, setDepth, setDisableCounting, setName, setParams, setRunInBackground, setup, shouldNeverLogAtStart, shouldNotRecordStats, supportsParams, tearDown
public TaskSequence(PerfRunData runData, java.lang.String name, TaskSequence parent, boolean parallel)
public void close() throws java.lang.Exception
public boolean isParallel()
public int getRepetitions()
public void setRunTime(double sec) throws java.lang.Exception
java.lang.Exception
public void setRepetitions(int repetitions) throws java.lang.Exception
repetitions
- The repetitions to set.java.lang.Exception
public TaskSequence getParent()
public int doLogic() throws java.lang.Exception
PerfTask
public void addTask(PerfTask task)
public void setNoChildReport()
public int getRate()
public void setRate(int rate, boolean perMin)
rate
- The rate to set.public java.lang.String getName()
public java.util.ArrayList<PerfTask> getTasks()
protected TaskSequence clone() throws java.lang.CloneNotSupportedException
public boolean isCollapsable()
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.