|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Store
Persistent storage interface
| Field Summary |
|---|
| Fields inherited from interface de.fzj.unicore.wsrflite.persistence.IPersistenceProperties |
|---|
WSRF_PERSIST_CLASSNAME, WSRF_PERSIST_STORAGE_DIRECTORY |
| Method Summary | |
|---|---|
WSRFInstance |
getForUpdate(String uniqueID,
long time,
TimeUnit timeUnit)
get and lock a live instance from storage. |
Map<String,Calendar> |
getTerminationTimes()
gets current termination times for all ws-resources in this store |
String[] |
getUniqueIDs()
retrieve a list of all unique ids |
void |
init(String serviceName)
initialise the store |
void |
persist(WSRFInstance inst)
persist a single wsrf instance |
void |
purgePersistentData()
Fully deletes persistent data, for example after service undeployment |
WSRFInstance |
read(String uniqueID)
read an instance from storage. |
void |
remove(String uniqueID)
Delete an instance, and cleanup the persistence. |
void |
setTerminationTime(String uniqueID,
Calendar c)
sets termination time for a ws-resource |
void |
shutdown()
shutdown the store |
int |
size()
returns the number of instances in this store |
void |
unlock(WSRFInstance wsrfInstance)
clear lock for the given instance |
| Method Detail |
|---|
void init(String serviceName)
serviceName - The name of the service that is persistedvoid shutdown()
void persist(WSRFInstance inst)
inst - String[] getUniqueIDs()
WSRFInstance read(String uniqueID)
null if instance does not exist
WSRFInstance getForUpdate(String uniqueID,
long time,
TimeUnit timeUnit)
throws TimeoutException
uniqueID - - the id of the instance to readtime - - the maximum time to wait when aquiring a locktimeUnit - - the time units
TimeoutExceptionvoid unlock(WSRFInstance wsrfInstance)
wsrfInstance - void remove(String uniqueID)
uniqueID - int size()
void setTerminationTime(String uniqueID,
Calendar c)
throws Exception
String - uniqueID - ws-resource idCalendar - c - termination time for this ws-resource. May be null to indicate infinite lifetime
ExceptionMap<String,Calendar> getTerminationTimes()
void purgePersistentData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||