Search in sources :

Example 11 with BucketManagerFactory

use of jakarta.nosql.keyvalue.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(jakarta.nosql.keyvalue.BucketManagerFactory) Test(org.junit.jupiter.api.Test)

Example 12 with BucketManagerFactory

use of jakarta.nosql.keyvalue.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 : KeyValueConfiguration(jakarta.nosql.keyvalue.KeyValueConfiguration) InfinispanKeyValueConfiguration(org.eclipse.jnosql.communication.infinispan.keyvalue.InfinispanKeyValueConfiguration) InfinispanKeyValueConfiguration(org.eclipse.jnosql.communication.infinispan.keyvalue.InfinispanKeyValueConfiguration) BucketManagerFactory(jakarta.nosql.keyvalue.BucketManagerFactory)

Example 13 with BucketManagerFactory

use of jakarta.nosql.keyvalue.BucketManagerFactory in project jnosql-diana-driver by eclipse.

the class HazelcastBucketManagerSupplier method get.

@Override
public BucketManager get() {
    KeyValueConfiguration configuration = new HazelcastKeyValueConfiguration();
    final BucketManagerFactory factory = configuration.get();
    return factory.getBucketManager(BUCKET);
}
Also used : KeyValueConfiguration(jakarta.nosql.keyvalue.KeyValueConfiguration) BucketManagerFactory(jakarta.nosql.keyvalue.BucketManagerFactory)

Example 14 with BucketManagerFactory

use of jakarta.nosql.keyvalue.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(jakarta.nosql.keyvalue.BucketManagerFactory) Test(org.junit.jupiter.api.Test)

Example 15 with BucketManagerFactory

use of jakarta.nosql.keyvalue.BucketManagerFactory in project jnosql-diana-driver by eclipse.

the class KeyValueEntityManagerFactoryUtils method get.

public static BucketManagerFactory get() {
    KeyValueConfiguration configuration = new HazelcastKeyValueConfiguration();
    BucketManagerFactory managerFactory = configuration.get();
    return managerFactory;
}
Also used : KeyValueConfiguration(jakarta.nosql.keyvalue.KeyValueConfiguration) HazelcastKeyValueConfiguration(org.eclipse.jnosql.communication.hazelcast.keyvalue.HazelcastKeyValueConfiguration) HazelcastKeyValueConfiguration(org.eclipse.jnosql.communication.hazelcast.keyvalue.HazelcastKeyValueConfiguration) BucketManagerFactory(jakarta.nosql.keyvalue.BucketManagerFactory)

Aggregations

BucketManagerFactory (jakarta.nosql.keyvalue.BucketManagerFactory)25 Test (org.junit.jupiter.api.Test)13 BucketManager (jakarta.nosql.keyvalue.BucketManager)8 AfterAll (org.junit.jupiter.api.AfterAll)8 HashMap (java.util.HashMap)4 KeyValueConfiguration (jakarta.nosql.keyvalue.KeyValueConfiguration)3 CouchbaseKeyValueConfiguration (org.eclipse.jnosql.communication.couchbase.keyvalue.CouchbaseKeyValueConfiguration)3 Settings (jakarta.nosql.Settings)1 HazelcastKeyValueConfiguration (org.eclipse.jnosql.communication.hazelcast.keyvalue.HazelcastKeyValueConfiguration)1 InfinispanKeyValueConfiguration (org.eclipse.jnosql.communication.infinispan.keyvalue.InfinispanKeyValueConfiguration)1 BucketManagerFactoryMock (org.eclipse.jnosql.mapping.keyvalue.configuration.KeyValueConfigurationMock.BucketManagerFactoryMock)1 Config (org.eclipse.microprofile.config.Config)1