Search in sources :

Example 6 with CouchbaseEnvironment

use of com.couchbase.client.java.env.CouchbaseEnvironment in project tutorials by eugenp.

the class ClusterServiceImpl method init.

@PostConstruct
private void init() {
    CouchbaseEnvironment env = DefaultCouchbaseEnvironment.create();
    cluster = CouchbaseCluster.create(env, "localhost");
}
Also used : CouchbaseEnvironment(com.couchbase.client.java.env.CouchbaseEnvironment) DefaultCouchbaseEnvironment(com.couchbase.client.java.env.DefaultCouchbaseEnvironment) PostConstruct(javax.annotation.PostConstruct)

Aggregations

CouchbaseEnvironment (com.couchbase.client.java.env.CouchbaseEnvironment)6 DefaultCouchbaseEnvironment (com.couchbase.client.java.env.DefaultCouchbaseEnvironment)5 Bucket (com.couchbase.client.java.Bucket)2 CouchbaseCluster (com.couchbase.client.java.CouchbaseCluster)2 JsonDocument (com.couchbase.client.java.document.JsonDocument)2 PostConstruct (javax.annotation.PostConstruct)2 JsonObject (com.couchbase.client.java.document.json.JsonObject)1 ScanConsistency (com.couchbase.client.java.query.consistency.ScanConsistency)1 Config (com.typesafe.config.Config)1 IOException (java.io.IOException)1 Properties (java.util.Properties)1 TimeUnit (java.util.concurrent.TimeUnit)1 InvalidPropertyException (javax.resource.spi.InvalidPropertyException)1 State (org.apache.gobblin.configuration.State)1 AsyncDataWriter (org.apache.gobblin.writer.AsyncDataWriter)1 BasicConnectionFactory (org.teiid.resource.spi.BasicConnectionFactory)1 Test (org.testng.annotations.Test)1