You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@excalibur.apache.org by le...@apache.org on 2004/07/28 17:47:18 UTC

svn commit: rev 30846 - excalibur/trunk/containerkit/instrument/client/src/java/org/apache/excalibur/instrument/client

Author: leif
Date: Wed Jul 28 08:47:16 2004
New Revision: 30846

Modified:
   excalibur/trunk/containerkit/instrument/client/src/java/org/apache/excalibur/instrument/client/InstrumentManagerConnection.java
Log:
Don't try to renew leases when we know the connection is down.  Was just generating unneeded network traffic and increased the debug output.

Modified: excalibur/trunk/containerkit/instrument/client/src/java/org/apache/excalibur/instrument/client/InstrumentManagerConnection.java
==============================================================================
--- excalibur/trunk/containerkit/instrument/client/src/java/org/apache/excalibur/instrument/client/InstrumentManagerConnection.java	(original)
+++ excalibur/trunk/containerkit/instrument/client/src/java/org/apache/excalibur/instrument/client/InstrumentManagerConnection.java	Wed Jul 28 08:47:16 2004
@@ -385,7 +385,10 @@
         getTreeModel().refreshModel();
         
         // Handle the leased samples.
-        handleLeasedSamples();
+        if ( isConnected() )
+        {
+            handleLeasedSamples();
+        }
     }
 
     /**
@@ -955,5 +958,13 @@
                 }
             }
         } );
+    }
+    
+    /**
+     * Returns a string representation of the connection.
+     */
+    public String toString()
+    {
+        return getClass().getName() + " : " + getKey();
     }
 }

---------------------------------------------------------------------
To unsubscribe, e-mail: scm-unsubscribe@excalibur.apache.org
For additional commands, e-mail: scm-help@excalibur.apache.org