示例#1
0
  @Deprecated
  public synchronized void getReports(Map<String, ReportEvent> reports) {
    String phyName = FlumeNode.getInstance().getPhysicalNodeName();
    String rprefix = phyName + "." + getName() + ".";

    if (snk != null) {
      snk.getReports(rprefix, reports);
    }
    if (src != null) {
      src.getReports(rprefix, reports);
    }
  }
 @Override
 public void getReports(String namePrefix, Map<String, ReportEvent> reports) {
   super.getReports(namePrefix, reports);
   src.getReports(namePrefix + getName() + ".", reports);
 }