public class BucketConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
bucketStartPort
The port number the nodes should begin at.
|
String |
hostname
The hostname the nodes should be bound to
|
String |
name
The name of the bucket.
|
int |
numNodes
The number of cluster nodes the bucket should have
|
int |
numReplicas
The number of replicas for the bucket
|
int |
numVBuckets
The number of VBuckets the bucket should contain
|
String |
password
The password for the bucket.
|
Bucket.BucketType |
type
The type of the bucket (Couchbase or Memcached)
|
| Constructor and Description |
|---|
BucketConfiguration()
Creates an empty configuration with the default options
|
BucketConfiguration(BucketConfiguration other)
Copies settings from the configuration
other to a new object. |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets the
name |
String |
getPassword() |
Bucket.BucketType |
getType() |
boolean |
validate() |
public int numVBuckets
public int numNodes
public int numReplicas
public Bucket.BucketType type
public String name
@NotNull public String password
public String hostname
public int bucketStartPort
numNodes is set to
5, then the nodes will listen on ports 1100 through 1104public BucketConfiguration()
public BucketConfiguration(BucketConfiguration other)
other to a new object.
Note that bucket-specific settings, such as name, password and similar
are not copied.other - The configuration to copypublic boolean validate()
@NotNull public String getPassword()
public Bucket.BucketType getType()
Copyright © 2017. All rights reserved.