builder.globalState().configurationStorage(ConfigurationStorage.IMMUTABLE).disable();
String temporaryLocation = pathManager.getValue().resolveRelativePathEntry(statePersistence.getTemporaryPath(), statePersistence.getTemporaryRelativeTo()); statePersistenceBuilder.temporaryLocation(temporaryLocation); statePersistenceBuilder.configurationStorage(statePersistence.getConfigurationStorage());
@Override protected void createCacheManagers() throws Throwable { for (int i = 0; i < 2; i++) { GlobalConfigurationBuilder global = GlobalConfigurationBuilder.defaultClusteredBuilder(); global.globalState().configurationStorage(ConfigurationStorage.IMMUTABLE); ConfigurationBuilder builder = new ConfigurationBuilder(); builder.clustering().cacheMode(CacheMode.DIST_SYNC); addClusterEnabledCacheManager(global, builder); } }
@Override protected void createCacheManagers() throws Throwable { GlobalConfigurationBuilder global = GlobalConfigurationBuilder.defaultClusteredBuilder(); global.globalState().configurationStorage(ConfigurationStorage.VOLATILE); ConfigurationBuilder builder = new ConfigurationBuilder(); builder.clustering().cacheMode(CacheMode.DIST_SYNC); addClusterEnabledCacheManager(builder); addClusterEnabledCacheManager(builder); }
@Override protected void createCacheManagers() throws Throwable { GlobalConfigurationBuilder global = GlobalConfigurationBuilder.defaultClusteredBuilder(); global.globalState().configurationStorage(ConfigurationStorage.IMMUTABLE); ConfigurationBuilder builder = new ConfigurationBuilder(); builder.clustering().cacheMode(CacheMode.DIST_SYNC); addClusterEnabledCacheManager(builder); addClusterEnabledCacheManager(builder); }
protected void createStatefulCacheManager(String id, boolean clear) { String stateDirectory = TestingUtil.tmpDirectory(this.getClass().getSimpleName() + File.separator + id); if (clear) Util.recursiveFileRemove(stateDirectory); GlobalConfigurationBuilder global = GlobalConfigurationBuilder.defaultClusteredBuilder(); global.globalState().enable().persistentLocation(stateDirectory). configurationStorage(ConfigurationStorage.OVERLAY); if (isShared()) { String sharedDirectory = TestingUtil.tmpDirectory(this.getClass().getSimpleName() + File.separator + "COMMON"); global.globalState().sharedPersistentLocation(sharedDirectory); } else { global.globalState().sharedPersistentLocation(stateDirectory); } ConfigurationBuilder builder = new ConfigurationBuilder(); builder.clustering().cacheMode(CacheMode.DIST_SYNC); addClusterEnabledCacheManager(global, builder); }
builder.globalState().configurationStorage(ConfigurationStorage.IMMUTABLE).disable();