public static void main(String[] args) throws IOException, MalformedObjectNameException { String str = dumpRegionServerMetrics(); System.out.println(str); } }
LOG.info("Dump of metrics as JSON on abort: " + JSONBean.dumpRegionServerMetrics()); } catch (MalformedObjectNameException | IOException e) { LOG.warn("Failed dumping metrics", e);