|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--uk.org.skeet.jbench.tasks.SimpleTask
|
+--uk.org.skeet.jbench.tasks.MultipleListTraverse
Class to test traversal of many (small) lists as opposed to one big one.
| Constructor Summary | |
MultipleListTraverse()
|
|
| Method Summary | |
void |
checkConfiguration()
Checks that we have a positive size |
void |
checkResults()
Simple no-op implementation of checkResults. |
java.lang.String |
getDescription()
Default description which gives the name of the actual class and the number of iterations. |
void |
prepareTest()
Simple no-op implementation of prepareTest. |
void |
runTest()
Runs a test. |
void |
setIterate(boolean iterate)
Sets the iterate field - if set to true, traverse the set by iteration. |
void |
setQuantity(int q)
Sets the number of lists to use |
void |
setType(java.lang.Class listType)
Sets the type of list to use, eg java.util.ArrayList |
| Methods inherited from class uk.org.skeet.jbench.tasks.SimpleTask |
getSize, setSize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MultipleListTraverse()
| Method Detail |
public void setQuantity(int q)
public void setType(java.lang.Class listType)
public void runTest()
throws TaskException
BenchTaskBenchTask.runTest()
public void checkResults()
throws TaskException
SimpleTaskcheckResults in class SimpleTaskSimpleTask.checkResults()public java.lang.String getDescription()
SimpleTaskgetDescription in class SimpleTaskSimpleTask.getDescription()
public void prepareTest()
throws TaskException
SimpleTaskprepareTest in class SimpleTaskSimpleTask.prepareTest()
public void checkConfiguration()
throws ConfigurationException
SimpleTaskcheckConfiguration in class SimpleTaskSimpleTask.checkConfiguration()public void setIterate(boolean iterate)
interate - The interate to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||