NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Common.Process.JobDescription Class Referenceabstract

Base class for jobs following the GoF Command Pattern. More...

Inheritance diagram for Ntp.Common.Process.JobDescription:

Public Member Functions

override string ToString ()
 Returns a string that represents the current JobDescription. More...
 

Public Attributes

string Name => Configuration.ConfigName
 Gets the name. More...
 

Protected Member Functions

 JobDescription (IJobConfiguration config, LogBase log)
 Initializes a new instance of the JobDescription class. More...
 
abstract void InternalExecute ()
 Implementing method for descendants. More...
 

Package Functions

void Execute ()
 Perform execution of this instance. More...
 

Properties

IJobConfiguration Configuration [get]
 Gets the configuration for the job. More...
 
abstract string JobType [get]
 Gets the type of the job as text. More...
 
LogBase Log [get]
 Gets the log to use when registering events. More...
 
abstract int Priority [get]
 Gets the priority to use when scheduling jobs. More...
 
abstract ThreadType ThreadType [get]
 Gets a value indicating whether this JobDescription should run as a single thread. More...
 

Detailed Description

Base class for jobs following the GoF Command Pattern.

Definition at line 29 of file JobDescription.cs.

Constructor & Destructor Documentation

Ntp.Common.Process.JobDescription.JobDescription ( IJobConfiguration  config,
LogBase  log 
)
inlineprotected

Initializes a new instance of the JobDescription class.

Parameters
configConfiguration for the job.
logLog to use when registering events.

Definition at line 36 of file JobDescription.cs.

37  {
38  Configuration = config;
39  Log = log;
40  }
IJobConfiguration Configuration
Gets the configuration for the job.
LogBase Log
Gets the log to use when registering events.

Member Function Documentation

void Ntp.Common.Process.JobDescription.Execute ( )
inlinepackage

Perform execution of this instance.

Definition at line 95 of file JobDescription.cs.

96  {
98  }
abstract void InternalExecute()
Implementing method for descendants.
override string Ntp.Common.Process.JobDescription.ToString ( )
inline

Returns a string that represents the current JobDescription.

Returns
A string that represents the current JobDescription.

Definition at line 82 of file JobDescription.cs.

83  {
84  return Name;
85  }

Member Data Documentation

Property Documentation

IJobConfiguration Ntp.Common.Process.JobDescription.Configuration
get

Gets the configuration for the job.

The configuration.

Definition at line 70 of file JobDescription.cs.

Referenced by Ntp.Common.Process.Scheduler.Add().

abstract string Ntp.Common.Process.JobDescription.JobType
get

Gets the type of the job as text.

The type of the job.

Definition at line 58 of file JobDescription.cs.

Referenced by Ntp.Analyzer.Monitor.Server.Billboard.Jobs(), and Ntp.Common.Log.LogExtensions.SchedulerJobAdded().

LogBase Ntp.Common.Process.JobDescription.Log
getprotected

Gets the log to use when registering events.

The log.

Definition at line 76 of file JobDescription.cs.

abstract int Ntp.Common.Process.JobDescription.Priority
get
abstract ThreadType Ntp.Common.Process.JobDescription.ThreadType
get

Gets a value indicating whether this JobDescription should run as a single thread.

true if single thread; otherwise, false.

Definition at line 52 of file JobDescription.cs.

Referenced by Ntp.Common.Process.Scheduler.RunOneCycle().


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