public class DefaultMemcachedBucketConfig extends AbstractBucketConfig implements MemcachedBucketConfig
| Constructor and Description |
|---|
DefaultMemcachedBucketConfig(ConfigParserEnvironment env,
long rev,
String name,
String uri,
String streamingUri,
List<NodeInfo> nodeInfos,
List<PortInfo> portInfos,
List<BucketCapabilities> bucketCapabilities)
Creates a new
MemcachedBucketConfig. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasFastForwardMap()
If this config instance contains a fast forward map.
|
SortedMap<Long,NodeInfo> |
ketamaNodes() |
NetworkAddress |
nodeForId(byte[] id)
Returns the target node address for the given document id.
|
long |
rev()
Revision number (optional) for that configuration.
|
boolean |
tainted()
If a config is marked as tainted.
|
String |
toString() |
BucketType |
type()
The bucket type.
|
locator, name, nodes, password, password, serviceEnabled, streamingUri, uri, username, usernameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitlocator, name, nodes, password, password, serviceEnabled, streamingUri, uri, username, usernamepublic DefaultMemcachedBucketConfig(ConfigParserEnvironment env, long rev, String name, String uri, String streamingUri, List<NodeInfo> nodeInfos, List<PortInfo> portInfos, List<BucketCapabilities> bucketCapabilities)
Creates a new 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()
BucketConfigIf a config is marked as tainted.
tainted in interface BucketConfigpublic long rev()
BucketConfigRevision number (optional) for that configuration.
rev in interface BucketConfigpublic BucketType type()
BucketConfigThe bucket type.
type in interface BucketConfigpublic SortedMap<Long,NodeInfo> ketamaNodes()
ketamaNodes in interface MemcachedBucketConfigpublic NetworkAddress nodeForId(byte[] id)
MemcachedBucketConfigReturns the target node address for the given document id.
nodeForId in interface MemcachedBucketConfigid - the id for the document.public boolean hasFastForwardMap()
BucketConfigIf this config instance contains a fast forward map.
hasFastForwardMap in interface BucketConfigCopyright © 2017 Couchbase, Inc.. All rights reserved.