NTP Analyzer
0.8.2
Analyze the operation of time servers
|
A description of job schedule rules. More...
Public Member Functions | |
JobScheduleDescription (bool initialRun, bool fixedRun, int frequency) | |
Initializes a new instance of the JobScheduleDescription class. More... | |
DateTime | CalculateNextRun (DateTime start) |
Calculates the time of next run according to description parameters. More... | |
ScheduledJob | CreateNew (Job job, DateTime start, double offset) |
Creates a new scheduled job based on description and parameters. More... | |
ScheduledJob | CreatePostponed (Job job) |
Creates a postponed job schedule. More... | |
Public Attributes | |
bool | CanMove => !(InitialRun && !initialRunDone) && !FixedRun |
Gets a value indicating whether this description allow schedules to be moved. More... | |
Properties | |
bool | FixedRun [get] |
Gets a value indicating whether this JobScheduleDescription has a fixed schedule frequency, eg. cannot be moved. More... | |
int | Frequency [get] |
Gets the schedule frequency in minutes. More... | |
bool | InitialRun [get] |
Gets a value indicating whether this JobScheduleDescription should do an initial run upon first call. More... | |
Private Attributes | |
bool | initialRunDone |
A description of job schedule rules.
Definition at line 29 of file JobScheduleDescription.cs.
|
inline |
Initializes a new instance of the JobScheduleDescription class.
initialRun | If set to true initial run. |
fixedRun | If set to true fixed run. |
frequency | Frequency in minutes. |
Definition at line 37 of file JobScheduleDescription.cs.
|
inline |
Calculates the time of next run according to description parameters.
start | Start. |
Definition at line 78 of file JobScheduleDescription.cs.
Referenced by Ntp.Common.Process.Scheduler.QueueJob().
|
inline |
Creates a new scheduled job based on description and parameters.
job | Job. |
start | Start. |
offset | Offset. |
Definition at line 115 of file JobScheduleDescription.cs.
Referenced by Ntp.Common.Process.Scheduler.QueueJob().
|
inline |
Creates a postponed job schedule.
job | Job. |
Definition at line 131 of file JobScheduleDescription.cs.
Referenced by Ntp.Common.Process.Scheduler.PostponeJob().
bool Ntp.Common.Process.JobScheduleDescription.CanMove => !(InitialRun && !initialRunDone) && !FixedRun |
Gets a value indicating whether this description allow schedules to be moved.
true
if this instance can move; otherwise, false
.
Definition at line 71 of file JobScheduleDescription.cs.
Referenced by Ntp.Common.Process.Scheduler.QueueJob().
|
private |
Definition at line 45 of file JobScheduleDescription.cs.
|
get |
Gets a value indicating whether this JobScheduleDescription has a fixed schedule frequency, eg. cannot be moved.
true
if fixed run; otherwise, false
.
Definition at line 59 of file JobScheduleDescription.cs.
Referenced by Ntp.Analyzer.Monitor.Server.Billboard.Jobs(), Ntp.Analyzer.Monitor.Server.Billboard.Proc(), Ntp.Analyzer.Monitor.Server.Billboard.Running(), Ntp.Analyzer.Monitor.Server.Billboard.Schedule(), and Ntp.Common.Log.LogExtensions.SchedulerJobAdded().
|
get |
Gets the schedule frequency in minutes.
The frequency.
Definition at line 65 of file JobScheduleDescription.cs.
Referenced by Ntp.Analyzer.Monitor.Server.Billboard.Jobs(), Ntp.Analyzer.Monitor.Server.Billboard.Proc(), Ntp.Common.Process.Scheduler.QueueJob(), Ntp.Analyzer.Monitor.Server.Billboard.Running(), Ntp.Common.Process.Scheduler.RunOneCycle(), Ntp.Analyzer.Monitor.Server.Billboard.Schedule(), and Ntp.Common.Log.LogExtensions.SchedulerJobAdded().
|
get |
Gets a value indicating whether this JobScheduleDescription should do an initial run upon first call.
true
if initial run; otherwise, false
.
Definition at line 52 of file JobScheduleDescription.cs.
Referenced by Ntp.Analyzer.Monitor.Server.Billboard.Jobs(), Ntp.Analyzer.Monitor.Server.Billboard.Proc(), Ntp.Analyzer.Monitor.Server.Billboard.Running(), and Ntp.Analyzer.Monitor.Server.Billboard.Schedule().