GridGain™ 2.0.3
Java API Specification

org.gridgain.grid.spi.discovery.coherence
Class GridCoherenceMember

java.lang.Object
  extended by org.gridgain.grid.spi.discovery.coherence.GridCoherenceMember
All Implemented Interfaces:
Serializable

public class GridCoherenceMember
extends Object
implements Serializable

Contains data from Coherence Member interface. An instance of this class can be accessed by calling GridNode.getAttribute(GridCoherenceDiscoverySpi.ATTR_COHERENCE_MBR) method.



See Also:

  Documentation
  Email Support
  Online Forums
  Issue Tracking

Author:   2005-2008 Copyright © GridGain Systems. All Rights Reserved. ver. 2.0.3

See Also:
Serialized Form
 

Constructor Summary
GridCoherenceMember(com.tangosol.net.Member mbr)
          Creates bean with member data.
 
Method Summary
 InetAddress getAddress()
          Return the IP address of the Member's DatagramSocket for point-to-point communication.
 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()
          Determine the configured name for the Machine (such as a host name) in which this Member resides.
 String getMemberName()
          Determine the configured name for the Member.
 int getPort()
          Return the port of the Member's DatagramSocket for point-to-point communication.
 long getTimestamp()
          Return the date/time value (in cluster time) that the Member joined.
 com.tangosol.util.UID getUid()
          Return the unique Coherence identifier of the Member.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GridCoherenceMember

public GridCoherenceMember(com.tangosol.net.Member mbr)
Creates bean with member data.

Parameters:
mbr - Coherence node (member).
Method Detail

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.

Returns:
Mini-id of the Member.

getMachineId

public int getMachineId()
Return the Member's machine Id.

Returns:
Member's machine Id.

getMachineName

public String getMachineName()
Determine the configured name for the Machine (such as a host name) in which this Member resides.

Returns:
configured Machine name or null.

getMemberName

public String getMemberName()
Determine the configured name for the Member.

Returns:
Configured Member name or null

getAddress

public InetAddress getAddress()
Return the IP address of the Member's DatagramSocket for point-to-point communication.

Returns:
IP address of the Member's DatagramSocket.

getPort

public int getPort()
Return the port of the Member's DatagramSocket for point-to-point communication.

Returns:
Port of the Member's DatagramSocket.

getTimestamp

public long getTimestamp()
Return the date/time value (in cluster time) that the Member joined.

Returns:
Cluster date/time value that the Member joined.

getUid

public com.tangosol.util.UID getUid()
Return the unique Coherence identifier of the Member.

Returns:
Unique identifier of the Member.

toString

public String toString()

Overrides:
toString in class Object

GridGain™ 2.0.3
Java API Specification

GridGain™ - Grid Computing Made Simple, ver. 2.0.3.20052008
2005-2008 Copyright © GridGain Systems. All Rights Reserved.