コード例 #1
0
        public void Start()
        {
            AggregationSettings settings = new AggregationSettings()
            {
                EnableExpirationClock           = AggregationDefaults.FarmEnableExpirationClock,
                ExpireAggregationClockFrequency = this.ExpireAggregationClockFrequency,
                ExtraExpirationWaitTime         = this.ExtraExpirationWaitTime,
                ClockExpirationWaitTime         = this.ClockExpirationWaitTime
            };

            this.synopsis = new RollupAggregationSynopsis(
                this.processEvent != null ? this.processEvent : this.ConsumeMetricEvent,
                settings);
        }
コード例 #2
0
        void Dispose(bool disposing)
        {
            if (!this.disposed)
            {
                if (disposing)
                {
                    if (this.synopsis != null)
                    {
                        this.synopsis.Dispose();
                        this.synopsis = null;
                    }
                }

                this.disposed = true;
            }
        }
コード例 #3
0
 public void Stop()
 {
     // On stop, any state is discarded.  No output is issued for pending aggregations.
     this.synopsis.Dispose();
     this.synopsis = null;
 }