Exemple #1
0
 internal Throttles(ThrottleDurations throttleDurations)
 {
     this.MdbThrottle             = this.GetEnhancedTimeSpanFromTicks(throttleDurations.MdbThrottleTicks);
     this.CpuThrottle             = this.GetEnhancedTimeSpanFromTicks(throttleDurations.CpuThrottleTicks);
     this.MdbReplicationThrottle  = this.GetEnhancedTimeSpanFromTicks(throttleDurations.MdbReplicationThrottleTicks);
     this.ContentIndexingThrottle = this.GetEnhancedTimeSpanFromTicks(throttleDurations.ContentIndexingThrottleTicks);
     this.UnknownThrottle         = this.GetEnhancedTimeSpanFromTicks(throttleDurations.UnknownThrottleTicks);
 }
Exemple #2
0
 public void GetThrottledDurations(out ThrottleDurations sourceDurations, out ThrottleDurations targetDurations)
 {
     sourceDurations = new ThrottleDurations(this.GetNonEmptyDuration(RequestState.StalledDueToReadThrottle), this.GetNonEmptyDuration(RequestState.StalledDueToReadCpu), EnhancedTimeSpan.Zero, EnhancedTimeSpan.Zero, this.GetNonEmptyDuration(RequestState.StalledDueToReadUnknown));
     targetDurations = new ThrottleDurations(this.GetNonEmptyDuration(RequestState.StalledDueToWriteThrottle), this.GetNonEmptyDuration(RequestState.StalledDueToWriteCpu), this.GetNonEmptyDuration(RequestState.StalledDueToHA), this.GetNonEmptyDuration(RequestState.StalledDueToCI), this.GetNonEmptyDuration(RequestState.StalledDueToWriteUnknown));
 }