geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r629529 - /geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/StartupMonitorUtil.java
Date Wed, 20 Feb 2008 16:47:10 GMT
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();
+        }
+
     }
 }



Mime
View raw message