com.bigdata.journal
Interface IDiskBasedStrategy

All Superinterfaces:
IAddressManager, IBufferStrategy, IMRMW, IMROW, IRawStore, IStoreSerializer
All Known Implementing Classes:
BufferedDiskStrategy, DirectBufferStrategy, DiskBackedBufferStrategy, DiskOnlyStrategy, MappedBufferStrategy

public interface IDiskBasedStrategy
extends IBufferStrategy

An interface for implementations backed by a file on disk.

Version:
$Id: IDiskBasedStrategy.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Field Summary
 
Fields inherited from interface com.bigdata.rawstore.IAddressManager
NULL
 
Method Summary
 FileChannel getChannel()
          The channel used to read and write on the file.
 File getFile()
          The backing file.
 int getHeaderSize()
          The size of the file header in bytes.
 RandomAccessFile getRandomAccessFile()
          The object used to read and write on that file.
 
Methods inherited from interface com.bigdata.journal.IBufferStrategy
closeForWrites, getBufferMode, getCounters, getExtent, getInitialExtent, getMaximumExtent, getNextOffset, getUserExtent, readRootBlock, transferTo, truncate, writeRootBlock
 
Methods inherited from interface com.bigdata.rawstore.IRawStore
close, deleteResources, destroy, force, getResourceMetadata, getUUID, isFullyBuffered, isOpen, isReadOnly, isStable, read, size, write
 
Methods inherited from interface com.bigdata.rawstore.IAddressManager
getByteCount, getOffset, packAddr, toAddr, toString, unpackAddr
 
Methods inherited from interface com.bigdata.rawstore.IStoreSerializer
deserialize, deserialize, deserialize, serialize
 

Method Detail

getHeaderSize

int getHeaderSize()
The size of the file header in bytes.

Specified by:
getHeaderSize in interface IBufferStrategy

getFile

File getFile()
The backing file.

Specified by:
getFile in interface IRawStore

getRandomAccessFile

RandomAccessFile getRandomAccessFile()
The object used to read and write on that file.


getChannel

FileChannel getChannel()
The channel used to read and write on the file.



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