public class RWWriteCacheService extends WriteCacheService implements IWriteCacheManager
WriteCacheService.AsynchronousCloseException| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
log |
| Constructor and Description |
|---|
RWWriteCacheService(int nbuffers,
int minCleanListSize,
int readBuffers,
boolean prefixWrites,
int compactionThreshold,
int hotCacheSize,
int hotCacheThreshold,
long fileExtent,
IReopenChannel<? extends Channel> opener,
Quorum quorum,
IBackingReader reader) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canCompact()
The scattered write cache supports compaction.
|
WriteCache |
newWriteCache(IBufferAccess buf,
boolean useChecksum,
boolean bufferHasData,
IReopenChannel<? extends Channel> opener,
long fileExtent)
Provide default
WriteCache.FileChannelScatteredWriteCache. |
boolean |
removeWriteToAddr(long address,
int latchedAddr) |
_readFromCache, addrDebugInfo, clearWrite, close, debugAddrs, finalized, flush, flush, getCounters, getQuorum, getSendCount, getSequence, installReads, isPresent, newWriteTask, read, reset, resetAndClear, resetSequence, setExtent, write, write, writeLargeRecordpublic RWWriteCacheService(int nbuffers,
int minCleanListSize,
int readBuffers,
boolean prefixWrites,
int compactionThreshold,
int hotCacheSize,
int hotCacheThreshold,
long fileExtent,
IReopenChannel<? extends Channel> opener,
Quorum quorum,
IBackingReader reader)
throws InterruptedException,
IOException
InterruptedExceptionIOExceptionprotected final boolean canCompact()
canCompact in class WriteCacheServicepublic WriteCache newWriteCache(IBufferAccess buf, boolean useChecksum, boolean bufferHasData, IReopenChannel<? extends Channel> opener, long fileExtent) throws InterruptedException
WriteCache.FileChannelScatteredWriteCache.
Note: This is used by the unit tests, but not by the RWStore.
newWriteCache in class WriteCacheServicebuf - The backing buffer (optional).useChecksum - true iff record level checksums are enabled.bufferHasData - true iff the buffer has data to be written onto
the local persistence store (from a replicated write).opener - The object which knows how to re-open the backing channel
(required).fileExtent - The then current extent of the backing file.WriteCache wrapping that buffer and able to write on
that channel.InterruptedExceptionpublic boolean removeWriteToAddr(long address,
int latchedAddr)
removeWriteToAddr in interface IWriteCacheManagerCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.