Examples of DomainRegistryURI


Examples of org.apache.tuscany.sca.runtime.DomainRegistryURI

        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);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.