org.apache.turbine.services.uniqueid
Class TurbineUniqueId

java.lang.Object
  extended byorg.apache.turbine.services.uniqueid.TurbineUniqueId

public abstract class TurbineUniqueId
extends java.lang.Object

This is a facade class for UniqueIdService.

Version:
$Id: TurbineUniqueId.java 264148 2005-08-29 14:21:04Z henning $
Author:
Rafal Krzewski

Constructor Summary
TurbineUniqueId()
           
 
Method Summary
static java.lang.String getInstanceId()
           Returs an identifer of this Turbine instance that is unique both on the server and worldwide.
static java.lang.String getPseudorandomId()
           Returns a unique identifier that looks like random data.
protected static UniqueIdService getService()
          Utility method for accessing the service implementation
static java.lang.String getUniqueId()
           Returns an identifier that is unique within this turbine instance, but does not have random-like apearance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TurbineUniqueId

public TurbineUniqueId()
Method Detail

getService

protected static UniqueIdService getService()
Utility method for accessing the service implementation

Returns:
a UniqueIdService implementation instance

getInstanceId

public static java.lang.String getInstanceId()

Returs an identifer of this Turbine instance that is unique both on the server and worldwide.

Returns:
A String with the instance identifier.

getUniqueId

public static java.lang.String getUniqueId()

Returns an identifier that is unique within this turbine instance, but does not have random-like apearance.

Returns:
A String with the non-random looking instance identifier.

getPseudorandomId

public static java.lang.String getPseudorandomId()

Returns a unique identifier that looks like random data.

Returns:
A String with the random looking instance identifier.


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.