public class DeleteDocTask extends PerfTask
doc.delete.log.step , doc.delete.step.
id = last-deleted-doc + doc.delete.step.
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_DELETE_DOC_LOG_STEP
Default value for property
doc.delete.log.step |
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 repetions specification)
Return number of work items done by this task.
|
void |
setParams(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 supports parameters must overide this method to return true.
|
void |
tearDown()
Task tearDown work that should not be measured for that specific task.
|
clone, getDepth, getName, getParams, getRunData, isDisableCounting, runAndMaybeStats, setDepth, setDisableCounting, setName, shouldNeverLogAtStart, shouldNotRecordStats, toStringpublic static final int DEFAULT_DOC_DELETE_STEP
public static final int DEFAULT_DELETE_DOC_LOG_STEP
doc.delete.log.step - indicating how often
an "deleted N docs" message should be logged.public DeleteDocTask(PerfRunData runData)
public int doLogic()
throws Exception
PerfTaskpublic void setup()
throws Exception
PerfTaskpublic void tearDown()
throws Exception
PerfTaskpublic void setParams(String params)
public boolean supportsParams()
PerfTasksupportsParams in class PerfTaskCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.