C# Класс LogStreamer.LogStreamerSession

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AllLogsOpened void
BuildFilters void
ForAllTablesInTransaction void
GetNextLogReadResult LogReadResult
InitializeReader void
InputThreadFunc void
LogReaderThreadFunc void
OpenLog Task
OutputThreadFunc void
ProcessFilter void
ProcessId void
ProcessIncomingTransaction void
ProcessMessage void
ProcessOk void
ProcessOpenLog void
ProcessQuit void
ProcessStartStream void
ProcessTablePos void
ProcessTransaction void
ReadAsync Task
Send void
SendFilterState void
SendLastPositions void
SetState bool
UpdateCommitId void
WatchdogThreadFunc void

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

Метод Описание
Cancel ( ) : void
Dispose ( ) : void
IsTransactionDataEmpty ( TransactionData td ) : bool
Log ( Logger t, string msg ) : void
LogStreamerSession ( Logger logger, Stream stream, ILogManager manager, CancellationToken ct, int>.Dictionary tablePrios = null ) : System
Quit ( Exception e ) : void
Quit ( string error ) : void
ScheduleTask ( System.Action a ) : void

Runs or schedules the given task on a Starcounter scheduler.

Start ( ) : void

Starts the session. Must be called from a Starcounter thread.

Stop ( ) : void
Stop ( Exception e ) : void
Stop ( string quitmessage ) : void
StripDatabasePrefix ( string tableNameOrId ) : string

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

Метод Описание
AllLogsOpened ( Task t ) : void
BuildFilters ( int>.Dictionary tablePrios ) : void
ForAllTablesInTransaction ( LogReadResult tran, Action action ) : void
GetNextLogReadResult ( ) : LogReadResult
InitializeReader ( int index ) : void
InputThreadFunc ( ) : void
LogReaderThreadFunc ( ) : void
OpenLog ( ) : Task
OutputThreadFunc ( ) : void
ProcessFilter ( Message msg ) : void
ProcessId ( Message msg ) : void
ProcessIncomingTransaction ( LogReadResult lrr ) : void
ProcessMessage ( Message msg ) : void
ProcessOk ( Message msg ) : void
ProcessOpenLog ( Message msg ) : void
ProcessQuit ( Message msg ) : void
ProcessStartStream ( Message msg ) : void
ProcessTablePos ( Message msg ) : void
ProcessTransaction ( Message msg ) : void
ReadAsync ( ) : Task
Send ( Message msg ) : void
SendFilterState ( ) : void
SendLastPositions ( ) : void
SetState ( RunState value ) : bool
UpdateCommitId ( string tableId, ulong commitId ) : void
WatchdogThreadFunc ( ) : void

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

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

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

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

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

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

static public IsTransactionDataEmpty ( TransactionData td ) : bool
td TransactionData
Результат bool

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

public Log ( Logger t, string msg ) : void
t Logger
msg string
Результат void

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

public LogStreamerSession ( Logger logger, Stream stream, ILogManager manager, CancellationToken ct, int>.Dictionary tablePrios = null ) : System
logger Logger
stream Stream
manager ILogManager
ct System.Threading.CancellationToken
tablePrios int>.Dictionary
Результат System

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

public Quit ( Exception e ) : void
e System.Exception
Результат void

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

public Quit ( string error ) : void
error string
Результат void

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

Runs or schedules the given task on a Starcounter scheduler.
public ScheduleTask ( System.Action a ) : void
a System.Action The action to schedule or run.
Результат void

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

Starts the session. Must be called from a Starcounter thread.
public Start ( ) : void
Результат void

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

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

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

public Stop ( Exception e ) : void
e System.Exception
Результат void

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

public Stop ( string quitmessage ) : void
quitmessage string
Результат void

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

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