public abstract class AbstractEventReporter extends Object implements ReportGenerator
| Modifier and Type | Field and Description |
|---|---|
protected static String |
FAILED_LABEL_PREFIX |
protected static String |
ID_EVENT_LABEL |
protected static int |
LIMIT_VALUE |
protected org.apache.commons.logging.Log |
log |
protected static String |
NEW_LINE |
protected String |
run |
protected TestRunServicesCache |
services |
protected String |
test |
protected static String |
TIME_EVENT_LABEL |
static long[] |
WINDOW_SIZES
Stardard window sizes
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractEventReporter(TestRunServicesCache services,
String test,
String run) |
| Modifier and Type | Method and Description |
|---|---|
protected TreeMap<String,ResultSummary> |
collateResults(boolean chartOnly) |
protected ResultService |
getResultService() |
protected MongoTestDAO |
getTestDAO() |
protected TestService |
getTestService() |
static long |
getWindowSize(long startTime,
long endTime,
int windowCount)
Helper method to calculate a window size (ms) such that the approximate number
of results is retrieved across the given time range.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexportprotected static String ID_EVENT_LABEL
protected static String TIME_EVENT_LABEL
protected static String FAILED_LABEL_PREFIX
protected static final String NEW_LINE
protected static final int LIMIT_VALUE
protected org.apache.commons.logging.Log log
protected final TestRunServicesCache services
protected final String test
protected final String run
public static final long[] WINDOW_SIZES
protected AbstractEventReporter(TestRunServicesCache services, String test, String run)
services - services for a test runtest - the name of the test for this reportrun - the name of the test run for this reportprotected ResultService getResultService()
protected TestService getTestService()
protected MongoTestDAO getTestDAO()
protected TreeMap<String,ResultSummary> collateResults(boolean chartOnly)
public static long getWindowSize(long startTime,
long endTime,
int windowCount)
startTime - beginning of resultsendTime - end of resultswindowCount - number of windows to fit inCopyright © 2005–2018 Alfresco Software. All rights reserved.