Package com.tangosol.net.proxy
Class RemoteMember
- java.lang.Object
-
- com.tangosol.net.proxy.RemoteMember
-
- All Implemented Interfaces:
Member
,MemberIdentity
public class RemoteMember extends Object implements Member
A RemoteMember is a specialMember
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 theProxyServiceLoadBalancer
.- Since:
- Coherence 12.1.3
- Author:
- wl 2013.03.01
-
-
Field Summary
-
Fields inherited from interface com.tangosol.net.MemberIdentity
MEMBER_IDENTITY_LIMIT
-
-
Constructor Summary
Constructors Constructor Description RemoteMember(InetAddress address, int nPort)
Construct a RemoteMember.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.tangosol.net.Member
getUuid, isRemoteClient
-
Methods inherited from interface com.tangosol.net.MemberIdentity
getRoles
-
-
-
-
Constructor Detail
-
RemoteMember
public RemoteMember(InetAddress address, int nPort)
Construct a RemoteMember.- Parameters:
address
- the IP listen address of the remote member ProxyService AcceptornPort
- the TCP listen port of the remote member ProxyService Acceptor
-
-
Method Detail
-
getAddress
public InetAddress getAddress()
Return the IP address of the Member's DatagramSocket for point-to-point communication.- Specified by:
getAddress
in interfaceMember
- Returns:
- the IP address of the Member's DatagramSocket
-
getPort
public int getPort()
Return the port of the Member's DatagramSocket for point-to-point communication.
-
getTimestamp
public long getTimestamp()
Return the date/time value (in cluster time) that the Member joined.- Specified by:
getTimestamp
in interfaceMember
- Returns:
- the cluster date/time value that the Member joined
-
getUid
public UID getUid()
Return the unique identifier of the Member.
-
getId
public 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.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.
-
getClusterName
public String getClusterName()
Return the name of the cluster with which this member is associated.- Specified by:
getClusterName
in interfaceMemberIdentity
- Returns:
- the cluster name
-
getMachineId
public int getMachineId()
Return the Member's machine Id. This identifier should be the same for Members that are on the same physical machine, and ideally different for Members that are on different physical machines.- Specified by:
getMachineId
in interfaceMemberIdentity
- Returns:
- the Member's machine Id
-
getMachineName
public String getMachineName()
Return the configured name for the Machine (such as a host name) in which this Member resides. This name is used for logging purposes and to differentiate among multiple servers, and may be used as the basis for determining the MachineId property.- Specified by:
getMachineName
in interfaceMemberIdentity
- Returns:
- the configured Machine name or null
-
getMemberName
public String getMemberName()
Return the configured name for the Member. This name is used for logging purposes and to differentiate among Members running within a particular process.- Specified by:
getMemberName
in interfaceMemberIdentity
- Returns:
- the configured Member name or null
-
getPriority
public int getPriority()
Return the priority (or "weight") of the local Member.- Specified by:
getPriority
in interfaceMemberIdentity
- Returns:
- the member priority
-
getProcessName
public String getProcessName()
Return the configured name for the Process (such as a JVM) in which this Member resides. This name is used for logging purposes and to differentiate among multiple processes on a a single machine.- Specified by:
getProcessName
in interfaceMemberIdentity
- Returns:
- the configured Process name or null
-
getRackName
public String getRackName()
Return the configured name for the Rack (such as a physical rack, cage or blade frame) in which this Member resides. This name is used for logging purposes and to differentiate among multiple racks within a particular data center, for example.- Specified by:
getRackName
in interfaceMemberIdentity
- Returns:
- the configured Rack name or null
-
getRoleName
public String getRoleName()
Return the configured role name for the Member. This role is completely definable by the application, and can be used to determine what Members to use for specific purposes.- Specified by:
getRoleName
in interfaceMemberIdentity
- Returns:
- the configured role name for the Member or null
-
getSiteName
public String getSiteName()
Return the configured name for the Site (such as a data center) in which this Member resides. This name is used for logging purposes and to differentiate among multiple geographic sites.- Specified by:
getSiteName
in interfaceMemberIdentity
- Returns:
- the configured Site name or null
-
-