Examples of fsyncMode()


Examples of org.infinispan.configuration.cache.FileCacheStoreConfiguration.fsyncMode()

      assertTrue(loaderCfg.fetchPersistentState());
      assertTrue(loaderCfg.ignoreModifications());
      assertTrue(loaderCfg.purgeOnStartup());
      assertEquals("/tmp/FileCacheStore-Location", loaderCfg.location());
      assertEquals(FileCacheStoreConfigurationBuilder.FsyncMode.PERIODIC, loaderCfg.fsyncMode());
      assertEquals(2000, loaderCfg.fsyncInterval());
      assertEquals(20000, loaderCfg.singletonStore().pushStateTimeout());
      assertTrue(loaderCfg.singletonStore().pushStateWhenCoordinator());
      assertEquals(5, loaderCfg.async().threadPoolSize());
      assertEquals(15000, loaderCfg.async().flushLockTimeout());
View Full Code Here

Examples of org.infinispan.configuration.cache.FileCacheStoreConfiguration.fsyncMode()

      assertEquals(15000, clusterLoaderCfg.remoteCallTimeout());

      c = cm.getCacheConfiguration("withLoaderDefaults");
      loaderCfg = (FileCacheStoreConfiguration) c.loaders().cacheLoaders().get(0);
      assertEquals("/tmp/Another-FileCacheStore-Location", loaderCfg.location());
      assertEquals(FileCacheStoreConfigurationBuilder.FsyncMode.DEFAULT, loaderCfg.fsyncMode());

      c = cm.getCacheConfiguration("withouthJmxEnabled");
      assertTrue(!c.jmxStatistics().enabled());
      assertTrue(gc.globalJmxStatistics().enabled());
      assertTrue(gc.globalJmxStatistics().allowDuplicateDomains());
View Full Code Here

Examples of org.infinispan.configuration.cache.FileCacheStoreConfigurationBuilder.fsyncMode()

            break;
         case FSYNC_INTERVAL:
            fcscb.fsyncInterval(Long.parseLong(value));
            break;
         case FSYNC_MODE:
            fcscb.fsyncMode(FsyncMode.valueOf(value));
            break;
         case STREAM_BUFFER_SIZE:
            fcscb.streamBufferSize(Integer.parseInt(value));
            break;
         default:
View Full Code Here

Examples of org.infinispan.configuration.cache.FileCacheStoreConfigurationBuilder.fsyncMode()

                        callbackHandle.remove();
                    }
                }
            };
            dependencies.add(new Dependency<PathManager>(PathManagerService.SERVICE_NAME, PathManager.class, injector));
            return builder.fsyncMode(FsyncMode.PER_WRITE);
        } else if (storeKey.equals(ModelKeys.STRING_KEYED_JDBC_STORE) || storeKey.equals(ModelKeys.BINARY_KEYED_JDBC_STORE) || storeKey.equals(ModelKeys.MIXED_KEYED_JDBC_STORE)) {
            final AbstractJdbcCacheStoreConfigurationBuilder<?, ?> builder = this.buildJdbcStore(loadersBuilder, context, store);

            final String datasource = BaseJDBCStoreResource.DATA_SOURCE.resolveModelAttribute(context, store).asString();
View Full Code Here

Examples of org.infinispan.configuration.cache.FileCacheStoreConfigurationBuilder.fsyncMode()

            break;
         case FSYNC_INTERVAL:
            fcscb.fsyncInterval(Long.parseLong(value));
            break;
         case FSYNC_MODE:
            fcscb.fsyncMode(FsyncMode.valueOf(value));
            break;
         case STREAM_BUFFER_SIZE:
            fcscb.streamBufferSize(Integer.parseInt(value));
            break;
         default:
View Full Code Here

Examples of org.infinispan.configuration.cache.FileCacheStoreConfigurationBuilder.fsyncMode()

            break;
         case FSYNC_INTERVAL:
            fcscb.fsyncInterval(Long.parseLong(value));
            break;
         case FSYNC_MODE:
            fcscb.fsyncMode(FsyncMode.valueOf(value));
            break;
         case STREAM_BUFFER_SIZE:
            fcscb.streamBufferSize(Integer.parseInt(value));
            break;
         default:
View Full Code Here

Examples of org.infinispan.configuration.cache.FileCacheStoreConfigurationBuilder.fsyncMode()

            break;
         case FSYNC_INTERVAL:
            fcscb.fsyncInterval(Long.parseLong(value));
            break;
         case FSYNC_MODE:
            fcscb.fsyncMode(FsyncMode.valueOf(value));
            break;
         case STREAM_BUFFER_SIZE:
            fcscb.streamBufferSize(Integer.parseInt(value));
            break;
         default:
View Full Code Here

Examples of org.infinispan.loaders.file.FileCacheStoreConfig.fsyncMode()

            FileCacheStoreConfiguration store = (FileCacheStoreConfiguration) loader;
            if (store.location() != null) {
               fcsc.location(store.location());
            }
            if (store.fsyncMode() != null) {
               fcsc.fsyncMode(FileCacheStoreConfig.FsyncMode.valueOf(store.fsyncMode().name()));
            }
            fcsc.fsyncInterval(store.fsyncInterval());
            fcsc.streamBufferSize(store.streamBufferSize());
         }
         if (clc instanceof CacheStoreConfig) {
View Full Code Here

Examples of org.infinispan.loaders.file.FileCacheStoreConfig.fsyncMode()

            FileCacheStoreConfiguration store = (FileCacheStoreConfiguration) loader;
            if (store.location() != null) {
               fcsc.location(store.location());
            }
            if (store.fsyncMode() != null) {
               fcsc.fsyncMode(FileCacheStoreConfig.FsyncMode.valueOf(store.fsyncMode().name()));
            }
            fcsc.fsyncInterval(store.fsyncInterval());
            fcsc.streamBufferSize(store.streamBufferSize());
         }
         if (clc instanceof CacheStoreConfig) {
View Full Code Here

Examples of org.infinispan.loaders.file.FileCacheStoreConfig.fsyncMode()

            FileCacheStoreConfiguration store = (FileCacheStoreConfiguration) loader;
            if (store.location() != null) {
               fcsc.location(store.location());
            }
            if (store.fsyncMode() != null) {
               fcsc.fsyncMode(FileCacheStoreConfig.FsyncMode.valueOf(store.fsyncMode().name()));
            }
            fcsc.fsyncInterval(store.fsyncInterval());
            fcsc.streamBufferSize(store.streamBufferSize());
         }
         if (clc instanceof CacheStoreConfig) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.