public class DefaultBucketInfo extends Object implements BucketInfo
Default implementation of BucketInfo.
| Modifier and Type | Method and Description |
|---|---|
static DefaultBucketInfo |
create(JsonObject raw) |
String |
name()
The name of the bucket.
|
int |
nodeCount()
The number of nodes on the bucket.
|
List<InetAddress> |
nodeList()
Returns a list of nodes that is interacting with the bucket.
|
JsonObject |
raw()
Raw JSON server response for advanced analysis.
|
int |
replicaCount()
The number of replicas configured.
|
String |
toString() |
BucketType |
type()
The type of the bucket.
|
public static DefaultBucketInfo create(JsonObject raw)
public String name()
BucketInfoThe name of the bucket.
name in interface BucketInfopublic BucketType type()
BucketInfoThe type of the bucket.
type in interface BucketInfopublic int nodeCount()
BucketInfoThe number of nodes on the bucket.
nodeCount in interface BucketInfopublic int replicaCount()
BucketInfoThe number of replicas configured.
replicaCount in interface BucketInfopublic List<InetAddress> nodeList()
BucketInfoReturns a list of nodes that is interacting with the bucket.
nodeList in interface BucketInfopublic JsonObject raw()
BucketInfoRaw JSON server response for advanced analysis.
raw in interface BucketInfoCopyright © 2014 Couchbase, Inc.