C# Class BlueCollar.Scheduler

Provides scheduling services for scheduled jobs.
Inheritance: IScheduler
Afficher le fichier Open project: ChadBurggraf/blue-collar

Private Properties

Свойство Type Description
CanScheduleBeEnqueued bool
EnqueueScheduledJobs void
RefreshSchedules void

Méthodes publiques

Méthode Description
RefreshSchedules ( ) : void

Refreshes this instance's schedules with the latest data from the repository.

Scheduler ( long workerId, string applicationName, QueueNameFilters queueFilters, int heartbeat, IRepositoryFactory repositoryFactory, ILogger logger ) : System

Initializes a new instance of the Scheduler class.

Private Methods

Méthode Description
CanScheduleBeEnqueued ( ScheduleRecord schedule, System.DateTime windowBegin, System.DateTime windowEnd, System.DateTime &scheduleDate ) : bool
EnqueueScheduledJobs ( ) : void
RefreshSchedules ( IRepository repository, IDbTransaction transaction ) : void

Refreshes this instance's schedules with the latest data from the repository.

Method Details

RefreshSchedules() public méthode

Refreshes this instance's schedules with the latest data from the repository.
public RefreshSchedules ( ) : void
Résultat void

Scheduler() public méthode

Initializes a new instance of the Scheduler class.
public Scheduler ( long workerId, string applicationName, QueueNameFilters queueFilters, int heartbeat, IRepositoryFactory repositoryFactory, ILogger logger ) : System
workerId long The ID of the worker the scheduler is scheduling for.
applicationName string The name of the application to schedule jobs for.
queueFilters QueueNameFilters The queues to process schedules for.
heartbeat int The heartbeat, in seconds, the system is polled for updates. Used to calculate scheduling windows.
repositoryFactory IRepositoryFactory The repository factory to use when accessing data.
logger ILogger The logger to use when logging messages.
Résultat System