org.alfresco.bm.event
Interface ResultService

All Known Implementing Classes:
MongoResultService

public interface ResultService

Service interface providing methods to store and query for event results.

Since:
1.0
Author:
Derek Hulley, Frederik Heremans

Method Summary
 long countEventsByFailure()
           
 long countEventsByName(String name)
          Count the number of previously-completed events with the given name.
 long countEventsBySuccess()
           
 List<EventRecord> findEventsByName(String name, int skip, int limit)
          Find previously-completed events with the given name
 EventRecord recordResult(EventRecord result)
          Simply store an event for later use
 

Method Detail

recordResult

EventRecord recordResult(EventRecord result)
Simply store an event for later use

Parameters:
result - the result to store
Returns:
Returns the result as persisted

findEventsByName

List<EventRecord> findEventsByName(String name,
                                   int skip,
                                   int limit)
Find previously-completed events with the given name

Parameters:
name - the name of the event as recorded
skip - the number of results to skip (for paging)
limit - the number of results to retrieve
Returns:
Returns any recorded results with the given name

countEventsByName

long countEventsByName(String name)
Count the number of previously-completed events with the given name.

Parameters:
name - the name of the event as recored
Returns:
the count

countEventsBySuccess

long countEventsBySuccess()
Returns:
the number of successfully completed events

countEventsByFailure

long countEventsByFailure()
Returns:
the number of failed events


Copyright © 2012. All Rights Reserved.