public class MemcachedBucketConfig extends AbstractBucketConfig
| Constructor and Description |
|---|
MemcachedBucketConfig(CoreEnvironment env,
long rev,
String uuid,
String name,
String uri,
String streamingUri,
List<NodeInfo> nodeInfos,
List<PortInfo> portInfos,
List<BucketCapabilities> bucketCapabilities,
Map<String,Set<ClusterCapabilities>> clusterCapabilities,
String origin)
Creates a new
MemcachedBucketConfig. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
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.
|
int |
hashCode() |
SortedMap<Long,NodeInfo> |
ketamaNodes() |
NodeIdentifier |
nodeForId(byte[] id) |
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()
Note that dumping the whole ring is pretty much useless, so here we focus on just dumping all the nodes
that participate in the cluster instead.
|
BucketType |
type()
The bucket type.
|
bucketCapabilities, clusterCapabilities, locator, name, nodes, serviceEnabled, streamingUri, uri, uuidpublic MemcachedBucketConfig(CoreEnvironment env, long rev, String uuid, String name, String uri, String streamingUri, List<NodeInfo> nodeInfos, List<PortInfo> portInfos, List<BucketCapabilities> bucketCapabilities, Map<String,Set<ClusterCapabilities>> clusterCapabilities, String origin)
MemcachedBucketConfig.env - the environment to use.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.nodeInfos - related node information.portInfos - port info for the nodes, including services.public boolean tainted()
BucketConfigpublic long rev()
BucketConfigpublic BucketType type()
BucketConfigpublic NodeIdentifier nodeForId(byte[] id)
public boolean hasFastForwardMap()
BucketConfigpublic String toString()
Copyright © 2021 Couchbase, Inc.. All rights reserved.