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
public class MemcachedBucketConfig extends AbstractBucketConfig
-
-
Constructor Summary
Constructors Constructor 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 newMemcachedBucketConfig.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)booleanhasFastForwardMap()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.inthashCode()SortedMap<Long,NodeInfo>ketamaNodes()NodeIdentifiernodeForId(byte[] id)booleantainted()Returns true if the config indicates the cluster is undergoing a transition (such as a rebalance operation).StringtoString()Note that dumping the whole ring is pretty much useless, so here we focus on just dumping all the nodes that participate in the cluster instead.BucketTypetype()The bucket type.-
Methods inherited from class com.couchbase.client.core.config.AbstractBucketConfig
bucketCapabilities, clusterCapabilities, locator, name, nodes, portInfos, rev, revEpoch, serviceEnabled, streamingUri, uri, uuid
-
-
-
-
Constructor Detail
-
MemcachedBucketConfig
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)
Creates a newMemcachedBucketConfig.- Parameters:
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.
-
-
Method Detail
-
tainted
public boolean tainted()
Description copied from interface:BucketConfigReturns 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
public BucketType type()
Description copied from interface:BucketConfigThe bucket type.- Returns:
- the bucket type.
-
nodeForId
public NodeIdentifier nodeForId(byte[] id)
-
hasFastForwardMap
public boolean hasFastForwardMap()
Description copied from interface:BucketConfigReturns 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
public String toString()
Note that dumping the whole ring is pretty much useless, so here we focus on just dumping all the nodes that participate in the cluster instead.
-
-