|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.carrotsearch.ant.tasks.junit4.listeners.ExecutionTimesReport
public class ExecutionTimesReport
A report listener that emits per-suite execution times information useful for load balancing tests across JVMs.
| Field Summary | |
|---|---|
static int |
DEFAULT_HISTORY_LENGTH
|
| Constructor Summary | |
|---|---|
ExecutionTimesReport()
|
|
| Method Summary | |
|---|---|
static Map<String,List<Long>> |
mergeHints(Collection<org.apache.tools.ant.types.ResourceCollection> resources,
Collection<String> suiteNames)
Read hints from all resources in a collection, retaining suiteNames. |
static void |
mergeHints(InputStream is,
Map<String,List<Long>> hints)
Read hints from a file and merge with the given hints map. |
void |
onEnd(AggregatedQuitEvent e)
Write back to hints file. |
void |
onSuiteResult(AggregatedSuiteResultEvent e)
Remember execution time for all executed suites. |
static Map<String,List<Long>> |
readHints(File hints)
Read hints from a file. |
void |
setFile(File hintsFile)
Hints file (key-value pairs). |
void |
setHistoryLength(int length)
How many execution times to store per-suite? The history must be larger than 0. |
void |
setOuter(JUnit4 outer)
Link to the container. |
static void |
writeHints(File file,
Map<String,List<Long>> hints)
Writes back hints file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_HISTORY_LENGTH
setHistoryLength(int),
Constant Field Values| Constructor Detail |
|---|
public ExecutionTimesReport()
| Method Detail |
|---|
public void setFile(File hintsFile)
public void setHistoryLength(int length)
public void onSuiteResult(AggregatedSuiteResultEvent e)
public void onEnd(AggregatedQuitEvent e)
public void setOuter(JUnit4 outer)
throws org.apache.tools.ant.BuildException
AggregatedEventListenerBuildException if
parameter validation doesn't succeed, for example.
setOuter in interface AggregatedEventListenerorg.apache.tools.ant.BuildException
public static Map<String,List<Long>> readHints(File hints)
throws IOException
IOException
public static void mergeHints(InputStream is,
Map<String,List<Long>> hints)
throws IOException
IOException
public static void writeHints(File file,
Map<String,List<Long>> hints)
throws IOException
IOException
public static Map<String,List<Long>> mergeHints(Collection<org.apache.tools.ant.types.ResourceCollection> resources,
Collection<String> suiteNames)
suiteNames. If suiteNames is null,
everything is retained.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||