String queueName = getNodeValue(String.format(DistributionTreeConstants.CD_ROOT_DOMAIN_QUEUEONSERVER_QBINDS_QUEUE, domain, queueJobNodeName));
String exchange = getNodeValue(String.format(DistributionTreeConstants.CD_ROOT_DOMAIN_QUEUEONSERVER_QBINDS_EXCHANGE, domain, queueJobNodeName));
String type = getNodeValue(String.format(DistributionTreeConstants.CD_ROOT_DOMAIN_QUEUEONSERVER_QBINDS_TYPE, domain, queueJobNodeName));
QueueConf qc = DispatcherConfig.getInstance().getServers().get(mqserver);
JobExecutor je = new JobExecutor();
try {
je.setCount(Integer.valueOf(count));
} catch (Exception e) {
je.setCount(1);
}
je.setEncoding(encoding);
je.setExchange(exchange);
je.setFetcherQConf(qc);
je.setName(jobName);
je.setQueue(queueName);
je.setTimeout(Integer.valueOf(timeout));
je.setType(type);
je.setUrl(url);
je.setUrlhost(host);
allJobs.add(je);
_logger.info("[Distributed Data Loader] loaded Job definition for " + queueJobNodeName + " on domain:" + domain);
} catch (Exception e) {
_logger.error(e, e);