Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » util » id » [javadoc | source]
org.jboss.util.id
public class: GUID [javadoc | source]
java.lang.Object
   org.jboss.util.id.GUID

All Implemented Interfaces:
    ID

A globally unique identifier (globally across a cluster of virtual machines).

The identifier is composed of:

  1. The VMID for the virtual machine.
  2. A UID to provide uniqueness over a VMID.
[ address ] - [ process id ] - [ time ] - [ counter ] - [ time ] - [ counter ]
|------- UID --------| |------- UID --------|
|---------------------- VMID -----------------------|
Field Summary
protected final  VMID vmid    The virtual machine identifier 
protected final  UID uid    The unique identifier 
protected final  int hashCode    The hash code of this GUID 
Constructor:
 public GUID() 
 protected GUID(GUID guid) 
    Copy a GUID.
    Parameters:
    guid - GUID to copy.
Method from org.jboss.util.id.GUID Summary:
asString,   clone,   equals,   getUID,   getVMID,   hashCode,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.util.id.GUID Detail:
 public static String asString() 
    Returns a GUID as a string.
 public Object clone() 
    Returns a copy of this GUID.
 public boolean equals(Object obj) 
    Check if the given object is equal to this GUID.

    A GUID is equal to another GUID if the VMID and UID portions are equal.

 public final UID getUID() 
    Get the UID portion of this GUID.
 public final VMID getVMID() 
    Get the VMID portion of this GUID.
 public int hashCode() 
    Return the hash code of this GUID.
 public String toString() 
    Return a string representation of this GUID.