public class MongoLogService extends Object implements LogService
LogService
MongoDB implementationConstructor and Description |
---|
MongoLogService(org.springframework.data.mongodb.core.MongoTemplate mongo,
String collection,
String clusterUUID)
Construct a provider that works using the given Mongo instance and
collection name.
|
public MongoLogService(org.springframework.data.mongodb.core.MongoTemplate mongo, String collection, String clusterUUID)
mongo
- the MongoDB template to usecollection
- the name of the MongoDB collectionpublic void log(String serverId, String testRunFQN, int severity, String msg)
LogService
log
in interface LogService
public List<LogMessage> getLogs(String testRunFQN, String serverId, int severity, Long minTime, Long maxTime, int skip, int limit)
LogService
getLogs
in interface LogService
testRunFQN
- the name of the test run (mandatory)serverId
- server ID (optional)severity
- minimum severity (mandatory)minTime
- minimum log message time (inclusive)maxTime
- maximum log message time (exlusive)skip
- number of results to skiplimit
- limit the total number of resultsCopyright © 2014. All rights reserved.