public class CouchbaseBucketConfig extends AbstractBucketConfig
Modifier and Type | Field and Description |
---|---|
static int |
PARTITION_NOT_EXISTENT |
Constructor and Description |
---|
CouchbaseBucketConfig(long rev,
String uuid,
String name,
String uri,
String streamingUri,
PartitionInfo partitionInfo,
List<NodeInfo> nodeInfos,
List<PortInfo> portInfos,
List<BucketCapabilities> bucketCapabilities,
Map<String,Set<ClusterCapabilities>> clusterCapabilities,
String origin)
Creates a new
CouchbaseBucketConfig . |
Modifier and Type | Method and Description |
---|---|
boolean |
ephemeral() |
boolean |
hasFastForwardMap()
Returns true if the config has a fast forward map that describes what the
topology of the cluster will be after the current rebalance operation completes.
|
boolean |
hasPrimaryPartitionsOnNode(String hostname) |
NodeInfo |
nodeAtIndex(int nodeIndex) |
short |
nodeIndexForActive(int partition,
boolean useFastForward) |
short |
nodeIndexForReplica(int partition,
int replica,
boolean useFastForward) |
int |
numberOfPartitions() |
int |
numberOfReplicas() |
long |
rev()
Revision number (optional) for that configuration.
|
boolean |
tainted()
Returns true if the config indicates the cluster is undergoing
a transition (such as a rebalance operation).
|
String |
toString() |
BucketType |
type()
The bucket type.
|
bucketCapabilities, clusterCapabilities, locator, name, nodes, serviceEnabled, streamingUri, uri, uuid
public static final int PARTITION_NOT_EXISTENT
public CouchbaseBucketConfig(long rev, String uuid, String name, String uri, String streamingUri, PartitionInfo partitionInfo, List<NodeInfo> nodeInfos, List<PortInfo> portInfos, List<BucketCapabilities> bucketCapabilities, Map<String,Set<ClusterCapabilities>> clusterCapabilities, String origin)
CouchbaseBucketConfig
.rev
- the revision of the config.name
- the name of the 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 int numberOfReplicas()
public boolean tainted()
BucketConfig
public boolean hasPrimaryPartitionsOnNode(String hostname)
public short nodeIndexForActive(int partition, boolean useFastForward)
public short nodeIndexForReplica(int partition, int replica, boolean useFastForward)
public int numberOfPartitions()
public NodeInfo nodeAtIndex(int nodeIndex)
public long rev()
BucketConfig
public BucketType type()
BucketConfig
public boolean hasFastForwardMap()
BucketConfig
public boolean ephemeral()
Copyright © 2020 Couchbase, Inc.. All rights reserved.