Search in sources :

Example 6 with BucketManagerFactory

use of org.jnosql.diana.api.key.BucketManagerFactory in project jnosql-diana-driver by eclipse.

the class CouchbaseQueueTest method afterClass.

@AfterAll
public static void afterClass() {
    CouchbaseKeyValueConfiguration configuration = new CouchbaseKeyValueConfiguration();
    BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
    BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
    keyValueEntityManager.remove("jnosql:queue");
}
Also used : BucketManager(org.jnosql.diana.api.key.BucketManager) BucketManagerFactory(org.jnosql.diana.api.key.BucketManagerFactory) AfterAll(org.junit.jupiter.api.AfterAll)

Example 7 with BucketManagerFactory

use of org.jnosql.diana.api.key.BucketManagerFactory in project jnosql-diana-driver by eclipse.

the class CouchbaseSetTest method afterClass.

@AfterAll
public static void afterClass() {
    CouchbaseKeyValueConfiguration configuration = new CouchbaseKeyValueConfiguration();
    BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
    BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
    keyValueEntityManager.remove("jnosql:set");
}
Also used : BucketManager(org.jnosql.diana.api.key.BucketManager) BucketManagerFactory(org.jnosql.diana.api.key.BucketManagerFactory) AfterAll(org.junit.jupiter.api.AfterAll)

Example 8 with BucketManagerFactory

use of org.jnosql.diana.api.key.BucketManagerFactory in project jnosql-diana-driver by eclipse.

the class KeyValueEntityManagerFactoryUtils method get.

public static BucketManagerFactory get() {
    KeyValueConfiguration configuration = new InfinispanKeyValueConfiguration();
    BucketManagerFactory managerFactory = configuration.get();
    return managerFactory;
}
Also used : InfinispanKeyValueConfiguration(org.jnosql.diana.infinispan.key.InfinispanKeyValueConfiguration) KeyValueConfiguration(org.jnosql.diana.api.key.KeyValueConfiguration) InfinispanKeyValueConfiguration(org.jnosql.diana.infinispan.key.InfinispanKeyValueConfiguration) BucketManagerFactory(org.jnosql.diana.api.key.BucketManagerFactory)

Example 9 with BucketManagerFactory

use of org.jnosql.diana.api.key.BucketManagerFactory in project jnosql-diana-driver by eclipse.

the class KeyValueConfigurationTest method shouldCreateKeyValueFactoryFromFile.

@Test
public void shouldCreateKeyValueFactoryFromFile() {
    BucketManagerFactory managerFactory = configuration.get();
    assertNotNull(managerFactory);
}
Also used : BucketManagerFactory(org.jnosql.diana.api.key.BucketManagerFactory) Test(org.junit.jupiter.api.Test)

Example 10 with BucketManagerFactory

use of org.jnosql.diana.api.key.BucketManagerFactory in project jnosql-diana-driver by eclipse.

the class KeyValueConfigurationTest method shouldCreateKeyValueFactory.

@Test
public void shouldCreateKeyValueFactory() {
    Map<String, String> map = new HashMap<>();
    BucketManagerFactory managerFactory = configuration.get(map);
    assertNotNull(managerFactory);
}
Also used : HashMap(java.util.HashMap) BucketManagerFactory(org.jnosql.diana.api.key.BucketManagerFactory) Test(org.junit.jupiter.api.Test)

Aggregations

BucketManagerFactory (org.jnosql.diana.api.key.BucketManagerFactory)19 Test (org.junit.jupiter.api.Test)9 BucketManager (org.jnosql.diana.api.key.BucketManager)8 AfterAll (org.junit.jupiter.api.AfterAll)8 HashMap (java.util.HashMap)3 CouchbaseKeyValueConfiguration (org.jnosql.diana.couchbase.key.CouchbaseKeyValueConfiguration)3 KeyValueConfiguration (org.jnosql.diana.api.key.KeyValueConfiguration)2 HazelcastKeyValueConfiguration (org.jnosql.diana.hazelcast.key.HazelcastKeyValueConfiguration)1 InfinispanKeyValueConfiguration (org.jnosql.diana.infinispan.key.InfinispanKeyValueConfiguration)1