C# Класс Quartz.Plugin.Xml.XMLSchedulingDataProcessorPlugin

This plugin loads XML file(s) to add jobs and schedule them with triggers as the scheduler is initialized, and can optionally periodically scan the file for changes.
The periodically scanning of files for changes is not currently supported in a clustered environment.
Наследование: ISchedulerPlugin, IFileScanListener
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
BuildJobTriggerName string
ProcessFile System.Threading.Tasks.Task

Открытые методы

Метод Описание
FileUpdated ( string fName ) : System.Threading.Tasks.Task

Initialize ( string pluginName, IScheduler scheduler ) : System.Threading.Tasks.Task

Called during creation of the IScheduler in order to give the ISchedulerPlugin a chance to initialize.

ProcessFile ( string filePath ) : System.Threading.Tasks.Task
Shutdown ( ) : System.Threading.Tasks.Task

Called in order to inform the ISchedulerPlugin that it should free up all of it's resources because the scheduler is shutting down.

Start ( ) : System.Threading.Tasks.Task

Called when the associated IScheduler is started, in order to let the plug-in know it can now make calls into the scheduler if it needs to.

XMLSchedulingDataProcessorPlugin ( ) : System

Initializes a new instance of the XMLSchedulingDataProcessorPlugin class.

Приватные методы

Метод Описание
BuildJobTriggerName ( string fileBasename ) : string

Helper method for generating unique job/trigger name for the file scanning jobs (one per FileJob). The unique names are saved in jobTriggerNameSet.

ProcessFile ( JobFile jobFile ) : System.Threading.Tasks.Task

Описание методов

FileUpdated() публичный Метод

public FileUpdated ( string fName ) : System.Threading.Tasks.Task
fName string
Результат System.Threading.Tasks.Task

Initialize() публичный Метод

Called during creation of the IScheduler in order to give the ISchedulerPlugin a chance to initialize.
public Initialize ( string pluginName, IScheduler scheduler ) : System.Threading.Tasks.Task
pluginName string The name.
scheduler IScheduler The scheduler.
Результат System.Threading.Tasks.Task

ProcessFile() публичный Метод

public ProcessFile ( string filePath ) : System.Threading.Tasks.Task
filePath string
Результат System.Threading.Tasks.Task

Shutdown() публичный Метод

Called in order to inform the ISchedulerPlugin that it should free up all of it's resources because the scheduler is shutting down.
public Shutdown ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

Start() публичный Метод

Called when the associated IScheduler is started, in order to let the plug-in know it can now make calls into the scheduler if it needs to.
public Start ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

XMLSchedulingDataProcessorPlugin() публичный Метод

Initializes a new instance of the XMLSchedulingDataProcessorPlugin class.
public XMLSchedulingDataProcessorPlugin ( ) : System
Результат System