Schedule Class

Represents a schedule defined using UNIX crontab syntax.

Definition

Namespace: Gemstone.Scheduling
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.171 -- Release Build+4f4d518944b843c059d40b523747cd410a7c216d
public class Schedule : IProvideStatus
Inheritance
Object    Schedule
Implements
IProvideStatus

Remarks

Operators:

There are several ways of specifying multiple date/time values in a field:

  • The comma (',') operator specifies a list of values, for example: "1,3,4,7,8"
  • The dash ('-') operator specifies a range of values, for example: "1-6", which is equivalent to "1,2,3,4,5,6"
  • The asterisk ('*') operator specifies all possible values for a field. For example, an asterisk in the hour time field would be equivalent to 'every hour' (subject to matching other specified fields).
  • The slash ('/') operator (called "step"), which can be used to skip a given number of values. For example, "*/3" in the hour time field is equivalent to "0,3,6,9,12,15,18,21". So "*" specifies 'every hour' but the "*/3" means only those hours divisible by 3.

Fields:

+---------------- minute (0 - 59) | +------------- hour (0 - 23) | | +---------- day of month (1 - 31) | | | +------- month (1 - 12) | | | | +---- day of week (0 - 7) (Sunday=0 or 7) | | | | | * * * * *

Each of the patterns from the first five fields may be either * (an asterisk), which matches all legal values, or a list of elements separated by commas.

See http://en.wikipedia.org/wiki/Cron for more information.

Constructors

Schedule Initializes a new instance of the Schedule class.
Schedule(String, String, Boolean) Initializes a new instance of the Schedule class.

Properties

DayPart Gets the SchedulePart of the Schedule that represents day of month DateTimePart.
DaysOfWeekPart Gets the SchedulePart of the Schedule that represents day of week DateTimePart.
Description Gets a description of the Rule.
HourPart Gets the SchedulePart of the Schedule that represents hour DateTimePart.
LastDueAt Gets the DateTime when the Schedule was last due.
MinutePart Gets the SchedulePart of the Schedule that represents minute DateTimePart.
MonthPart Gets the SchedulePart of the Schedule that represents month DateTimePart.
Name Gets or sets the name of the Schedule.
Rule Gets or sets the rule of the Schedule defined in UNIX crontab syntax.
Status Gets the current status of the Schedule.
UseLocalTime Gets or sets a flag that determines whether the scheduler uses local time or UTC time for scheduling.

Methods

Equals Determines whether the specified Schedule is equal to the current Schedule.
(Overrides ObjectEquals(Object))
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode Gets a hash code for the Schedule.
(Overrides ObjectGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IsDue Checks whether the Schedule is due at the present system time.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
NextTimeDue Determines the nearest timestamp past the given timestamp that matches the schedule.
PreviousTimeDue Determines the nearest timestamp older than the given timestamp that matches the schedule.
ToString Gets the string representation of Schedule.
(Overrides ObjectToString)

Extension Methods

GetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
GetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)

See Also