|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fzj.unicore.wsrflite.persistence.InMemory
public class InMemory
map-based storage class
| Field Summary | |
|---|---|
protected Map<String,Calendar> |
terminationTimes
|
| Fields inherited from interface de.fzj.unicore.wsrflite.persistence.IPersistenceProperties |
|---|
WSRF_PERSIST_CLASSNAME, WSRF_PERSIST_STORAGE_DIRECTORY |
| Constructor Summary | |
|---|---|
InMemory()
|
|
| Method Summary | |
|---|---|
WSRFInstance |
getForUpdate(String uniqueID,
long time,
TimeUnit timeUnit)
get and lock a live instance from storage. |
PersistenceSettings |
getPersistenceSettings()
|
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 |
setPersistenceSettings(PersistenceSettings ps)
|
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 i)
clear lock for the given instance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<String,Calendar> terminationTimes
| Constructor Detail |
|---|
public InMemory()
| Method Detail |
|---|
public void init(String serviceName)
Store
init in interface StoreserviceName - The name of the service that is persistedpublic void shutdown()
Store
shutdown in interface Storepublic void persist(WSRFInstance inst)
Store
persist in interface Storepublic String[] getUniqueIDs()
Store
getUniqueIDs in interface Storepublic WSRFInstance read(String uniqueID)
Store
read in interface Storenull if instance does not exist
public WSRFInstance getForUpdate(String uniqueID,
long time,
TimeUnit timeUnit)
Store
getForUpdate in interface StoreuniqueID - - the id of the instance to readtime - - the maximum time to wait when aquiring a locktimeUnit - - the time unitspublic void remove(String uniqueID)
Store
remove in interface Storepublic void unlock(WSRFInstance i)
Store
unlock in interface Storepublic int size()
Store
size in interface Storepublic void setPersistenceSettings(PersistenceSettings ps)
public PersistenceSettings getPersistenceSettings()
public Map<String,Calendar> getTerminationTimes()
Store
getTerminationTimes in interface Store
public void setTerminationTime(String uniqueID,
Calendar c)
Store
setTerminationTime in interface Storepublic void purgePersistentData()
Store
purgePersistentData in interface Store
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||