geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r629530 - /geronimo/server/branches/2.1/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/StartupMonitorUtil.java
Date Wed, 20 Feb 2008 16:48:46 GMT
Author: gawor
Date: Wed Feb 20 08:48:45 2008
New Revision: 629530

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

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

Modified: geronimo/server/branches/2.1/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/StartupMonitorUtil.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/StartupMonitorUtil.java?rev=629530&r1=629529&r2=629530&view=diff
==============================================================================
--- geronimo/server/branches/2.1/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/StartupMonitorUtil.java
(original)
+++ geronimo/server/branches/2.1/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/StartupMonitorUtil.java
Wed Feb 20 08:48:45 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