|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.alfresco.bm.event.mongo.MongoResultService
public class MongoResultService
A Mongo-based implementation of the results for benchmark test runs.
| Constructor Summary | |
|---|---|
MongoResultService(org.springframework.data.mongodb.core.MongoTemplate mongo,
String collection)
Construct a provider that works using the given Mongo instance and collection name. |
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MongoResultService(org.springframework.data.mongodb.core.MongoTemplate mongo,
String collection)
mongo - the MongoDB template to usecollection - the name of the MongoDB collection| Method Detail |
|---|
public EventRecord recordResult(EventRecord result)
ResultService
recordResult in interface ResultServiceresult - the result to store
public List<EventRecord> findEventsByName(String name,
int skip,
int limit)
ResultService
findEventsByName in interface ResultServicename - the name of the event as recordedskip - the number of results to skip (for paging)limit - the number of results to retrieve
public long countEventsByName(String name)
ResultService
countEventsByName in interface ResultServicename - the name of the event as recored
public long countEventsBySuccess()
countEventsBySuccess in interface ResultServicepublic long countEventsByFailure()
countEventsByFailure in interface ResultService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||