Example #1
0
 public InternalTimeContext(TimeContextManager m, string s, Reporting.IReportingConnector <T> downstreamConn, bool hasAgg)
 {
     scope               = s;
     manager             = m;
     downstreamConnector = downstreamConn;
     if (hasAgg)
     {
         MakeAggregates();
     }
     else
     {
         intAggregator    = null;
         doubleAggregator = null;
     }
 }
Example #2
0
        public BaseComputation(InternalController controller, int index)
        {
            this.controller       = controller;
            this.defaultPlacement = this.controller.DefaultPlacement;
            this.index            = index;

            this.ShutdownCounter = new CountdownEvent(controller.Workers.Count);

            this.contextManager = new Microsoft.Research.Naiad.Dataflow.TimeContextManager(this);

            if (this.controller.Configuration.DistributedProgressTracker)
            {
                this.progressTracker = new DistributedProgressTracker(this);
            }
            else
            {
                this.progressTracker = new CentralizedProgressTracker(this);
            }

            this.InitializeReporting(this.controller.Configuration.DomainReporting, this.controller.Configuration.InlineReporting, this.controller.Configuration.AggregateReporting);
        }