@InterfaceStability.Committed
@InterfaceAudience.Public
public interface AsyncClusterManager
Provides management capabilities for a Couchbase Server Cluster.
| Modifier and Type | Method and Description |
|---|---|
rx.Observable<BucketSettings> |
getBucket(java.lang.String name)
Returns the
BucketSettings for the Bucket identified by name. |
rx.Observable<BucketSettings> |
getBuckets()
Returns
BucketSettings for all available Buckets. |
rx.Observable<java.lang.Boolean> |
hasBucket(java.lang.String name)
Checks if the cluster has a
Bucket identified by the given name. |
rx.Observable<ClusterInfo> |
info()
Provides information about the cluster.
|
rx.Observable<BucketSettings> |
insertBucket(BucketSettings settings)
Inserts a
Bucket with its BucketSettings if it does not already exist. |
rx.Observable<java.lang.Boolean> |
removeBucket(java.lang.String name)
Removes a
Bucket identified by its name. |
rx.Observable<BucketSettings> |
updateBucket(BucketSettings settings)
Updates a
Bucket with its BucketSettings if it does already exist. |
rx.Observable<ClusterInfo> info()
Provides information about the cluster.
The Observable can error under the following conditions:
ClusterInfo object.rx.Observable<BucketSettings> getBuckets()
Returns BucketSettings for all available Buckets.
The Observable can error under the following conditions:
BucketSettings.rx.Observable<BucketSettings> getBucket(java.lang.String name)
Returns the BucketSettings for the Bucket identified by name.
The Observable can error under the following conditions:
name - the name of the bucket.BucketSettings if found or an empty observable if not found.rx.Observable<java.lang.Boolean> hasBucket(java.lang.String name)
Checks if the cluster has a Bucket identified by the given name.
The Observable can error under the following conditions:
name - the name of the bucket.rx.Observable<BucketSettings> insertBucket(BucketSettings settings)
Inserts a Bucket with its BucketSettings if it does not already exist.
The Observable can error under the following conditions:
settings - the bucket settings that should be applied.rx.Observable<BucketSettings> updateBucket(BucketSettings settings)
Updates a Bucket with its BucketSettings if it does already exist.
The Observable can error under the following conditions:
settings - the bucket settings that should be applied.rx.Observable<java.lang.Boolean> removeBucket(java.lang.String name)
Removes a Bucket identified by its name.
The Observable can error under the following conditions:
name - the name of the bucket.