com.couchbase.client.java.cluster.BucketSettings Java Examples

The following examples show how to use com.couchbase.client.java.cluster.BucketSettings. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BucketReadWriteTest.java    From hazelcast-simulator with Apache License 2.0 6 votes vote down vote up
@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 = generateAsciiStrings(valueCount, minValueLength, maxValueLength);


        ClusterManager clusterManager = cluster.clusterManager("Administrator", "password");
        for (BucketSettings b : clusterManager.getBuckets()) {
            logger.info(b);
        }
        bucket = cluster.openBucket(name);
    }