C# 클래스 Quartz.Impl.Triggers.CalendarIntervalTriggerImpl

상속: AbstractTrigger, ICalendarIntervalTrigger
파일 보기 프로젝트 열기: quartznet/quartznet 1 사용 예제들

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