public class DefaultCouchbaseBucketConfig extends AbstractBucketConfig implements CouchbaseBucketConfig
Constructor and Description |
---|
DefaultCouchbaseBucketConfig(long rev,
String name,
String locator,
String uri,
String streamingUri,
com.couchbase.client.core.config.DefaultCouchbaseBucketConfig.PartitionInfo partitionInfo,
List<NodeInfo> nodeInfos,
List<PortInfo> portInfos)
Creates a new
CouchbaseBucketConfig . |
Modifier and Type | Method and Description |
---|---|
int |
numberOfReplicas()
The number of configured replicas for this bucket.
|
List<NodeInfo> |
partitionHosts()
Returns the hosts for the partition map.
|
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.
|
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, String name, String locator, String uri, String streamingUri, com.couchbase.client.core.config.DefaultCouchbaseBucketConfig.PartitionInfo partitionInfo, List<NodeInfo> nodeInfos, List<PortInfo> portInfos)
Creates a new CouchbaseBucketConfig
.
rev
- the revision of the config.name
- the name of the bucket.locator
- the locator for this bucket.uri
- the URI for this bucket.streamingUri
- the streaming URI for this bucket.partitionInfo
- partition info for this bucket.nodeInfos
- related node information.portInfos
- port info for the nodes, including services.public List<NodeInfo> partitionHosts()
CouchbaseBucketConfig
Returns the hosts for the partition map.
partitionHosts
in interface CouchbaseBucketConfig
public 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
Copyright © 2014 Couchbase, Inc.