Connection establishment in Couchbase SDK 2.5


#1

Hi Couchbase team,

1.4.4 sdk code:
ArrayList nodes = new ArrayList();
String[] uris = StringUtils.tokenizeToStringArray(couchbaseuris, “,”);
for(String uri: uris){
nodes.add(URI.create(uri));
}
CouchbaseClient riClient= new CouchbaseClient(nodes, bucketName = riBucket, riPassword);
CouchbaseClient mcmAuditClient= new CouchbaseClient(nodes, bucketName = entityAuditBucket, entityAuditPassword);
CouchbaseClient specClient= new CouchbaseClient(nodes, bucketName = specBucket, specPassword);

I am migrating the above 1.4.4 sdk code implementation to the below 2.5 sdk code. Please let me know am I doing it right.
List nodes = Arrays.asList(couchbaseuris.split(",");
CouchbaseEnvironment cbEnv = DefaultCouchbaseEnvironment.builder().bootstrapCarrierEnabled(true).build();
CouchbaseCluster riClient= CouchbaseCluster.create(cbEnv, nodes);
Bucket riBucket = riClient.openBucket(bucketName, bucketPwd);
CouchbaseCluster mcmAuditClient= CouchbaseCluster.create(cbEnv, nodes);
Bucket mcmBucket = mcmAuditClient.openBucket(bucketName, bucketPwd);
CouchbaseCluster specClient= CouchbaseCluster.create(cbEnv, nodes);
Bucket specBucket = specClient.openBucket(bucketName, bucketPwd);


#2

Couchbase team,
Please advise me for the above request