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 specialMemberimplementation 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 InetAddressgetAddress()Return the IP address of the Member's DatagramSocket for point-to-point communication.StringgetClusterName()Return the name of the cluster with which this member is associated.intgetId()Return a small number that uniquely identifies the Member at this point in time and does not change for the life of this Member.intgetMachineId()Return the Member's machine Id.StringgetMachineName()Return the configured name for the Machine (such as a host name) in which this Member resides.StringgetMemberName()Return the configured name for the Member.intgetPort()Return the port of the Member's DatagramSocket for point-to-point communication.intgetPriority()Return the priority (or "weight") of the local Member.StringgetProcessName()Return the configured name for the Process (such as a JVM) in which this Member resides.StringgetRackName()Return the configured name for the Rack (such as a physical rack, cage or blade frame) in which this Member resides.StringgetRoleName()Return the configured role name for the Member.StringgetSiteName()Return the configured name for the Site (such as a data center) in which this Member resides.longgetTimestamp()Return the date/time value (in cluster time) that the Member joined.UIDgetUid()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:
getAddressin 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:
getTimestampin 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:
getClusterNamein 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:
getMachineIdin 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:
getMachineNamein 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:
getMemberNamein interfaceMemberIdentity- Returns:
- the configured Member name or null
-
getPriority
public int getPriority()
Return the priority (or "weight") of the local Member.- Specified by:
getPriorityin 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:
getProcessNamein 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:
getRackNamein 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:
getRoleNamein 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:
getSiteNamein interfaceMemberIdentity- Returns:
- the configured Site name or null
-
-