C# Class Brod.Storage.Log

Inheritance: IDisposable
Show file Open project: paralect/brod

Public Methods

Method Description
Append ( byte payload ) : void
Dispose ( ) : void
Flush ( bool flushOnDisk ) : void
Log ( String topicDirectory, Int32 partition ) : System
ReadMessagesBlock ( Int32 offset, Int32 blockLength ) : MessagesBlock

Read bytes, starting from byte from specified and

Private Methods

Method Description
GetLogDirectoryPath ( String topicDirectory ) : String
GetSegment ( System.Int64 segmentOffset ) : Segment
Init ( ) : void

Method Details

Append() public method

public Append ( byte payload ) : void
payload byte
return void

Dispose() public method

public Dispose ( ) : void
return void

Flush() public method

public Flush ( bool flushOnDisk ) : void
flushOnDisk bool
return void

Log() public method

public Log ( String topicDirectory, Int32 partition ) : System
topicDirectory String
partition System.Int32
return System

ReadMessagesBlock() public method

Read bytes, starting from byte from specified and
public ReadMessagesBlock ( Int32 offset, Int32 blockLength ) : MessagesBlock
offset System.Int32
blockLength System.Int32
return Brod.Messages.MessagesBlock