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 DefaultBucketInfocreate(JsonObject raw)Stringname()The name of the bucket.intnodeCount()The number of nodes on the bucket.List<InetAddress>nodeList()Returns a list of nodes that is interacting with the bucket.JsonObjectraw()Raw JSON server response for advanced analysis.intreplicaCount()The number of replicas configured.StringtoString()BucketTypetype()The type of the bucket.
-
-
-
Method Detail
-
create
public static DefaultBucketInfo create(JsonObject raw)
-
name
public String name()
Description copied from interface:BucketInfoThe name of the bucket.- Specified by:
namein interfaceBucketInfo- Returns:
- the bucket name.
-
type
public BucketType type()
Description copied from interface:BucketInfoThe type of the bucket.- Specified by:
typein interfaceBucketInfo- Returns:
- the bucket type.
-
nodeCount
public int nodeCount()
Description copied from interface:BucketInfoThe number of nodes on the bucket.- Specified by:
nodeCountin interfaceBucketInfo- Returns:
- number of nodes.
-
replicaCount
public int replicaCount()
Description copied from interface:BucketInfoThe number of replicas configured.- Specified by:
replicaCountin interfaceBucketInfo- Returns:
- number of replicas configured.
-
nodeList
public List<InetAddress> nodeList()
Description copied from interface:BucketInfoReturns a list of nodes that is interacting with the bucket.- Specified by:
nodeListin interfaceBucketInfo- Returns:
- the list of nodes.
-
raw
public JsonObject raw()
Description copied from interface:BucketInfoRaw JSON server response for advanced analysis.- Specified by:
rawin interfaceBucketInfo- Returns:
- the raw JSON bucket info.
-
-