Search in sources :

Example 1 with BucketConfiguration

use of com.couchbase.mock.BucketConfiguration in project samza by apache.

the class TestCouchbaseRemoteTableEndToEnd method createMockBuckets.

private void createMockBuckets(List<String> bucketNames) throws Exception {
    ArrayList<BucketConfiguration> configList = new ArrayList<>();
    bucketNames.forEach(name -> configList.add(configBucket(name)));
    couchbaseMock = new CouchbaseMock(0, configList);
    couchbaseMock.start();
    couchbaseMock.waitForStartup();
}
Also used : CouchbaseMock(com.couchbase.mock.CouchbaseMock) ArrayList(java.util.ArrayList) BucketConfiguration(com.couchbase.mock.BucketConfiguration)

Example 2 with BucketConfiguration

use of com.couchbase.mock.BucketConfiguration in project samza by apache.

the class TestCouchbaseRemoteTableEndToEnd method configBucket.

private BucketConfiguration configBucket(String bucketName) {
    BucketConfiguration config = new BucketConfiguration();
    config.numNodes = 1;
    config.numReplicas = 1;
    config.name = bucketName;
    return config;
}
Also used : BucketConfiguration(com.couchbase.mock.BucketConfiguration)

Aggregations

BucketConfiguration (com.couchbase.mock.BucketConfiguration)2 CouchbaseMock (com.couchbase.mock.CouchbaseMock)1 ArrayList (java.util.ArrayList)1