| CONTENTS | PREV | NEXT | Java Remote Method Invocation |
VMID Class
The classVMIDprovides a universally unique identifier among all Java virtual machines. AVMIDcontains aUIDand a host address. AVMIDcan 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(); }TheVMIDdefault constructor creates a globally unique identifier among all Java virtual machines under the following conditions:
AVMIDcontains 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 methodisUniquecan be called to determine ifVMIDsgenerated in this virtual machine are, in fact, unique among all virtual machines. The methodisUniquereturns true if a valid host name can be determined (other than loopback host); otherwise it returns false.The
hashCode,equalsandtoStringmethods are defined forVMIDs. TwoVMIDsare considered equal if they have the same contents.
CONTENTS | PREV | NEXT
Copyright © 1997-1999 Sun Microsystems, Inc. All Rights Reserved.