Package com.hazelcast.client.config

Examples of com.hazelcast.client.config.XmlClientConfigBuilder


        proxyManager.init(config);
        partitionService = new ClientPartitionServiceImpl(this);
    }

    public static HazelcastInstance newHazelcastClient() {
        return newHazelcastClient(new XmlClientConfigBuilder().build());
    }
View Full Code Here


        return newHazelcastClient(new XmlClientConfigBuilder().build());
    }

    public static HazelcastInstance newHazelcastClient(ClientConfig config) {
        if (config == null) {
            config = new XmlClientConfigBuilder().build();
        }

        final ClassLoader tccl = Thread.currentThread().getContextClassLoader();
        HazelcastClientProxy proxy;
        try {
View Full Code Here

     */
    public static void main(String[] args) throws Exception {
        ClientConfig clientConfig;

        try {
            clientConfig = new XmlClientConfigBuilder("hazelcast-client.xml").build();
        } catch (IllegalArgumentException e) {
            clientConfig = new ClientConfig();
        }
        final HazelcastInstance client = HazelcastClient.newHazelcastClient(clientConfig);
        ClientTestApp clientTestApp = new ClientTestApp(client);
View Full Code Here

            if (configUrl == null) {
                clientConfig = new ClientConfig();
                clientConfig.getNetworkConfig().setConnectionAttemptLimit(3);
            } else {
                try {
                    clientConfig = new XmlClientConfigBuilder(configUrl).build();
                } catch (IOException e) {
                    throw new ServletException(e);
                }
            }
            return HazelcastClient.newHazelcastClient(clientConfig);
View Full Code Here

        String configResourcePath = CacheEnvironment.getConfigFilePath(props);

        ClientConfig clientConfig = null;
        if (configResourcePath != null) {
            try {
                clientConfig = new XmlClientConfigBuilder(configResourcePath).build();
            } catch (IOException e) {
                logger.warning("Could not load client configuration: " + configResourcePath, e);
            }
        }
        if (clientConfig == null) {
View Full Code Here

import com.hazelcast.security.UsernamePasswordCredentials;
import org.apache.sirona.configuration.Configuration;

public class HazelcastClientFactory {
    public static HazelcastInstance newClient(final String prefix) {
        final ClientConfig config = new XmlClientConfigBuilder().build();

        final String addresses = Configuration.getProperty(prefix + "addresses", null);
        if (addresses != null) {
            for (final String address : addresses.split(",")) {
                config.addAddress(address.trim());
View Full Code Here

        }
        return (SerializationServiceImpl) ss;
    }

    public static HazelcastInstance newHazelcastClient() {
        return newHazelcastClient(new XmlClientConfigBuilder().build());
    }
View Full Code Here

        return newHazelcastClient(new XmlClientConfigBuilder().build());
    }

    public static HazelcastInstance newHazelcastClient(ClientConfig config) {
        if (config == null) {
            config = new XmlClientConfigBuilder().build();
        }

        final ClassLoader tccl = Thread.currentThread().getContextClassLoader();
        HazelcastClientProxy proxy;
        try {
View Full Code Here

     */
    public static void main(String[] args) throws Exception {
        ClientConfig clientConfig;

        try {
            clientConfig = new XmlClientConfigBuilder("hazelcast-client.xml").build();
        } catch (IllegalArgumentException e) {
            clientConfig = new ClientConfig();
        }
        final HazelcastInstance client = HazelcastClient.newHazelcastClient(clientConfig);
        ClientConsoleApp clientConsoleApp = new ClientConsoleApp(client);
View Full Code Here

    private ClientConfig buildClientConfig(String configResourcePath) {
        ClientConfig clientConfig = null;
        if (configResourcePath != null) {
            try {
                clientConfig = new XmlClientConfigBuilder(configResourcePath).build();
            } catch (IOException e) {
                LOGGER.warning("Could not load client configuration: " + configResourcePath, e);
            }
        }
        if (clientConfig == null) {
View Full Code Here

TOP

Related Classes of com.hazelcast.client.config.XmlClientConfigBuilder

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.