public class Algorithm
extends java.lang.Object
implements java.lang.AutoCloseable
Constructor and Description |
---|
Algorithm(PerfRunData runData)
Read algorithm from file
Property examined: alt.tasks.packages == comma separated list of
alternate package names where tasks would be searched for, when not found
in the default package (that of
PerfTask Object.getClass() ). |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
execute()
Execute this algorithm
|
java.util.ArrayList<PerfTask> |
extractTasks()
Expert: for test purposes, return all tasks participating in this algorithm.
|
java.lang.String |
toString() |
public Algorithm(PerfRunData runData) throws java.lang.Exception
PerfTask
Object.getClass()
).
If the same task class appears in more than one package, the package
indicated first in this list will be used.runData
- perf-run-data used at running the tasks.java.lang.Exception
- if errors while parsing the algorithmpublic java.lang.String toString()
toString
in class java.lang.Object
public void execute() throws java.lang.Exception
java.lang.Exception
public java.util.ArrayList<PerfTask> extractTasks()
public void close() throws java.lang.Exception
close
in interface java.lang.AutoCloseable
java.lang.Exception
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.