|
DODS 7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.enhydra.dods.cache.ConfigurationAdministration
org.enhydra.dods.cache.DataStructCache
public abstract class DataStructCache
This abstract class contains data and mechanisms needed for caching data objects (or DataStruct objects) by their OIDs and provides cache configuration and administration.
| Constructor Summary | |
|---|---|
protected |
DataStructCache()
|
| Method Summary | |
|---|---|
abstract CoreDataStruct |
addDataStruct(CoreDataStruct newDS)
Adds DataStruct object to the cache. |
abstract CoreDataStruct |
deleteDataStruct(CoreDataStruct data)
Deletes DataStruct object from the cache. |
abstract java.util.Map |
getCacheContent()
Returns cache (data or DataStruct) content. |
abstract CoreDataStruct |
getDataStructByHandle(java.lang.String handle)
Returns DataStruct object whose String representation of OID is parameter handle. |
protected boolean |
isLocked()
|
abstract boolean |
isMulti()
Returns information if multi databases are supported. |
abstract DataStructCache |
newInstance()
Creates DataStructCache instance. |
abstract CoreDataStruct |
removeDataStruct(CoreDataStruct data)
Removes DataStruct object from the cache. |
abstract CoreDataStruct |
removeDataStruct(java.lang.String handle)
Removes DataStruct object from the cache. |
abstract boolean |
toReconfigure()
Checks wheather cache reconfiguration needs to be done. |
abstract CoreDataStruct |
updateDataStruct(CoreDataStruct data)
Updates cached DataStruct object, or inserts it in the cache if it didn't exist in the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DataStructCache()
| Method Detail |
|---|
public abstract DataStructCache newInstance()
throws CacheObjectException
CacheObjectExceptionpublic abstract java.util.Map getCacheContent()
Map of data objects (or DataStruct
objects).public abstract boolean isMulti()
public abstract boolean toReconfigure()
public abstract CoreDataStruct addDataStruct(CoreDataStruct newDS)
newDS - DataStruct object that will be added to the cache.
public abstract CoreDataStruct removeDataStruct(CoreDataStruct data)
data - DataStruct object that will be removed from the cache.
public abstract CoreDataStruct removeDataStruct(java.lang.String handle)
handle - Cache handle of DataStruct object that will be removed from
the cache. The form of cache handle is:
"public abstract CoreDataStruct updateDataStruct(CoreDataStruct data)
data - DataStruct object that will be updated (or inserted if didn't
exist in the cache).
public abstract CoreDataStruct deleteDataStruct(CoreDataStruct data)
data - DataStruct object that will be deleted from the cache.
public abstract CoreDataStruct getDataStructByHandle(java.lang.String handle)
handle - String representation of OID of DataStruct object that is
being searched in the cache.
protected final boolean isLocked()
|
DODS 7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||