ReportManager.get().clear();
String spec = AgentFailChainSink.genDfoChain("counter(\"foo1\")",
"counter(\"foo2\")", "counter(\"foo3\")");
LOG.info("disk failover failchain: " + spec);
String node = NetUtils.localhost();
EventSink snk = FlumeBuilder.buildSink(new LogicalNodeContext(node, node),
spec);
ReportEvent rpt = ReportUtil.getFlattenedReport(snk);
LOG.info("testDFOFailchain report {}", ReportUtil.toJSONObject(rpt)
.toString());