NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Config.Node.Page.HostPageConfiguration Class Reference

Configuration for a HTML page showing status and graphs for a hosted NTP server. More...

Inheritance diagram for Ntp.Analyzer.Config.Node.Page.HostPageConfiguration:
Collaboration diagram for Ntp.Analyzer.Config.Node.Page.HostPageConfiguration:

Public Attributes

bool FixedRun => fixedRun ?? true
 
int Frequency => frequency ?? 5
 
IEnumerable< HostGraphPageConfigurationGraphPages => graphPages
 Gets the host graph pages to be linked from this page. More...
 
IEnumerable< GraphSetConfigurationGraphs => graphs
 Gets the graphs to be displayed on this page. More...
 
bool InitialRun => initialRun ?? true
 
bool PoolMember => poolMember ?? false
 
bool QueryDirect => queryDirect ?? false
 
DateTimeKind ShowUtc => showUtc ?? DateTimeKind.Utc
 
override PageTheme Theme => theme ?? PageTheme.Default
 
- Public Attributes inherited from Ntp.Analyzer.Config.Node.Page.PageConfigurationNode
Uri Link => link ?? WebPath.Append(Destinations.First().Location.Replace(FilePath, string.Empty))
 Gets the link to this page. More...
 
string Name => ConfigName
 Gets the name of this Navigation.ILinkable. More...
 
- Public Attributes inherited from Ntp.Analyzer.Config.Node.HostSubConfiguration
override string FilePath => Server.FilePath
 Gets the file path in the HostSubConfiguration. More...
 
int HostId => Server.HostId
 Gets the host identifier in the HostSubConfiguration. More...
 
string ServerName => Server.ServerName
 Gets the name of the server in the HostSubConfiguration. More...
 
ServerType ServerType => Server.ServerType
 Gets the type of the server in the HostSubConfiguration. More...
 
Uri WebPath => Server.WebPath
 Gets the web path in the HostSubConfiguration. More...
 
- Public Attributes inherited from Ntp.Analyzer.Config.Node.ConfigurationNode
virtual string FilePath => Parent.FilePath + SubPath
 
virtual string SubPath => string.Empty
 

Package Functions

 HostPageConfiguration (string configName, int?frequency, bool?initialRun, bool?fixedRun, DateTimeKind?showUtc, PageTheme?theme, string title, bool?poolMember, bool?queryDirect, Uri link, PeerPageConfiguration peerPage, IEnumerable< GraphSetConfiguration > graphs, SummaryCollection summaries, FileCollection destinations)
 
void AttachGraphPage (HostGraphPageConfiguration graphPage)
 
- Package Functions inherited from Ntp.Analyzer.Config.Node.ConfigurationNode
virtual void Assemble ()
 

Properties

Uri ConfigLink [get]
 
PeerPageConfiguration PeerPage [get]
 Gets the peer pages linked to this page. More...
 
SummaryCollection PeerSummaries [get]
 Gets the peer summeries to be linked from this page. More...
 
override string Title [get]
 
- Properties inherited from Ntp.Analyzer.Config.Node.Page.PageConfigurationNode
DestinationCollection Destinations [get]
 Gets the destinations for output generated by this configuration. More...
 
abstract PageTheme Theme [get]
 Gets the theme/template to use for this page. More...
 
abstract string Title [get]
 Gets the title of this page. More...
 
- Properties inherited from Ntp.Analyzer.Config.Node.ConfigurationNode
string ConfigName [get]
 
ConfigurationNode Parent [get, set]
 
- Properties inherited from Ntp.Analyzer.Interface.IConfigurationNode
string ConfigName [get]
 
- Properties inherited from Ntp.Analyzer.Config.Node.Navigation.ILinkable
Uri Link [get]
 
string Name [get]
 
- Properties inherited from Ntp.Common.Process.IJobConfiguration
string ConfigName [get]
 
bool FixedRun [get]
 
int Frequency [get]
 
bool InitialRun [get]
 

Private Attributes

readonly bool fixedRun
 
readonly int frequency
 
readonly List< HostGraphPageConfigurationgraphPages
 
readonly List< GraphSetConfigurationgraphs
 
readonly bool initialRun
 
readonly bool poolMember
 
readonly bool queryDirect
 
readonly DateTimeKind showUtc
 
readonly PageTheme theme
 

Additional Inherited Members

- Protected Member Functions inherited from Ntp.Analyzer.Config.Node.Page.PageConfigurationNode
 PageConfigurationNode (string name, DestinationCollection destinations, Uri link)
 
- Protected Member Functions inherited from Ntp.Analyzer.Config.Node.HostSubConfiguration
 HostSubConfiguration (string name)
 
- Protected Member Functions inherited from Ntp.Analyzer.Config.Node.ConfigurationNode
 ConfigurationNode (string name)
 
- Protected Attributes inherited from Ntp.Analyzer.Config.Node.HostSubConfiguration
HostConfiguration Server => Parent as HostConfiguration
 

Detailed Description

Configuration for a HTML page showing status and graphs for a hosted NTP server.

Definition at line 36 of file HostPageConfiguration.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.HostPageConfiguration ( string  configName,
int?  frequency,
bool?  initialRun,
bool?  fixedRun,
DateTimeKind?  showUtc,
PageTheme theme,
string  title,
bool?  poolMember,
bool?  queryDirect,
Uri  link,
PeerPageConfiguration  peerPage,
IEnumerable< GraphSetConfiguration graphs,
SummaryCollection  summaries,
FileCollection  destinations 
)
inlinepackage

Definition at line 38 of file HostPageConfiguration.cs.

53  : base(configName, destinations, link)
54  {
55  this.frequency = frequency;
56  this.initialRun = initialRun;
57  this.fixedRun = fixedRun;
58  this.showUtc = showUtc;
59  this.theme = theme;
60  this.poolMember = poolMember;
61  this.queryDirect = queryDirect;
62  this.graphs = new List<GraphSetConfiguration>(graphs);
63  graphPages = new List<HostGraphPageConfiguration>();
64  Title = title;
65  PeerPage = peerPage;
66  PeerSummaries = summaries;
67  ConfigLink = link;
68  }
SummaryCollection PeerSummaries
Gets the peer summeries to be linked from this page.
readonly List< HostGraphPageConfiguration > graphPages
PeerPageConfiguration PeerPage
Gets the peer pages linked to this page.
readonly List< GraphSetConfiguration > graphs

Member Function Documentation

void Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.AttachGraphPage ( HostGraphPageConfiguration  graphPage)
inlinepackage

Definition at line 146 of file HostPageConfiguration.cs.

147  {
148  graphPages.Add(graphPage);
149  }
readonly List< HostGraphPageConfiguration > graphPages

Member Data Documentation

readonly bool Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.fixedRun
private

Definition at line 70 of file HostPageConfiguration.cs.

bool Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.FixedRun => fixedRun ?? true

Definition at line 144 of file HostPageConfiguration.cs.

readonly int Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.frequency
private

Definition at line 71 of file HostPageConfiguration.cs.

int Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.Frequency => frequency ?? 5

Definition at line 136 of file HostPageConfiguration.cs.

readonly List<HostGraphPageConfiguration> Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.graphPages
private

Definition at line 72 of file HostPageConfiguration.cs.

IEnumerable<HostGraphPageConfiguration> Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.GraphPages => graphPages

Gets the host graph pages to be linked from this page.

The host graph pages.

Definition at line 132 of file HostPageConfiguration.cs.

readonly List<GraphSetConfiguration> Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.graphs
private

Definition at line 73 of file HostPageConfiguration.cs.

IEnumerable<GraphSetConfiguration> Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.Graphs => graphs

Gets the graphs to be displayed on this page.

The host graphs.

Definition at line 114 of file HostPageConfiguration.cs.

readonly bool Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.initialRun
private

Definition at line 74 of file HostPageConfiguration.cs.

bool Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.InitialRun => initialRun ?? true

Definition at line 140 of file HostPageConfiguration.cs.

readonly bool Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.poolMember
private

Definition at line 75 of file HostPageConfiguration.cs.

bool Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.PoolMember => poolMember ?? false

Definition at line 82 of file HostPageConfiguration.cs.

readonly bool Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.queryDirect
private

Definition at line 76 of file HostPageConfiguration.cs.

bool Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.QueryDirect => queryDirect ?? false

Definition at line 86 of file HostPageConfiguration.cs.

readonly DateTimeKind Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.showUtc
private

Definition at line 77 of file HostPageConfiguration.cs.

DateTimeKind Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.ShowUtc => showUtc ?? DateTimeKind.Utc

Definition at line 94 of file HostPageConfiguration.cs.

readonly PageTheme Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.theme
private

Definition at line 78 of file HostPageConfiguration.cs.

override PageTheme Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.Theme => theme ?? PageTheme.Default

Definition at line 90 of file HostPageConfiguration.cs.

Property Documentation

Uri Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.ConfigLink
get

Definition at line 126 of file HostPageConfiguration.cs.

PeerPageConfiguration Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.PeerPage
get

Gets the peer pages linked to this page.

The peer page.

Definition at line 106 of file HostPageConfiguration.cs.

SummaryCollection Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.PeerSummaries
get

Gets the peer summeries to be linked from this page.

The peer summeries.

Definition at line 122 of file HostPageConfiguration.cs.

override string Ntp.Analyzer.Config.Node.Page.HostPageConfiguration.Title
get

Definition at line 98 of file HostPageConfiguration.cs.


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