Exemple #1
0
 public void IncrementMissPerSecStats()
 {
     if (_missStats != null)
     {
         lock (_missStats) _missStats.Increment();
     }
 }
Exemple #2
0
 public void IncrementAddPerSecStats()
 {
     if (_addStats != null)
     {
         lock (_addStats) _addStats.Increment();
     }
 }
Exemple #3
0
 public void IncrementUpdPerSecStats()
 {
     if (_updateStats != null)
     {
         lock (_updateStats) _updateStats.Increment();
     }
 }
Exemple #4
0
        public void PubSubCounterSetter(string counterType, PerformanceOperator counterOperation)
        {
            if (_pubsubCounterList != null && _pubsubCounterList.Count > 0 && _pubsubCounterList.ContainsKey(counterType))
            {
                PerformanceCounterBase performanceCounter = _pubsubCounterList[counterType];
                if (performanceCounter != null)
                {
                    lock (performanceCounter)
                    {
                        switch (counterOperation)
                        {
                        case PerformanceOperator.Increment:
                            performanceCounter.Increment();
                            break;

                        case PerformanceOperator.Decrement:
                            if (performanceCounter.Value != 0)
                            {
                                performanceCounter.Decrement();
                            }
                            break;
                        }
                    }
                }
            }
        }
Exemple #5
0
 public void IncrementCacheSize()
 {
     if (_sizeStats != null)
     {
         lock (_sizeStats) _sizeStats.Increment();
     }
 }
Exemple #6
0
 public void IncrementHitsPerSecStats()
 {
     if (_hitStats != null)
     {
         lock (_hitStats) _hitStats.Increment();
     }
 }
Exemple #7
0
 public void IncrementGetPerSecStats()
 {
     if (_fetchStats != null)
     {
         lock (_fetchStats) _fetchStats.Increment();
     }
 }
Exemple #8
0
 public void IncrementDelPerSecStats()
 {
     if (_deleteStats != null)
     {
         lock (_deleteStats) { _deleteStats.Increment(); }
     }
 }
Exemple #9
0
 public void IncrementStateTxfrPerSecStats()
 {
     Interlocked.Exchange(ref this._stateXfer, (this._stateXfer + 1));
     if (_stateTxfrPerSecStats != null)
     {
         lock (_stateTxfrPerSecStats) { _stateTxfrPerSecStats.Increment(); }
     }
 }
Exemple #10
0
 public void IncrementExpiryPerSecStats()
 {
     Interlocked.Exchange(ref this._expirations, (this._expirations + 1));
     if (_expiryPerSecStats != null)
     {
         lock (_expiryPerSecStats) { _expiryPerSecStats.Increment(); }
     }
 }
Exemple #11
0
 public void IncrementDataBalPerSecStats()
 {
     Interlocked.Exchange(ref this._dataBalance, (this._dataBalance + 1));
     if (_dataBalPerSecStats != null)
     {
         lock (_dataBalPerSecStats) { _dataBalPerSecStats.Increment(); }
     }
 }
 public void IncrementRequestLogPerSec()
 {
     if (_requestLogPerSecond != null)
     {
         lock (_requestLogPerSecond)
         {
             _requestLogPerSecond.Increment();
         }
     }
 }
 /// <summary>
 ///Event Queue is maintained for each client this counter shows queue count.
 /// </summary>
 ///
 public void IncrementEventQueueCountStats()
 {
     if (_pcEventQueueCount != null)
     {
         lock (_pcEventQueueCount)
         {
             _pcEventQueueCount.Increment();
         }
     }
 }
 public void IncrementResponsesQueueCountStats()
 {
     if (_pcResponseQueueCount != null)
     {
         lock (_pcResponseQueueCount)
         {
             _pcResponseQueueCount.Increment();
         }
     }
 }
Exemple #15
0
 public void IncrementHitsRatioPerSecStats()
 {
     if (_hitsRatioSecStats != null)
     {
         lock (_hitsRatioSecStats)
         {
             _hitsRatioSecStats.Increment();
         }
     }
 }
 public void IncrementMsecPerDelBulkAvg(long value)
 {
     if (_pcMsecPerDelBulkAvg != null)
     {
         lock (_pcMsecPerDelBulkAvg)
         {
             _pcMsecPerDelBulkAvg.IncrementBy(value * 1000000);
             _pcMsecPerDelBulkBase.Increment();
         }
     }
 }
Exemple #17
0
 public void IncrementMessageDeliverPerSec()
 {
     if (_pubsubCounterList != null && _pubsubCounterList.Count > 0 && _pubsubCounterList.ContainsKey(CounterNames.MessageDeliveryPerSec))
     {
         PerformanceCounterBase performanceCounterBase = _pubsubCounterList[CounterNames.MessageDeliveryPerSec];
         if (performanceCounterBase != null)
         {
             lock (performanceCounterBase)
             {
                 performanceCounterBase.Increment();
             }
         }
     }
 }
        /// <summary>
        /// Timestample and updates the counter for Cache avg. and max. per mill-second time of
        /// any operation operation.
        /// </summary>
        public void MsecPerCacheOperationEndSample()
        {
            if (_pcMsecPerCacheOperation != null)
            {
                lock (_pcMsecPerCacheOperation)
                {
                    //_usMsecPerCacheOperation.EndSample();
                    _nsMsecPerCacheOperation.Stop();
                    long timeSpent = (long)_nsMsecPerCacheOperation.Duration(1);
                    if (timeSpent < 0)
                    {
                        timeSpent = timeSpent * -1;
                    }

                    _pcMsecPerCacheOperation.IncrementBy((long)timeSpent);
                    _pcMsecPerCacheOperationBase.Increment();
                }
            }
        }