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

Method execute

src/tsd/StatsRpc.java:59–67  ·  view source on GitHub ↗

Telnet RPC responder that returns the stats in ASCII style @param tsdb The TSDB to use for fetching stats @param chan The netty channel to respond on @param cmd call parameters

(final TSDB tsdb, final Channel chan,
      final String[] cmd)

Source from the content-addressed store, hash-verified

57 * @param cmd call parameters
58 */
59 public Deferred<Object> execute(final TSDB tsdb, final Channel chan,
60 final String[] cmd) {
61 final boolean canonical = tsdb.getConfig().getBoolean("tsd.stats.canonical");
62 final StringBuilder buf = new StringBuilder(1024);
63 final ASCIICollector collector = new ASCIICollector("tsd", buf, null);
64 doCollectStats(tsdb, collector, canonical);
65 chan.write(buf.toString());
66 return Deferred.fromResult(null);
67 }
68
69 /**
70 * HTTP resposne handler

Callers 2

printThreadStatsMethod · 0.95
printJVMStatsMethod · 0.95

Calls 15

doCollectStatsMethod · 0.95
printThreadStatsMethod · 0.95
printJVMStatsMethod · 0.95
printQueryStatsMethod · 0.95
serializeToBytesMethod · 0.95
collectStatsMethod · 0.95
collectStatsMethod · 0.95
collectStatsMethod · 0.95
getBooleanMethod · 0.80
methodMethod · 0.80
apiVersionMethod · 0.80

Tested by 2

printThreadStatsMethod · 0.76
printJVMStatsMethod · 0.76