public StatisticsCollectorService(ICommandProcessingQueue <IExecutableCommand> queue, IStatisticsProcessingChainFactory chainFactory) { this.queue = queue; this.chainFactory = chainFactory; timer = new Timer(TIMER_INTERVAL); timer.Elapsed += Timer_Elapsed; }
public LogEntryProcessingService(ILogEntryGroupBox groupBox, ICommandProcessingQueue <IExecutableCommand> queue, ILogEntryProcessingChainFactory chainFactory, ILastProcessedLogEntryEvidence lastProcessedEvidence) { this.groupBox = groupBox; this.queue = queue; this.chainFactory = chainFactory; this.lastProcessedEvidence = lastProcessedEvidence; this.timer = new Timer(2000); this.timer.Elapsed += Timer_Elapsed; }
public StatisticsProcessingCommandFactory(ILog log, ICommandProcessingQueue <IExecutableCommand> queue, IStatisticsProcessingDataAccumulator statisticsAccumulator, DBMS.Contracts.IRepositoriesFactory dbmsRepositories, IRepositoriesFactory dalRepositories, IDatabaseDependencyHierarchyProvider dependencyHierarchyProvider) { this.log = log; this.queue = queue; this.statisticsAccumulator = statisticsAccumulator; this.dbmsRepositories = dbmsRepositories; this.dalRepositories = dalRepositories; this.dependencyHierarchyProvider = dependencyHierarchyProvider; }
public AnalysisRequestsLoader(ILog log, ICommandProcessingQueue <IExecutableCommand> queue, IWorkloadAnalysesRepository workloadAnalysesRepository, ICommandChainFactory chainFactory) { this.log = log; this.queue = queue; this.workloadAnalysesRepository = workloadAnalysesRepository; this.chainFactory = chainFactory; this.timer = new Timer(60000); this.timer.Elapsed += Timer_Elapsed; Timer_Elapsed(null, null); }
public RegularTaskScheduler(ICommandProcessingQueue <IExecutableCommand> queue, IDictionary <TimeSpan, IExecutableCommand> tasks) { this.queue = queue; this.registeredTasksAscSorted = new List <InternalTask>(); foreach (var t in tasks) { this.registeredTasksAscSorted.Add(new InternalTask() { Time = t.Key, Task = t.Value }); } this.registeredTasksAscSorted.Sort((x, y) => x.Time.CompareTo(y.Time)); this.availableTasks = new LinkedList <InternalTask>(registeredTasksAscSorted); this.timer = new Timer(Timer_Job, null, Timeout.Infinite, Timeout.Infinite); }
public EnqueueCommand(ICommandProcessingQueue <IExecutableCommand> queue) { this.queue = queue; }