Package com.datastax.driver.core.Cluster

Examples of com.datastax.driver.core.Cluster.Builder.withCredentials()


      _log.debug("Adding contact point...");
      clusterBuilder = clusterBuilder.addContactPoint(node);

      if (username != null && password != null) {
        _log.debug("Adding credentials...");
        clusterBuilder = clusterBuilder.withCredentials(username,
            password);
      }

      _log.debug("Building cluster...");
      _cluster = clusterBuilder.build();
View Full Code Here


      _log.debug("Adding contact point...");
      clusterBuilder = clusterBuilder.addContactPoint(node);

      if (username != null && password != null) {
        _log.debug("Adding credentials...");
        clusterBuilder = clusterBuilder.withCredentials(username,
            password);
      }

      _log.debug("Building cluster user...");
      cluster = clusterBuilder.build();
View Full Code Here

      _log.debug("Adding contact point...");
      clusterBuilder = clusterBuilder.addContactPoint(node);

      if (username != null && password != null) {
        _log.debug("Adding credentials...");
        clusterBuilder = clusterBuilder.withCredentials(username,
            password);
      }

      _log.debug("Building cluster...");
      _cluster = clusterBuilder.build();
View Full Code Here

      _log.debug("Adding contact point...");
      clusterBuilder = clusterBuilder.addContactPoint(node);

      if (username != null && password != null) {
        _log.debug("Adding credentials...");
        clusterBuilder = clusterBuilder.withCredentials(username,
            password);
      }

      _log.debug("Building cluster...");
      _cluster = clusterBuilder.build();
View Full Code Here

        Builder buildCluster = Cluster.builder().withPort(port)
                .addContactPoints(hosts.toArray(new String[0]));

        if (!user.isEmpty() && !password.isEmpty()) {
            buildCluster.withCredentials(user, password);
        }
        return buildCluster.build();
    }

    KeySpaceQueryInformation toInformationKeySpace() {
View Full Code Here

      _log.debug("Adding contact point...");
      clusterBuilder = clusterBuilder.addContactPoint(node);

      if (username != null && password != null) {
        _log.debug("Adding credentials...");
        clusterBuilder = clusterBuilder.withCredentials(username,
            password);
      }

      _log.debug("Building cluster user...");
      cluster = clusterBuilder.build();
View Full Code Here

      _log.debug("Adding contact point...");
      clusterBuilder = clusterBuilder.addContactPoint(node);

      if (username != null && password != null) {
        _log.debug("Adding credentials...");
        clusterBuilder = clusterBuilder.withCredentials(username,
            password);
      }

      _log.debug("Building cluster...");
      _cluster = clusterBuilder.build();
View Full Code Here

        for (Host host : configuration.getCassandraHosts())
        {
            connectionBuilder.addContactPoint(host.getHost()).withPort(host.getPort());
            if (host.getUser() != null)
            {
                connectionBuilder.withCredentials(host.getUser(), host.getPassword());
            }
        }

        // add policy configuration
        String loadBalancingPolicy = connectionProperties.getProperty(Constants.LOADBALANCING_POLICY);
View Full Code Here

      _log.info("Started connecting to cluster: {} ...", node);
      _log.debug("Adding contact point...");
      clusterBuilder = clusterBuilder.addContactPoint(node);
      if (username != null && password != null) {
        _log.debug("Adding credentials...");
        clusterBuilder = clusterBuilder.withCredentials(username,
            password);
      }
      _log.debug("Building cluster...");
      _cluster = clusterBuilder.build();
      _log.info("Finished connecting to cluster: {} .", node);
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.