Package com.datastax.driver.core

Examples of com.datastax.driver.core.Cluster$Manager


        final String DCRP = FallthroughRetryPolicy.class.getName();
        Properties connectionProperties = initialize(ds);

        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);
        Assert.assertEquals(configuration.getSocketOptions().getReceiveBufferSize().intValue(), 12);
        Assert.assertEquals(configuration.getSocketOptions().getReuseAddress().booleanValue(), true);
View Full Code Here


        final String TAP = TokenAwarePolicy.class.getName();
        Properties connectionProperties = initialize(ds);

        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);
        Assert.assertEquals(configuration.getSocketOptions().getReceiveBufferSize().intValue(), 12);
        Assert.assertEquals(configuration.getSocketOptions().getReuseAddress().booleanValue(), true);
View Full Code Here

        Properties connectionProperties = initialize(ds);

        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);
        Assert.assertEquals(configuration.getSocketOptions().getReceiveBufferSize().intValue(), 12);
        Assert.assertEquals(configuration.getSocketOptions().getReuseAddress().booleanValue(), true);
View Full Code Here

        final String DCRP = FallthroughRetryPolicy.class.getName();
        Properties connectionProperties = initialize(ds);

        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);
        Assert.assertEquals(configuration.getSocketOptions().getReceiveBufferSize().intValue(), 12);
        Assert.assertEquals(configuration.getSocketOptions().getReuseAddress().booleanValue(), true);
View Full Code Here

        final String DCRP = DowngradingConsistencyRetryPolicy.class.getName();
        Properties connectionProperties = initialize(ds);

        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);
        Assert.assertEquals(configuration.getSocketOptions().getReceiveBufferSize().intValue(), 12);
        Assert.assertEquals(configuration.getSocketOptions().getReuseAddress().booleanValue(), true);
View Full Code Here

        // Given
        Long id = RandomUtils.nextLong(0,Long.MAX_VALUE);
        boolean exceptionRaised = false;

        Session nativeSession = this.manager.getNativeSession();
        Cluster cluster = nativeSession.getCluster();
        CustomValidationInterceptor interceptor = new CustomValidationInterceptor();

        Map<ConfigurationParameters, Object> configMap = new HashMap<>();
        configMap.put(NATIVE_SESSION, nativeSession);
        configMap.put(ENTITIES_LIST, Arrays.asList(EntityWithGroupConstraint.class));
View Full Code Here

TOP

Related Classes of com.datastax.driver.core.Cluster$Manager

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.