Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.axis.components.uuid
Class FastUUIDGen  view FastUUIDGen download FastUUIDGen.java

java.lang.Object
  extended byorg.apache.axis.components.uuid.FastUUIDGen
All Implemented Interfaces:
UUIDGen

public class FastUUIDGen
extends java.lang.Object
implements UUIDGen

Creates time-based UUID's. See the UUID Internet Draft for details.


Field Summary
private static int clockSequence
           
private  long lastTime
           
private static java.lang.String nodeStr
           
private static java.util.Random secureRandom
           
 
Constructor Summary
FastUUIDGen()
           
 
Method Summary
private static long getBitsValue(long value, int startBit, int bitLen)
           
private static int getClockSequence()
           
private static java.lang.String getNodeHexValue()
           
private static java.lang.String leftZeroPadString(java.lang.String bitString, int len)
           
 java.lang.String nextUUID()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

secureRandom

private static java.util.Random secureRandom

nodeStr

private static java.lang.String nodeStr

clockSequence

private static int clockSequence

lastTime

private long lastTime
Constructor Detail

FastUUIDGen

public FastUUIDGen()
Method Detail

getNodeHexValue

private static java.lang.String getNodeHexValue()

getClockSequence

private static int getClockSequence()

nextUUID

public java.lang.String nextUUID()
Specified by:
nextUUID in interface UUIDGen

getBitsValue

private static long getBitsValue(long value,
                                 int startBit,
                                 int bitLen)

leftZeroPadString

private static final java.lang.String leftZeroPadString(java.lang.String bitString,
                                                        int len)