Example #1
0
 internal SiloStatisticsManager(GlobalConfiguration globalConfig, NodeConfiguration nodeConfig)
 {
     MessagingStatisticsGroup.Init(true);
     MessagingProcessingStatisticsGroup.Init();
     NetworkingStatisticsGroup.Init(true);
     ApplicationRequestsStatisticsGroup.Init(globalConfig.ResponseTimeout);
     SchedulerStatisticsGroup.Init();
     StorageStatisticsGroup.Init();
     runtimeStats          = new RuntimeStatisticsGroup();
     logStatistics         = new LogStatistics(nodeConfig.StatisticsLogWriteInterval, true);
     MetricsTable          = new SiloPerformanceMetrics(runtimeStats, nodeConfig);
     perfCountersPublisher = new PerfCountersStatistics(nodeConfig.StatisticsPerfCountersWriteInterval);
 }
 internal SiloStatisticsManager(GlobalConfiguration globalConfig, NodeConfiguration nodeConfig)
 {
     MessagingStatisticsGroup.Init(true);
     MessagingProcessingStatisticsGroup.Init();
     NetworkingStatisticsGroup.Init(true);
     ApplicationRequestsStatisticsGroup.Init(globalConfig.ResponseTimeout);
     SchedulerStatisticsGroup.Init();
     StorageStatisticsGroup.Init();
     runtimeStats = new RuntimeStatisticsGroup();
     logStatistics = new LogStatistics(nodeConfig.StatisticsLogWriteInterval, true);
     MetricsTable = new SiloPerformanceMetrics(runtimeStats, nodeConfig);
     perfCountersPublisher = new PerfCountersStatistics(nodeConfig.StatisticsPerfCountersWriteInterval);
 }
Example #3
0
 internal void Stop()
 {
     if (runtimeStats != null)
     {
         runtimeStats.Stop();
     }
     runtimeStats = null;
     if (MetricsTable != null)
     {
         MetricsTable.Dispose();
     }
     MetricsTable = null;
     if (perfCountersPublisher != null)
     {
         perfCountersPublisher.Stop();
     }
     perfCountersPublisher = null;
     if (logStatistics != null)
     {
         logStatistics.Stop();
         logStatistics.DumpCounters().Wait();
     }
     logStatistics = null;
 }
 internal void Stop()
 {
     if (runtimeStats != null)
         runtimeStats.Stop();
     runtimeStats = null;
     if (MetricsTable != null)
         MetricsTable.Dispose();
     MetricsTable = null;
     if (perfCountersPublisher != null)
         perfCountersPublisher.Stop();
     perfCountersPublisher = null;
     if (logStatistics != null)
     {
         logStatistics.Stop();
         logStatistics.DumpCounters().Wait();
     }
     logStatistics = null;
 }