|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.ActiveMQUuidGenerator
public class ActiveMQUuidGenerator
UuidGenerator which is a fast implementation based on
how Apache ActiveMQ generates its UUID.
PROPERTY_IDGENERATOR_PORT can be used to set a specific port
number to be used as part of the initialization process to generate unique UUID.
| Field Summary | |
|---|---|
static String |
PROPERTY_IDGENERATOR_PORT
|
| Constructor Summary | |
|---|---|
ActiveMQUuidGenerator()
|
|
ActiveMQUuidGenerator(String prefix)
|
|
| Method Summary | |
|---|---|
String |
generateSanitizedId()
Generate a unique ID - that is friendly for a URL or file system |
static String |
generateSanitizedId(String id)
Ensures that the id is friendly for a URL or file system |
String |
generateUuid()
Generates a UUID string representation. |
static String |
getHostName()
As we have to find the hostname as a side-affect of generating a unique stub, we allow it's easy retrieval here |
static String |
sanitizeHostName(String hostName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_IDGENERATOR_PORT
| Constructor Detail |
|---|
public ActiveMQUuidGenerator(String prefix)
public ActiveMQUuidGenerator()
| Method Detail |
|---|
public static String getHostName()
public static String sanitizeHostName(String hostName)
public String generateUuid()
UuidGenerator
generateUuid in interface UuidGeneratorpublic String generateSanitizedId()
public static String generateSanitizedId(String id)
id - the unique id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||