コード例 #1
0
            public PrecacheThread(LogFileStatsCache statsCache)
            {
                System.Diagnostics.Debug.Assert(statsCache != null, "PrecacheThread.ctor: statsCache is null.");

                statsCache_     = statsCache;
                cancellation_   = new CancellationTokenSource();
                queries_        = new BlockingCollection <Tuple <ILogFile, Filter> > ();
                consumerThread_ = Task.Run(() => ConsumerThread(), cancellation_.Token);
            }
コード例 #2
0
        public CacheHintMaker
            (LogFileStatsCache statsCache, ILogQuery query, LogAccumulator accumulator)
        {
            Debug.Assert(statsCache != null, "PrecacheScheduler.ctor: statsCache is null.");
            Debug.Assert(query != null, "PrecacheScheduler.ctor: query is null.");
            Debug.Assert(accumulator != null, "PrecacheScheduler.ctor: accumulator is null.");

            statsCache_  = statsCache;
            filter_      = query.CreateFilter();
            accumulator_ = accumulator;
        }
コード例 #3
0
        public LogAccumulator(LogFileStatsCache statsCache, ILogQuery query)
        {
            Debug.Assert(statsCache != null, "LogAccumulator.ctor: statsCache is null.");
            Debug.Assert(query != null, "LogAccumulator.ctor: query is null.");
            statsCache_ = statsCache;
            query_      = query;

            var filter = query_.CreateFilter();

            groupFilter_   = EventGroupFilter.Convert(filter);
            events_        = new List <EventModel> (query_.Quantity);
            skipRemaining_ = query_.Offset;
        }