mirror of https://github.com/apache/lucene.git
minor jdoc fixes for PerfTask
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1235714 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d0e4e731d9
commit
640741783d
|
@ -199,9 +199,6 @@ public abstract class PerfTask implements Cloneable {
|
|||
return new String(c);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see java.lang.Object#toString()
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
String padd = getPadding();
|
||||
|
@ -248,22 +245,23 @@ public abstract class PerfTask implements Cloneable {
|
|||
}
|
||||
|
||||
/**
|
||||
* Task setup work that should not be measured for that specific task.
|
||||
* By default it does nothing, but tasks can implement this, moving work from
|
||||
* doLogic() to this method. Only the work done in doLogicis 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.
|
||||
* @throws Exception
|
||||
* Task setup work that should not be measured for that specific task. By
|
||||
* default it does nothing, but tasks can implement this, moving work from
|
||||
* {@link #doLogic()} to this method. Only the work done in {@link #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 setup () throws Exception {
|
||||
}
|
||||
|
||||
/**
|
||||
* Task tearDown work that should not be measured for that specific task.
|
||||
* By default it does nothing, but tasks can implement this, moving work from
|
||||
* doLogic() to this method. Only the work done in doLogicis 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.
|
||||
* Task tearDown work that should not be measured for that specific task. By
|
||||
* default it does nothing, but tasks can implement this, moving work from
|
||||
* {@link #doLogic()} to this method. Only the work done in {@link #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 {
|
||||
if (++logStepCount % logStep == 0) {
|
||||
|
@ -274,7 +272,9 @@ public abstract class PerfTask implements Cloneable {
|
|||
}
|
||||
|
||||
/**
|
||||
* Sub classes that supports parameters must override this method to return true.
|
||||
* Sub classes that support parameters must override this method to return
|
||||
* true.
|
||||
*
|
||||
* @return true iff this task supports command line params.
|
||||
*/
|
||||
public boolean supportsParams () {
|
||||
|
@ -283,7 +283,9 @@ public abstract class PerfTask implements Cloneable {
|
|||
|
||||
/**
|
||||
* Set the params of this task.
|
||||
* @exception UnsupportedOperationException for tasks supporting command line parameters.
|
||||
*
|
||||
* @exception UnsupportedOperationException
|
||||
* for tasks supporting command line parameters.
|
||||
*/
|
||||
public void setParams(String params) {
|
||||
if (!supportsParams()) {
|
||||
|
|
Loading…
Reference in New Issue