jgroup
Interface VMID


public interface VMID

An instance of this class uniquely identifies a Java virtual machine. Each VMID is composed by an IP address and an incarnation time.

Since:
Jgroup 0.7
Author:
Alberto Montresor

Method Summary
 java.net.InetAddress getAddress()
          Returns the IP address of the host in which the virtual machine identified by this VMID is executed.
 java.lang.Object getHashAddress()
          Returns an object that can be used as hash key for the address of the host in which the virtual machine identified by this VMID is executed.
 long getTime()
          Returns the time at which this VMID has been created.
 

Method Detail

getAddress

public java.net.InetAddress getAddress()
                                throws java.net.UnknownHostException
Returns the IP address of the host in which the virtual machine identified by this VMID is executed.

getHashAddress

public java.lang.Object getHashAddress()
Returns an object that can be used as hash key for the address of the host in which the virtual machine identified by this VMID is executed.

In the Relacs implementation, this is more efficient than using the InetAddress provided by getAddress.


getTime

public long getTime()
Returns the time at which this VMID has been created.