[prev in list] [next in list] [prev in thread] [next in thread]
List: jboss-cvs-commits
Subject: [jboss-cvs] jboss-remoting/src/main/org/jboss/remoting InvokerLocator.java
From: Jeff Haynie <jhaynie () users ! sourceforge ! net>
Date: 2003-02-28 23:41:15
[Download RAW message or body]
User: jhaynie
Date: 03/02/28 15:41:14
Modified: src/main/org/jboss/remoting InvokerLocator.java
Log:
fixes for detection on remote machines causing issues with server not yet started when detection occurs
Revision Changes Path
1.2 +15 -2 jboss-remoting/src/main/org/jboss/remoting/InvokerLocator.java
Index: InvokerLocator.java
===================================================================
RCS file: /cvsroot/jboss/jboss-remoting/src/main/org/jboss/remoting/InvokerLocator.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- InvokerLocator.java 19 Feb 2003 04:32:53 -0000 1.1
+++ InvokerLocator.java 28 Feb 2003 23:41:14 -0000 1.2
@@ -34,18 +34,20 @@
*
* <tt>rmi://localhost</tt>
*
- *
+ *
* @author <a href="mailto:jhaynie@vocalocity.net">Jeff Haynie</a>
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public class InvokerLocator implements Serializable
{
+ private static final long serialVersionUID = -2909329895029296248L;
protected String protocol;
protected String host;
protected int port;
protected String path;
protected Map parameters;
private String uri;
+ private int hashCode;
public InvokerLocator (String uri)
throws MalformedURLException
@@ -111,6 +113,7 @@
path = tmp.substring(i+1);
}
}
+ this.hashCode = uri.hashCode();
}
public InvokerLocator (String protocol, String host, int port, String path, Map parameters)
@@ -136,7 +139,17 @@
}
}
}
+ this.hashCode = uri.hashCode();
}
+ public int hashCode ()
+ {
+ return this.hashCode;
+ }
+
+ public boolean equals (Object obj)
+ {
+ return obj instanceof InvokerLocator && obj.hashCode()==hashCode;
+ }
/**
* return the locator URI, in the format: <P>
*
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
jboss-cvs-commits mailing list
jboss-cvs-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-cvs-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic