public class DefaultBucketInfo extends java.lang.Object implements BucketInfo
Default implementation of BucketInfo
.
Modifier and Type | Method and Description |
---|---|
static DefaultBucketInfo |
create(JsonObject raw) |
java.lang.String |
name()
The name of the bucket.
|
int |
nodeCount()
The number of nodes on the bucket.
|
JsonObject |
raw()
Raw JSON server response for advanced analysis.
|
int |
replicaCount()
The number of replicas configured.
|
java.lang.String |
toString() |
BucketType |
type()
The type of the bucket.
|
public static DefaultBucketInfo create(JsonObject raw)
public java.lang.String name()
BucketInfo
The name of the bucket.
name
in interface BucketInfo
public BucketType type()
BucketInfo
The type of the bucket.
type
in interface BucketInfo
public int nodeCount()
BucketInfo
The number of nodes on the bucket.
nodeCount
in interface BucketInfo
public int replicaCount()
BucketInfo
The number of replicas configured.
replicaCount
in interface BucketInfo
public JsonObject raw()
BucketInfo
Raw JSON server response for advanced analysis.
raw
in interface BucketInfo
public java.lang.String toString()
toString
in class java.lang.Object