Package org.apache.tuscany.sca.endpoint.hazelcast

Examples of org.apache.tuscany.sca.endpoint.hazelcast.RegistryConfig


        }
    }

    private void initHazelcastClientInstance() {
        this.properties = registry.getExtensionPoint(UtilityExtensionPoint.class).getUtility(RuntimeProperties.class).getProperties();
        RegistryConfig rc = new RegistryConfig(properties);
        if (rc.getWKAs().size() < 1) {
            String ip = getDefaultWKA();
            if (ip != null) {
                rc.getWKAs().add(ip);
            }
        }
        if (rc.getWKAs().size() < 1) {
            throw new IllegalArgumentException("Must specify remote IP address(es) for domain");
        }
        this.domainURI = properties.getProperty("defaultDomainName", "default");
        this.hazelcastClient = HazelcastClient.newHazelcastClient(rc.getUserid(), rc.getPassword(), rc.getWKAs().toArray(new String[0]));
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.endpoint.hazelcast.RegistryConfig

Copyright © 2018 www.massapicom. 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.