ASF Bugzilla – Attachment 26421 Details for
Bug 49939
Expose a method via JMX which empties the webapp file cache
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
The patch exposes the "removeCache" method to JMX object. By making the method public, we are able to invoke from java console mangement to clear the cache entry.
removeCache-patch.diff (text/plain), 635 bytes, created by
Faisal
on 2010-12-18 15:07:34 UTC
(
hide
)
Description:
The patch exposes the "removeCache" method to JMX object. By making the method public, we are able to invoke from java console mangement to clear the cache entry.
Filename:
MIME Type:
Creator:
Faisal
Created:
2010-12-18 15:07:34 UTC
Size:
635 bytes
patch
obsolete
>Index: java/org/apache/naming/resources/ResourceCache.java >=================================================================== >--- java/org/apache/naming/resources/ResourceCache.java (revision 1050699) >+++ java/org/apache/naming/resources/ResourceCache.java (working copy) >@@ -407,7 +407,7 @@ > /** > * Insert into the right place in a sorted MapElement array. > */ >- private final CacheEntry removeCache(String name) { >+ public CacheEntry removeCache(String name) { > CacheEntry[] oldCache = cache; > int pos = find(oldCache, name); > if ((pos != -1) && (name.equals(oldCache[pos].name))) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 49939
: 26421