public interface IRWStrategy extends IBufferStrategy, IAllocationManager, IAllocationManagerStore, IHistoryManager
RWStrategy
and MemStrategy
NULL
Modifier and Type | Method and Description |
---|---|
Lock |
getCommitLock()
Optionally return a
Lock that must be used (when non-
null ) to make the IBufferStrategy.commit() /
postCommit() strategy atomic. |
IStore |
getStore()
Return the backing
IStore . |
boolean |
isCommitted(long addr)
Return
true iff the allocation having that address is
flagged as committed. |
void |
postCommit()
Called post commit to dispose any transient commit state retained to
support reset/rollback.
|
abort, closeForWrites, commit, getAddressManager, getBufferMode, getCounters, getExtent, getHeaderSize, getInitialExtent, getMaximumExtent, getMaxRecordSize, getMetaBitsAddr, getMetaStartAddr, getNextOffset, getOffsetBits, getUserExtent, isDirty, readRootBlock, requiresCommit, transferTo, truncate, useChecksums, writeRootBlock
close, delete, deleteResources, destroy, force, getFile, getResourceMetadata, getUUID, isFullyBuffered, isOpen, isReadOnly, isStable, read, size, write
getByteCount, getOffset, getPhysicalAddress, toAddr, toString
getInputStream, getOutputStream
abortContext, detachContext, newAllocationContext
delete, getOutputStream, write
checkDeferredFrees, getLastReleaseTime, newTx, registerExternalCache, saveDeferrals
boolean isCommitted(long addr)
true
iff the allocation having that address is
flagged as committed. The caller must be holding the allocation lock in
order for the result to remain valid outside of the method call.addr
- The address.true
iff the address is currently committed.Lock getCommitLock()
Lock
that must be used (when non-
null
) to make the IBufferStrategy.commit()
/
postCommit()
strategy atomic.void postCommit()
Note: It is the responsibility of the commit protocol layers to wind up
calling IBufferStrategy.abort()
if there is a failure during the
commit protocol.
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.