com.bigdata.rwstore
Interface IRWStrategy

All Superinterfaces:
IAddressManager, IAllocationManager, IAllocationManagerStore, IBufferStrategy, ICounterSetAccess, IHistoryManager, IMRMW, IMROW, IRawStore, IStreamStore
All Known Implementing Classes:
MemStrategy, RWStrategy

public interface IRWStrategy
extends IBufferStrategy, IAllocationManager, IAllocationManagerStore, IStreamStore, IHistoryManager

Defines a marker interface to be used to indicate strategies that share RW semantics such as RWStrategy and MemStrategy

Methods have been added as required to support the clients (mostly AbstractJournal).

Author:
Martyn Cutcher

Field Summary
 
Fields inherited from interface com.bigdata.rawstore.IAddressManager
NULL
 
Method Summary
 IStore getStore()
          Return the backing IStore.
 boolean isCommitted(long addr)
          Return true iff the allocation having that address is flagged as committed.
 
Methods inherited from interface com.bigdata.journal.IBufferStrategy
abort, closeForWrites, commit, getAddressManager, getBufferMode, getCounters, getExtent, getHeaderSize, getInitialExtent, getMaximumExtent, getMaxRecordSize, getMetaBitsAddr, getMetaStartAddr, getNextOffset, getOffsetBits, getUserExtent, readRootBlock, requiresCommit, transferTo, truncate, useChecksums, writeRootBlock
 
Methods inherited from interface com.bigdata.rwstore.IAllocationManager
abortContext, detachContext, registerContext
 
Methods inherited from interface com.bigdata.rwstore.IAllocationManagerStore
delete, write
 
Methods inherited from interface com.bigdata.rawstore.IRawStore
close, delete, deleteResources, destroy, force, getFile, getResourceMetadata, getUUID, isFullyBuffered, isOpen, isReadOnly, isStable, read, size, write
 
Methods inherited from interface com.bigdata.rawstore.IAddressManager
getByteCount, getOffset, getPhysicalAddress, toAddr, toString
 
Methods inherited from interface com.bigdata.rwstore.IStreamStore
getInputStream, getOutputStream, getOutputStream
 
Methods inherited from interface com.bigdata.rwstore.IHistoryManager
checkDeferredFrees, getLastReleaseTime, newTx, registerExternalCache, saveDeferrals
 

Method Detail

getStore

IStore getStore()
Return the backing IStore.


isCommitted

boolean isCommitted(long addr)
Return 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.

Parameters:
addr - The address.
Returns:
true iff the address is currently committed.


Copyright © 2006-2012 SYSTAP, LLC. All Rights Reserved.