public class AddDocTask extends PerfTask
| Modifier and Type | Field and Description |
|---|---|
protected Document |
doc
volatile data passed between setup(), doLogic(), tearDown().
|
| Constructor and Description |
|---|
AddDocTask(PerfRunData runData) |
| Modifier and Type | Method and Description |
|---|---|
int |
doLogic()
Perform the task once (ignoring repetitions specification)
Return number of work items done by this task.
|
protected String |
getLogMessage(int recsCount) |
void |
setParams(String params)
Set the params (docSize only)
|
void |
setup()
Task setup work that should not be measured for that specific task.
|
boolean |
supportsParams()
Sub classes that support parameters must override this method to return
true.
|
void |
tearDown()
Task tearDown work that should not be measured for that specific task.
|
clone, close, getBackgroundDeltaPriority, getDepth, getName, getParams, getRunData, getRunInBackground, isDisableCounting, runAndMaybeStats, setDepth, setDisableCounting, setName, setRunInBackground, shouldNeverLogAtStart, shouldNotRecordStats, stopNow, toStringprotected Document doc
public AddDocTask(PerfRunData runData)
public void setup()
throws Exception
PerfTaskPerfTask.doLogic() to this method. Only the work done in PerfTask.doLogic()
is measured for this task. Notice that higher level (sequence) tasks
containing this task would then measure larger time than the sum of their
contained tasks.public void tearDown()
throws Exception
PerfTaskPerfTask.doLogic() to this method. Only the work done in PerfTask.doLogic()
is measured for this task. Notice that higher level (sequence) tasks
containing this task would then measure larger time than the sum of their
contained tasks.protected String getLogMessage(int recsCount)
getLogMessage in class PerfTaskpublic int doLogic()
throws Exception
PerfTaskpublic void setParams(String params)
public boolean supportsParams()
PerfTasksupportsParams in class PerfTask