Ejemplo n.º 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);
 }
Ejemplo n.º 2
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);
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 4
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;
 }