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

Method done

src/tsd/AbstractHttpQuery.java:356–367  ·  view source on GitHub ↗

Method to call after writing the HTTP response to the wire. The default is to simply log the request info. Can be overridden by subclasses.

()

Source from the content-addressed store, hash-verified

354 * is to simply log the request info. Can be overridden by subclasses.
355 */
356 public void done() {
357 final int processing_time = processingTimeMillis();
358 final String url = request.getUri();
359 final String msg = String.format("HTTP %s done in %d ms", url, processing_time);
360 if (url.startsWith("/api/put") && LOG.isDebugEnabled()) {
361 // NOTE: Suppresses too many log lines from /api/put.
362 LOG.debug(msg);
363 } else {
364 logInfo(msg);
365 }
366 logInfo("HTTP " + request.getUri() + " done in " + processing_time + "ms");
367 }
368
369 /**
370 * Sends <code>500/Internal Server Error</code> to the client.

Callers 2

sendStatusOnlyMethod · 0.95
sendBufferMethod · 0.95

Calls 2

processingTimeMillisMethod · 0.95
logInfoMethod · 0.95

Tested by

no test coverage detected