当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 cluster API Documentation 英文版文档
ClusterNode (JBoss Cluster API) - JBoss 4.0.1 sp1 cluster API Documentation 英文版文档
org.jboss.ha.framework.interfaces
Class ClusterNode
java.lang.Object
org.jboss.ha.framework.interfaces.ClusterNode
- All Implemented Interfaces:
- Cloneable, Comparable
- public class ClusterNode
- extends Object
- implements Comparable, Cloneable
Replacement for a JG IpAddress that doesn't base its representation
on the JG address but on the computed node name added to the IPAddress instead.
This is to avoid any problem in the cluster as some nodes may interpret a node name
differently (IP resolution, name case, FQDN or host name, etc.)
- Version:
- $Revision: 1.5 $
Revisions:
August 17 2003 Sacha Labourey:
- Author:
- Sacha Labourey.
- See Also:
ClusterPartition
id
protected String id
jgId
protected String jgId
originalJGAddress
protected org.jgroups.stack.IpAddress originalJGAddress
ClusterNode
public ClusterNode()
ClusterNode
public ClusterNode(org.jgroups.stack.IpAddress jgAddress)
getName
public String getName()
getJGName
public String getJGName()
getOriginalJGAddress
public org.jgroups.stack.IpAddress getOriginalJGAddress()
getIpAddress
public InetAddress getIpAddress()
getPort
public int getPort()
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interface Comparable
equals
public boolean equals(Object obj)
hashCode
public int hashCode()
toString
public String toString()
getShortName
protected String getShortName(String hostname)
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.