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

Public Attributes

string ConfigWebPath => webPathString ?? "/"
 
override string FilePath => ConfigFilePath
 Gets the file path. More...
 
IEnumerable< HostGraphConfigurationHostGraphs => hostGraphs
 
IEnumerable< HostPageConfigurationHostPages => hostPages
 
IEnumerable< PeerGraphConfigurationPeerGraphs => peerGraphs
 
IEnumerable< PeerPageConfigurationPeerPages => peerPages
 
IEnumerable< PeerSummaryPageConfigurationPeerSummaryPages => peerSummaryPages
 
string ServerName => serverName ?? "localhost"
 
ServerType ServerType => serverType ?? ServerType.Ntpq
 
Uri WebPath => webPath ?? new Uri("/", UriKind.Relative)
 
- Public Attributes inherited from Ntp.Analyzer.Config.Node.ConfigurationNode
virtual string FilePath => Parent.FilePath + SubPath
 
virtual string SubPath => string.Empty
 

Package Functions

 HostConfiguration (string configName, int hostId, string serverName, ServerType?serverType, string filePath, Uri webPath, AboutPageConfiguration aboutPage, HostGraphPageConfiguration hostGraphPage, StatConfiguration hostIoStats, StatConfiguration hostStats, MenuConfiguration menu, PeerGraphPageConfiguration peerGraphPage, StatConfiguration peerStats, DriftStatConfiguration driftStats, IEnumerable< HostGraphConfiguration > hostGraphs, IEnumerable< HostPageConfiguration > hostPages, IEnumerable< PeerGraphConfiguration > peerGraphs, IEnumerable< PeerPageConfiguration > peerPages, IEnumerable< PeerSummaryPageConfiguration > peerSummaryPages, IEnumerable< TrafficGraphConfiguration > trafficGraphs)
 
- Package Functions inherited from Ntp.Analyzer.Config.Node.ConfigurationNode
virtual void Assemble ()
 

Properties

AboutPageConfiguration AboutPage [get]
 
string ConfigFilePath [get]
 
DriftStatConfiguration DriftStats [get]
 
HostGraphPageConfiguration HostGraphPage [get]
 
int HostId [get]
 
StatConfiguration HostIoStats [get]
 
StatConfiguration HostStats [get]
 
MenuConfiguration Menu [get]
 
PeerGraphPageConfiguration PeerGraphPage [get]
 
StatConfiguration PeerStats [get]
 
List< TrafficGraphConfigurationTrafficGraphs [get]
 
- 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]
 

Private Attributes

readonly List< HostGraphConfigurationhostGraphs
 
readonly List< HostPageConfigurationhostPages
 
readonly List< PeerGraphConfigurationpeerGraphs
 
readonly List< PeerPageConfigurationpeerPages
 
readonly List< PeerSummaryPageConfigurationpeerSummaryPages
 
readonly string serverName
 
readonly ServerType serverType
 
readonly Uri webPath
 
readonly string webPathString
 

Additional Inherited Members

- Protected Member Functions inherited from Ntp.Analyzer.Config.Node.ConfigurationNode
 ConfigurationNode (string name)
 

Detailed Description

Definition at line 33 of file HostConfiguration.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Config.Node.HostConfiguration.HostConfiguration ( string  configName,
int  hostId,
string  serverName,
ServerType serverType,
string  filePath,
Uri  webPath,
AboutPageConfiguration  aboutPage,
HostGraphPageConfiguration  hostGraphPage,
StatConfiguration  hostIoStats,
StatConfiguration  hostStats,
MenuConfiguration  menu,
PeerGraphPageConfiguration  peerGraphPage,
StatConfiguration  peerStats,
DriftStatConfiguration  driftStats,
IEnumerable< HostGraphConfiguration hostGraphs,
IEnumerable< HostPageConfiguration hostPages,
IEnumerable< PeerGraphConfiguration peerGraphs,
IEnumerable< PeerPageConfiguration peerPages,
IEnumerable< PeerSummaryPageConfiguration peerSummaryPages,
IEnumerable< TrafficGraphConfiguration trafficGraphs 
)
inlinepackage

Definition at line 35 of file HostConfiguration.cs.

57  : base(configName)
58  {
59  HostId = hostId;
60  ConfigFilePath = filePath;
61  AboutPage = aboutPage;
62  HostGraphPage = hostGraphPage;
63  HostIoStats = hostIoStats;
64  HostStats = hostStats;
65  Menu = menu;
66  PeerGraphPage = peerGraphPage;
67  PeerStats = peerStats;
68  DriftStats = driftStats;
69  this.serverName = serverName;
70  this.serverType = serverType;
71  this.hostPages = new List<HostPageConfiguration>(hostPages);
72  this.hostGraphs = new List<HostGraphConfiguration>(hostGraphs);
73  this.peerSummaryPages = new List<PeerSummaryPageConfiguration>(peerSummaryPages);
74  this.peerPages = new List<PeerPageConfiguration>(peerPages);
75  this.peerGraphs = new List<PeerGraphConfiguration>(peerGraphs);
76  TrafficGraphs = new List<TrafficGraphConfiguration>(trafficGraphs);
77  this.webPath = webPath;
78  webPathString = webPath?.OriginalString;
79  }
readonly List< PeerSummaryPageConfiguration > peerSummaryPages
readonly List< PeerGraphConfiguration > peerGraphs
readonly List< HostGraphConfiguration > hostGraphs
readonly List< HostPageConfiguration > hostPages
List< TrafficGraphConfiguration > TrafficGraphs
readonly List< PeerPageConfiguration > peerPages

Member Data Documentation

string Ntp.Analyzer.Config.Node.HostConfiguration.ConfigWebPath => webPathString ?? "/"

Definition at line 116 of file HostConfiguration.cs.

override string Ntp.Analyzer.Config.Node.HostConfiguration.FilePath => ConfigFilePath

Gets the file path.

HostConfiguration is a file path root.

The file path.

Definition at line 112 of file HostConfiguration.cs.

readonly List<HostGraphConfiguration> Ntp.Analyzer.Config.Node.HostConfiguration.hostGraphs
private

Definition at line 81 of file HostConfiguration.cs.

IEnumerable<HostGraphConfiguration> Ntp.Analyzer.Config.Node.HostConfiguration.HostGraphs => hostGraphs
readonly List<HostPageConfiguration> Ntp.Analyzer.Config.Node.HostConfiguration.hostPages
private

Definition at line 82 of file HostConfiguration.cs.

IEnumerable<HostPageConfiguration> Ntp.Analyzer.Config.Node.HostConfiguration.HostPages => hostPages
readonly List<PeerGraphConfiguration> Ntp.Analyzer.Config.Node.HostConfiguration.peerGraphs
private

Definition at line 83 of file HostConfiguration.cs.

IEnumerable<PeerGraphConfiguration> Ntp.Analyzer.Config.Node.HostConfiguration.PeerGraphs => peerGraphs
readonly List<PeerPageConfiguration> Ntp.Analyzer.Config.Node.HostConfiguration.peerPages
private

Definition at line 84 of file HostConfiguration.cs.

IEnumerable<PeerPageConfiguration> Ntp.Analyzer.Config.Node.HostConfiguration.PeerPages => peerPages
readonly List<PeerSummaryPageConfiguration> Ntp.Analyzer.Config.Node.HostConfiguration.peerSummaryPages
private

Definition at line 85 of file HostConfiguration.cs.

IEnumerable<PeerSummaryPageConfiguration> Ntp.Analyzer.Config.Node.HostConfiguration.PeerSummaryPages => peerSummaryPages
readonly string Ntp.Analyzer.Config.Node.HostConfiguration.serverName
private

Definition at line 86 of file HostConfiguration.cs.

string Ntp.Analyzer.Config.Node.HostConfiguration.ServerName => serverName ?? "localhost"
readonly ServerType Ntp.Analyzer.Config.Node.HostConfiguration.serverType
private

Definition at line 87 of file HostConfiguration.cs.

ServerType Ntp.Analyzer.Config.Node.HostConfiguration.ServerType => serverType ?? ServerType.Ntpq

Definition at line 101 of file HostConfiguration.cs.

readonly Uri Ntp.Analyzer.Config.Node.HostConfiguration.webPath
private

Definition at line 88 of file HostConfiguration.cs.

Uri Ntp.Analyzer.Config.Node.HostConfiguration.WebPath => webPath ?? new Uri("/", UriKind.Relative)

Definition at line 118 of file HostConfiguration.cs.

readonly string Ntp.Analyzer.Config.Node.HostConfiguration.webPathString
private

Definition at line 89 of file HostConfiguration.cs.

Property Documentation

AboutPageConfiguration Ntp.Analyzer.Config.Node.HostConfiguration.AboutPage
get
string Ntp.Analyzer.Config.Node.HostConfiguration.ConfigFilePath
get

Definition at line 105 of file HostConfiguration.cs.

DriftStatConfiguration Ntp.Analyzer.Config.Node.HostConfiguration.DriftStats
get

Definition at line 134 of file HostConfiguration.cs.

HostGraphPageConfiguration Ntp.Analyzer.Config.Node.HostConfiguration.HostGraphPage
get
int Ntp.Analyzer.Config.Node.HostConfiguration.HostId
get

Definition at line 93 of file HostConfiguration.cs.

StatConfiguration Ntp.Analyzer.Config.Node.HostConfiguration.HostIoStats
get

Definition at line 126 of file HostConfiguration.cs.

StatConfiguration Ntp.Analyzer.Config.Node.HostConfiguration.HostStats
get

Definition at line 122 of file HostConfiguration.cs.

MenuConfiguration Ntp.Analyzer.Config.Node.HostConfiguration.Menu
get

Definition at line 138 of file HostConfiguration.cs.

PeerGraphPageConfiguration Ntp.Analyzer.Config.Node.HostConfiguration.PeerGraphPage
get
StatConfiguration Ntp.Analyzer.Config.Node.HostConfiguration.PeerStats
get

Definition at line 130 of file HostConfiguration.cs.

List<TrafficGraphConfiguration> Ntp.Analyzer.Config.Node.HostConfiguration.TrafficGraphs
get

Definition at line 170 of file HostConfiguration.cs.


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