private void terracotaConfig(final Config config) { TerracottaClientConfiguration terracota = new TerracottaClientConfiguration(); sbool("ehcache.terracottaConfig", config, "rejoin", terracota::setRejoin); sstr("ehcache.terracottaConfig", config, "url", terracota::setUrl); sbool("ehcache.terracottaConfig", config, "wanEnabledTSA", terracota::setWanEnabledTSA); eh.addTerracottaConfig(terracota); }
/** * Builder method to Terracotta capabilities to the cache manager through a dedicated configuration, this can only be used once. * * @return this configuration instance * @throws ObjectExistsException * if the Terracotta config has already been configured */ public final Configuration terracotta(TerracottaClientConfiguration terracottaConfiguration) throws ObjectExistsException { addTerracottaConfig(terracottaConfiguration); return this; }
/** * Builder method to Terracotta capabilities to the cache manager through a dedicated configuration, this can only be used once. * * @return this configuration instance * @throws ObjectExistsException * if the Terracotta config has already been configured */ public final Configuration terracotta(TerracottaClientConfiguration terracottaConfiguration) throws ObjectExistsException { addTerracottaConfig(terracottaConfiguration); return this; }
/** * Builder method to Terracotta capabilities to the cache manager through a dedicated configuration, this can only be used once. * * @return this configuration instance * @throws ObjectExistsException * if the Terracotta config has already been configured */ public final Configuration terracotta(TerracottaClientConfiguration terracottaConfiguration) throws ObjectExistsException { addTerracottaConfig(terracottaConfiguration); return this; }
/** * Builder method to Terracotta capabilities to the cache manager through a dedicated configuration, this can only be used once. * * @return this configuration instance * @throws ObjectExistsException * if the Terracotta config has already been configured */ public final Configuration terracotta(TerracottaClientConfiguration terracottaConfiguration) throws ObjectExistsException { addTerracottaConfig(terracottaConfiguration); return this; }
public void afterPropertiesSet() throws IOException, CacheException { logger.info("Initializing EHCache CacheManager"); this.configuration = ConfigurationFactory.parseConfiguration(this.configLocation.getInputStream()); if (this.diskStorePath != null) { logger.info("diskStorePath=" + this.diskStorePath); DiskStoreConfiguration dsConfig = new DiskStoreConfiguration(); dsConfig.setPath(this.diskStorePath); logger.info("diskStorePath (translated)=" + dsConfig.getPath()); configuration.addDiskStore(dsConfig); } if (this.terracottaUrl != null) { logger.info("terracottaUrl=" + this.terracottaUrl); TerracottaConfigConfiguration tcConfig = new TerracottaConfigConfiguration(); tcConfig.setUrl(this.terracottaUrl); configuration.addTerracottaConfig(tcConfig); } }
public void afterPropertiesSet() throws IOException, CacheException { logger.info("Initializing EHCache CacheManager"); this.configuration = ConfigurationFactory.parseConfiguration(this.configLocation.getInputStream()); if (this.diskStorePath != null) { logger.info("diskStorePath=" + this.diskStorePath); DiskStoreConfiguration dsConfig = new DiskStoreConfiguration(); dsConfig.setPath(this.diskStorePath); logger.info("diskStorePath (translated)=" + dsConfig.getPath()); configuration.addDiskStore(dsConfig); } if (this.terracottaUrl != null) { logger.info("terracottaUrl=" + this.terracottaUrl); TerracottaClientConfiguration tcConfig = new TerracottaClientConfiguration(); tcConfig.setUrl(this.terracottaUrl); configuration.addTerracottaConfig(tcConfig); } }
private void terracotaConfig(final Config config) { TerracottaClientConfiguration terracota = new TerracottaClientConfiguration(); sbool("ehcache.terracottaConfig", config, "rejoin", terracota::setRejoin); sstr("ehcache.terracottaConfig", config, "url", terracota::setUrl); sbool("ehcache.terracottaConfig", config, "wanEnabledTSA", terracota::setWanEnabledTSA); eh.addTerracottaConfig(terracota); }
terracottaConfig.setUrl(serverUrlsString); terracottaConfig.setRejoin(true); configuration.addTerracottaConfig(terracottaConfig); configuration.addTerracottaConfig(terracottaConfig); if (this.cacheManagerName != null) { if (this.shared && createWithConfiguration == null) {