Search in sources :

Example 11 with DummyInMemoryStoreConfigurationBuilder

use of org.infinispan.persistence.dummy.DummyInMemoryStoreConfigurationBuilder in project infinispan by infinispan.

the class StateTransferFetchOnlyPersistentStateTest method createConfiguration.

private ConfigurationBuilder createConfiguration(int id) {
    ConfigurationBuilder cfg = getDefaultClusteredCacheConfig(CacheMode.REPL_SYNC, true);
    cfg.clustering().stateTransfer().fetchInMemoryState(false);
    DummyInMemoryStoreConfigurationBuilder dimcs = new DummyInMemoryStoreConfigurationBuilder(cfg.persistence());
    dimcs.storeName("store id: " + id);
    dimcs.fetchPersistentState(true).shared(false);
    cfg.persistence().addStore(dimcs);
    return cfg;
}
Also used : DummyInMemoryStoreConfigurationBuilder(org.infinispan.persistence.dummy.DummyInMemoryStoreConfigurationBuilder) ConfigurationBuilder(org.infinispan.configuration.cache.ConfigurationBuilder) DummyInMemoryStoreConfigurationBuilder(org.infinispan.persistence.dummy.DummyInMemoryStoreConfigurationBuilder)

Aggregations

DummyInMemoryStoreConfigurationBuilder (org.infinispan.persistence.dummy.DummyInMemoryStoreConfigurationBuilder)11 ConfigurationBuilder (org.infinispan.configuration.cache.ConfigurationBuilder)8 EmbeddedCacheManager (org.infinispan.manager.EmbeddedCacheManager)4 DummyInMemoryStore (org.infinispan.persistence.dummy.DummyInMemoryStore)3 TransportFlags (org.infinispan.test.fwk.TransportFlags)2 AsyncNonBlockingStore (org.infinispan.persistence.async.AsyncNonBlockingStore)1 PersistenceManager (org.infinispan.persistence.manager.PersistenceManager)1 InitializationContext (org.infinispan.persistence.spi.InitializationContext)1 Person (org.infinispan.query.test.Person)1 CountMarshallingPojo (org.infinispan.test.data.CountMarshallingPojo)1