MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / markSent

Method markSent

src/stats/QueryStats.java:378–383  ·  view source on GitHub ↗

Marks the query as complete and logs it to the proper logs. This is called after the data has been sent to the client.

()

Source from the content-addressed store, hash-verified

376 * after the data has been sent to the client.
377 */
378 public void markSent() {
379 sent_to_client = true;
380 overall_stats.put(QueryStat.TOTAL_TIME, DateTime.nanoTime() - query_start_ns);
381 LOG.info("Completing query=" + JSON.serializeToString(this));
382 QUERY_LOG.info(this.toString());
383 }
384
385 /** Leaves the sent_to_client field as false when we were unable to write to
386 * the client end point. */

Callers 1

operationCompleteMethod · 0.80

Calls 4

nanoTimeMethod · 0.95
serializeToStringMethod · 0.95
toStringMethod · 0.95
putMethod · 0.80

Tested by

no test coverage detected