statistics.update(processingResult);
/** * Updates the statistics */ void update(ProcessingResult processingResult) { synchronized (this) { totalQueries++; if (processingResult != null) { goodQueries++; final Map<String, Object> attributes = processingResult .getAttributes(); addTimeToAverage(attributes, AttributeNames.PROCESSING_TIME_SOURCE, sourceTimeAverage); addTimeToAverage(attributes, AttributeNames.PROCESSING_TIME_ALGORITHM, algorithmTimeAverage); addTimeToAverage(attributes, AttributeNames.PROCESSING_TIME_TOTAL, totalTimeAverage); } } }
/** * Returns current statistics related to the processing performed in this controller, * including: number of queries, number of successful queries, processing times, cache * utilization if applicable. */ public ControllerStatistics getStatistics() { return statistics.getStatistics(); }