public interface CouchbaseBucketConfig extends BucketConfig
A configuration representing the couchbase bucket.
Modifier and Type | Method and Description |
---|---|
boolean |
ephemeral()
If this couchbase bucket is ephemeral.
|
boolean |
hasPrimaryPartitionsOnNode(NetworkAddress 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,
boolean useFastForward)
Returns the node index for the given partition index and master.
|
short |
nodeIndexForReplica(int partition,
int replica,
boolean useFastForward)
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.
|
hasFastForwardMap, locator, name, nodes, password, password, rev, serviceEnabled, streamingUri, tainted, type, uri, useAlternateNetwork, useAlternateNetwork, username, username, uuid
short nodeIndexForMaster(int partition, boolean useFastForward)
Returns the node index for the given partition index and master.
partition
- the index of the partition.useFastForward
- if the fast forward config should be used.short nodeIndexForReplica(int partition, int replica, boolean useFastForward)
Returns the node index for the given partition index and the replica.
partition
- the index of the partition.replica
- the replica number.useFastForward
- if the fast forward config should be used.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(NetworkAddress hostname)
Checks if the given hostname has active primary partitions assigned to it.
hostname
- the hostname of the node to check against.boolean ephemeral()
If this couchbase bucket is ephemeral.
Copyright © 2018 Couchbase, Inc.. All rights reserved.