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

Public Member Functions

 DefaultPeerSummaryPageBuilder (PeerSummaryPageConfiguration config)
 
override Stream Generate ()
 

Public Attributes

override IEnumerable< StreamDestinationDestinations => config.Destinations.Destinations
 

Private Attributes

readonly PeerSummaryPageConfiguration config
 

Additional Inherited Members

- Protected Member Functions inherited from Ntp.Analyzer.Page.PageBuilderBase
Stream ToStream (string text)
 
- Properties inherited from Ntp.Analyzer.Page.PageBuilderBase
abstract IEnumerable< StreamDestinationDestinations [get]
 
- Properties inherited from Ntp.Analyzer.Export.IStreamGenerator
IEnumerable< StreamDestinationDestinations [get]
 

Detailed Description

Definition at line 31 of file DefaultPeerSummaryPageBuilder.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Page.DefaultPeerSummaryPageBuilder.DefaultPeerSummaryPageBuilder ( PeerSummaryPageConfiguration  config)
inline

Definition at line 33 of file DefaultPeerSummaryPageBuilder.cs.

34  {
35  this.config = config;
36  }

Member Function Documentation

override Stream Ntp.Analyzer.Page.DefaultPeerSummaryPageBuilder.Generate ( )
inlinevirtual

Implements Ntp.Analyzer.Page.PageBuilderBase.

Definition at line 42 of file DefaultPeerSummaryPageBuilder.cs.

43  {
44  // Create page
45  var peerSummaryPage = new DefaultPeerSummaryPageRender(config.WebPath, config.ServerName);
46  peerSummaryPage.Add(new DefaultPeerSummaryGraphRender(config.HostId, config, config.Graphs));
47 
48  // Generate HTML
49  var htmlRender = new HtmlRenderer(peerSummaryPage);
50  string html = htmlRender.Render();
51 
52  return ToStream(html);
53  }
string ServerName
Gets the name of the server in the HostSubConfiguration.
int HostId
Gets the host identifier in the HostSubConfiguration.
Uri WebPath
Gets the web path in the HostSubConfiguration.
Renders IHtmlObjects into plain text for display in browsers.
Definition: HtmlRenderer.cs:31
IEnumerable< GraphSetConfiguration > Graphs
Gets the graphs to show on this page.

Member Data Documentation

readonly PeerSummaryPageConfiguration Ntp.Analyzer.Page.DefaultPeerSummaryPageBuilder.config
private

Definition at line 38 of file DefaultPeerSummaryPageBuilder.cs.

override IEnumerable<StreamDestination> Ntp.Analyzer.Page.DefaultPeerSummaryPageBuilder.Destinations => config.Destinations.Destinations

Definition at line 40 of file DefaultPeerSummaryPageBuilder.cs.


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