public void populateQueueServers(ZooKeeper zk) throws KeeperException, InterruptedException {
createNode(zk, DistributionTreeConstants.QSERVERS, "queue servers");
Map<String, QueueConf> servers = DispatcherConfig.getInstance().getServers();
for(String serverName : servers.keySet()) {
QueueConf qc = servers.get(serverName);
createNode(zk, String.format(DistributionTreeConstants.QSERVERS_NAME, serverName), serverName);
createNode(zk, String.format(DistributionTreeConstants.QSERVERS_NAME_HOST, serverName), qc.getHost());
createNode(zk, String.format(DistributionTreeConstants.QSERVERS_NAME_PORT, serverName), String.valueOf(qc.getPort()));
createNode(zk, String.format(DistributionTreeConstants.QSERVERS_NAME_PW, serverName), qc.getPassword());
createNode(zk, String.format(DistributionTreeConstants.QSERVERS_NAME_USER, serverName), qc.getUserName());
createNode(zk, String.format(DistributionTreeConstants.QSERVERS_NAME_VHOST, serverName), qc.getVhost());
String logStr = String.format(">>>>>>>>>>>>>>>>>>>>>>>[Distribution data population] populated queue server data: name:%s,host:%s,post:%s,vhost:%s", serverName, qc.getHost(), String.valueOf(qc.getPort()), qc.getVhost());
_logger.info(logStr);
}
}