public interface ResultService
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ResultService.ResultHandler
Callback handler for aggregated results.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
clear()
Clears all recorded data
|
long |
countResults()
Count the number of events
|
long |
countResultsByEventName(String name)
Count the number of previously-completed events with the given name.
|
long |
countResultsByFailure() |
long |
countResultsBySuccess() |
String |
getDataLocation() |
List<EventDetails> |
getEventDetails(EventResultFilter filter,
String filterEventName,
int skip,
int limit)
Query and returns event result details as requested.
|
List<String> |
getEventNames()
Get a discrete list of event names from across all the results
|
EventRecord |
getFirstResult()
Retrieve the first result by start time
|
EventRecord |
getLastResult()
Retrieve the last result by start time
|
List<EventRecord> |
getResults(long startTime,
long endTime,
boolean chartOnly,
int skip,
int limit)
Retrieve a page of event results using a time window, filtering by chartability
|
void |
getResults(ResultService.ResultHandler handler,
long startTime,
long windowSize,
long reportPeriod,
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
|
void |
recordResult(EventRecord result)
Simply store an event for later use
|
String getDataLocation()
void recordResult(EventRecord result)
result - the result to storeEventRecord getFirstResult()
EventRecord getLastResult()
List<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, long endTime, boolean chartOnly, int skip, int limit)
startTime - the first event time (inclusive, milliseconds)endTime - the last event time (exclusive, milliseconds)chartOnly - true to only retrieve results for chartingvoid getResults(ResultService.ResultHandler handler, long startTime, long windowSize, long reportPeriod, 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 nameswindowSize - the length (milliseconds) of a time window. This must be a multiple of the 'reportPeriod'.reportPeriod - the result time report period (milliseconds). This cannot be more than the 'windowSize'.chartOnly - true if only chartable results must be retrievedList<EventDetails> getEventDetails(EventResultFilter filter, String filterEventName, int skip, int limit)
filter - (EventResultFilter) filter by fail / success / nonefilterEventName - (String, optional) if set only the results for the given event will be returnedskip - (int) useful for paginglimit - (int) max number of results to returnList<String> getEventNames()
long countResults()
long countResultsByEventName(String name)
name - the name of the event as recoredlong countResultsBySuccess()
long countResultsByFailure()
boolean clear()
Copyright © 2005–2018 Alfresco Software. All rights reserved.