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}: ${cacheName?if_exists}
 
- ${uiLabelMap.WebtoolsClearThisCache} + ${uiLabelMap.WebtoolsClearThisCache} ${uiLabelMap.WebtoolsBackToCacheMaintenance}
 
<#if cache?has_content> -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <#if cache.useSoftReference?exists && cache.useSoftReference == "true"> - <#assign selectedTrue = "selected"> - <#assign selectedFalse = ""> - <#assign valueSoftRef = "${uiLabelMap.CommonTrue}"> - <#else> - <#assign selectedTrue = ""> - <#assign selectedFalse = "selected"> - <#assign valueSoftRef = "${uiLabelMap.CommonFalse}"> - - - - - - - <#if cache.useFileSystemStore?exists && cache.useFileSystemStore == "true"> - <#assign valueFileSys = "${uiLabelMap.CommonTrue}"> - <#else> - <#assign valueFileSys = "${uiLabelMap.CommonFalse}"> - - - - - - - -
${uiLabelMap.WebtoolsCacheName}
${cache.cacheName?if_exists}
${uiLabelMap.WebtoolsSize}
${cache.cacheSize?if_exists}
${uiLabelMap.WebtoolsHits}
${cache.hitCount?if_exists}
${uiLabelMap.WebtoolsMissesTotal}
${cache.missCountTot?if_exists}
${uiLabelMap.WebtoolsMissesNotFound}
${cache.missCountNotFound?if_exists}
${uiLabelMap.WebtoolsMissesExpire}
${cache.missCountExpired?if_exists}
${uiLabelMap.WebtoolsMissesSoftReference}
${cache.missCountSoftRef?if_exists}
${uiLabelMap.WebtoolsRemovesHit}
${cache.removeHitCount?if_exists}
${uiLabelMap.WebtoolsRemovesMisses}
${cache.removeMissCount?if_exists}
${uiLabelMap.WebtoolsMaxSize}
${cache.maxSize?if_exists}
${uiLabelMap.WebtoolsExpireTime}
${cache.expireTime?if_exists} (${cache.hrs?if_exists}:${cache.mins?if_exists}:${cache.secs?if_exists})
${uiLabelMap.WebtoolsUseSoftRef}
${valueSoftRef}
- -
${uiLabelMap.WebtoolsUseFileStore}
${valueFileSys}
- -
-
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <#if cache.useSoftReference?exists && cache.useSoftReference == "true"> + <#assign selectedTrue = "selected"> + <#assign selectedFalse = ""> + <#assign valueSoftRef = "${uiLabelMap.CommonTrue}"> + <#else> + <#assign selectedTrue = ""> + <#assign selectedFalse = "selected"> + <#assign valueSoftRef = "${uiLabelMap.CommonFalse}"> + + + + + + + <#if cache.useFileSystemStore?exists && cache.useFileSystemStore == "true"> + <#assign valueFileSys = "${uiLabelMap.CommonTrue}"> + <#else> + <#assign valueFileSys = "${uiLabelMap.CommonFalse}"> + + + + + + + +
${uiLabelMap.WebtoolsCacheName}
${cache.cacheName?if_exists}
${uiLabelMap.WebtoolsSize}
${cache.cacheSize?if_exists}
${uiLabelMap.WebtoolsHits}
${cache.hitCount?if_exists}
${uiLabelMap.WebtoolsMissesTotal}
${cache.missCountTot?if_exists}
${uiLabelMap.WebtoolsMissesNotFound}
${cache.missCountNotFound?if_exists}
${uiLabelMap.WebtoolsMissesExpire}
${cache.missCountExpired?if_exists}
${uiLabelMap.WebtoolsMissesSoftReference}
${cache.missCountSoftRef?if_exists}
${uiLabelMap.WebtoolsRemovesHit}
${cache.removeHitCount?if_exists}
${uiLabelMap.WebtoolsRemovesMisses}
${cache.removeMissCount?if_exists}
${uiLabelMap.WebtoolsMaxSize}
${cache.maxSize?if_exists}
${uiLabelMap.WebtoolsExpireTime}
${cache.expireTime?if_exists} (${cache.hrs?if_exists}:${cache.mins?if_exists}:${cache.secs?if_exists})
${uiLabelMap.WebtoolsUseSoftRef}
${valueSoftRef}
+ +
${uiLabelMap.WebtoolsUseFileStore}
${valueFileSys}
+ +
+
<#else> -
- ${uiLabelMap.WebtoolsNoUtilCacheSpecified} -
+
+ ${uiLabelMap.WebtoolsNoUtilCacheSpecified} +
 
- ${uiLabelMap.WebtoolsClearThisCache} + ${uiLabelMap.WebtoolsClearThisCache} ${uiLabelMap.WebtoolsBackToCacheMaintenance}
\ No newline at end of file diff --git a/framework/webtools/webapp/webtools/cache/findUtilCache.ftl b/framework/webtools/webapp/webtools/cache/findUtilCache.ftl index 36a5aa2908..3a186092fd 100644 --- a/framework/webtools/webapp/webtools/cache/findUtilCache.ftl +++ b/framework/webtools/webapp/webtools/cache/findUtilCache.ftl @@ -24,56 +24,56 @@ under the License.
${uiLabelMap.WebtoolsMemory}: [${uiLabelMap.WebtoolsTotalMemory}: ${memory}] [${uiLabelMap.WebtoolsFreeMemory}: ${freeMemory}] [${uiLabelMap.WebtoolsUsedMemory}: ${usedMemory}] [${uiLabelMap.WebtoolsMaxMemory}: ${maxMemory}]
 
<#if cacheList?has_content> - <#assign rowClass='viewManyTR1'> - - - - - - - - - - - - - - <#list cacheList as cache> - - - - - - - - - - - - - - - <#if rowClass=='viewManyTR1'> - <#assign rowClass='viewManyTR2'> - <#else> - <#assign rowClass='viewManyTR1'> - - -
${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 hasUtilCacheEdit> - ${uiLabelMap.CommonClear} - -
+ <#assign rowClass='viewManyTR1'> + + + + + + + + + + + + + + <#list cacheList as cache> + + + + + + + + + + + + + + + <#if rowClass=='viewManyTR1'> + <#assign rowClass='viewManyTR2'> + <#else> + <#assign rowClass='viewManyTR1'> + + +
${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 hasUtilCacheEdit> + ${uiLabelMap.CommonClear} + +
<#else> -
- ${uiLabelMap.WebtoolsNoUtilCacheFound} -
+
+ ${uiLabelMap.WebtoolsNoUtilCacheFound} +
${uiLabelMap.WebtoolsReloadCacheList} diff --git a/framework/webtools/webapp/webtools/cache/findUtilCacheElements.ftl b/framework/webtools/webapp/webtools/cache/findUtilCacheElements.ftl index ab435ecbe5..703c42ad4d 100644 --- a/framework/webtools/webapp/webtools/cache/findUtilCacheElements.ftl +++ b/framework/webtools/webapp/webtools/cache/findUtilCacheElements.ftl @@ -23,42 +23,42 @@ under the License.
 
<#if cacheName?has_content> - <#if cacheElementsList?has_content> - <#assign rowClass='viewManyTR1'> - - - - - - - - <#list cacheElementsList as cacheElement> - - - - - - - <#if rowClass=='viewManyTR1'> - <#assign rowClass='viewManyTR2'> - <#else> - <#assign rowClass='viewManyTR1'> - - -
${uiLabelMap.WebtoolsCacheElementKey}
${uiLabelMap.WebtoolsExpireTime}
${uiLabelMap.WebtoolsBytes}
 
${cacheElement.elementKey?if_exists}
${cacheElement.expireTime?if_exists}
${cacheElement.lineSize?if_exists}
- <#if hasUtilCacheEdit> - ${uiLabelMap.CommonRemove} - -
- <#else> -
- ${uiLabelMap.WebtoolsNoUtilCacheElementsFound} -
- + <#if cacheElementsList?has_content> + <#assign rowClass='viewManyTR1'> + + + + + + + + <#list cacheElementsList as cacheElement> + + + + + + + <#if rowClass=='viewManyTR1'> + <#assign rowClass='viewManyTR2'> + <#else> + <#assign rowClass='viewManyTR1'> + + +
${uiLabelMap.WebtoolsCacheElementKey}
${uiLabelMap.WebtoolsExpireTime}
${uiLabelMap.WebtoolsBytes}
 
${cacheElement.elementKey?if_exists}
${cacheElement.expireTime?if_exists}
${cacheElement.lineSize?if_exists}
+ <#if hasUtilCacheEdit> + ${uiLabelMap.CommonRemove} + +
+ <#else> +
+ ${uiLabelMap.WebtoolsNoUtilCacheElementsFound} +
+ <#else> -
- ${uiLabelMap.WebtoolsNoUtilCacheSpecified} -
+
+ ${uiLabelMap.WebtoolsNoUtilCacheSpecified} +
 
${uiLabelMap.WebtoolsSizeTotal}: ${totalSize} ${uiLabelMap.WebtoolsBytes}
diff --git a/framework/webtools/widget/CacheScreens.xml b/framework/webtools/widget/CacheScreens.xml index 246f89dbdf..1d51d55c89 100644 --- a/framework/webtools/widget/CacheScreens.xml +++ b/framework/webtools/widget/CacheScreens.xml @@ -26,23 +26,23 @@ under the License. - -
- - - - - - - - - - - - - -
-
+ +
+ + + + + + + + + + + + + +
+
@@ -56,23 +56,23 @@ under the License. - -
- - - - - - - - - - - - - -
-
+ +
+ + + + + + + + + + + + + +
+
@@ -86,23 +86,23 @@ under the License. - -
- - - - - - - - - - - - - -
-
+ +
+ + + + + + + + + + + + + +
+