public class DefaultCouchbaseBucketConfig extends AbstractBucketConfig implements CouchbaseBucketConfig
Constructor and Description |
---|
DefaultCouchbaseBucketConfig(long rev,
java.lang.String name,
java.lang.String locator,
java.lang.String uri,
java.lang.String streamingUri,
com.couchbase.client.core.config.DefaultCouchbaseBucketConfig.PartitionInfo partitionInfo,
java.util.List<NodeInfo> nodeInfos,
java.util.List<PortInfo> portInfos) |
Modifier and Type | Method and Description |
---|---|
int |
numberOfReplicas()
The number of configured replicas for this bucket.
|
java.util.List<NodeInfo> |
partitionHosts()
Returns the hosts for the partition map.
|
java.util.List<Partition> |
partitions()
All partitions, sorted by their partition index.
|
long |
rev()
Revision number (optional) for that configuration.
|
boolean |
tainted()
If a config is marked as tainted.
|
java.lang.String |
toString() |
BucketType |
type()
The bucket type.
|
locator, name, nodes, password, password, streamingUri, uri
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
locator, name, nodes, password, password, streamingUri, uri
public DefaultCouchbaseBucketConfig(long rev, java.lang.String name, java.lang.String locator, java.lang.String uri, java.lang.String streamingUri, com.couchbase.client.core.config.DefaultCouchbaseBucketConfig.PartitionInfo partitionInfo, java.util.List<NodeInfo> nodeInfos, java.util.List<PortInfo> portInfos)
public java.util.List<NodeInfo> partitionHosts()
CouchbaseBucketConfig
Returns the hosts for the partition map.
partitionHosts
in interface CouchbaseBucketConfig
public java.util.List<Partition> partitions()
CouchbaseBucketConfig
All partitions, sorted by their partition index.
partitions
in interface CouchbaseBucketConfig
public int numberOfReplicas()
CouchbaseBucketConfig
The number of configured replicas for this bucket.
numberOfReplicas
in interface CouchbaseBucketConfig
public boolean tainted()
BucketConfig
If a config is marked as tainted.
tainted
in interface BucketConfig
public long rev()
BucketConfig
Revision number (optional) for that configuration.
rev
in interface BucketConfig
public BucketType type()
BucketConfig
The bucket type.
type
in interface BucketConfig
public java.lang.String toString()
toString
in class java.lang.Object