NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Monitor.Server.TextCommand.NextJobCommand Class Reference
Inheritance diagram for Ntp.Analyzer.Monitor.Server.TextCommand.NextJobCommand:
Collaboration diagram for Ntp.Analyzer.Monitor.Server.TextCommand.NextJobCommand:

Public Member Functions

 NextJobCommand (string[] args)
 
- Public Member Functions inherited from Ntp.Analyzer.Monitor.Server.TextCommand.MonitorTextCommand
override object Execute ()
 

Protected Member Functions

override string ExecuteTextCommand ()
 
- Protected Member Functions inherited from Ntp.Analyzer.Monitor.Server.TextCommand.MonitorTextCommand
 MonitorTextCommand (string[] args)
 
 MonitorTextCommand ()
 

Additional Inherited Members

- Public Attributes inherited from Ntp.Analyzer.Monitor.Server.TextCommand.MonitorTextCommand
override CommandType CommandType => CommandType.Text
 
- Properties inherited from Ntp.Analyzer.Monitor.Server.TextCommand.MonitorTextCommand
string[] Args [get]
 
- Properties inherited from Ntp.Analyzer.Monitor.Server.Command
abstract CommandType CommandType [get]
 

Detailed Description

Definition at line 26 of file NextJobCommand.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Monitor.Server.TextCommand.NextJobCommand.NextJobCommand ( string[]  args)
inline

Definition at line 28 of file NextJobCommand.cs.

29  : base(args)
30  {
31  }

Member Function Documentation

override string Ntp.Analyzer.Monitor.Server.TextCommand.NextJobCommand.ExecuteTextCommand ( )
inlineprotectedvirtual

Implements Ntp.Analyzer.Monitor.Server.TextCommand.MonitorTextCommand.

Definition at line 33 of file NextJobCommand.cs.

References Ntp.Analyzer.Monitor.Server.ApplicationState.Scheduler.

34  {
35  string jobText = "A job is currently active.";
36 
37  if (ApplicationState.Scheduler.NextJob != null)
38  {
39  jobText =
40  "Next run is " +
41  ApplicationState.Scheduler.NextJob.Job.Description.Name +
42  " (Job ID " +
43  ApplicationState.Scheduler.NextJob.Job.JobId.ToString(CultureInfo.InvariantCulture) +
44  ") scheduled to " +
45  ApplicationState.Scheduler.NextJob.Run.ToLongTimeString();
46  }
47 
48  return jobText;
49  }

The documentation for this class was generated from the following file: