Search:

Search all manuals
Search this manual
Manual
Couchbase Client Library: Java 1.0
Community Wiki and Resources
Wiki: Java Client Library
Download Client Library
JavaDoc
Java Client Library
SDK Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
Couchbase Client Library: Java 1.0
Chapters

Chapter 5. Connection Operations

Table 5.1. Java Client Library Connection Methods

MethodTitle
client.new CouchbaseClient([ url ] [, urls ] [, username ] [, password ]) Create connection to Couchbase Server

API Callclient.new CouchbaseClient([ url ] [, urls ] [, username ] [, password ])
Asynchronousno
Description Create a connection to Couchbase Server with given parameters, such as node URL. The connection obtains the cluster configuration from the first host to which it has connected. Further communication operates directly with each node in the cluster as required.
Returns(none)
Arguments 
String url URL for Couchbase Server Instance, or node.
String urls Linked list containing one or more URLs as strings.
String username Username for Couchbase bucket.
String password Password for Couchbase bucket.