/** * Assert that the current product is compatible with the version of ehcache available on the classpath */ public void assertRequiredCoreVersionPresent() { boolean ignoreVersionCheck = Boolean.getBoolean("terracotta.ehcache.versioncheck.skip"); String requiredCoreVersion = getRequiredCoreVersion(); if (ignoreVersionCheck || requiredCoreVersion == null) { // no requirement return; } ProductInfo coreProductInfo = new ProductInfo(); String coreVersion = coreProductInfo.getVersion(); if (!coreVersion.equals(requiredCoreVersion)) { String msg = getName() + " version [" + getVersion() + "] only works with ehcache-core version [" + requiredCoreVersion + "] (found version [" + coreVersion + "] on the classpath). " + " Please make sure both versions are compatible!"; throw new CacheException(msg); } }
/** * returns long version of the build string */ @Override public String toString() { String versionString = String.format("%s version %s was built on %s, at revision %s, with jdk %s", getName(), getVersion(), getBuildTime(), getBuildRevision(), getBuildJdk()); if (!UNKNOWN.equals(getPatchLevel())) { versionString = versionString + ". Patch level " + getPatchLevel(); } return versionString; } }
public DefaultCacheResolverFactory(CacheManager cacheManager) { this.cacheManager = cacheManager; final ProductInfo productInfo = new ProductInfo(); final String version = productInfo.getVersion(); this.badSelfPopulatingCache = version.equals("2.3.0") || version.equals("2.3.1"); }
/** * Assert that the current product is compatible with the version of ehcache available on the classpath */ public void assertRequiredCoreVersionPresent() { boolean ignoreVersionCheck = Boolean.getBoolean("terracotta.ehcache.versioncheck.skip"); String requiredCoreVersion = getRequiredCoreVersion(); if (ignoreVersionCheck || requiredCoreVersion == null) { // no requirement return; } ProductInfo coreProductInfo = new ProductInfo(); String coreVersion = coreProductInfo.getVersion(); if (!coreVersion.equals(requiredCoreVersion)) { String msg = getName() + " version [" + getVersion() + "] only works with ehcache-core version [" + requiredCoreVersion + "] (found version [" + coreVersion + "] on the classpath). " + " Please make sure both versions are compatible!"; throw new CacheException(msg); } }
/** * Assert that the current product is compatible with the version of ehcache available on the classpath */ public void assertRequiredCoreVersionPresent() { boolean ignoreVersionCheck = Boolean.getBoolean("terracotta.ehcache.versioncheck.skip"); String requiredCoreVersion = getRequiredCoreVersion(); if (ignoreVersionCheck || requiredCoreVersion == null) { // no requirement return; } ProductInfo coreProductInfo = new ProductInfo(); String coreVersion = coreProductInfo.getVersion(); if (!coreVersion.equals(requiredCoreVersion)) { String msg = getName() + " version [" + getVersion() + "] only works with ehcache-core version [" + requiredCoreVersion + "] (found version [" + coreVersion + "] on the classpath). " + " Please make sure both versions are compatible!"; throw new CacheException(msg); } }
/** * Assert that the current product is compatible with the version of ehcache available on the classpath */ public void assertRequiredCoreVersionPresent() { boolean ignoreVersionCheck = Boolean.getBoolean("terracotta.ehcache.versioncheck.skip"); String requiredCoreVersion = getRequiredCoreVersion(); if (ignoreVersionCheck || requiredCoreVersion == null) { // no requirement return; } ProductInfo coreProductInfo = new ProductInfo(); String coreVersion = coreProductInfo.getVersion(); if (!coreVersion.equals(requiredCoreVersion)) { String msg = getName() + " version [" + getVersion() + "] only works with ehcache-core version [" + requiredCoreVersion + "] (found version [" + coreVersion + "] on the classpath). " + " Please make sure both versions are compatible!"; throw new CacheException(msg); } }
String currentVersion = new ProductInfo().getVersion(); String propVal = updateProps.getProperty("general.notice"); if (notBlank(propVal)) {
String currentVersion = new ProductInfo().getVersion(); String propVal = updateProps.getProperty("general.notice"); if (notBlank(propVal)) {
/** * returns long version of the build string */ @Override public String toString() { String versionString = String.format("%s version %s was built on %s, at revision %s, with jdk %s", getName(), getVersion(), getBuildTime(), getBuildRevision(), getBuildJdk()); if (!UNKNOWN.equals(getPatchLevel())) { versionString = versionString + ". Patch level " + getPatchLevel(); } return versionString; } }
/** * returns long version of the build string */ @Override public String toString() { String versionString = String.format("%s version %s was built on %s, at revision %s, with jdk %s", getName(), getVersion(), getBuildTime(), getBuildRevision(), getBuildJdk()); if (!UNKNOWN.equals(getPatchLevel())) { versionString = versionString + ". Patch level " + getPatchLevel(); } return versionString; } }
sb.append(urlEncode(getProperty("os.arch"))); sb.append("&tc-version="); sb.append(productInfo.getVersion()); sb.append("&tc-product="); sb.append(urlEncode(productInfo.getName() + " " + productInfo.getVersion())); sb.append("&source="); sb.append(urlEncode(productInfo.getName()));
/** * returns long version of the build string */ @Override public String toString() { String versionString = String.format("%s version %s was built on %s, at revision %s, with jdk %s by %s@%s", getName(), getVersion(), getBuildTime(), getBuildRevision(), getBuildJdk(), getBuiltBy(), getBuildHostname()); if (!UNKNOWN.equals(getPatchLevel())) { versionString = versionString + ". Patch level " + getPatchLevel(); } return versionString; } }
private void prepareParams() { ProductInfo productInfo = new ProductInfo(); String productName = productInfo.getName().toLowerCase(); String kitId = "ehcache.default"; if (productName.contains("ehcache")) { kitId = "ehcache.default"; } else if (productName.contains("bigmemory")) { kitId = "bigmemory.default"; } else { throw new AssertionError("Unknown product name: " + productName); } putUrlSafe("kitID", kitId); putUrlSafe("id", Integer.toString(getClientId())); putUrlSafe("os-name", getProperty("os.name")); putUrlSafe("jvm-name", getProperty("java.vm.name")); putUrlSafe("jvm-version", getProperty("java.version")); putUrlSafe("platform", getProperty("os.arch")); putUrlSafe("tc-version", productInfo.getVersion()); putUrlSafe("tc-product", productInfo.getName() + " " + productInfo.getVersion()); putUrlSafe("source", productInfo.getName()); putUrlSafe("uptime-secs", Long.toString(getUptimeInSeconds())); putUrlSafe("patch", productInfo.getPatchLevel()); }