@InterfaceStability.Committed @InterfaceAudience.Public public interface AsyncClusterManager
Provides management capabilities for a Couchbase Server Cluster
.
Modifier and Type | Method and Description |
---|---|
Observable<AsyncClusterApiClient> |
apiClient() |
Observable<BucketSettings> |
getBucket(String name)
Returns the
BucketSettings for the Bucket identified by name. |
Observable<BucketSettings> |
getBuckets()
Returns
BucketSettings for all available Bucket s. |
Observable<Boolean> |
hasBucket(String name)
Checks if the cluster has a
Bucket identified by the given name. |
Observable<ClusterInfo> |
info()
Provides information about the cluster.
|
Observable<BucketSettings> |
insertBucket(BucketSettings settings)
Inserts a
Bucket with its BucketSettings if it does not already exist. |
Observable<Boolean> |
removeBucket(String name)
Removes a
Bucket identified by its name. |
Observable<BucketSettings> |
updateBucket(BucketSettings settings)
Updates a
Bucket with its BucketSettings if it does already exist. |
Observable<ClusterInfo> info()
Provides information about the cluster.
The Observable
can error under the following conditions:
ClusterInfo
object.Observable<BucketSettings> getBuckets()
Returns BucketSettings
for all available Bucket
s.
The Observable
can error under the following conditions:
BucketSettings
.Observable<BucketSettings> getBucket(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.Observable<Boolean> hasBucket(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.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:
Note: Inserting a Bucket is an asynchronous operation on the server side, so even if the response is returned there is no guarantee that the operation has finished on the server itself.
settings
- the bucket settings that should be applied.Observable<BucketSettings> updateBucket(BucketSettings settings)
Updates a Bucket
with its BucketSettings
if it does already exist.
The Observable
can error under the following conditions:
Note: Updating a Bucket is an asynchronous operation on the server side, so even if the response is returned there is no guarantee that the operation has finished on the server itself.
settings
- the bucket settings that should be applied.Observable<Boolean> removeBucket(String name)
Removes a Bucket
identified by its name.
The Observable
can error under the following conditions:
Note: Removing a Bucket is an asynchronous operation on the server side, so even if the response is returned there is no guarantee that the operation has finished on the server itself.
name
- the name of the bucket.@InterfaceStability.Experimental Observable<AsyncClusterApiClient> apiClient()
Observable
emitting a single new AsyncClusterApiClient
to prepare and perform REST API asynchronous requests on this cluster.Copyright © 2015 Couchbase, Inc.