Package com.netflix.astyanax.connectionpool.impl

Examples of com.netflix.astyanax.connectionpool.impl.SimpleAuthenticationCredentials


            if( user != null && ! user.trim().isEmpty() ){
                String password = config.containsKey(StormCassandraConstants.CASSANDRA_PASSWORD) ?
                    (String) config.get(StormCassandraConstants.CASSANDRA_PASSWORD) : "password";

            cpConfig.setAuthenticationCredentials(
                   new SimpleAuthenticationCredentials(new String(user), new String(password)));
            }
        }

        @SuppressWarnings("unchecked")
        Collection<String> keyspaces = (Collection<String>) config.get(StormCassandraConstants.CASSANDRA_KEYSPACE);
View Full Code Here


        .setRetryBackoffStrategy(new FixedRetryBackoffStrategy(5000, 30000));

    Object username = properties.get(Bootstrap.CASSANDRA_USERNAME);
    Object password = properties.get(Bootstrap.CASSANDRA_PASSWORD);
    if (username != null && password != null) {
      poolConfig.setAuthenticationCredentials(new SimpleAuthenticationCredentials(""+username, ""+password));
    }
   
    Object port = properties.get(Bootstrap.CASSANDRA_THRIFT_PORT);
    if(port != null) {
      int portVal = 9160;
View Full Code Here

      .setSocketTimeout(CMBProperties.getInstance().getCassandraThriftSocketTimeOutMS())
      .setConnectTimeout(CMBProperties.getInstance().getAstyanaxConnectionWaitTimeOutMS())
      .setSeeds(AbstractDurablePersistence.CLUSTER_URL);
     
      if (username != null && password != null) {
        connectionPoolConfiguration.setAuthenticationCredentials(new SimpleAuthenticationCredentials(username, password));
      }

      if (dataCenter != null && !dataCenter.equals("")) {
        connectionPoolConfiguration.setLocalDatacenter(dataCenter);
      }
View Full Code Here

TOP

Related Classes of com.netflix.astyanax.connectionpool.impl.SimpleAuthenticationCredentials

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.