C# 클래스 EventStore.Core.TransactionLog.Chunks.TFChunkScavenger

파일 보기 프로젝트 열기: EventStore/EventStore 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

Scavenge() 공개 메소드

public Scavenge ( bool alwaysKeepScavenged, bool mergeChunks ) : long
alwaysKeepScavenged bool
mergeChunks bool
리턴 long

TFChunkScavenger() 공개 메소드

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
리턴 System