private void logEhcacheBuildInfo() { final ProductInfo ehcacheCoreProductInfo = new ProductInfo(); // ToolkitLogger logger = ((ToolkitInternal) toolkitInstanceFactory.getToolkit()) // .getLogger(TerracottaClusteredInstanceFactory.class.getName()); LOGGER.info(ehcacheCoreProductInfo.toString()); }
return new ProductInfo(in);
/** * 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); } }
function Product() { var self = this; self.productInfo1 = new ProductInfo(); self.productInfo2 = new ProductInfo(); }
public ProductInfo deserialize(JSONObject results, Type type, JsonDeserializationContext context) throws JsonParseException { JSONArray resultsArray = results.getJSONArray("results"); JSONObject objekt = resultsArray.getJSONObject(0); String name = objekt.get("name").toString(); String category = objekt.get("category").toString(); String price = objekt.get("price").toString(); return new ProductInfo(name, category, price); }
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"); }
JSONObject response = products.getProducts(); JSONObject result = response.getJSONArray("results").get(0); ProductInfo pi = new ProductInfo(); pi.deserialize(result, type, context );
private void logEhcacheBuildInfo() { final TCLogger logger = ManagerUtil.getLogger(TerracottaClusteredInstanceFactory.class.getName()); ProductInfo ehcacheCoreProductInfo = new ProductInfo(); logger.info(ehcacheCoreProductInfo.toString()); }
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)) {
OrderInfo oi = new OrderInfo(); oi.setCustomerId(1); oi.setSpecialInstructions("Leave on porch"); ArrayOfProductInfo ap = new ArrayOfProductInfo(); // this is web service's class's list List<ProductInfo> lp = ap.getProductInfo(); // here we obtain a generic list reference from the above ProductInfo pinf = new ProductInfo(); pinf.productID = 2; pinf.quantity = 14; pinf.currPrice = new BigDecimal("3.95"); lp.add(pinf); pinf = new VEProductInfo(); pinf.productID = 4; pinf.quantity = 6; pinf.currPrice = new BigDecimal("0"); lp.add(pinf); // second product oi.setItems(ap); // this adds product list to the order object! WebService s = new WebService(); WebServiceSoap soapport = s.getWebServiceSoap(); soapport.createOrder(oi); // voila, passing order to the web service method.
/** * 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); } }
ProductInfo productInfo = new ProductInfo(); String productName = productInfo.getName().toLowerCase(); StringBuilder sb = new StringBuilder();
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()); }