/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or /// resetting unmanaged resources. /// </summary> public void Dispose() { _pcClientBytesReceiedPerSec.Reset(); _pcClientBytesSentPerSec.Reset(); _pcRequestsPerSec.Reset(); _pcResponsesPerSec.Reset(); _pcMsecPerCacheOperationBase.Reset(); _pcMsecPerCacheOperation.Reset(); _pcResponseQueueCount.Reset(); _pcResponseQueueSize.Reset(); _pcEventQueueCount.Reset(); _requestLogCount.Reset(); _requestLogPerSecond.Reset(); _requestLogSize.Reset(); //Bulk counters _pcMsecPerAddBulkAvg.Reset(); _pcMsecPerAddBulkBase.Reset(); _pcMsecPerGetBulkAvg.Reset(); _pcMsecPerUpdBulkAvg.Reset(); _pcMsecPerDelBulkAvg.Reset(); _pcMsecPerGetBulkBase.Reset(); _pcMsecPerUpdBulkBase.Reset(); _pcMsecPerDelBulkBase.Reset(); _pcConnectedClients.Reset(); }
public void Dispose() { if (_countStats != null) { _countStats.Reset(); } if (_sizeStats != null) { _sizeStats.Reset(); } if (_addStats != null) { _addStats.Reset(); } if (_updateStats != null) { _updateStats.Reset(); } if (_fetchStats != null) { _fetchStats.Reset(); } if (_hitStats != null) { _hitStats.Reset(); } if (_missStats != null) { _missStats.Reset(); } if (_cacheLastAccessCountStats != null) { _cacheLastAccessCountStats.Reset(); } if (_hitsRatioSecStats != null) { _hitsRatioSecStats.Reset(); } if (_deleteStats != null) { _deleteStats.Reset(); } if (_evictPerSecStats != null) { _evictPerSecStats.Reset(); } if (_expiryPerSecStats != null) { _expiryPerSecStats.Reset(); } if (_stateTxfrPerSecStats != null) { _stateTxfrPerSecStats.Reset(); } if (_dataBalPerSecStats != null) { _dataBalPerSecStats.Reset(); } if (_mirrorQueueSizeStats != null) { _mirrorQueueSizeStats.Reset(); } if (_slidingIndexQueueSizeStats != null) { _slidingIndexQueueSizeStats.Reset(); } if (_msecPerGetAvgStats != null) { _msecPerGetAvgStats.Reset(); } if (_msecPerAddAvgStats != null) { _msecPerAddAvgStats.Reset(); } if (_msecPerUpdateAvgStats != null) { _msecPerUpdateAvgStats.Reset(); } if (_msecPerDeleteAvgStats != null) { _msecPerDeleteAvgStats.Reset(); } if (_usageMsecPerGetStats != null) { _usageMsecPerGetStats.Reset(); } if (_usageMsecPerAddStats != null) { _usageMsecPerAddStats.Reset(); } if (_usageMsecPerUpdateStats != null) { _usageMsecPerUpdateStats.Reset(); } if (_usageMsecPerDeleteStats != null) { _usageMsecPerDeleteStats.Reset(); } if (_expirationIndexSizeStats != null) { _expirationIndexSizeStats.Reset(); } if (_evictionIndexSizeStats != null) { _evictionIndexSizeStats.Reset(); } if (_messageCountStats != null) { _messageCountStats.Reset(); } if (_topicCountStats != null) { _topicCountStats.Reset(); } if (_messageStoreSizeStats != null) { _messageStoreSizeStats.Reset(); } if (_messagePublishPerSecStats != null) { _messagePublishPerSecStats.Reset(); } if (_messageDeliverPerSecStats != null) { _messageDeliverPerSecStats.Reset(); } if (_messageExpiredPerSecStats != null) { _messageExpiredPerSecStats.Reset(); } if (_pubsubCounterList != null) { _pubsubCounterList = null; } }