예제 #1
0
        public MetricAggregator(StatsifyAggregatorConfigurationSection configuration, IDatapointDatabaseResolver datapointDatabaseResolver, ManualResetEvent stopEvent)
        {
            this.configuration             = configuration;
            this.datapointDatabaseResolver = datapointDatabaseResolver;
            this.stopEvent = stopEvent;
            flushInterval  = (float)configuration.Storage.FlushInterval.TotalMilliseconds;

            metricsBuffer = new MetricsBuffer();

            var flushThread = new Thread(FlushCallback);

            flushThread.Start();
        }
예제 #2
0
 public DatapointDatabaseResolverCachingWrapper(IDatapointDatabaseResolver datapointDatabaseResolver)
 {
     this.datapointDatabaseResolver = datapointDatabaseResolver;
 }