/** * 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; } }
/** * 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 by %s@%s", getName(), getVersion(), getBuildTime(), getBuildRevision(), getBuildJdk(), getBuiltBy(), getBuildHostname()); if (!UNKNOWN.equals(getPatchLevel())) { versionString = versionString + ". Patch level " + getPatchLevel(); } return versionString; } }
sb.append(getUptimeInSeconds()); sb.append("&patch="); sb.append(urlEncode(productInfo.getPatchLevel())); return sb.toString();
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()); }