|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.update.VersionHandleCache
The VersionHandleCache
is a temporary store of
pinned cache handles to data objects that have been modified by
an update. When a single update accesses a data object more than
once (because more than one action modifies the object or an
action is interrupted and restarted), the update must be able to
retrieve the handle to the modified object. An object modified
by a partially completed update does not, however, have a
permanent name for insertion into the cache. The
version_cache
stores handles to the modified data
objects that can not yet be inserted in the cache so that they
can be retrieved on restart.
Constructor Summary | |
---|---|
VersionHandleCache()
Construct a VersionHandleCache . |
Method Summary | |
---|---|
void |
cacheVersionHandle(SecureHash aguid,
CacheablePinned handle)
Stores a pinned cache handle for a partially modified data object. |
Enumeration |
getModifiedDataObjects()
Returns an enumeration of all data objects for which this object stores a pinned cache handle. |
CacheablePinned |
getVersionHandle(SecureHash aguid)
Returns a pinned cache handle to the modified version of the data object identified by an Aguid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VersionHandleCache()
VersionHandleCache
.
Method Detail |
public CacheablePinned getVersionHandle(SecureHash aguid)
aguid
- the Aguid of the data object
null
if the data object has not
yet been modifiedpublic void cacheVersionHandle(SecureHash aguid, CacheablePinned handle)
aguid
- the aguid of the data objecthandle
- the pinned cache handle that refers to the partially
modified version of the data objectpublic Enumeration getModifiedDataObjects()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |