@Override public PersistenceConfiguration get() { PersistenceConfiguration persistence = super.get(); StoreConfiguration store = persistence.stores().get(0); try { @SuppressWarnings("unchecked") Class<StoreConfigurationBuilder<?, ?>> storeClass = (Class<StoreConfigurationBuilder<?, ?>>) this.module.get().getClassLoader().loadClass(this.className).asSubclass(StoreConfigurationBuilder.class); return new ConfigurationBuilder().persistence().passivation(persistence.passivation()).addStore(storeClass) .async().read(store.async()) .fetchPersistentState(store.fetchPersistentState()) .preload(store.preload()) .purgeOnStartup(store.purgeOnStartup()) .shared(store.shared()) .withProperties(store.properties()) .persistence().create(); } catch (ClassNotFoundException | ClassCastException e) { throw InfinispanLogger.ROOT_LOGGER.invalidCacheStore(e, this.className); } }
@Override public PersistenceConfiguration get() { B builder = new ConfigurationBuilder().persistence() .passivation(this.passivation) .addStore(this.builderClass) .fetchPersistentState(this.fetchState) .maxBatchSize(this.maxBatchSize) .preload(this.preload) .purgeOnStartup(this.purge) .shared(this.shared) .withProperties(this.properties) ; this.accept(builder); return builder.async().read(this.async.get()).persistence().create(); } }
@Override public Builder<?> read(LuceneLoaderConfiguration template) { this.autoChunkSize = template.autoChunkSize(); this.location = template.location(); // AbstractStore-specific configuration this.fetchPersistentState = template.fetchPersistentState(); this.ignoreModifications = template.ignoreModifications(); this.properties = template.properties(); this.purgeOnStartup = template.purgeOnStartup(); this.async.read(template.async()); this.singletonStore.read(template.singletonStore()); this.preload = template.preload(); return this; }
@Override public JdbmCacheStoreConfigurationBuilder read(JdbmCacheStoreConfiguration template) { this.comparatorClassName = template.comparatorClassName(); this.expiryQueueSize = template.expiryQueueSize(); this.location = template.location(); // AbstractStore-specific configuration fetchPersistentState = template.fetchPersistentState(); ignoreModifications = template.ignoreModifications(); properties = template.properties(); purgeOnStartup = template.purgeOnStartup(); purgeSynchronously = template.purgeSynchronously(); async.read(template.async()); singletonStore.read(template.singletonStore()); return this; } }
@Override public PersistenceConfiguration get() { PersistenceConfiguration persistence = super.get(); StoreConfiguration store = persistence.stores().get(0); try { @SuppressWarnings("unchecked") Class<StoreConfigurationBuilder<?, ?>> storeClass = (Class<StoreConfigurationBuilder<?, ?>>) this.module.get().getClassLoader().loadClass(this.className).asSubclass(StoreConfigurationBuilder.class); return new ConfigurationBuilder().persistence().passivation(persistence.passivation()).addStore(storeClass) .async().read(store.async()) .fetchPersistentState(store.fetchPersistentState()) .preload(store.preload()) .purgeOnStartup(store.purgeOnStartup()) .shared(store.shared()) .withProperties(store.properties()) .persistence().create(); } catch (ClassNotFoundException | ClassCastException e) { throw InfinispanLogger.ROOT_LOGGER.invalidCacheStore(e, this.className); } }
@Override public Custom52xCacheStoreConfigurationBuilder read(Custom52xCacheStoreConfiguration template) { // Custom52xCacheStore-specific configuration fsyncInterval = template.fsyncInterval(); fsyncMode = template.fsyncMode(); location = template.location(); streamBufferSize = template.streamBufferSize(); // AbstractLockSupportCacheStore-specific configuration lockAcquistionTimeout = template.lockAcquistionTimeout(); lockConcurrencyLevel = template.lockConcurrencyLevel(); // AbstractStore-specific configuration fetchPersistentState = template.fetchPersistentState(); ignoreModifications = template.ignoreModifications(); properties = template.properties(); purgeOnStartup = template.purgeOnStartup(); purgeSynchronously = template.purgeSynchronously(); async.read(template.async()); singletonStore.read(template.singletonStore()); return this; }
@Override public PersistenceConfiguration get() { B builder = new ConfigurationBuilder().persistence() .passivation(this.passivation) .addStore(this.builderClass) .fetchPersistentState(this.fetchState) .maxBatchSize(this.maxBatchSize) .preload(this.preload) .purgeOnStartup(this.purge) .shared(this.shared) .withProperties(this.properties) ; this.accept(builder); return builder.async().read(this.async.get()).persistence().create(); } }
@Override public BdbjeCacheStoreConfigurationBuilder read(BdbjeCacheStoreConfiguration template) { this.location = template.location(); this.lockAcquistionTimeout = template.lockAcquisitionTimeout(); this.maxTxRetries = template.maxTxRetries(); this.cacheDbNamePrefix = template.cacheDbNamePrefix(); this.catalogDbName = template.catalogDbName(); this.expiryDbPrefix = template.expiryDbPrefix(); this.environmentPropertiesFile = template.environmentPropertiesFile(); // AbstractStore-specific configuration fetchPersistentState = template.fetchPersistentState(); ignoreModifications = template.ignoreModifications(); properties = template.properties(); purgeOnStartup = template.purgeOnStartup(); purgeSynchronously = template.purgeSynchronously(); async.read(template.async()); singletonStore.read(template.singletonStore()); return this; }