public class MongoLogService extends Object implements LogService
LogService MongoDB implementation| Constructor 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)
LogServicelog in interface LogServicepublic List<LogMessage> getLogs(String testRunFQN, String serverId, int severity, Long minTime, Long maxTime, int skip, int limit)
LogServicegetLogs in interface LogServicetestRunFQN - 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.