private void GetStatistics(ProjectionStatistics info) { _checkpointManager.GetStatistics(info); info.Status = _state.EnumVaueName() + info.Status + _processingQueue.GetStatus(); info.Mode = _projectionConfig.Mode; info.Name = _name; info.StateReason = ""; info.BufferedEvents = _processingQueue.GetBufferedEventCount(); info.PartitionsCached = _partitionStateCache.CachedItemCount; info.ReadsInProgress += _readRequestsInProgress; }
private ProjectionStatistics GetStatistics() { var checkpointStatistics = _checkpointManager.GetStatistics(); return(new ProjectionStatistics { Mode = _projectionConfig.Mode, Name = _name, Position = checkpointStatistics.Position, StateReason = "", Status = _state.EnumVaueName() + checkpointStatistics.Status + _processingQueue.GetStatus(), LastCheckpoint = checkpointStatistics.LastCheckpoint, EventsProcessedAfterRestart = checkpointStatistics.EventsProcessedAfterRestart, BufferedEvents = _processingQueue.GetBufferedEventCount(), WritePendingEventsBeforeCheckpoint = checkpointStatistics.WritePendingEventsBeforeCheckpoint, WritePendingEventsAfterCheckpoint = checkpointStatistics.WritePendingEventsAfterCheckpoint, ReadsInProgress = _readRequestsInProgress + checkpointStatistics.ReadsInProgress, WritesInProgress = checkpointStatistics.WritesInProgress, PartitionsCached = _partitionStateCache.CachedItemCount, CheckpointStatus = checkpointStatistics.CheckpointStatus, }); }
public int GetBufferedEventCount() { return(_processingQueue.GetBufferedEventCount()); }