Class RemoteMember

  • All Implemented Interfaces:
    Member, MemberIdentity

    public class RemoteMember
    extends Object
    implements Member
    A RemoteMember is a special 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.
    Since:
    Coherence 12.1.3
    Author:
    wl 2013.03.01
    • Constructor Detail

      • RemoteMember

        public RemoteMember​(InetAddress address,
                            int nPort)
        Construct a RemoteMember.
        Parameters:
        address - the IP listen address of the remote member ProxyService Acceptor
        nPort - 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 interface Member
        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.
        Specified by:
        getPort in interface Member
        Returns:
        the port of the Member's DatagramSocket
      • getTimestamp

        public long getTimestamp()
        Return the date/time value (in cluster time) that the Member joined.
        Specified by:
        getTimestamp in interface Member
        Returns:
        the cluster date/time value that the Member joined
      • getUid

        public UID getUid()
        Return the unique identifier of the Member.
        Specified by:
        getUid in interface Member
        Returns:
        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.

        Specified by:
        getId in interface Member
        Returns:
        the mini-id of the Member
      • getClusterName

        public String getClusterName()
        Return the name of the cluster with which this member is associated.
        Specified by:
        getClusterName in interface MemberIdentity
        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 interface MemberIdentity
        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 interface MemberIdentity
        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 interface MemberIdentity
        Returns:
        the configured Member name or null
      • getPriority

        public int getPriority()
        Return the priority (or "weight") of the local Member.
        Specified by:
        getPriority in interface MemberIdentity
        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 interface MemberIdentity
        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 interface MemberIdentity
        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 interface MemberIdentity
        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 interface MemberIdentity
        Returns:
        the configured Site name or null