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 void GetStatistics(ProjectionStatistics info)
 {
     _checkpointManager.GetStatistics(info);
     info.Status           = _state.EnumValueName() + info.Status;
     info.Name             = _name;
     info.EffectiveName    = _name;
     info.ProjectionId     = _version.ProjectionId;
     info.Epoch            = _version.Epoch;
     info.Version          = _version.Version;
     info.StateReason      = "";
     info.BufferedEvents   = 0;
     info.PartitionsCached = _partitionStateCache.CachedItemCount;
     _enrichStatistics(info);
     if (_projectionProcessingPhase != null)
     {
         _projectionProcessingPhase.GetStatistics(info);
     }
 }