Package com.datastax.driver.core

Examples of com.datastax.driver.core.HostDistance


        String coreConnections = connectionProperties.getProperty("coreConnections");
        String maxConnections = connectionProperties.getProperty("maxConnections");

        if (!StringUtils.isBlank(hostDistance))
        {
            HostDistance hostDist = HostDistance.valueOf(hostDistance.toUpperCase());
            if (!StringUtils.isBlank(coreConnections))
            {
                options.setCoreConnectionsPerHost(HostDistance.LOCAL, new Integer(coreConnections));
            }
View Full Code Here


        ds.initialize(propertyMap);
        Object conn = ds.createPoolOrConnection();
        Cluster cluster = (Cluster) conn;

        HostDistance distance = HostDistance.LOCAL;

        Configuration configuration = cluster.getConfiguration();

        Assert.assertEquals(configuration.getSocketOptions().getReadTimeoutMillis(), 110000);
        Assert.assertEquals(configuration.getSocketOptions().getKeepAlive().booleanValue(), false);
View Full Code Here

        ds.initialize(propertyMap);
        Object conn = ds.createPoolOrConnection();
        Cluster cluster = (Cluster) conn;

        HostDistance distance = HostDistance.LOCAL;

        Configuration configuration = cluster.getConfiguration();

        Assert.assertEquals(configuration.getSocketOptions().getReadTimeoutMillis(), 110000);
        Assert.assertEquals(configuration.getSocketOptions().getKeepAlive().booleanValue(), false);
View Full Code Here

        ds.initialize(propertyMap);
        Object conn = ds.createPoolOrConnection();
        Cluster cluster = (Cluster) conn;

        HostDistance distance = HostDistance.LOCAL;

        Configuration configuration = cluster.getConfiguration();

        Assert.assertEquals(configuration.getSocketOptions().getReadTimeoutMillis(), 110000);
        Assert.assertEquals(configuration.getSocketOptions().getKeepAlive().booleanValue(), false);
View Full Code Here

        ds.initialize(propertyMap);
        Object conn = ds.createPoolOrConnection();
        Cluster cluster = (Cluster) conn;

        HostDistance distance = HostDistance.LOCAL;

        Configuration configuration = cluster.getConfiguration();

        Assert.assertEquals(configuration.getSocketOptions().getReadTimeoutMillis(), 110000);
        Assert.assertEquals(configuration.getSocketOptions().getKeepAlive().booleanValue(), false);
View Full Code Here

        ds.initialize(propertyMap);
        Object conn = ds.createPoolOrConnection();
        Cluster cluster = (Cluster) conn;

        HostDistance distance = HostDistance.LOCAL;

        Configuration configuration = cluster.getConfiguration();

        Assert.assertEquals(configuration.getSocketOptions().getReadTimeoutMillis(), 110000);
        Assert.assertEquals(configuration.getSocketOptions().getKeepAlive().booleanValue(), false);
View Full Code Here

TOP

Related Classes of com.datastax.driver.core.HostDistance

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.