|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fzj.unicore.wsrflite.persistence.AbstractStore
de.fzj.unicore.wsrflite.persistence.Persistence
public class Persistence
use the Persistence framework for storing wsrf instances
| Nested Class Summary | |
|---|---|
static class |
Persistence.PropertySource
get persistence config from the Kernel properties (i.e. wsrflite.xml) |
| Field Summary |
|---|
| Fields inherited from class de.fzj.unicore.wsrflite.persistence.AbstractStore |
|---|
instances, serviceName, settings, uniqueIDs |
| Fields inherited from interface de.fzj.unicore.wsrflite.persistence.IPersistenceProperties |
|---|
WSRF_PERSIST_CLASSNAME, WSRF_PERSIST_STORAGE_DIRECTORY |
| Constructor Summary | |
|---|---|
Persistence()
|
|
| Method Summary | |
|---|---|
protected WSRFInstanceBean |
_getForUpdate(String uniqueID,
long time,
TimeUnit timeUnit)
|
protected void |
_getUniqueIDs()
|
protected void |
_persist(WSRFInstanceBean data)
|
protected WSRFInstanceBean |
_read(String uniqueID)
|
protected void |
_remove(String uniqueID)
|
protected void |
_unlock(WSRFInstanceBean dao)
|
long |
getCacheHits()
|
Map<String,Calendar> |
getTerminationTimes()
gets current termination times for all ws-resources in this store |
void |
init(String serviceName)
initialise the store |
void |
purgePersistentData()
Fully deletes persistent data, for example after service undeployment |
void |
removeAll()
|
void |
setTerminationTime(String uniqueID,
Calendar c)
sets termination time for a ws-resource |
void |
shutdown()
shutdown the store |
| Methods inherited from class de.fzj.unicore.wsrflite.persistence.AbstractStore |
|---|
getForUpdate, getPersistenceSettings, getServiceName, getUniqueIDs, persist, read, remove, setPersistenceSettings, size, unlock |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Persistence()
| Method Detail |
|---|
public void init(String serviceName)
Store
init in interface Storeinit in class AbstractStoreserviceName - The name of the service that is persistedprotected void _getUniqueIDs()
_getUniqueIDs in class AbstractStore
protected void _persist(WSRFInstanceBean data)
throws Exception
_persist in class AbstractStoreException
protected WSRFInstanceBean _read(String uniqueID)
throws Exception
_read in class AbstractStoreException
protected WSRFInstanceBean _getForUpdate(String uniqueID,
long time,
TimeUnit timeUnit)
throws Exception
_getForUpdate in class AbstractStoreExceptionprotected void _remove(String uniqueID)
_remove in class AbstractStorepublic void purgePersistentData()
Store
protected void _unlock(WSRFInstanceBean dao)
throws de.fzj.unicore.persist.PersistenceException
_unlock in class AbstractStorede.fzj.unicore.persist.PersistenceException
public void removeAll()
throws de.fzj.unicore.persist.PersistenceException
de.fzj.unicore.persist.PersistenceExceptionpublic void shutdown()
Store
public Map<String,Calendar> getTerminationTimes()
Store
public void setTerminationTime(String uniqueID,
Calendar c)
throws UnableToSetTerminationTimeException
Store
UnableToSetTerminationTimeExceptionpublic long getCacheHits()
getCacheHits in class AbstractStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||