public interface CouchbaseBucketConfig extends BucketConfig
A configuration representing the couchbase bucket.
Modifier and Type | Method and Description |
---|---|
boolean |
hasPrimaryPartitionsOnNode(InetAddress hostname)
Checks if the given hostname has active primary partitions assigned to it.
|
NodeInfo |
nodeAtIndex(int nodeIndex)
Returns information for the node at the given index.
|
short |
nodeIndexForMaster(int partition)
Returns the node index for the given partition index and master.
|
short |
nodeIndexForReplica(int partition,
int replica)
Returns the node index for the given partition index and the replica.
|
int |
numberOfPartitions()
Returns the total number of partitions.
|
int |
numberOfReplicas()
The number of configured replicas for this bucket.
|
locator, name, nodes, password, password, rev, serviceEnabled, streamingUri, tainted, type, uri
short nodeIndexForMaster(int partition)
Returns the node index for the given partition index and master.
partition
- the index of the partition.short nodeIndexForReplica(int partition, int replica)
Returns the node index for the given partition index and the replica.
partition
- the index of the partition.replica
- the replica number.int numberOfPartitions()
Returns the total number of partitions.
NodeInfo nodeAtIndex(int nodeIndex)
Returns information for the node at the given index.
nodeIndex
- the index of the node.int numberOfReplicas()
The number of configured replicas for this bucket.
boolean hasPrimaryPartitionsOnNode(InetAddress hostname)
Checks if the given hostname has active primary partitions assigned to it.
hostname
- the hostname of the node to check against.Copyright © 2014 Couchbase, Inc.