C# Class Bend.LogWriter

Inheritance: IDisposable
Mostra file Open project: jeske/StepsDB-alpha Class Usage Examples

Public Properties

Property Type Description
DEFAULT_LOG_SEGMENTS uint
DEFAULT_LOG_SEGMENT_SIZE uint
log_handler LogSegmentsHandler
receiver ILogReceiver

Public Methods

Method Description
Dispose ( ) : void
LogWriter ( IRegionManager regionmgr ) : System
LogWriter_NewRegion ( IRegionManager regionmgr, ILogReceiver receiver, int &system_reserved_space ) : LogWriter
LogWriter_Resume ( IRegionManager regionmgr, ILogReceiver receiver ) : LogWriter
addCommand ( LogCommands cmdtype, byte cmdbytes, long &logWaitNumber ) : void
addCommand_NoLog ( LogCommands cmdtype, byte cmdbytes ) : void
addCommands ( List cmds, long &logWaitNumber ) : void
checkpointDrop ( long &logWaitNumber ) : void
checkpointStart ( ) : int
flushPendingCommands ( ) : void
flushPendingCommandsThrough ( long waitForLWSN ) : void

Private Methods

Method Description
_InitNewRegion ( IRegionManager regionmgr, int &system_reserved_space ) : void
_InitResume ( IRegionManager regionmgr ) : void
_doWritePendingCmds ( ) : void
_flushThread ( ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

LogWriter() public method

public LogWriter ( IRegionManager regionmgr ) : System
regionmgr IRegionManager
return System

LogWriter_NewRegion() public static method

public static LogWriter_NewRegion ( IRegionManager regionmgr, ILogReceiver receiver, int &system_reserved_space ) : LogWriter
regionmgr IRegionManager
receiver ILogReceiver
system_reserved_space int
return LogWriter

LogWriter_Resume() public static method

public static LogWriter_Resume ( IRegionManager regionmgr, ILogReceiver receiver ) : LogWriter
regionmgr IRegionManager
receiver ILogReceiver
return LogWriter

addCommand() public method

public addCommand ( LogCommands cmdtype, byte cmdbytes, long &logWaitNumber ) : void
cmdtype LogCommands
cmdbytes byte
logWaitNumber long
return void

addCommand_NoLog() public method

public addCommand_NoLog ( LogCommands cmdtype, byte cmdbytes ) : void
cmdtype LogCommands
cmdbytes byte
return void

addCommands() public method

public addCommands ( List cmds, long &logWaitNumber ) : void
cmds List
logWaitNumber long
return void

checkpointDrop() public method

public checkpointDrop ( long &logWaitNumber ) : void
logWaitNumber long
return void

checkpointStart() public method

public checkpointStart ( ) : int
return int

flushPendingCommands() public method

public flushPendingCommands ( ) : void
return void

flushPendingCommandsThrough() public method

public flushPendingCommandsThrough ( long waitForLWSN ) : void
waitForLWSN long
return void

Property Details

DEFAULT_LOG_SEGMENTS public_oe static_oe property

public static uint DEFAULT_LOG_SEGMENTS
return uint

DEFAULT_LOG_SEGMENT_SIZE public_oe static_oe property

public static uint DEFAULT_LOG_SEGMENT_SIZE
return uint

log_handler public_oe property

public LogSegmentsHandler,Bend log_handler
return LogSegmentsHandler

receiver public_oe property

public ILogReceiver receiver
return ILogReceiver