public class DefaultAsyncClusterManager extends java.lang.Object implements AsyncClusterManager
| Modifier and Type | Method and Description |
|---|---|
static DefaultAsyncClusterManager |
create(java.lang.String username,
java.lang.String password,
ConnectionString connectionString,
CouchbaseEnvironment environment,
com.couchbase.client.core.ClusterFacade core) |
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. |
public static DefaultAsyncClusterManager create(java.lang.String username, java.lang.String password, ConnectionString connectionString, CouchbaseEnvironment environment, com.couchbase.client.core.ClusterFacade core)
public rx.Observable<ClusterInfo> info()
AsyncClusterManagerProvides information about the cluster.
The Observable can error under the following conditions:
info in interface AsyncClusterManagerClusterInfo object.public rx.Observable<BucketSettings> getBuckets()
AsyncClusterManagerReturns BucketSettings for all available Buckets.
The Observable can error under the following conditions:
getBuckets in interface AsyncClusterManagerBucketSettings.public rx.Observable<BucketSettings> getBucket(java.lang.String name)
AsyncClusterManagerReturns the BucketSettings for the Bucket identified by name.
The Observable can error under the following conditions:
getBucket in interface AsyncClusterManagername - the name of the bucket.BucketSettings if found or an empty observable if not found.public rx.Observable<java.lang.Boolean> hasBucket(java.lang.String name)
AsyncClusterManagerChecks if the cluster has a Bucket identified by the given name.
The Observable can error under the following conditions:
hasBucket in interface AsyncClusterManagername - the name of the bucket.public rx.Observable<java.lang.Boolean> removeBucket(java.lang.String name)
AsyncClusterManagerRemoves a Bucket identified by its name.
The Observable can error under the following conditions:
removeBucket in interface AsyncClusterManagername - the name of the bucket.public rx.Observable<BucketSettings> insertBucket(BucketSettings settings)
AsyncClusterManagerInserts a Bucket with its BucketSettings if it does not already exist.
The Observable can error under the following conditions:
insertBucket in interface AsyncClusterManagersettings - the bucket settings that should be applied.public rx.Observable<BucketSettings> updateBucket(BucketSettings settings)
AsyncClusterManagerUpdates a Bucket with its BucketSettings if it does already exist.
The Observable can error under the following conditions:
updateBucket in interface AsyncClusterManagersettings - the bucket settings that should be applied.