AbstractTrigger Class

Quartz.NET 3.0 API Documentation
The base abstract class to be extended by all triggers.
Inheritance Hierarchy

SystemObject
  Quartz.Impl.TriggersAbstractTrigger
    Quartz.Impl.TriggersCalendarIntervalTriggerImpl
    Quartz.Impl.TriggersCronTriggerImpl
    Quartz.Impl.TriggersDailyTimeIntervalTriggerImpl
    Quartz.Impl.TriggersSimpleTriggerImpl

Namespace:  Quartz.Impl.Triggers
Assembly:  Quartz (in Quartz.dll) Version: 3.0.0
Syntax

C#
[SerializableAttribute]
public abstract class AbstractTrigger : IOperableTrigger, 
	IMutableTrigger, ITrigger, IComparable<ITrigger>, IEquatable<AbstractTrigger>

The AbstractTrigger type exposes the following members.

Constructors

  NameDescription
Protected methodAbstractTrigger
Create a ITrigger with no specified name, group, or IJobDetail.
Protected methodAbstractTrigger(String)
Create a ITrigger with the given name, and default group.
Protected methodAbstractTrigger(String, String)
Create a ITrigger with the given name, and group.
Protected methodAbstractTrigger(String, String, String, String)
Create a ITrigger with the given name, and group.
Top
Properties

  NameDescription
Public propertyCalendarName
Get or set the ICalendar with the given name with this Trigger. Use when setting to dis-associate a Calendar.
Public propertyDescription
Get or set the description given to the ITrigger instance by its creator (if any).
Public propertyEndTimeUtc
Gets and sets the date/time on which the trigger must stop firing. This defines the final boundary for trigger firings ? the trigger will not fire after to this date and time. If this value is null, no end time boundary is assumed, and the trigger can continue indefinitely.
Public propertyFinalFireTimeUtc
Returns the last UTC time at which the ITrigger will fire, if the Trigger will repeat indefinitely, null will be returned.

Note that the return time *may* be in the past.

Public propertyFireInstanceId
This method should not be used by the Quartz client.
Public propertyFullJobName
Returns the 'full name' of the IJob that the ITrigger points to, in the format "group.name".
Public propertyFullName
Returns the 'full name' of the ITrigger in the format "group.name".
Public propertyGroup
Get the group of this ITrigger. If , Scheduler.DefaultGroup will be used.
Public propertyHasAdditionalProperties
Gets a value indicating whether this instance has additional properties that should be considered when for example saving to database.
Public propertyHasMillisecondPrecision
Tells whether this Trigger instance can handle events in millisecond precision.
Public propertyJobDataMap
Get or set the JobDataMap that is associated with the ITrigger.

Changes made to this map during job execution are not re-persisted, and in fact typically result in an illegal state.

Public propertyJobGroup
Gets or sets the name of the associated IJobDetail's group. If set with , Scheduler.DefaultGroup will be used.
Public propertyJobKey
Public propertyJobName
Get or set the name of the associated IJobDetail.
Public propertyKey
Gets the key.
Public propertyMisfireInstruction
Get or set the instruction the IScheduler should be given for handling misfire situations for this ITrigger- the concrete ITrigger type that you are using will have defined a set of additional MISFIRE_INSTRUCTION_XXX constants that may be passed to this method.

If not explicitly set, the default value is InstructionNotSet.

Public propertyName
Get or sets the name of this ITrigger.
Public propertyPriority
The priority of a ITrigger acts as a tie breaker such that if two ITriggers have the same scheduled fire time, then Quartz will do its best to give the one with the higher priority first access to a worker thread.
Public propertyStartTimeUtc
The time at which the trigger's scheduling should start. May or may not be the first actual fire time of the trigger, depending upon the type of trigger and the settings of the other properties of the trigger. However the first actual first time will not be before this date.
Top
Methods

  NameDescription
Public methodClone
Creates a new object that is a copy of the current instance.
Public methodCompareTo
Compare the next fire time of this ITrigger to that of another by comparing their keys, or in other words, sorts them according to the natural (i.e. alphabetical) order of their keys.
Public methodComputeFirstFireTimeUtc
This method should not be used by the Quartz client.
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Overrides ObjectEquals(Object).)
Public methodEquals(AbstractTrigger)
Trigger equality is based upon the equality of the TriggerKey.
Public methodExecutionComplete
This method should not be used by the Quartz client.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetFireTimeAfter
Returns the next time at which the ITrigger will fire, after the given time. If the trigger will not fire after the given time, will be returned.
Public methodGetHashCode
Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ObjectGetHashCode.)
Public methodGetMayFireAgain
Used by the IScheduler to determine whether or not it is possible for this ITrigger to fire again.

If the returned value is then the IScheduler may remove the ITrigger from the IJobStore.

Public methodGetNextFireTimeUtc
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).
Public methodGetPreviousFireTimeUtc
Returns the previous time at which the ITrigger fired. If the trigger has not yet fired, will be returned.
Public methodGetScheduleBuilder
Public methodGetTriggerBuilder
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetNextFireTimeUtc
Public methodSetPreviousFireTimeUtc
Public methodToString
Return a simple string representation of this object.
(Overrides ObjectToString.)
Public methodTriggered
This method should not be used by the Quartz client.
Public methodUpdateAfterMisfire
This method should not be used by the Quartz client.

To be implemented by the concrete classes that extend this class.

The implementation should update the ITrigger's state based on the MISFIRE_INSTRUCTION_XXX that was selected when the ITrigger was created.

Public methodUpdateWithNewCalendar
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 methodValidate
Validates whether the properties of the IJobDetail are valid for submission into a IScheduler.
Protected methodValidateMisfireInstruction
Validates the misfire instruction.
Top
Remarks

ITriggers have a name and group associated with them, which should uniquely identify them within a single IScheduler.

ITriggers are the 'mechanism' by which IJob s are scheduled. Many ITrigger s can point to the same IJob, but a single ITrigger can only point to one IJob.

Triggers can 'send' parameters/data to IJobs by placing contents into the JobDataMap on the ITrigger.

See Also

Reference