com.ibm.sensorevent.uuid
Class UUID

java.lang.Object
  extended by com.ibm.sensorevent.uuid.UUID

public class UUID
extends java.lang.Object

The UUID class represents universally unique identifiers. UUIDs are used to uniquely identify events.


Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String PREFIX
          Prefix value put at the beginning of each event UUID.
 
Constructor Summary
protected UUID()
          Constructs a new UUID instance.
 
Method Summary
static java.lang.String createEventUUID()
          Creates a randomly generated UUID string used as an event identifier.
static java.lang.String createUUID()
          Creates a generic UUID string based upon java.util.UUID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

PREFIX

public static final java.lang.String PREFIX
Prefix value put at the beginning of each event UUID.

See Also:
Constant Field Values
Constructor Detail

UUID

protected UUID()
Constructs a new UUID instance.

Method Detail

createUUID

public static java.lang.String createUUID()
Creates a generic UUID string based upon java.util.UUID. Example:
3a5ab079-5148-4691-b91b-43781c33f5eb

Returns:
the randomly generated UUID string

createEventUUID

public static java.lang.String createEventUUID()
Creates a randomly generated UUID string used as an event identifier. Example:
IBMSensorEvent_3a5ab079-5148-4691-b91b-43781c33f5eb

Returns:
the randomly generated event UUID string


Copyright © 2005 - 2009 IBM Corp. All Rights Reserved.