List<String> alert_limit_ex = new ZNode(ZNODE_ALERT_LIMIT).getChildren();
for(String name : alert_limit_ex) {
ZooKeeperInfo.AlertConfig.Builder alert_limit_builder = ZooKeeperInfo.AlertConfig.newBuilder();
TextFormat.merge(new ZNode(ZNODE_ALERT_LIMIT + "/" + name).getContentString(), alert_limit_builder);
ZooKeeperInfo.AlertConfig alertConfig = alert_limit_builder.build();
tab.addCell(name);
tab.addCell("Alert limit", new CellStyle(HorizontalAlign.center));
tab.addCell(String.format("%d messages to %s", alertConfig.getCount(), alertConfig.getReceiver()));
}
myConsole.logResponse("%d configured exchanges%n", fixed_ex.size() + drop_ex.size() + limit_ex.size());