C# Класс LogStreamer.FilteredLogReader

FilteredLogReader reads the transaction log looking for transactions with commit ID's that modify a set of tables with commit ID's less than the transaction commit ID, or all transactions if there is no dictionary. Then makes the next transaction available, with any non-matching table operations removed from the transaction. It also does loop filtering based on peer database GUID. All transactions that contain an insert or update of LogStreamer.State where DatabaseGuid equals the peer will be ignored in entirety. Finally, no operations on LogStreamer tables will be sent.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
FilteredLogReader ( LogStreamerSession logStreamer, ulong>.Dictionary tablePos, HashSet tableFilter ) : System
GetTransactionLogDirectory ( ) : string

Retrieves the Starcounter transaction log directory from the server's settings URI.

IsSendNothingFilter ( ) : bool
OpenLog ( ) : void
OpenLogAsync ( CancellationToken ct ) : Task
ReadAsync ( CancellationToken ct ) : Task
StripDatabasePrefix ( string tableNameOrId ) : string

Приватные методы

Метод Описание
FilterLoops ( ColumnUpdate columns ) : bool
FilterTable ( string tableName, ulong commitId ) : bool
FilterTransaction ( LogReadResult lrr ) : bool
FindStartCommitId ( ) : ulong
GetEmptyLogReadResult ( ulong commitId ) : LogReadResult

Описание методов

FilteredLogReader() публичный Метод

public FilteredLogReader ( LogStreamerSession logStreamer, ulong>.Dictionary tablePos, HashSet tableFilter ) : System
logStreamer LogStreamerSession
tablePos ulong>.Dictionary
tableFilter HashSet
Результат System

GetTransactionLogDirectory() статический публичный Метод

Retrieves the Starcounter transaction log directory from the server's settings URI.
static public GetTransactionLogDirectory ( ) : string
Результат string

IsSendNothingFilter() публичный Метод

public IsSendNothingFilter ( ) : bool
Результат bool

OpenLog() публичный Метод

public OpenLog ( ) : void
Результат void

OpenLogAsync() публичный Метод

public OpenLogAsync ( CancellationToken ct ) : Task
ct System.Threading.CancellationToken
Результат Task

ReadAsync() публичный Метод

public ReadAsync ( CancellationToken ct ) : Task
ct System.Threading.CancellationToken
Результат Task

StripDatabasePrefix() публичный Метод

public StripDatabasePrefix ( string tableNameOrId ) : string
tableNameOrId string
Результат string