public interface ResultService
| Modifier and Type | Interface and Description |
|---|---|
static class |
ResultService.EventSummary
Summary of event times and failures for a given event name
|
static interface |
ResultService.ResultHandler
Callback handler for aggregated results
|
| Modifier and Type | Method and Description |
|---|---|
long |
countEventsByFailure() |
long |
countEventsByName(String name)
Count the number of previously-completed events with the given name.
|
long |
countEventsBySuccess() |
String |
getDataLocation()
Get details on the location of the results that the service is accessing
|
List<String> |
getEventNames()
Get a discrete list of event names from across all the results
|
long |
getMaxStartTime() |
long |
getMinStartTime() |
TreeMap<String,ResultService.EventSummary> |
getResults(boolean chartOnly)
Build results for all events and give them back as an
event summary instance. |
List<EventRecord> |
getResults(boolean successOrFail,
int skip,
int limit)
Retrieve a page of event results matching the success property.
|
List<EventRecord> |
getResults(long startTime,
String eventName,
Boolean successOrFail,
int skip,
int limit)
Retrieve a page of event results using a time window
|
void |
getResults(ResultService.ResultHandler handler,
long startTime,
String eventName,
Boolean successOrFail,
long windowSize,
boolean chartOnly)
Get result statistics for discrete time intervals.
|
List<EventRecord> |
getResults(String eventName,
int skip,
int limit)
Retrieve a page of event results by event name
|
List<EventRecord> |
getResultsForSession(String eventSessionId,
int skip,
int limit)
Retrieve a page of event results by event session ID
|
EventRecord |
recordResult(EventRecord result)
Simply store an event for later use
|
String getDataLocation()
EventRecord recordResult(EventRecord result)
result - the result to storeList<EventRecord> getResults(String eventName, int skip, int limit)
eventName - the name of the event as recordedskip - the number of results to skip (for paging)limit - the number of results to retrieveList<EventRecord> getResultsForSession(String eventSessionId, int skip, int limit)
eventSessionId - the event session IDskip - the number of results to skip (for paging)limit - the number of results to retrieveList<EventRecord> getResults(long startTime, String eventName, Boolean successOrFail, int skip, int limit)
startTime - the first event time (inclusive, milliseconds)eventName - the name of the event to use or null for all event namessuccessOrFail - true for success only or false for failures (null for all)List<EventRecord> getResults(boolean successOrFail, int skip, int limit)
successOrFail - skip - limit - TreeMap<String,ResultService.EventSummary> getResults(boolean chartOnly)
event summary instance.chartOnly - true to only summarize chartable resultsvoid getResults(ResultService.ResultHandler handler, long startTime, String eventName, Boolean successOrFail, long windowSize, boolean chartOnly)
handler - the client callback implementationstartTime - the start of the first results (inclusive, milliseconds).
The first reporting window will be moved to the first event after
this time and reset to a multiple of the windowSize.eventName - the name of the event to use or null for all event namessuccessOrFail - true for success only or false for failures (null for all)windowSize - the length (milliseconds) of a time windowchartOnly - true if only chartable results must be retrievedList<String> getEventNames()
long countEventsByName(String name)
name - the name of the event as recoredlong countEventsBySuccess()
long countEventsByFailure()
long getMinStartTime()
long getMaxStartTime()
Copyright © 2014. All rights reserved.