<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/swarmcache/patches/" rel="alternate"/><link href="https://sourceforge.net/p/swarmcache/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/swarmcache/patches/</id><updated>2005-04-19T13:06:40Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>Add listCacheNames() method to MultiCacheManager.</title><link href="https://sourceforge.net/p/swarmcache/patches/6/" rel="alternate"/><published>2005-04-19T13:06:40Z</published><updated>2005-04-19T13:06:40Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net8a7c47fc21b585b76e435050f91a6af383dbba3c</id><summary type="html">&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;</summary></entry><entry><title>ObjectCache.clearAll() distributed</title><link href="https://sourceforge.net/p/swarmcache/patches/5/" rel="alternate"/><published>2004-10-15T19:59:01Z</published><updated>2004-10-15T19:59:01Z</updated><author><name>santiagofont</name><uri>https://sourceforge.net/u/sf1/</uri></author><id>https://sourceforge.neteb48d576908aa8111664eb3e9dbcddb5223b2db4</id><summary type="html">&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;</summary></entry><entry><title>add MultiCacheManager.getCache(String)</title><link href="https://sourceforge.net/p/swarmcache/patches/4/" rel="alternate"/><published>2004-05-05T06:44:03Z</published><updated>2004-05-05T06:44:03Z</updated><author><name>Margus Väli</name><uri>https://sourceforge.net/u/mgvali/</uri></author><id>https://sourceforge.netdea2f6389cb2b784830c62b4905bc6430d21beee</id><summary type="html">&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;</summary></entry><entry><title>UnboundedLRUMap added hashCode() to go along with equals()</title><link href="https://sourceforge.net/p/swarmcache/patches/3/" rel="alternate"/><published>2003-12-24T05:54:12Z</published><updated>2003-12-24T05:54:12Z</updated><author><name>Eric Molitor</name><uri>https://sourceforge.net/u/emolitor/</uri></author><id>https://sourceforge.net7b551d7cb73eb4e7f8a4c2b9fe14a643a02d8337</id><summary type="html">&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;</summary></entry><entry><title>CacheFactory, Make shutdown static and other cleanups</title><link href="https://sourceforge.net/p/swarmcache/patches/2/" rel="alternate"/><published>2003-12-24T05:49:39Z</published><updated>2003-12-24T05:49:39Z</updated><author><name>Eric Molitor</name><uri>https://sourceforge.net/u/emolitor/</uri></author><id>https://sourceforge.net3bbbd85a4b577b0f109be17fa18af445439e4da4</id><summary type="html">&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;</summary></entry><entry><title>Fixes AutoCache.java </title><link href="https://sourceforge.net/p/swarmcache/patches/1/" rel="alternate"/><published>2003-12-24T05:46:08Z</published><updated>2003-12-24T05:46:08Z</updated><author><name>Eric Molitor</name><uri>https://sourceforge.net/u/emolitor/</uri></author><id>https://sourceforge.net7ec09d1e37b0907c6534ed16a979b6abe0248c21</id><summary type="html">&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;</summary></entry></feed>