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
 
Fields inherited from interface org.jwarp.service.IService
SERVICE_STATUS_CREATED, SERVICE_STATUS_NOT_AVAILABLE, SERVICE_STATUS_READY, SERVICE_STATUS_RESUMING, SERVICE_STATUS_RUNNING, SERVICE_STATUS_STARTING, SERVICE_STATUS_STOPPED, SERVICE_STATUS_STOPPING, SERVICE_STATUS_SUSPENDED
 
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
 
Methods inherited from interface org.jwarp.service.configuration.IConfigurable
configure
 
Methods inherited from interface org.jwarp.common.IExceptionProvider
addExceptionListener, getExceptionListeners, removeAllExceptionListeners, removeExceptionListener
 

Field Detail

SERVICE_TYPE

public static final java.lang.String SERVICE_TYPE
Service type string constant
Method Detail

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.

©   O R C A   S y s t e m s