public ScheduledJobsFubuDiagnostics(IUrlRegistry urls, ISchedulePersistence persistence, ChannelGraph graph, ScheduledJobGraph jobs, IScheduledJobController controller)
 {
     _urls        = urls;
     _persistence = persistence;
     _graph       = graph;
     _jobs        = jobs;
     _controller  = controller;
 }
 public ScheduledJobsFubuDiagnostics(IUrlRegistry urls, ISchedulePersistence persistence, ChannelGraph graph, ScheduledJobGraph jobs, IScheduledJobController controller)
 {
     _urls = urls;
     _persistence = persistence;
     _graph = graph;
     _jobs = jobs;
     _controller = controller;
 }
 public ScheduledJobController(
     ScheduledJobGraph jobs,
     IJobTimer timer,
     IScheduleStatusMonitor statusMonitor,
     IServiceBus serviceBus,
     ILogger logger)
 {
     _jobs          = jobs;
     _timer         = timer;
     _statusMonitor = statusMonitor;
     _serviceBus    = serviceBus;
     _logger        = logger;
 }
Пример #4
0
        public ScheduleStatusMonitor(ChannelGraph channels, ScheduledJobGraph jobs, ISchedulePersistence persistence,
                                     ILogger logger, ISystemTime systemTime)
        {
            _channels    = channels;
            _persistence = persistence;
            _logger      = logger;
            _systemTime  = systemTime;

            jobs.Jobs.Each(j => {
                var key        = JobStatus.GetKey(j.JobType);
                _jobTypes[key] = j.JobType;
            });
        }
Пример #5
0
        public void SetUp()
        {
            theExecutor = new StubJobExecutor();

            theSchedule = new JobSchedule(new[]
            {
                JobStatus.For <AJob>(DateTime.Today),
                JobStatus.For <BJob>(DateTime.Today.AddHours(1)),
                JobStatus.For <CJob>(DateTime.Today.AddHours(2)),
            });

            theGraph = new ScheduledJobGraph();
            theGraph.Jobs.Add(new ScheduledJob <BJob>(new DummyScheduleRule(DateTime.Today.AddHours(1))));
            theGraph.Jobs.Add(new ScheduledJob <CJob>(new DummyScheduleRule(DateTime.Today.AddHours(3))));
            theGraph.Jobs.Add(new ScheduledJob <DJob>(new DummyScheduleRule(DateTime.Today.AddHours(4))));
            theGraph.Jobs.Add(new ScheduledJob <EJob>(new DummyScheduleRule(DateTime.Today.AddHours(5))));

            // not that worried about pushing the time around
            theGraph.DetermineSchedule(now, theExecutor, theSchedule);
        }
Пример #6
0
        public void SetUp()
        {
            theExecutor = new StubJobExecutor();

            theSchedule = new JobSchedule(new[]
            {
                JobStatus.For<AJob>(DateTime.Today),
                JobStatus.For<BJob>(DateTime.Today.AddHours(1)),
                JobStatus.For<CJob>(DateTime.Today.AddHours(2)),
            });

            theGraph = new ScheduledJobGraph();
            theGraph.Jobs.Add(new ScheduledJob<BJob>(new DummyScheduleRule(DateTime.Today.AddHours(1))));
            theGraph.Jobs.Add(new ScheduledJob<CJob>(new DummyScheduleRule(DateTime.Today.AddHours(3))));
            theGraph.Jobs.Add(new ScheduledJob<DJob>(new DummyScheduleRule(DateTime.Today.AddHours(4))));
            theGraph.Jobs.Add(new ScheduledJob<EJob>(new DummyScheduleRule(DateTime.Today.AddHours(5))));

            // not that worried about pushing the time around
            theGraph.DetermineSchedule(now, theExecutor, theSchedule);
        }
 public RavenDbSchedulePersistence(ITransaction transaction, IDocumentStore store, ScheduledJobGraph jobs)
 {
     _transaction = transaction;
     _store = store;
     _maxHistory = jobs.MaxJobExecutionRecordsToKeepInHistory;
 }
Пример #8
0
 public RavenDbSchedulePersistence(ITransaction transaction, IDocumentStore store, ScheduledJobGraph jobs)
 {
     _transaction = transaction;
     _store       = store;
     _maxHistory  = jobs.MaxJobExecutionRecordsToKeepInHistory;
 }