HPSearch

cgl.hpsearch.common
Class UIDGenerator

java.lang.Object
  extended bycgl.hpsearch.common.UIDGenerator

public class UIDGenerator
extends Object

Creates a unique ID for use by various components of the Workflow Streams and Engine.
Current Implementation returns a String consisting of 3 parts separated by :. The 3 parts are as follows

NOTE: For development purposes the inclusion of Random Double and current system time has been disabled.
TO_DO: Use a standard UID generator such as IETF's UUID.

Author:
Harshawardhan S. Gadgil

Field Summary
static int inNo
           
 
Constructor Summary
UIDGenerator()
           
 
Method Summary
static int getIntId()
           
static String getUniqID()
          Deprecated.  
static String getUUID()
          Generates a time based UUID
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inNo

public static int inNo
Constructor Detail

UIDGenerator

public UIDGenerator()
Method Detail

getUUID

public static String getUUID()
Generates a time based UUID

Returns:
String representation of UUID in format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

getUniqID

public static String getUniqID()
Deprecated.  

Deprecated method. Use getUUID()

Returns:
UID string in the format IP:CurrentTime:serialInt

getIntId

public static int getIntId()

main

public static void main(String[] args)

HPSearch

For comments and suggestions please send e-mail to Harshawardhan Gadgil
Last updated: June 9 2006