public class ExecutionTimesReport extends java.lang.Object implements AggregatedEventListener
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_HISTORY_LENGTH |
| Constructor and Description |
|---|
ExecutionTimesReport() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<java.lang.String,java.util.List<java.lang.Long>> |
mergeHints(java.util.Collection<org.apache.tools.ant.types.ResourceCollection> resources,
java.util.Collection<java.lang.String> suiteNames)
Read hints from all resources in a collection, retaining
suiteNames. |
static void |
mergeHints(java.io.InputStream is,
java.util.Map<java.lang.String,java.util.List<java.lang.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 java.util.Map<java.lang.String,java.util.List<java.lang.Long>> |
readHints(java.io.File hints)
Read hints from a file.
|
void |
setFile(java.io.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(java.io.File file,
java.util.Map<java.lang.String,java.util.List<java.lang.Long>> hints)
Writes back hints file.
|
public static final int DEFAULT_HISTORY_LENGTH
setHistoryLength(int),
Constant Field Valuespublic void setFile(java.io.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.BuildExceptionpublic static java.util.Map<java.lang.String,java.util.List<java.lang.Long>> readHints(java.io.File hints)
throws java.io.IOException
java.io.IOExceptionpublic static void mergeHints(java.io.InputStream is,
java.util.Map<java.lang.String,java.util.List<java.lang.Long>> hints)
throws java.io.IOException
java.io.IOExceptionpublic static void writeHints(java.io.File file,
java.util.Map<java.lang.String,java.util.List<java.lang.Long>> hints)
throws java.io.IOException
java.io.IOExceptionpublic static java.util.Map<java.lang.String,java.util.List<java.lang.Long>> mergeHints(java.util.Collection<org.apache.tools.ant.types.ResourceCollection> resources,
java.util.Collection<java.lang.String> suiteNames)
suiteNames. If suiteNames is null,
everything is retained.Copyright © 2011–2017 Carrot Search s.c.. All rights reserved.