Methods Summary |
---|
public int | compareTo(java.lang.Object o)
if ((o == null) || !(o instanceof ClusterNode))
throw new ClassCastException("ClusterNode.compareTo(): comparison between different classes");
ClusterNode other = (ClusterNode) o;
return this.id.compareTo(other.id);
|
public boolean | equals(java.lang.Object obj)
if (obj == null || !(obj instanceof ClusterNode)) return false;
ClusterNode other = (ClusterNode) obj;
return this.id.equals(other.id);
|
public java.net.InetAddress | getIpAddress()
return this.originalJGAddress.getIpAddress();
|
public java.lang.String | getJGName()
return this.jgId;
|
public java.lang.String | getName()
return this.id;
|
public org.jgroups.stack.IpAddress | getOriginalJGAddress()
return this.originalJGAddress;
|
public int | getPort()
return this.originalJGAddress.getPort();
|
protected java.lang.String | getShortName(java.lang.String hostname)
int index = hostname.indexOf('.");
if (hostname == null) return "";
if (index > 0 && !Character.isDigit(hostname.charAt(0)))
return hostname.substring(0, index);
else
return hostname;
|
public int | hashCode()
return id.hashCode();
|
public java.lang.String | toString()
return this.getName();
|