setConfig(map);
return map;
}
private void setTuscanyConfig(Map<String, String> map, String domainRegistryURI) {
DomainRegistryURI tuscanyURI = new DomainRegistryURI(domainRegistryURI);
map.put("address", tuscanyURI.getMulticastAddress());
map.put("port", Integer.toString(tuscanyURI.getMulticastPort()));
map.put("bind", tuscanyURI.getBindAddress());
map.put("receiverPort", Integer.toString(tuscanyURI.getListenPort()));
if (tuscanyURI.isMulticastDisabled()) {
map.put("nomcast", "true");
}
if (tuscanyURI.getRemotes().size() > 0) {
String routes = "";
for (int i=0; i<tuscanyURI.getRemotes().size(); i++) {
routes += tuscanyURI.getRemotes().get(i);
if (i < tuscanyURI.getRemotes().size()) {
routes += ",";
}
}
map.put("routes", routes);
}