Package com.couchbase.client.core.config
Class CouchbaseBucketConfig
java.lang.Object
com.couchbase.client.core.config.AbstractBucketConfig
com.couchbase.client.core.config.CouchbaseBucketConfig
- All Implemented Interfaces:
BucketConfig
Deprecated.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCouchbaseBucketConfig(long rev, long revEpoch, String uuid, String name, String uri, String streamingUri, PartitionInfo partitionInfo, List<NodeInfo> nodeInfos, List<PortInfo> portInfos, List<BucketCapabilities> bucketCapabilities, Map<String, Set<ClusterCapabilities>> clusterCapabilities, BucketType bucketType, String origin) Deprecated.Creates a newCouchbaseBucketConfig.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.booleanDeprecated.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.booleanDeprecated.booleanhasPrimaryPartitionsOnNode(String hostname) Deprecated.In favor ofhasPrimaryPartitionsOnNode(NodeIdentifier)which handles the case where node hosts are not unique within the cluster.nodeAtIndex(int nodeIndex) Deprecated.shortnodeIndexForActive(int partition, boolean useFastForward) Deprecated.shortnodeIndexForReplica(int partition, int replica, boolean useFastForward) Deprecated.intDeprecated.intDeprecated.booleantainted()Deprecated.Returns true if the config indicates the cluster is undergoing a transition (such as a rebalance operation).toString()Deprecated.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
-
Field Details
-
PARTITION_NOT_EXISTENT
public static final int PARTITION_NOT_EXISTENTDeprecated.- See Also:
-
-
Constructor Details
-
CouchbaseBucketConfig
public CouchbaseBucketConfig(long rev, long revEpoch, String uuid, String name, String uri, String streamingUri, PartitionInfo partitionInfo, List<NodeInfo> nodeInfos, List<PortInfo> portInfos, List<BucketCapabilities> bucketCapabilities, Map<String, Set<ClusterCapabilities>> clusterCapabilities, BucketType bucketType, String origin) Deprecated.Creates a newCouchbaseBucketConfig.- Parameters:
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.partitionInfo- partition info for this bucket.nodeInfos- related node information.portInfos- port info for the nodes, including services.
-
CouchbaseBucketConfig
Deprecated.
-
-
Method Details
-
numberOfReplicas
public int numberOfReplicas()Deprecated. -
tainted
public boolean tainted()Deprecated.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.
-
hasPrimaryPartitionsOnNode
Deprecated.In favor ofhasPrimaryPartitionsOnNode(NodeIdentifier)which handles the case where node hosts are not unique within the cluster. -
hasPrimaryPartitionsOnNode
Deprecated. -
nodeIndexForActive
public short nodeIndexForActive(int partition, boolean useFastForward) Deprecated. -
nodeIndexForReplica
public short nodeIndexForReplica(int partition, int replica, boolean useFastForward) Deprecated. -
numberOfPartitions
public int numberOfPartitions()Deprecated. -
nodeAtIndex
Deprecated. -
type
Deprecated.Description copied from interface:BucketConfigThe bucket type.- Returns:
- the bucket type.
-
hasFastForwardMap
public boolean hasFastForwardMap()Deprecated.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.
-
ephemeral
public boolean ephemeral()Deprecated. -
toString
Deprecated.
-
CouchbaseBucketTopology