C# Класс Quartz.Impl.Triggers.CalendarIntervalTriggerImpl

Наследование: AbstractTrigger, ICalendarIntervalTrigger
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
DaylightSavingHourShiftOccurredAndAdvanceNeeded bool
MakeHourAdjustmentIfNeeded void

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

Метод Описание
CalendarIntervalTriggerImpl ( ) : System

Create a ICalendarIntervalTrigger with no settings.

CalendarIntervalTriggerImpl ( string name, DateTimeOffset startTimeUtc, DateTimeOffset endTimeUtc, IntervalUnit intervalUnit, int repeatInterval ) : System

Create a ICalendarIntervalTrigger that will occur at the given time, and repeat at the given interval until the given end time.

CalendarIntervalTriggerImpl ( string name, IntervalUnit intervalUnit, int repeatInterval ) : System

Create a CalendarIntervalTriggerImpl that will occur immediately, and repeat at the given interval.

CalendarIntervalTriggerImpl ( string name, string group, DateTimeOffset startTimeUtc, DateTimeOffset endTimeUtc, IntervalUnit intervalUnit, int repeatInterval ) : System

Create a ICalendarIntervalTrigger that will occur at the given time, and repeat at the given interval until the given end time.

CalendarIntervalTriggerImpl ( string name, string group, IntervalUnit intervalUnit, int repeatInterval ) : System

Create a ICalendarIntervalTrigger that will occur immediately, and repeat at the given interval

CalendarIntervalTriggerImpl ( string name, string group, string jobName, string jobGroup, DateTimeOffset startTimeUtc, DateTimeOffset endTimeUtc, IntervalUnit intervalUnit, int repeatInterval ) : System

Create a ICalendarIntervalTrigger that will occur at the given time, and repeat at the given interval until the given end time.

ComputeFirstFireTimeUtc ( ICalendar calendar ) : DateTimeOffset?

This method should not be used by the Quartz client.

Called by the scheduler at the time a ITrigger is first added to the scheduler, in order to have the ITrigger compute its first fire time, based on any associated calendar.

After this method has been called, ITrigger.GetNextFireTimeUtc should return a valid answer.

GetFireTimeAfter ( DateTimeOffset afterTime ) : DateTimeOffset?

Returns the next time at which the ICalendarIntervalTrigger will fire, after the given time. If the trigger will not fire after the given time, will be returned.

GetMayFireAgain ( ) : bool

Determines whether or not the ICalendarIntervalTrigger will occur again.

GetNextFireTimeUtc ( ) : DateTimeOffset?

Returns the next time at which the ITrigger is scheduled to fire. If the trigger will not fire again, will be returned. Note that the time returned can possibly be in the past, if the time that was computed for the trigger to next fire has already arrived, but the scheduler has not yet been able to fire the trigger (which would likely be due to lack of resources e.g. threads).

The value returned is not guaranteed to be valid until after the ITrigger has been added to the scheduler.

GetPreviousFireTimeUtc ( ) : DateTimeOffset?

Returns the previous time at which the ICalendarIntervalTrigger fired. If the trigger has not yet fired, will be returned.

GetScheduleBuilder ( ) : IScheduleBuilder
SetNextFireTimeUtc ( DateTimeOffset value ) : void
SetPreviousFireTimeUtc ( DateTimeOffset previousFireTimeUtc ) : void
Triggered ( ICalendar calendar ) : void

This method should not be used by the Quartz client.

Called when the IScheduler has decided to 'fire' the trigger (Execute the associated IJob), in order to give the ITrigger a chance to update itself for its next triggering (if any).

UpdateAfterMisfire ( ICalendar cal ) : void

Updates the ICalendarIntervalTrigger's state based on the MisfireInstruction.XXX that was selected when the ICalendarIntervalTrigger was created.

If the misfire instruction is set to MisfireInstruction.SmartPolicy, then the following scheme will be used:

  • The instruction will be interpreted as MisfireInstruction.CalendarIntervalTrigger.FireOnceNow
UpdateWithNewCalendar ( ICalendar calendar, System.TimeSpan misfireThreshold ) : void

This method should not be used by the Quartz client.

The implementation should update the ITrigger's state based on the given new version of the associated ICalendar (the state should be updated so that it's next fire time is appropriate given the Calendar's new settings).

Validate ( ) : void

Validates whether the properties of the IJobDetail are valid for submission into a IScheduler.

Защищенные методы

Метод Описание
GetFireTimeAfter ( DateTimeOffset afterTime, bool ignoreEndTime ) : DateTimeOffset?
ValidateMisfireInstruction ( int misfireInstruction ) : bool

Validates the misfire instruction.

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

Метод Описание
DaylightSavingHourShiftOccurredAndAdvanceNeeded ( DateTimeOffset &newTime, int initialHourOfDay ) : bool
MakeHourAdjustmentIfNeeded ( DateTimeOffset &sTime, int initialHourOfDay ) : void

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

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

Create a ICalendarIntervalTrigger with no settings.
public CalendarIntervalTriggerImpl ( ) : System
Результат System

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

Create a ICalendarIntervalTrigger that will occur at the given time, and repeat at the given interval until the given end time.
public CalendarIntervalTriggerImpl ( string name, DateTimeOffset startTimeUtc, DateTimeOffset endTimeUtc, IntervalUnit intervalUnit, int repeatInterval ) : System
name string Name for the trigger instance.
startTimeUtc DateTimeOffset A set to the time for the to fire.
endTimeUtc DateTimeOffset A set to the time for the to quit repeat firing.
intervalUnit IntervalUnit The repeat interval unit (minutes, days, months, etc).
repeatInterval int The number of milliseconds to pause between the repeat firing.
Результат System

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

Create a CalendarIntervalTriggerImpl that will occur immediately, and repeat at the given interval.
public CalendarIntervalTriggerImpl ( string name, IntervalUnit intervalUnit, int repeatInterval ) : System
name string Name for the trigger instance.
intervalUnit IntervalUnit The repeat interval unit (minutes, days, months, etc).
repeatInterval int The number of milliseconds to pause between the repeat firing.
Результат System

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

Create a ICalendarIntervalTrigger that will occur at the given time, and repeat at the given interval until the given end time.
public CalendarIntervalTriggerImpl ( string name, string group, DateTimeOffset startTimeUtc, DateTimeOffset endTimeUtc, IntervalUnit intervalUnit, int repeatInterval ) : System
name string Name for the trigger instance.
group string Group for the trigger instance.
startTimeUtc DateTimeOffset A set to the time for the to fire.
endTimeUtc DateTimeOffset A set to the time for the to quit repeat firing.
intervalUnit IntervalUnit The repeat interval unit (minutes, days, months, etc).
repeatInterval int The number of milliseconds to pause between the repeat firing.
Результат System

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

Create a ICalendarIntervalTrigger that will occur immediately, and repeat at the given interval
public CalendarIntervalTriggerImpl ( string name, string group, IntervalUnit intervalUnit, int repeatInterval ) : System
name string Name for the trigger instance.
group string Group for the trigger instance.
intervalUnit IntervalUnit The repeat interval unit (minutes, days, months, etc).
repeatInterval int The number of milliseconds to pause between the repeat firing.
Результат System

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

Create a ICalendarIntervalTrigger that will occur at the given time, and repeat at the given interval until the given end time.
public CalendarIntervalTriggerImpl ( string name, string group, string jobName, string jobGroup, DateTimeOffset startTimeUtc, DateTimeOffset endTimeUtc, IntervalUnit intervalUnit, int repeatInterval ) : System
name string Name for the trigger instance.
group string Group for the trigger instance.
jobName string Name of the associated job.
jobGroup string Group of the associated job.
startTimeUtc DateTimeOffset A set to the time for the to fire.
endTimeUtc DateTimeOffset A set to the time for the to quit repeat firing.
intervalUnit IntervalUnit The repeat interval unit (minutes, days, months, etc).
repeatInterval int The number of milliseconds to pause between the repeat firing.
Результат System

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

This method should not be used by the Quartz client.

Called by the scheduler at the time a ITrigger is first added to the scheduler, in order to have the ITrigger compute its first fire time, based on any associated calendar.

After this method has been called, ITrigger.GetNextFireTimeUtc should return a valid answer.

public ComputeFirstFireTimeUtc ( ICalendar calendar ) : DateTimeOffset?
calendar ICalendar
Результат DateTimeOffset?

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

Returns the next time at which the ICalendarIntervalTrigger will fire, after the given time. If the trigger will not fire after the given time, will be returned.
public GetFireTimeAfter ( DateTimeOffset afterTime ) : DateTimeOffset?
afterTime DateTimeOffset
Результат DateTimeOffset?

GetFireTimeAfter() защищенный Метод

protected GetFireTimeAfter ( DateTimeOffset afterTime, bool ignoreEndTime ) : DateTimeOffset?
afterTime DateTimeOffset
ignoreEndTime bool
Результат DateTimeOffset?

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

Determines whether or not the ICalendarIntervalTrigger will occur again.
public GetMayFireAgain ( ) : bool
Результат bool

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

Returns the next time at which the ITrigger is scheduled to fire. If the trigger will not fire again, will be returned. Note that the time returned can possibly be in the past, if the time that was computed for the trigger to next fire has already arrived, but the scheduler has not yet been able to fire the trigger (which would likely be due to lack of resources e.g. threads).
The value returned is not guaranteed to be valid until after the ITrigger has been added to the scheduler.
public GetNextFireTimeUtc ( ) : DateTimeOffset?
Результат DateTimeOffset?

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

Returns the previous time at which the ICalendarIntervalTrigger fired. If the trigger has not yet fired, will be returned.
public GetPreviousFireTimeUtc ( ) : DateTimeOffset?
Результат DateTimeOffset?

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

public GetScheduleBuilder ( ) : IScheduleBuilder
Результат IScheduleBuilder

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

public SetNextFireTimeUtc ( DateTimeOffset value ) : void
value DateTimeOffset
Результат void

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

public SetPreviousFireTimeUtc ( DateTimeOffset previousFireTimeUtc ) : void
previousFireTimeUtc DateTimeOffset
Результат void

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

This method should not be used by the Quartz client.

Called when the IScheduler has decided to 'fire' the trigger (Execute the associated IJob), in order to give the ITrigger a chance to update itself for its next triggering (if any).

public Triggered ( ICalendar calendar ) : void
calendar ICalendar
Результат void

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

Updates the ICalendarIntervalTrigger's state based on the MisfireInstruction.XXX that was selected when the ICalendarIntervalTrigger was created.
If the misfire instruction is set to MisfireInstruction.SmartPolicy, then the following scheme will be used:
  • The instruction will be interpreted as MisfireInstruction.CalendarIntervalTrigger.FireOnceNow
public UpdateAfterMisfire ( ICalendar cal ) : void
cal ICalendar
Результат void

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

This method should not be used by the Quartz client.

The implementation should update the ITrigger's state based on the given new version of the associated ICalendar (the state should be updated so that it's next fire time is appropriate given the Calendar's new settings).

public UpdateWithNewCalendar ( ICalendar calendar, System.TimeSpan misfireThreshold ) : void
calendar ICalendar
misfireThreshold System.TimeSpan
Результат void

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

Validates whether the properties of the IJobDetail are valid for submission into a IScheduler.
public Validate ( ) : void
Результат void

ValidateMisfireInstruction() защищенный Метод

Validates the misfire instruction.
protected ValidateMisfireInstruction ( int misfireInstruction ) : bool
misfireInstruction int The misfire instruction.
Результат bool