uk.org.ogsadai.common
Class UniqueName

java.lang.Object
  |
  +--uk.org.ogsadai.common.UniqueName

public final class UniqueName
extends java.lang.Object

ogsadai class/interface uk.org.ogsadai.common.UniqueName Provides unique names for use by the system - this does not include hardening, so after the JVM is stopped and started again, the naming may not be unique. A timestamp is used as a seed to assist with uniqueness, but uniqueness cannot be guaranteed


Method Summary
static UniqueName getInstance()
          Method getInstance.
 java.lang.String getName()
          Returns a unique name based on a Hex timestamp seed, of the form ogsadai-100033ad2a7.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static UniqueName getInstance()
Method getInstance. This uses a timestamp

Returns:
UniqueName The singleton instance of the UniqueName class.

getName

public java.lang.String getName()
Returns a unique name based on a Hex timestamp seed, of the form ogsadai-100033ad2a7.

Returns:
String