Package com.couchbase.client.java.bucket
Class DefaultBucketInfo
- java.lang.Object
-
- com.couchbase.client.java.bucket.DefaultBucketInfo
-
- All Implemented Interfaces:
BucketInfo
public class DefaultBucketInfo extends Object implements BucketInfo
Default implementation ofBucketInfo
.- Since:
- 2.0
- Author:
- Michael Nitschinger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
create
public static DefaultBucketInfo create(JsonObject raw)
-
name
public String name()
Description copied from interface:BucketInfo
The name of the bucket.- Specified by:
name
in interfaceBucketInfo
- Returns:
- the bucket name.
-
type
public BucketType type()
Description copied from interface:BucketInfo
The type of the bucket.- Specified by:
type
in interfaceBucketInfo
- Returns:
- the bucket type.
-
nodeCount
public int nodeCount()
Description copied from interface:BucketInfo
The number of nodes on the bucket.- Specified by:
nodeCount
in interfaceBucketInfo
- Returns:
- number of nodes.
-
replicaCount
public int replicaCount()
Description copied from interface:BucketInfo
The number of replicas configured.- Specified by:
replicaCount
in interfaceBucketInfo
- Returns:
- number of replicas configured.
-
nodeList
public List<InetAddress> nodeList()
Description copied from interface:BucketInfo
Returns a list of nodes that is interacting with the bucket.- Specified by:
nodeList
in interfaceBucketInfo
- Returns:
- the list of nodes.
-
raw
public JsonObject raw()
Description copied from interface:BucketInfo
Raw JSON server response for advanced analysis.- Specified by:
raw
in interfaceBucketInfo
- Returns:
- the raw JSON bucket info.
-
-