<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to patches</title><link>https://sourceforge.net/p/swarmcache/patches/</link><description>Recent changes to patches</description><atom:link href="https://sourceforge.net/p/swarmcache/patches/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 19 Apr 2005 13:06:40 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/swarmcache/patches/feed.rss" rel="self" type="application/rss+xml"/><item><title>Add listCacheNames() method to MultiCacheManager.</title><link>https://sourceforge.net/p/swarmcache/patches/6/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This method is useful for cache administration &lt;br /&gt;
operations (such as finding out all installed caches, &lt;br /&gt;
flushing the content from all available caches etc.):&lt;/p&gt;
&lt;p&gt;public List listCacheNames() {&lt;br /&gt;
ArrayList result = new ArrayList(caches.size());&lt;br /&gt;
result.addAll(caches.keySet());&lt;br /&gt;
return result;&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 19 Apr 2005 13:06:40 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net8a7c47fc21b585b76e435050f91a6af383dbba3c</guid></item><item><title>ObjectCache.clearAll() distributed</title><link>https://sourceforge.net/p/swarmcache/patches/5/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Problem:&lt;/p&gt;
&lt;p&gt;We have two VM's working in distributed mode.&lt;br /&gt;
When clearing an entire area in one VM we expected &lt;br /&gt;
that area to be cleared in both VM's. &lt;br /&gt;
But it doesn't work that way, instead only one VM was &lt;br /&gt;
cleared (the one that invoke objectCache.clearAll() ), &lt;br /&gt;
but the other who receives the notification takes no &lt;br /&gt;
action.&lt;/p&gt;
&lt;p&gt;Why ?&lt;/p&gt;
&lt;p&gt;When clearing an individual element of an area swarm &lt;br /&gt;
transmits the key of the element. When clearing an &lt;br /&gt;
entire area, swarm transmits a dummy token (ALL).&lt;br /&gt;
But the VM that receives the token uses the == &lt;br /&gt;
operand to test equality instead of equals().&lt;/p&gt;
&lt;p&gt;Fix:&lt;/p&gt;
&lt;p&gt;replace in MultiCacheManager.receiveNotification&lt;br /&gt;
if(notification.getKey()=="(ALL)")&lt;br /&gt;
with&lt;br /&gt;
if(notification.getKey().equals("(ALL)"))&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">santiagofont</dc:creator><pubDate>Fri, 15 Oct 2004 19:59:01 -0000</pubDate><guid isPermaLink="false">https://sourceforge.neteb48d576908aa8111664eb3e9dbcddb5223b2db4</guid></item><item><title>add MultiCacheManager.getCache(String)</title><link>https://sourceforge.net/p/swarmcache/patches/4/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When redeploying in appserver, an app reconnects to the&lt;br /&gt;
static CacheManager and can now obtain a previously&lt;br /&gt;
stored MultiCache and call doCleanAll() without&lt;br /&gt;
notification.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Margus Väli</dc:creator><pubDate>Wed, 05 May 2004 06:44:03 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netdea2f6389cb2b784830c62b4905bc6430d21beee</guid></item><item><title>UnboundedLRUMap added hashCode() to go along with equals()</title><link>https://sourceforge.net/p/swarmcache/patches/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;diff -u -r1.3 UnboundedLRUMap.java&lt;br /&gt;
--- UnboundedLRUMap.java   25 Oct 2003 03:22:40 -0000&lt;br /&gt;
    1.3&lt;br /&gt;
+++ UnboundedLRUMap.java    24 Dec 2003 05:52:39 -0000&lt;br /&gt;
@@ -53,6 +53,10 @@&lt;br /&gt;
        return map.equals&lt;br /&gt;
(((UnboundedLRUMap) obj).map);&lt;br /&gt;
    }&lt;/p&gt;
&lt;p&gt;+    public int hashCode() {&lt;br /&gt;
+        return map.hashCode();&lt;br /&gt;
+    }&lt;br /&gt;
+&lt;br /&gt;
    public Object get(Object key) {&lt;br /&gt;
        return map.get(key);&lt;br /&gt;
    }&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eric Molitor</dc:creator><pubDate>Wed, 24 Dec 2003 05:54:12 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net7b551d7cb73eb4e7f8a4c2b9fe14a643a02d8337</guid></item><item><title>CacheFactory, Make shutdown static and other cleanups</title><link>https://sourceforge.net/p/swarmcache/patches/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Comment out unused sampleCache&lt;br /&gt;
Dont initialize vars to null that dont need to be&lt;br /&gt;
Make ShutDown static&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eric Molitor</dc:creator><pubDate>Wed, 24 Dec 2003 05:49:39 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net3bbbd85a4b577b0f109be17fa18af445439e4da4</guid></item><item><title>Fixes AutoCache.java </title><link>https://sourceforge.net/p/swarmcache/patches/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;on clear create the correct map type.&lt;/p&gt;
&lt;p&gt;Below and attached&lt;/p&gt;
&lt;p&gt;diff -u -r1.4 AutoCache.java&lt;br /&gt;
--- AutoCache.java 25 Oct 2003 03:22:40 -0000&lt;br /&gt;
    1.4&lt;br /&gt;
+++ AutoCache.java  24 Dec 2003 05:43:06 -0000&lt;br /&gt;
@@ -84,6 +84,6 @@&lt;br /&gt;
    public void clearAll() {&lt;br /&gt;
        // Just make a new one&lt;br /&gt;
        log.debug(&amp;amp;quot;Cleared entire &amp;amp;quot; + type + &amp;amp;quot; &lt;br /&gt;
cache.&amp;amp;quot;);&lt;br /&gt;
-      cache = Collections.synchronizedMap&lt;br /&gt;
(new WeakHashMap());&lt;br /&gt;
+      cache = Collections.synchronizedMap&lt;br /&gt;
(new ReferenceMap());&lt;br /&gt;
    }&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eric Molitor</dc:creator><pubDate>Wed, 24 Dec 2003 05:46:08 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net7ec09d1e37b0907c6534ed16a979b6abe0248c21</guid></item></channel></rss>