}
}
if (stats.tableMap != null && stats.tableMap.size() > 0) {
out(0, "Tables");
for (Entry<String,TableInfo> entry : stats.tableMap.entrySet()) {
TableInfo v = entry.getValue();
out(1, "%s", entry.getKey());
out(2, "Records: %d", v.recs);
out(2, "Records in Memory: %d", v.recsInMemory);
out(2, "Tablets %d", v.tablets);
out(2, "Online Tablets %d", v.onlineTablets);
out(2, "Ingest Rate %.2f", v.ingestRate);
out(2, "Query Rate %.2f", v.queryRate);
}
}
if (stats.tServerInfo != null && stats.tServerInfo.size() > 0) {
out(0, "Tablet Servers");
long now = System.currentTimeMillis();
for (TabletServerStatus server : stats.tServerInfo) {
TableInfo summary = Monitor.summarizeTableStats(server);
out(1, "Name %s", server.name);
out(2, "Ingest %.2f", summary.ingestRate);
out(2, "Last Contact %s", server.lastContact);
out(2, "OS Load Average %.2f", server.osLoad);
out(2, "Queries %.2f", summary.queryRate);
out(2, "Time Difference %.1f", ((now - server.lastContact) / 1000.));
out(2, "Total Records %d", summary.recs);
out(2, "Lookups %d", server.lookups);
out(2, "Loggers %d", server.loggers.size());
for (String logger : server.loggers)
out(3, "Logger %s", logger);
if (server.holdTime > 0)
out(2, "Hold Time %d", server.holdTime);
if (server.tableMap != null && server.tableMap.size() > 0) {
out(2, "Tables");
for (Entry<String,TableInfo> status : server.tableMap.entrySet()) {
TableInfo info = status.getValue();
out(3, "Table %s", status.getKey());
out(4, "Tablets %d", info.onlineTablets);
out(4, "Records %d", info.recs);
out(4, "Records in Memory %d", info.recsInMemory);
out(4, "Ingest %.2f", info.ingestRate);