public class DeleteByPercentTask extends PerfTask
NOTE: the param is an absolute percentage of maxDoc(). This means if you delete 50%, and then delete 50% again, the 2nd delete will do nothing.
Constructor and Description |
---|
DeleteByPercentTask(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.
|
void |
setParams(java.lang.String params)
Set the params of this task.
|
void |
setup()
Task setup work that should not be measured for that specific task.
|
boolean |
supportsParams()
Sub classes that supports parameters must override this method to return true.
|
clone, close, getDepth, getLogMessage, getName, getParams, getRunData, isDisableCounting, runAndMaybeStats, setDepth, setDisableCounting, setName, shouldNeverLogAtStart, shouldNotRecordStats, tearDown, toString
public DeleteByPercentTask(PerfRunData runData)
public void setup() throws java.lang.Exception
PerfTask
public void setParams(java.lang.String params)
PerfTask
public boolean supportsParams()
PerfTask
supportsParams
in class PerfTask
public int doLogic() throws java.lang.Exception
PerfTask
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.