\CouchbaseClusterManager

Class exposing the various available management operations that can be performed on a cluster.

Summary

Methods
Properties
Constants
listBuckets()
createBucket()
removeBucket()
info()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

listBuckets()

listBuckets() : mixed

Lists all buckets on this cluster.

Returns

mixed

createBucket()

createBucket(string  $name, array  $opts = array()) : mixed

Creates a new bucket on this cluster.

Parameters

string $name

The bucket name.

array $opts

The options for this bucket.

Returns

mixed

removeBucket()

removeBucket(string  $name) : mixed

Deletes a bucket from the cluster.

Parameters

string $name

Returns

mixed

info()

info() : mixed

Retrieves cluster status information

Returns an associative array of status information as seen on the cluster. The exact structure of the returned data can be seen in the Couchbase Manual by looking at the cluster /info endpoint.

Throws

\CouchbaseException

Returns

mixed —

The status information.