Exemple #1
0
 public void IncrementByDelPerSecStats(long value)
 {
     if (_deleteStats != null)
     {
         lock (_deleteStats) { _deleteStats.IncrementBy(value); }
     }
 }
Exemple #2
0
 public void IncrementCountStatsBy(long count)
 {
     if (_countStats != null)
     {
         lock (_countStats) _countStats.IncrementBy(count);
     }
 }
Exemple #3
0
 public void IncrementCacheSizeBy(long value)
 {
     if (_sizeStats != null)
     {
         lock (_sizeStats) _sizeStats.IncrementBy(value);
     }
 }
Exemple #4
0
 public void IncrementByUpdPerSecStats(long value)
 {
     if (_updateStats != null)
     {
         lock (_updateStats) _updateStats.IncrementBy(value);
     }
 }
Exemple #5
0
 public void IncrementByMissPerSecStats(long value)
 {
     if (_missStats != null)
     {
         lock (_missStats) _missStats.IncrementBy(value);
     }
 }
Exemple #6
0
 public void IncrementByHitsPerSecStats(long value)
 {
     if (_hitStats != null)
     {
         lock (_hitStats) _hitStats.IncrementBy(value);
     }
 }
Exemple #7
0
 public void IncrementByGetPerSecStats(long value)
 {
     if (_fetchStats != null)
     {
         lock (_fetchStats) _fetchStats.IncrementBy(value);
     }
 }
Exemple #8
0
 public void IncrementByAddPerSecStats(long value)
 {
     if (_addStats != null)
     {
         lock (_addStats) _addStats.IncrementBy(value);
     }
 }
Exemple #9
0
 public void IncrementDataBalPerSecStatsBy(long value)
 {
     Interlocked.Exchange(ref this._dataBalance, (this._dataBalance + value));
     if (_dataBalPerSecStats != null)
     {
         lock (_dataBalPerSecStats) { _dataBalPerSecStats.IncrementBy(value); }
     }
 }
Exemple #10
0
 public void IncrementExpiryPerSecStatsBy(long value)
 {
     Interlocked.Exchange(ref this._expirations, (this._expirations + value));
     if (_expiryPerSecStats != null)
     {
         lock (_expiryPerSecStats) { _expiryPerSecStats.IncrementBy(value); }
     }
 }
Exemple #11
0
 public void IncrementStateTxfrPerSecStatsBy(long value)
 {
     Interlocked.Exchange(ref this._stateXfer, (this._stateXfer + value));
     if (_stateTxfrPerSecStats != null)
     {
         lock (_stateTxfrPerSecStats) { _stateTxfrPerSecStats.IncrementBy(value); }
     }
 }
 /// <summary>
 /// Increment the Number of client requests logged on server.
 /// </summary>
 public void IncrementRequestLogCount(long requests)
 {
     if (_requestLogCount != null)
     {
         lock (_requestLogCount)
         {
             _requestLogCount.IncrementBy(requests);
         }
     }
 }
 /// <summary>
 /// Increment the performance counter for Responses Per second.
 /// </summary>
 public void IncrementResponsesPerSecStats(long responses)
 {
     if (_pcResponsesPerSec != null)
     {
         lock (_pcResponsesPerSec)
         {
             _pcResponsesPerSec.IncrementBy(responses);
         }
     }
 }
 /// <summary>
 /// Increment the performance counter for Requests Per second.
 /// </summary>
 public void IncrementRequestsPerSecStats(long requests)
 {
     if (_pcRequestsPerSec != null)
     {
         lock (_pcRequestsPerSec)
         {
             _pcRequestsPerSec.IncrementBy(requests);
         }
     }
 }
 /// <summary>
 /// Increment the performance counter for Client bytes received.
 /// </summary>
 public void IncrementBytesReceivedPerSecStats(long bytesReceived)
 {
     if (_pcClientBytesReceiedPerSec != null)
     {
         lock (_pcClientBytesReceiedPerSec)
         {
             _pcClientBytesReceiedPerSec.IncrementBy(bytesReceived);
         }
     }
 }
 /// <summary>
 /// Increment the performance counter for Client bytes sent.
 /// </summary>
 public void IncrementBytesSentPerSecStats(long bytesSent)
 {
     if (_pcClientBytesSentPerSec != null)
     {
         lock (_pcClientBytesSentPerSec)
         {
             _pcClientBytesSentPerSec.IncrementBy(bytesSent);
         }
     }
 }
Exemple #17
0
 public void IncrementByHitsRatioPerSecStats(long value)
 {
     if (_hitsRatioSecStats != null)
     {
         lock (_hitsRatioSecStats)
         {
             _hitsRatioSecStats.IncrementBy(value);
         }
     }
 }
Exemple #18
0
 public void IncrementEvictionIndexSizeBy(long value)
 {
     if (_evictionIndexSizeStats != null)
     {
         lock (_evictionIndexSizeStats)
         {
             _evictionIndexSizeStats.IncrementBy(value);
         }
     }
 }
 public void IncrementMsecPerDelBulkAvg(long value)
 {
     if (_pcMsecPerDelBulkAvg != null)
     {
         lock (_pcMsecPerDelBulkAvg)
         {
             _pcMsecPerDelBulkAvg.IncrementBy(value * 1000000);
             _pcMsecPerDelBulkBase.Increment();
         }
     }
 }
Exemple #20
0
 public void MsecPerUpdEndSample()
 {
     if (_msecPerUpdateAvgStats != null)
     {
         lock (_msecPerUpdateAvgStats)
         {
             _usageMsecPerUpdateStats.EndSample();
             _msecPerUpdateAvgStats.IncrementBy(_usageMsecPerUpdateStats.Current * 1000000 / Stopwatch.Frequency);//ts.Milliseconds);
         }
     }
 }
Exemple #21
0
 public void IncrementMessageExpiredPerSec(long value)
 {
     if (_pubsubCounterList != null && _pubsubCounterList.Count > 0 && _pubsubCounterList.ContainsKey(CounterNames.MessageExpiredPerSec))
     {
         PerformanceCounterBase performanceCounter = _pubsubCounterList[CounterNames.MessageExpiredPerSec];
         if (performanceCounter != null)
         {
             lock (performanceCounter)
             {
                 performanceCounter.IncrementBy(value);
             }
         }
     }
 }
        /// <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();
                }
            }
        }