public class DefaultMemcachedBucketConfig extends AbstractBucketConfig implements MemcachedBucketConfig
Constructor and Description |
---|
DefaultMemcachedBucketConfig(ConfigParserEnvironment env,
long rev,
String uuid,
String name,
String uri,
String streamingUri,
List<NodeInfo> nodeInfos,
List<PortInfo> portInfos,
List<BucketCapabilities> bucketCapabilities,
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() |
String |
nodeForId(byte[] id)
Returns the target node address for the given document 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() |
BucketType |
type()
The bucket type.
|
capabilities, locator, name, nodes, password, password, serviceEnabled, streamingUri, uri, useAlternateNetwork, useAlternateNetwork, username, username, uuid
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
capabilities, locator, name, nodes, password, password, serviceEnabled, streamingUri, uri, useAlternateNetwork, useAlternateNetwork, username, username, uuid
public DefaultMemcachedBucketConfig(ConfigParserEnvironment env, long rev, String uuid, String name, String uri, String streamingUri, List<NodeInfo> nodeInfos, List<PortInfo> portInfos, List<BucketCapabilities> bucketCapabilities, String origin)
MemcachedBucketConfig
.env
- the bootstrap part of environment object.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
tainted
in interface BucketConfig
public long rev()
BucketConfig
rev
in interface BucketConfig
public BucketType type()
BucketConfig
type
in interface BucketConfig
public SortedMap<Long,NodeInfo> ketamaNodes()
ketamaNodes
in interface MemcachedBucketConfig
public String nodeForId(byte[] id)
MemcachedBucketConfig
nodeForId
in interface MemcachedBucketConfig
id
- the id for the document.public boolean hasFastForwardMap()
BucketConfig
hasFastForwardMap
in interface BucketConfig
Copyright © 2021 Couchbase, Inc.. All rights reserved.