CONTENTS | PREV | NEXT | Java Remote Method Invocation |
VMID
Class
The classVMID
provides a universally unique identifier among all Java virtual machines. AVMID
contains aUID
and a host address. AVMID
can be used to identify client virtual machines.
package java.rmi.dgc; public final class VMID implements java.io.Serializable { public VMID(); public static boolean isUnique(); public int hashCode(); public boolean equals(Object obj); public String toString(); }TheVMID
default constructor creates a globally unique identifier among all Java virtual machines under the following conditions:
AVMID
contains the host address of the machine on which it was created. Due to security restrictions, obtaining the true host address is not always possible (for example, the loopback host may be used under security-restricted conditions). The methodisUnique
can be called to determine ifVMIDs
generated in this virtual machine are, in fact, unique among all virtual machines. The methodisUnique
returns true if a valid host name can be determined (other than loopback host); otherwise it returns false.The
hashCode
,equals
andtoString
methods are defined forVMID
s. TwoVMIDs
are considered equal if they have the same contents.
CONTENTS | PREV | NEXT
Copyright © 1997-1999 Sun Microsystems, Inc. All Rights Reserved.