use of com.rbmhtechnology.vind.monitoring.logger.entry.FullTextEntry in project vind by RBMHTechnology.
the class MonitoringSearchServer method execute.
public SearchResult execute(FulltextSearch search, DocumentFactory factory, HashMap<String, Object> metadata) {
final ZonedDateTime start = ZonedDateTime.now();
final SearchResult result = server.execute(search, factory);
final ZonedDateTime end = ZonedDateTime.now();
final FullTextEntry entry = new FullTextEntry(this.server, factory, application, search, result, start, end, result.getQueryTime(), result.getElapsedTime(), session);
final HashMap<String, Object> mergedMetadata = new HashMap<>();
mergedMetadata.putAll(this.monitoringMetadata);
mergedMetadata.putAll(metadata);
entry.setMetadata(mergedMetadata);
logger.log(entry);
return result;
}
Aggregations