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 of
BucketInfo.- Since:
- 2.0
- Author:
- Michael Nitschinger
-
Method Summary
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 Details
-
create
-
name
Description copied from interface:BucketInfoThe name of the bucket.- Specified by:
namein interfaceBucketInfo- Returns:
- the bucket name.
-
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
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
Description copied from interface:BucketInfoRaw JSON server response for advanced analysis.- Specified by:
rawin interfaceBucketInfo- Returns:
- the raw JSON bucket info.
-
toString
-