Search in sources :

Example 1 with BucketSettings

use of com.couchbase.client.java.cluster.BucketSettings in project hazelcast-simulator by hazelcast.

the class BucketReadWriteTest method setup.

@Setup
public void setup() {
    // ClusterManager clusterManager = cluster.clusterManager("Administrator", "password");
    // BucketSettings bucketSettings = new DefaultBucketSettings.Builder()
    // .type(BucketType.COUCHBASE)
    // .name(name)
    // .replicas(0)
    // .quota(120)
    // .build();
    // 
    // clusterManager.insertBucket(bucketSettings);
    values = generateStrings(valueCount, minValueLength, maxValueLength);
    ClusterManager clusterManager = cluster.clusterManager("Administrator", "password");
    for (BucketSettings b : clusterManager.getBuckets()) {
        logger.info(b);
    }
    bucket = cluster.openBucket(name);
}
Also used : ClusterManager(com.couchbase.client.java.cluster.ClusterManager) BucketSettings(com.couchbase.client.java.cluster.BucketSettings) Setup(com.hazelcast.simulator.test.annotations.Setup)

Aggregations

BucketSettings (com.couchbase.client.java.cluster.BucketSettings)1 ClusterManager (com.couchbase.client.java.cluster.ClusterManager)1 Setup (com.hazelcast.simulator.test.annotations.Setup)1