org.jwarp.service.id
Interface IIdService
- All Superinterfaces:
- IConfigurable, IExceptionProvider, IService
- All Known Implementing Classes:
- IdService
- public interface IIdService
- extends IService
This service provides unique identifiers for the instance of Turbine, and for objects it creates.
- Version:
- $Id: UniqueIdService.java,v 1.3 2000/08/31 14:12:07 gonzalo Exp $
- Author:
- Rafal Krzewski
|
Field Summary |
static java.lang.String |
SERVICE_TYPE
Service type string constant |
|
Method Summary |
java.lang.String |
getId(ITicket ticket)
Returns an identifier that is unique within this turbine instance, but does not have random-like apearance.
|
| Methods inherited from interface org.jwarp.service.IService |
checkContext, getDependencies, getLogLevel, getName, getStatus, getType, resume, setContext, setDependencies, setLogLevel, shutdown, start, suspend |
SERVICE_TYPE
public static final java.lang.String SERVICE_TYPE
- Service type string constant
getId
public java.lang.String getId(ITicket ticket)
Returns an identifier that is unique within this turbine instance, but does not have random-like apearance.
This method is intended to work fast; it can be used for creating names of temporary files.
- Returns:
- A String with the non-random looking instance identifier.