NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Process.Description.HostGraphPageJob Class Reference
Inheritance diagram for Ntp.Analyzer.Process.Description.HostGraphPageJob:
Collaboration diagram for Ntp.Analyzer.Process.Description.HostGraphPageJob:

Public Member Functions

 HostGraphPageJob (HostGraphPageConfiguration config, LogBase log)
 
- Public Member Functions inherited from Ntp.Common.Process.JobDescription
override string ToString ()
 Returns a string that represents the current JobDescription. More...
 

Public Attributes

override string JobType => "Host graph pages build"
 
override int Priority => 18
 
override ThreadType ThreadType => ThreadType.MultiThreaded
 
- Public Attributes inherited from Ntp.Common.Process.JobDescription
string Name => Configuration.ConfigName
 Gets the name. More...
 

Protected Member Functions

override void InternalExecute ()
 Implementing method for descendants. More...
 
- Protected Member Functions inherited from Ntp.Analyzer.Process.Description.StreamJob
 StreamJob (IJobConfiguration config, LogBase log)
 
void SaveStream (IStreamGenerator generator)
 
void SaveStream (IStreamGenerator generator, string file)
 
- Protected Member Functions inherited from Ntp.Common.Process.JobDescription
 JobDescription (IJobConfiguration config, LogBase log)
 Initializes a new instance of the JobDescription class. More...
 

Private Attributes

readonly HostGraphPageConfiguration config
 

Additional Inherited Members

- Package Functions inherited from Ntp.Common.Process.JobDescription
void Execute ()
 Perform execution of this instance. More...
 
- Properties inherited from Ntp.Common.Process.JobDescription
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

Definition at line 34 of file HostGraphPageJob.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Process.Description.HostGraphPageJob.HostGraphPageJob ( HostGraphPageConfiguration  config,
LogBase  log 
)
inline

Definition at line 36 of file HostGraphPageJob.cs.

37  : base(config, log)
38  {
39  this.config = config;
40  }
readonly HostGraphPageConfiguration config

Member Function Documentation

override void Ntp.Analyzer.Process.Description.HostGraphPageJob.InternalExecute ( )
inlineprotectedvirtual

Implementing method for descendants.

Implements Ntp.Common.Process.JobDescription.

Definition at line 50 of file HostGraphPageJob.cs.

References Ntp.Analyzer.Config.Node.Destination.GraphSetConfiguration.Graphs, Ntp.Analyzer.Data.DataFace.Hosts, and Ntp.Analyzer.Data.DataFace.Instance.

51  {
52  var host = DataFace.Instance.Hosts.SingleOrDefault(h => h.Id == config.HostId);
53  if (host == null)
54  {
55  Log.HostNotFound(config.HostId);
56  return;
57  }
58 
59  foreach (GraphSetConfiguration graphSet in config.GraphSets)
60  {
61  foreach (GraphBaseConfiguration graph in graphSet.Graphs)
62  {
63  var builder = new GraphPageBuilder(config, host, host.Name, graphSet, graph);
64  string file = config.GetFileName(graphSet, graph);
65 
66  SaveStream(builder, file);
67  }
68  }
69  }
override IEnumerable< GraphSetConfiguration > GraphSets
string Name
Gets the name of this Navigation.ILinkable.
HostDatabaseMapper Hosts
Gets the host mapper.
Definition: DataFace.cs:57
LogBase Log
Gets the log to use when registering events.
void SaveStream(IStreamGenerator generator)
Definition: StreamJob.cs:36
int HostId
Gets the host identifier in the HostSubConfiguration.
Singleton facade class used to access memory persistent data.
Definition: DataFace.cs:30
string GetFileName(GraphSetConfiguration graphSet, GraphBaseConfiguration graph)
readonly HostGraphPageConfiguration config
static DataFace Instance
Gets the Singleton instance.
Definition: DataFace.cs:51

Member Data Documentation

readonly HostGraphPageConfiguration Ntp.Analyzer.Process.Description.HostGraphPageJob.config
private

Definition at line 42 of file HostGraphPageJob.cs.

override string Ntp.Analyzer.Process.Description.HostGraphPageJob.JobType => "Host graph pages build"

Definition at line 46 of file HostGraphPageJob.cs.

override int Ntp.Analyzer.Process.Description.HostGraphPageJob.Priority => 18

Definition at line 48 of file HostGraphPageJob.cs.

override ThreadType Ntp.Analyzer.Process.Description.HostGraphPageJob.ThreadType => ThreadType.MultiThreaded

Definition at line 44 of file HostGraphPageJob.cs.


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