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();
}
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;
}
Aggregations