public interface ResultService
| Modifier and Type | Interface and Description |
|---|---|
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() |
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
|
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> 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)void 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 © 2012. All Rights Reserved.