You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ga...@apache.org on 2008/02/20 17:47:10 UTC

svn commit: r629529 - /geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/StartupMonitorUtil.java

Author: gawor
Date: Wed Feb 20 08:47:01 2008
New Revision: 629529

URL: http://svn.apache.org/viewvc?rev=629529&view=rev
Log:
Provide toString method to StartupMonitorUtil.AddressHolder. Patch from Dan Becker. (GERONIMO-3859)

Modified:
    geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/StartupMonitorUtil.java

Modified: geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/StartupMonitorUtil.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/StartupMonitorUtil.java?rev=629529&r1=629528&r2=629529&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/StartupMonitorUtil.java (original)
+++ geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/StartupMonitorUtil.java Wed Feb 20 08:47:01 2008
@@ -291,5 +291,13 @@
             int value = address.getPort() - other.address.getPort();
             return value == 0 ? address.getAddress().toString().compareTo(other.address.getAddress().toString()) : value;
         }
+        
+        public String toString() {
+            StringBuffer buf = new StringBuffer(this.getClass().getSimpleName() + ":");
+            buf.append(" name=").append(name);
+            buf.append(", address=").append(address.toString());
+            return buf.toString();
+        }
+
     }
 }