mnemosyne.guid
Class RmiUidGuidGenerator

java.lang.Object
  |
  +--mnemosyne.guid.RmiUidGuidGenerator
All Implemented Interfaces:
GuidGenerator

public class RmiUidGuidGenerator
extends java.lang.Object
implements GuidGenerator

A GUID generator based on java.rmi.server.UID. A GUID generated by this class are unique over time with respect to the host it is generated on as long as the host requires more than one millisecond to reboot and its system clock is never set backward. They are NOT unique across different hosts.

Version:
$Id: RmiUidGuidGenerator.java,v 1.1.1.1 2004/08/07 06:41:18 charlesblaxland Exp $

Constructor Summary
RmiUidGuidGenerator()
           
 
Method Summary
 Guid generateGUID()
          Generates and returns a new GUID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RmiUidGuidGenerator

public RmiUidGuidGenerator()
Method Detail

generateGUID

public Guid generateGUID()
Description copied from interface: GuidGenerator
Generates and returns a new GUID.

Specified by:
generateGUID in interface GuidGenerator
Returns:
A new GUID (Globally Unique Identifier)


Copyright © 2004 Charles Blaxland. All Rights Reserved.