public class MemcachedBucketConfig extends AbstractBucketConfig
Constructor and Description |
---|
MemcachedBucketConfig(CoreEnvironment env,
long rev,
long revEpoch,
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 |
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.
|
SortedMap<Long,NodeInfo> |
ketamaNodes()
Deprecated.
Please use
nodeForKey(byte[]) for Ketama lookups instead. |
NodeIdentifier |
nodeForId(byte[] id)
Deprecated.
Please use
nodeForKey(byte[]) .identifier() instead. |
NodeInfo |
nodeForKey(byte[] id) |
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 Ketama 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, portInfos, rev, revEpoch, serviceEnabled, streamingUri, uri, uuid, version
public MemcachedBucketConfig(CoreEnvironment env, long rev, long revEpoch, 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()
BucketConfig
public BucketType type()
BucketConfig
@Deprecated public SortedMap<Long,NodeInfo> ketamaNodes()
nodeForKey(byte[])
for Ketama lookups instead.@Deprecated public NodeIdentifier nodeForId(byte[] id)
nodeForKey(byte[])
.identifier() instead.public NodeInfo nodeForKey(byte[] id)
public boolean hasFastForwardMap()
BucketConfig
Copyright © 2024 Couchbase, Inc.. All rights reserved.