C# Class EventStore.Core.TransactionLog.Chunks.TFChunkScavenger

Datei anzeigen Open project: EventStore/EventStore Class Usage Examples

Public Methods

Method Description
Scavenge ( bool alwaysKeepScavenged, bool mergeChunks ) : long
TFChunkScavenger ( EventStore.Core.TransactionLog.Chunks.TFChunkDb db, IODispatcher ioDispatcher, ITableIndex tableIndex, IReadIndex readIndex, System.Guid scavengeId, string nodeEndpoint, long maxChunkDataSize = null, bool unsafeIgnoreHardDeletes = false ) : System

Private Methods

Method Description
DeleteTempChunk ( string tmpChunkPath, int retries ) : void
IsSoftDeletedTempStreamWithinSameChunk ( string eventStreamId, long chunkStart, long chunkEnd ) : bool
KeepOnlyFirstEventOfDuplicate ( ITableIndex tableIndex, PrepareLogRecord prepare, int eventNumber ) : bool
PublishChunksCompletedEvent ( int chunkStartNumber, int chunkEndNumber, System.TimeSpan elapsed, bool wasScavenged, long spaceSaved, string errorMessage = "" ) : void
ScavengeChunks ( bool alwaysKeepScavenged, IList oldChunks, long &spaceSaved ) : bool
ShouldKeepCommit ( CommitLogRecord commit, CommitInfo>.Dictionary commits ) : bool
ShouldKeepPrepare ( PrepareLogRecord prepare, CommitInfo>.Dictionary commits, long chunkStart, long chunkEnd ) : bool
TraverseChunk ( TFChunk chunk, Action processPrepare, Action processCommit, Action processSystem ) : void
WriteRecord ( TFChunk newChunk, EventStore.Core.TransactionLog.LogRecords.LogRecord record ) : PosMap
WriteScavengeChunkCompletedEvent ( string streamId, Event eventToWrite, int retryCount ) : void
WriteScavengeChunkCompletedEventCompleted ( ClientMessage msg, string streamId, Event eventToWrite, int retryCount ) : void

Method Details

Scavenge() public method

public Scavenge ( bool alwaysKeepScavenged, bool mergeChunks ) : long
alwaysKeepScavenged bool
mergeChunks bool
return long

TFChunkScavenger() public method

public TFChunkScavenger ( EventStore.Core.TransactionLog.Chunks.TFChunkDb db, IODispatcher ioDispatcher, ITableIndex tableIndex, IReadIndex readIndex, System.Guid scavengeId, string nodeEndpoint, long maxChunkDataSize = null, bool unsafeIgnoreHardDeletes = false ) : System
db EventStore.Core.TransactionLog.Chunks.TFChunkDb
ioDispatcher IODispatcher
tableIndex ITableIndex
readIndex IReadIndex
scavengeId System.Guid
nodeEndpoint string
maxChunkDataSize long
unsafeIgnoreHardDeletes bool
return System