Beispiel #1
0
 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;
 }
Beispiel #2
0
        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,
            });
        }
Beispiel #3
0
 public string GetStatus()
 {
     return(_processingQueue.GetStatus());
 }