C# Class ZocMonLib.RecordFlush

Inheritance: IRecordFlush
Show file Open project: Zocdoc/ZocMon Class Usage Examples

Public Methods

Method Description
Flush ( string configName, IDbConnection conn = null ) : void

Flush data for the lowest reduce resolution for the given configuration. (The rest is only written on Reduce.)

FlushAll ( ) : void

Flush all data accumulated thus far.

RecordFlush ( ISetupMonitorConfig setupMonitorConfig, IDataCache cache, IStorageCommands storageCommands, IRecordFlushUpdate logic, IStorageFactory dbFactory, ISettings settings ) : System

Private Methods

Method Description
CloneRecordList ( IList updateList ) : IList>

Clone the update list before writting it to the DB, but leave the last element (since it may be an incomplete accumulation).

ConvertRecordToSortedDictionary ( IEnumerable updateList ) : MonitorRecord>.SortedDictionary
GetFirstReduceLevel ( string configName ) : ReduceLevel

The first reduce level is the table for the primary data.

Method Details

Flush() public method

Flush data for the lowest reduce resolution for the given configuration. (The rest is only written on Reduce.)
public Flush ( string configName, IDbConnection conn = null ) : void
configName string
conn IDbConnection
return void

FlushAll() public method

Flush all data accumulated thus far.
public FlushAll ( ) : void
return void

RecordFlush() public method

public RecordFlush ( ISetupMonitorConfig setupMonitorConfig, IDataCache cache, IStorageCommands storageCommands, IRecordFlushUpdate logic, IStorageFactory dbFactory, ISettings settings ) : System
setupMonitorConfig ISetupMonitorConfig
cache IDataCache
storageCommands IStorageCommands
logic IRecordFlushUpdate
dbFactory IStorageFactory
settings ISettings
return System