public class DeleteDocTask extends PerfTask
id = last-deleted-doc + doc.delete.step.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_DOC_DELETE_STEP
Gap between ids of deleted docs, applies when no docid param is provided.
|
| Constructor and Description |
|---|
DeleteDocTask(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 java.lang.String |
getLogMessage(int recsCount) |
void |
setParams(java.lang.String params)
Set the params (docid 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.
|
clone, close, getBackgroundDeltaPriority, getDepth, getName, getParams, getRunData, getRunInBackground, isDisableCounting, runAndMaybeStats, setDepth, setDisableCounting, setName, setRunInBackground, shouldNeverLogAtStart, shouldNotRecordStats, stopNow, tearDown, toStringpublic static final int DEFAULT_DOC_DELETE_STEP
public DeleteDocTask(PerfRunData runData)
public int doLogic()
throws java.lang.Exception
PerfTaskpublic void setup()
throws java.lang.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 java.lang.String getLogMessage(int recsCount)
getLogMessage in class PerfTaskpublic void setParams(java.lang.String params)
public boolean supportsParams()
PerfTasksupportsParams in class PerfTaskCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.