Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.net.proxy
Class RemoteMember

java.lang.Object
  extended by com.tangosol.net.proxy.RemoteMember

All Implemented Interfaces:
Member, MemberIdentity

public class RemoteMember
extends java.lang.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 Summary
RemoteMember(java.net.InetAddress address, int nPort)
          Construct a RemoteMember.

 

Method Summary
 java.net.InetAddress getAddress()
          Return the IP address of the Member's DatagramSocket for point-to-point communication.
 java.lang.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.
 java.lang.String getMachineName()
          Return the configured name for the Machine (such as a host name) in which this Member resides.
 java.lang.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.
 java.lang.String getProcessName()
          Return the configured name for the Process (such as a JVM) in which this Member resides.
 java.lang.String getRackName()
          Return the configured name for the Rack (such as a physical rack, cage or blade frame) in which this Member resides.
 java.lang.String getRoleName()
          Return the configured role name for the Member.
 java.lang.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.

 

Constructor Detail

RemoteMember

public RemoteMember(java.net.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 java.net.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.