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,
NetworkAddress 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() |
NetworkAddress |
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.
|
locator, name, nodes, password, password, serviceEnabled, streamingUri, uri, useAlternateNetwork, useAlternateNetwork, username, username, uuid
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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, NetworkAddress origin)
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()
BucketConfig
Returns true if the config indicates the cluster is undergoing a transition (such as a rebalance operation).
tainted
in interface BucketConfig
public long rev()
BucketConfig
Revision number (optional) for that configuration.
rev
in interface BucketConfig
public BucketType type()
BucketConfig
The bucket type.
type
in interface BucketConfig
public SortedMap<Long,NodeInfo> ketamaNodes()
ketamaNodes
in interface MemcachedBucketConfig
public NetworkAddress nodeForId(byte[] id)
MemcachedBucketConfig
Returns the target node address for the given document id.
nodeForId
in interface MemcachedBucketConfig
id
- the id for the document.public boolean hasFastForwardMap()
BucketConfig
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.
hasFastForwardMap
in interface BucketConfig
Copyright © 2018 Couchbase, Inc.. All rights reserved.