NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Config.Node.Page.PeerPageConfiguration Class Reference
Inheritance diagram for Ntp.Analyzer.Config.Node.Page.PeerPageConfiguration:
Collaboration diagram for Ntp.Analyzer.Config.Node.Page.PeerPageConfiguration:

Public Member Functions

Uri GetLink (int peerId)
 Gets the link related to specified peer. More...
 

Public Attributes

bool FixedRun => fixedRun ?? true
 
int Frequency => frequency ?? 240
 
IEnumerable< PeerGraphPageConfigurationGraphPages => graphPages
 Gets the 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
 
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

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

Properties

Uri ConfigLink [get]
 
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< PeerGraphPageConfigurationgraphPages
 
readonly List< GraphSetConfigurationgraphs
 
readonly bool initialRun
 
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

Definition at line 34 of file PeerPageConfiguration.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Config.Node.Page.PeerPageConfiguration.PeerPageConfiguration ( string  configName,
int?  frequency,
bool?  initialRun,
bool?  fixedRun,
DateTimeKind?  showUtc,
PageTheme theme,
string  title,
IEnumerable< GraphSetConfiguration graphs,
DestinationCollection  destinations,
Uri  link 
)
inlinepackage

Definition at line 36 of file PeerPageConfiguration.cs.

47  : base(configName, destinations, link)
48  {
49  this.frequency = frequency;
50  this.initialRun = initialRun;
51  this.fixedRun = fixedRun;
52  this.showUtc = showUtc;
53  this.theme = theme;
54  this.graphs = new List<GraphSetConfiguration>(graphs);
55  graphPages = new List<PeerGraphPageConfiguration>();
56  Title = title;
57  ConfigLink = link;
58  }
readonly List< PeerGraphPageConfiguration > graphPages
readonly List< GraphSetConfiguration > graphs

Member Function Documentation

void Ntp.Analyzer.Config.Node.Page.PeerPageConfiguration.AttachGraphPage ( PeerGraphPageConfiguration  graphPage)
inlinepackage

Definition at line 120 of file PeerPageConfiguration.cs.

121  {
122  graphPages.Add(graphPage);
123  }
readonly List< PeerGraphPageConfiguration > graphPages
Uri Ntp.Analyzer.Config.Node.Page.PeerPageConfiguration.GetLink ( int  peerId)
inline

Gets the link related to specified peer.

Returns
The link.
Parameters
peerIdPeer identifier.

Definition at line 115 of file PeerPageConfiguration.cs.

References Ntp.Analyzer.Config.Node.Navigation.Link.

Referenced by Ntp.Analyzer.Config.Node.Page.PeerSummaryPageConfiguration.GetPeerLink().

116  {
117  return WebPath.Append(Link, peerId.ToString(CultureInfo.InvariantCulture)).AppendExtension(".html");
118  }
Uri WebPath
Gets the web path in the HostSubConfiguration.

Here is the caller graph for this function:

Member Data Documentation

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

Definition at line 60 of file PeerPageConfiguration.cs.

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

Definition at line 108 of file PeerPageConfiguration.cs.

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

Definition at line 61 of file PeerPageConfiguration.cs.

int Ntp.Analyzer.Config.Node.Page.PeerPageConfiguration.Frequency => frequency ?? 240

Definition at line 100 of file PeerPageConfiguration.cs.

readonly List<PeerGraphPageConfiguration> Ntp.Analyzer.Config.Node.Page.PeerPageConfiguration.graphPages
private

Definition at line 62 of file PeerPageConfiguration.cs.

IEnumerable<PeerGraphPageConfiguration> Ntp.Analyzer.Config.Node.Page.PeerPageConfiguration.GraphPages => graphPages

Gets the graph pages to be linked from this page.

The graph pages.

Definition at line 92 of file PeerPageConfiguration.cs.

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

Definition at line 63 of file PeerPageConfiguration.cs.

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

Gets the graphs to be displayed on this page.

The peer graphs.

Definition at line 86 of file PeerPageConfiguration.cs.

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

Definition at line 64 of file PeerPageConfiguration.cs.

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

Definition at line 104 of file PeerPageConfiguration.cs.

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

Definition at line 65 of file PeerPageConfiguration.cs.

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

Definition at line 74 of file PeerPageConfiguration.cs.

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

Definition at line 66 of file PeerPageConfiguration.cs.

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

Definition at line 70 of file PeerPageConfiguration.cs.

Property Documentation

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

Definition at line 96 of file PeerPageConfiguration.cs.

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

Definition at line 78 of file PeerPageConfiguration.cs.


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