Search:

Search all manuals
Search this manual
Manual
Couchbase Client Library: PHP 1.1
Community Wiki and Resources
Wiki: PHP Client Library
PHP Client Library
Couchbase Developer Guide 2.0
Couchbase Server Manual 2.0
SDK Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
4 Connection Operations
Chapter Sections
Chapters

4.1. Getting a List of Nodes in the Cluster

To obtain a list of the servers within a given connection, use the getServers() method:

API Call$object->getServers()
Asynchronousno
Description Returns the list of servers in the server pool
Returnsarray ( List of objects or key/value pairs )
Arguments 
 None  

The return type is an array of the servers in the cluster.