Beispiel #1
0
 public override void IncrementCounter(Statistics.PerfStatsCollector collector, long value)
 {
     if (collector != null)
     {
         collector.IncrementMsecPerGetBulkAvg(value);
     }
 }
Beispiel #2
0
        public Bookie(Statistics.PerfStatsCollector perfStatsCollector)
        {
            RequestLoggingEnabled = ServiceConfiguration.EnableRequestInquiry;

            ledger = new HashVector();
            size  += MemoryUtil.NetHashtableOverHead;
            _perfStatsCollector = perfStatsCollector;
            if (RequestLoggingEnabled)
            {
                cleanInterval = ServiceConfiguration.RequestInquiryCleanInterval;
                cleanupTask   = new Thread(new ThreadStart(Clean));
                isRunning     = true;
                cleanupTask.Start();
                size += 2 * MemoryUtil.NetOverHead;
            }
            _perfStatsCollector.RequestLogSize = InMemorySize;
        }