|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.codehaus.activemq.util.IdGenerator
Generator for globally unique Strings
| Constructor Summary | |
IdGenerator()
Construct an IdGenerator |
|
| Method Summary | |
static int |
compare(String id1,
String id2)
Does a proper compare on the ids |
String |
generateId()
Generate a unqiue id |
static long |
getCountFromId(String id)
From a generated id - return the generator count |
static String |
getHostName()
As we have to find the hostname as a side-affect of generating a unique stub, we allow it's easy retrevial here |
String |
getSeed()
|
static String |
getSeedFromId(String id)
From a generated id - return the seed (i.e. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public IdGenerator()
| Method Detail |
public static String getHostName()
public String generateId()
public String getSeed()
public static String getSeedFromId(String id)
id - the generated identifer
public static long getCountFromId(String id)
id -
public static int compare(String id1,
String id2)
id1 - id2 -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||