C# Class LogStreamer.LogStreamerSession

Inheritance: IDisposable
显示文件 Open project: StarcounterPrefabs/LogStreamer Class Usage Examples

Private Properties

Property Type Description
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

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

Cancel() public method

public Cancel ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

IsTransactionDataEmpty() static public method

static public IsTransactionDataEmpty ( TransactionData td ) : bool
td TransactionData
return bool

Log() public method

public Log ( Logger t, string msg ) : void
t Logger
msg string
return void

LogStreamerSession() public method

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
return System

Quit() public method

public Quit ( Exception e ) : void
e System.Exception
return void

Quit() public method

public Quit ( string error ) : void
error string
return void

ScheduleTask() public method

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.
return void

Start() public method

Starts the session. Must be called from a Starcounter thread.
public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

Stop() public method

public Stop ( Exception e ) : void
e System.Exception
return void

Stop() public method

public Stop ( string quitmessage ) : void
quitmessage string
return void

StripDatabasePrefix() public method

public StripDatabasePrefix ( string tableNameOrId ) : string
tableNameOrId string
return string