public class BlockMgrCache extends BlockMgrSync
| Modifier and Type | Field and Description |
|---|---|
static boolean |
globalLogging |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the block manager
|
void |
free(Block block)
Announce a block is no longer in use (i.e it's now freed)
|
Block |
getRead(long id)
Fetch a block, use for read only
|
Block |
getWrite(long _id)
Fetch a block, use for write and read - only inside "update"
|
void |
overwrite(Block block)
Replace the contents of a block slot with new contents.
|
Block |
promote(Block block)
Promote to writable : it's OK to promote an already writable block
|
void |
resetAlloc(long boundary)
Reset the allocation limit, should be a number previously obtained from allocLimit
|
void |
sync()
Sync the block manager
|
void |
syncForce()
Sync the block manager : system operation to ensure sync() is passed down
|
String |
toString() |
void |
write(Block block)
Write a block back - it still needs releasing.
|
allocate, allocLimit, beginRead, beginUpdate, endRead, endUpdate, getLabel, getWrapped, isClosed, isEmpty, release, validpublic void resetAlloc(long boundary)
BlockMgrresetAlloc in interface BlockMgrresetAlloc in class BlockMgrSyncpublic Block getRead(long id)
BlockMgrgetRead in interface BlockMgrgetRead in class BlockMgrSyncpublic Block getWrite(long _id)
BlockMgrgetWrite in interface BlockMgrgetWrite in class BlockMgrSyncpublic Block promote(Block block)
BlockMgrpromote in interface BlockMgrpromote in class BlockMgrSyncpublic void write(Block block)
BlockMgrwrite in interface BlockMgrwrite in class BlockMgrSyncpublic void overwrite(Block block)
BlockMgroverwrite in interface BlockMgroverwrite in class BlockMgrSyncpublic void free(Block block)
BlockMgrfree in interface BlockMgrfree in class BlockMgrSyncpublic void sync()
BlockMgrsync in interface org.apache.jena.atlas.lib.Syncsync in interface BlockMgrsync in class BlockMgrSyncpublic void syncForce()
BlockMgrsyncForce in interface BlockMgrsyncForce in class BlockMgrSyncpublic void close()
BlockMgrclose in interface org.apache.jena.atlas.lib.Closeableclose in interface BlockMgrclose in class BlockMgrSyncpublic String toString()
toString in class BlockMgrSyncLicensed under the Apache License, Version 2.0