diff --git a/framework/webtools/webapp/webtools/WEB-INF/actions/cache/editUtilCache.bsh b/framework/webtools/webapp/webtools/WEB-INF/actions/cache/editUtilCache.bsh index 1b0825383a..a9e1c3b2d6 100644 --- a/framework/webtools/webapp/webtools/WEB-INF/actions/cache/editUtilCache.bsh +++ b/framework/webtools/webapp/webtools/WEB-INF/actions/cache/editUtilCache.bsh @@ -22,11 +22,11 @@ String cacheName = request.getParameter("UTIL_CACHE_NAME"); context.put("cacheName", cacheName); if (cacheName != null) { - UtilCache utilCache = (UtilCache)UtilCache.utilCacheTable.get(cacheName); + UtilCache utilCache = (UtilCache)UtilCache.utilCacheTable.get(cacheName); if (utilCache != null) { - Map cache = new HashMap(); - - cache.put("cacheName", utilCache.getName()); + Map cache = new HashMap(); + + cache.put("cacheName", utilCache.getName()); cache.put("cacheSize", UtilFormatOut.formatQuantity(utilCache.size())); cache.put("hitCount", UtilFormatOut.formatQuantity(utilCache.getHitCount())); cache.put("missCountTot", UtilFormatOut.formatQuantity(utilCache.getMissCountTotal())); diff --git a/framework/webtools/webapp/webtools/WEB-INF/actions/cache/findUtilCache.bsh b/framework/webtools/webapp/webtools/WEB-INF/actions/cache/findUtilCache.bsh index 06fa8b7010..5e2a42fb03 100644 --- a/framework/webtools/webapp/webtools/WEB-INF/actions/cache/findUtilCache.bsh +++ b/framework/webtools/webapp/webtools/WEB-INF/actions/cache/findUtilCache.bsh @@ -36,12 +36,12 @@ List cacheList = new ArrayList(); TreeSet names = new TreeSet(UtilCache.utilCacheTable.keySet()); Iterator nameIter = names.iterator(); if(nameIter != null && nameIter.hasNext()) { - while(nameIter.hasNext()) { - String cacheName = (String)nameIter.next(); - UtilCache utilCache = (UtilCache)UtilCache.utilCacheTable.get(cacheName); - Map cache = new HashMap(); - - cache.put("cacheName", utilCache.getName()); + while(nameIter.hasNext()) { + String cacheName = (String)nameIter.next(); + UtilCache utilCache = (UtilCache)UtilCache.utilCacheTable.get(cacheName); + Map cache = new HashMap(); + + cache.put("cacheName", utilCache.getName()); cache.put("cacheSize", UtilFormatOut.formatQuantity(utilCache.size())); cache.put("hitCount", UtilFormatOut.formatQuantity(utilCache.getHitCount())); cache.put("missCountTot", UtilFormatOut.formatQuantity(utilCache.getMissCountTotal())); @@ -55,7 +55,7 @@ if(nameIter != null && nameIter.hasNext()) { cache.put("useSoftReference", (new Boolean(utilCache.getUseSoftReference())).toString()); cache.put("useFileSystemStore", (new Boolean(utilCache.getUseFileSystemStore())).toString()); - cacheList.add(cache); - } + cacheList.add(cache); + } } context.put("cacheList", cacheList); \ No newline at end of file diff --git a/framework/webtools/webapp/webtools/WEB-INF/actions/cache/findUtilCacheElements.bsh b/framework/webtools/webapp/webtools/WEB-INF/actions/cache/findUtilCacheElements.bsh index f671e151f1..ebab5beea4 100644 --- a/framework/webtools/webapp/webtools/WEB-INF/actions/cache/findUtilCacheElements.bsh +++ b/framework/webtools/webapp/webtools/WEB-INF/actions/cache/findUtilCacheElements.bsh @@ -35,15 +35,15 @@ long totalSize = 0; List cacheElementsList = new ArrayList(); if (cacheName != null) { - UtilCache utilCache = (UtilCache)UtilCache.utilCacheTable.get(cacheName); + UtilCache utilCache = (UtilCache)UtilCache.utilCacheTable.get(cacheName); if (utilCache != null) { - Iterator iter = utilCache.cacheLineTable.keySet().iterator(); + Iterator iter = utilCache.cacheLineTable.keySet().iterator(); if(iter != null && iter.hasNext()) { - int keyNum = 0; - while(iter.hasNext()) { - Map cacheElement = new HashMap(); - Object key = iter.next(); - CacheLine line = (CacheLine) utilCache.cacheLineTable.get(key); + int keyNum = 0; + while(iter.hasNext()) { + Map cacheElement = new HashMap(); + Object key = iter.next(); + CacheLine line = (CacheLine) utilCache.cacheLineTable.get(key); String expireTime = ""; if(line != null && line.loadTime > 0) { expireTime = (new Date(line.loadTime + utilCache.getExpireTime())).toString(); @@ -52,10 +52,10 @@ if (cacheName != null) { totalSize += lineSize; cacheElement.put("elementKey", key); - cacheElement.put("expireTime", expireTime); - cacheElement.put("lineSize", UtilFormatOut.formatQuantity(lineSize)); - cacheElement.put("keyNum", keyNum); - + cacheElement.put("expireTime", expireTime); + cacheElement.put("lineSize", UtilFormatOut.formatQuantity(lineSize)); + cacheElement.put("keyNum", keyNum); + cacheElementsList.add(cacheElement); keyNum++; diff --git a/framework/webtools/webapp/webtools/cache/editUtilCache.ftl b/framework/webtools/webapp/webtools/cache/editUtilCache.ftl index 1a6358c5e0..468e825f47 100644 --- a/framework/webtools/webapp/webtools/cache/editUtilCache.ftl +++ b/framework/webtools/webapp/webtools/cache/editUtilCache.ftl @@ -19,101 +19,101 @@ under the License.
${uiLabelMap.WebtoolsCacheName} |
- ${uiLabelMap.WebtoolsSize} |
- ${uiLabelMap.WebtoolsHits} |
- ${uiLabelMap.WebtoolsMisses} |
- ${uiLabelMap.WebtoolsRemoves} |
- ${uiLabelMap.WebtoolsMaxSize} |
- ${uiLabelMap.WebtoolsExpireTime} |
- ${uiLabelMap.WebtoolsUseSoftRef} |
- ${uiLabelMap.WebtoolsUseFileStore} |
- ${uiLabelMap.WebtoolsAdministration} |
- ||
${cache.cacheName?if_exists} |
- ${cache.cacheSize?if_exists} |
- ${cache.hitCount?if_exists} |
- ${cache.missCountTot?if_exists}/${cache.missCountNotFound?if_exists}/${cache.missCountExpired?if_exists}/${cache.missCountSoftRef?if_exists} |
- ${cache.removeHitCount?if_exists}/${cache.removeMissCount?if_exists} |
- ${cache.maxSize?if_exists} |
- ${cache.expireTime?if_exists} |
- ${cache.useSoftReference?if_exists} |
- ${cache.useFileSystemStore?if_exists} |
- - ${uiLabelMap.WebtoolsElements} - | -- <#if hasUtilCacheEdit> - ${uiLabelMap.CommonEdit} - #if> - | -- <#if hasUtilCacheEdit> - ${uiLabelMap.CommonClear} - #if> - | -
${uiLabelMap.WebtoolsCacheName} |
+ ${uiLabelMap.WebtoolsSize} |
+ ${uiLabelMap.WebtoolsHits} |
+ ${uiLabelMap.WebtoolsMisses} |
+ ${uiLabelMap.WebtoolsRemoves} |
+ ${uiLabelMap.WebtoolsMaxSize} |
+ ${uiLabelMap.WebtoolsExpireTime} |
+ ${uiLabelMap.WebtoolsUseSoftRef} |
+ ${uiLabelMap.WebtoolsUseFileStore} |
+ ${uiLabelMap.WebtoolsAdministration} |
+ ||
${cache.cacheName?if_exists} |
+ ${cache.cacheSize?if_exists} |
+ ${cache.hitCount?if_exists} |
+ ${cache.missCountTot?if_exists}/${cache.missCountNotFound?if_exists}/${cache.missCountExpired?if_exists}/${cache.missCountSoftRef?if_exists} |
+ ${cache.removeHitCount?if_exists}/${cache.removeMissCount?if_exists} |
+ ${cache.maxSize?if_exists} |
+ ${cache.expireTime?if_exists} |
+ ${cache.useSoftReference?if_exists} |
+ ${cache.useFileSystemStore?if_exists} |
+ + ${uiLabelMap.WebtoolsElements} + | ++ <#if hasUtilCacheEdit> + ${uiLabelMap.CommonEdit} + #if> + | ++ <#if hasUtilCacheEdit> + ${uiLabelMap.CommonClear} + #if> + | +
${uiLabelMap.WebtoolsCacheElementKey} |
- ${uiLabelMap.WebtoolsExpireTime} |
- ${uiLabelMap.WebtoolsBytes} |
- |
${cacheElement.elementKey?if_exists} |
- ${cacheElement.expireTime?if_exists} |
- ${cacheElement.lineSize?if_exists} |
- - <#if hasUtilCacheEdit> - ${uiLabelMap.CommonRemove} - #if> - | -
${uiLabelMap.WebtoolsCacheElementKey} |
+ ${uiLabelMap.WebtoolsExpireTime} |
+ ${uiLabelMap.WebtoolsBytes} |
+ |
${cacheElement.elementKey?if_exists} |
+ ${cacheElement.expireTime?if_exists} |
+ ${cacheElement.lineSize?if_exists} |
+ + <#if hasUtilCacheEdit> + ${uiLabelMap.CommonRemove} + #if> + | +