public class RemoteMember extends Object implements Member
Member implementation that carries
the remote IP/port information of a member that isn't in the cluster.
The ProxyService will then skip resolving the address if a RemoteMember
is returned from the ProxyServiceLoadBalancer.MEMBER_IDENTITY_LIMIT| Constructor and Description |
|---|
RemoteMember(InetAddress address,
int nPort)
Construct a RemoteMember.
|
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
getAddress()
Return the IP address of the Member's DatagramSocket for
point-to-point communication.
|
String |
getClusterName()
Return the name of the cluster with which this member is associated.
|
int |
getId()
Return a small number that uniquely identifies the Member at this point
in time and does not change for the life of this Member.
|
int |
getMachineId()
Return the Member's machine Id.
|
String |
getMachineName()
Return the configured name for the Machine (such as a host name) in which
this Member resides.
|
String |
getMemberName()
Return the configured name for the Member.
|
int |
getPort()
Return the port of the Member's DatagramSocket for
point-to-point communication.
|
int |
getPriority()
Return the priority (or "weight") of the local Member.
|
String |
getProcessName()
Return the configured name for the Process (such as a JVM) in which this
Member resides.
|
String |
getRackName()
Return the configured name for the Rack (such as a physical rack, cage or
blade frame) in which this Member resides.
|
String |
getRoleName()
Return the configured role name for the Member.
|
String |
getSiteName()
Return the configured name for the Site (such as a data center) in which
this Member resides.
|
long |
getTimestamp()
Return the date/time value (in cluster time) that the Member joined.
|
UID |
getUid()
Return the unique identifier of the Member.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRolespublic RemoteMember(InetAddress address, int nPort)
address - the IP listen address of the remote member
ProxyService AcceptornPort - the TCP listen port of the remote member
ProxyService Acceptorpublic InetAddress getAddress()
getAddress in interface Memberpublic int getPort()
public long getTimestamp()
getTimestamp in interface Memberpublic UID getUid()
public int getId()
This value sometimes referred to as a "mini-id" in comparison to the
"Uid" returned by Member.getUid(). It does not uniquely identify the
Member throughout the duration of the cluster because Members that
existed but left the cluster before this Member existed may have had
the same mini-id value and the same goes for Members that may join the
cluster after this Member leaves the cluster.
public String getClusterName()
getClusterName in interface MemberIdentitypublic int getMachineId()
getMachineId in interface MemberIdentitypublic String getMachineName()
getMachineName in interface MemberIdentitypublic String getMemberName()
getMemberName in interface MemberIdentitypublic int getPriority()
getPriority in interface MemberIdentitypublic String getProcessName()
getProcessName in interface MemberIdentitypublic String getRackName()
getRackName in interface MemberIdentitypublic String getRoleName()
getRoleName in interface MemberIdentitypublic String getSiteName()
getSiteName in interface MemberIdentity