C# Class CK.Monitoring.MultiLogReader.RawLogFileMonitorOccurence

Immutable object that describes the occurrence of a Monitor in a RawLogFile.
Exibir arquivo Open project: Invenietis/ck-core

Public Properties

Property Type Description
FirstOffset long
LogFile RawLogFile
MonitorId System.Guid

Public Methods

Method Description
CreateFilteredReader ( long streamOffset ) : LogReader

Creates and opens a LogReader that reads unicast entries only from this monitor. The reader is initially positioned before the entry (i.e. LogReader.MoveNext must be called).

CreateFilteredReaderAndMoveTo ( DateTimeStamp logTime ) : LogReader

Opens a LogReader that reads unicast entries only from this monitor and positions it on the first entry with the given time (i.e. LogReader.MoveNext has been called).

Private Methods

Method Description
RawLogFileMonitorOccurence ( RawLogFile f, System.Guid monitorId, long streamOffset ) : System

Method Details

CreateFilteredReader() public method

Creates and opens a LogReader that reads unicast entries only from this monitor. The reader is initially positioned before the entry (i.e. LogReader.MoveNext must be called).
public CreateFilteredReader ( long streamOffset ) : LogReader
streamOffset long Initial stream position.
return LogReader

CreateFilteredReaderAndMoveTo() public method

Opens a LogReader that reads unicast entries only from this monitor and positions it on the first entry with the given time (i.e. LogReader.MoveNext has been called).
public CreateFilteredReaderAndMoveTo ( DateTimeStamp logTime ) : LogReader
logTime DateTimeStamp Log time. Must exist in the stream otherwise an exception is thrown.
return LogReader

Property Details

FirstOffset public_oe property

First offset for this MonitorId in this LogFile.
public long FirstOffset
return long

LogFile public_oe property

The RawLogFile.
public RawLogFile LogFile
return RawLogFile

MonitorId public_oe property

The monitor's identifier.
public Guid,System MonitorId
return System.Guid