Пример #1
0
        public TaskTracker(IDictionary properties, CacheRuntimeContext context, TaskOutputStore store)
        {
            this.submittedTasks = new Hashtable();
            this.runningTasks   = new Hashtable();
            this.waitingTasks   = new Hashtable();

            this.cancelledTask = new List <string>();

            this._context         = context;
            this.taskSequenceList = new Dictionary <long, string>();
            taskOutputStore       = store;
            this.Callback        += new TaskCallback(OnTaskCallback);

            if (_context.PerfStatsColl != null)
            {
                this._context.PerfStatsColl.RunningTasksCount(0);
                this._context.PerfStatsColl.WaitingTasksCount(0);
            }
            Initialize(properties);
        }
Пример #2
0
 public TaskManager(IDictionary properties, CacheRuntimeContext context)
 {
     this._context     = context;
     taskOutputStore   = new TaskOutputStore();
     this._taskTracker = new TaskTracker(properties, context, taskOutputStore);
 }