Package com.couchbase.client.core.config
Class MemcachedBucketConfig
java.lang.Object
com.couchbase.client.core.config.AbstractBucketConfig
com.couchbase.client.core.config.MemcachedBucketConfig
- All Implemented Interfaces:
BucketConfig
Deprecated.
-
Constructor Summary
ConstructorDescriptionMemcachedBucketConfig
(MemcachedHashingStrategy hashingStrategy, 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) Deprecated.Creates a newMemcachedBucketConfig
.MemcachedBucketConfig
(ClusterTopologyWithBucket cluster, MemcachedHashingStrategy hashingStrategy) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.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.Deprecated.Please usenodeForKey(byte[])
for Ketama lookups instead.nodeForId
(byte[] id) Deprecated.Please usenodeForKey(byte[])
.identifier() instead.nodeForKey
(byte[] id) Deprecated.boolean
tainted()
Deprecated.Returns true if the config indicates the cluster is undergoing a transition (such as a rebalance operation).toString()
Deprecated.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.type()
Deprecated.The bucket type.Methods inherited from class com.couchbase.client.core.config.AbstractBucketConfig
asClusterTopology, bucketCapabilities, clusterCapabilities, locator, name, nodes, portInfos, rev, revEpoch, serviceEnabled, streamingUri, uri, uuid, version
-
Constructor Details
-
MemcachedBucketConfig
public MemcachedBucketConfig(MemcachedHashingStrategy hashingStrategy, 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) Deprecated.Creates a newMemcachedBucketConfig
.- Parameters:
hashingStrategy
- the hashing strategy 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.
-
MemcachedBucketConfig
public MemcachedBucketConfig(ClusterTopologyWithBucket cluster, MemcachedHashingStrategy hashingStrategy) Deprecated.
-
-
Method Details
-
tainted
public boolean tainted()Deprecated.Description copied from interface:BucketConfig
Returns true if the config indicates the cluster is undergoing a transition (such as a rebalance operation).- Returns:
- true if a transition is in progress.
-
type
Deprecated.Description copied from interface:BucketConfig
The bucket type.- Returns:
- the bucket type.
-
ketamaNodes
Deprecated.Please usenodeForKey(byte[])
for Ketama lookups instead. -
nodeForId
Deprecated.Please usenodeForKey(byte[])
.identifier() instead. -
nodeForKey
Deprecated. -
hasFastForwardMap
public boolean hasFastForwardMap()Deprecated.Description copied from interface: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.- Returns:
- true if it does, false otherwise.
-
toString
Deprecated.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.
-
MemcachedBucketTopology