C# Class DBreeze.Storage.FSR

DBreeze random and sequential disk IO buffers implementation. Specially designed for DBreeze specific storage format. Not for common usage.
Inheritance: IStorage
Show file Open project: hhblaze/DBreeze Class Usage Examples

Public Properties

Property Type Description
IsOperable bool
MaxRollbackFileSize int

Public Methods

Method Description
Commit ( ) : void

Cleans all buffers and flushes data to the disk

FSR ( string fileName, TrieSettings trieSettings, DBreezeConfiguration configuration ) : System
FlushRandomBuffer ( ) : void

Is called only from lock_fs and must be finished by calling NET_Flush

FlushSequentialBuffer ( ) : void

Must be called from lock_fs

NET_Flush ( FileStream mfs ) : void
NET_Flush ( IFileStream mfs ) : void
RecreateFiles ( ) : void

RestoreInitRollback ( ) : void

RestoreTableFromTheOtherTable ( string newTableFullPath ) : void

Rollback ( ) : void

Standard and transactional rollback

Table_Dispose ( ) : void

Table_Read ( bool useCache, byte offset, int count ) : byte[]

Table_Read ( bool useCache, long offset, int count ) : byte[]

Table_WriteByOffset ( byte offset, byte data ) : void

Table_WriteByOffset ( long offset, byte data ) : void

Table_WriteToTheEnd ( byte data ) : byte[]

TransactionalCommit ( ) : void

TransactionalCommitIsFinished ( ) : void

TransactionalRollback ( ) : void

Private Methods

Method Description
DoProtocol1 ( byte rbd ) : byte[]
FlushFileBuffers ( IntPtr hFile ) : bool
InitFiles ( ) : void
InitRollback ( ) : void
ParseRollBackFile ( byte rbd ) : void

Method Details

Commit() public method

Cleans all buffers and flushes data to the disk
public Commit ( ) : void
return void

FSR() public method

public FSR ( string fileName, TrieSettings trieSettings, DBreezeConfiguration configuration ) : System
fileName string
trieSettings TrieSettings
configuration DBreezeConfiguration
return System

FlushRandomBuffer() public method

Is called only from lock_fs and must be finished by calling NET_Flush
public FlushRandomBuffer ( ) : void
return void

FlushSequentialBuffer() public method

Must be called from lock_fs
public FlushSequentialBuffer ( ) : void
return void

NET_Flush() public static method

public static NET_Flush ( FileStream mfs ) : void
mfs System.IO.FileStream
return void

NET_Flush() public static method

public static NET_Flush ( IFileStream mfs ) : void
mfs IFileStream
return void

RecreateFiles() public method

public RecreateFiles ( ) : void
return void

RestoreInitRollback() public method

public RestoreInitRollback ( ) : void
return void

RestoreTableFromTheOtherTable() public method

public RestoreTableFromTheOtherTable ( string newTableFullPath ) : void
newTableFullPath string
return void

Rollback() public method

Standard and transactional rollback
public Rollback ( ) : void
return void

Table_Dispose() public method

public Table_Dispose ( ) : void
return void

Table_Read() public method

public Table_Read ( bool useCache, byte offset, int count ) : byte[]
useCache bool
offset byte
count int
return byte[]

Table_Read() public method

public Table_Read ( bool useCache, long offset, int count ) : byte[]
useCache bool
offset long
count int
return byte[]

Table_WriteByOffset() public method

public Table_WriteByOffset ( byte offset, byte data ) : void
offset byte
data byte
return void

Table_WriteByOffset() public method

public Table_WriteByOffset ( long offset, byte data ) : void
offset long
data byte
return void

Table_WriteToTheEnd() public method

public Table_WriteToTheEnd ( byte data ) : byte[]
data byte
return byte[]

TransactionalCommit() public method

public TransactionalCommit ( ) : void
return void

TransactionalCommitIsFinished() public method

public TransactionalCommitIsFinished ( ) : void
return void

TransactionalRollback() public method

public TransactionalRollback ( ) : void
return void

Property Details

IsOperable public property

Indicates subsystem vitality
public bool IsOperable
return bool

MaxRollbackFileSize public property

Rollback file re-creation after initialization
public int MaxRollbackFileSize
return int