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

Quick Search    Search Deep

org.apache.ws.util.uuid.impl
Class FastUuidGenerator  view FastUuidGenerator download FastUuidGenerator.java

java.lang.Object
  extended byorg.apache.ws.util.uuid.impl.FastUuidGenerator
All Implemented Interfaces:
org.apache.ws.util.uuid.UuidGenerator

public class FastUuidGenerator
extends java.lang.Object
implements org.apache.ws.util.uuid.UuidGenerator

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


Field Summary
private  long m_lastTime
           
private static int s_clockSequence
           
private static java.lang.String s_nodeStr
           
private static java.util.Random s_secureRandom
           
 
Constructor Summary
FastUuidGenerator()
           
 
Method Summary
 java.lang.String generateUuid()
          Generate a Universally Unique IDentifier (UUID).
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s_secureRandom

private static java.util.Random s_secureRandom

s_nodeStr

private static java.lang.String s_nodeStr

s_clockSequence

private static int s_clockSequence

m_lastTime

private long m_lastTime
Constructor Detail

FastUuidGenerator

public FastUuidGenerator()
Method Detail

generateUuid

public java.lang.String generateUuid()
Description copied from interface: org.apache.ws.util.uuid.UuidGenerator
Generate a Universally Unique IDentifier (UUID).

Specified by:
generateUuid in interface org.apache.ws.util.uuid.UuidGenerator

getNodeHexValue

private static java.lang.String getNodeHexValue()

getClockSequence

private static int getClockSequence()

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)