NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Statistics.StatusBuilder Class Reference
Inheritance diagram for Ntp.Analyzer.Statistics.StatusBuilder:

Public Member Functions

void Build ()
 

Protected Member Functions

 StatusBuilder (Host host)
 

Properties

List< StatusLineEntries [get]
 
Host Host [get]
 
abstract IList< AssociationEntryPeerAssociations [get]
 

Detailed Description

Definition at line 29 of file StatusBuilder.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Statistics.StatusBuilder.StatusBuilder ( Host  host)
inlineprotected

Definition at line 31 of file StatusBuilder.cs.

32  {
33  Host = host;
34  Entries = new List<StatusLine>();
35  }

Member Function Documentation

void Ntp.Analyzer.Statistics.StatusBuilder.Build ( )
inline

Definition at line 43 of file StatusBuilder.cs.

References Ntp.Analyzer.Objects.PeerActivity.Host, Ntp.Analyzer.Objects.PersistentObject.Id, Ntp.Analyzer.Data.DataFace.Instance, Ntp.Analyzer.Objects.Peer.Ip, Ntp.Analyzer.Objects.PeerActivity.Peer, and Ntp.Analyzer.Data.DataFace.PeerActivities.

Referenced by Ntp.Analyzer.Process.Description.HostPageJob.InternalExecute().

44  {
45  var peers = DataFace.Instance.PeerActivities.
46  Where(p => Equals(p.Host, Host) && p.IsActive);
47 
48  foreach (PeerActivity entry in peers)
49  {
50  var peerStatus = PeerAssociations.
51  SingleOrDefault(p => p.Remote == entry.Peer.Ip && p.HostId == entry.Host.Id);
52 
53  if (peerStatus == null)
54  continue;
55 
56  var line = new StatusLine(peerStatus, entry);
57  Entries.Add(line);
58  }
59  }
A status line for an NTP Server containing information about configuration, peer and server details...
Definition: StatusLine.cs:28
Singleton facade class used to access memory persistent data.
Definition: DataFace.cs:30
PeerActivityDatabaseMapper PeerActivities
Gets the peer activity mapper.
Definition: DataFace.cs:99
abstract IList< AssociationEntry > PeerAssociations
static DataFace Instance
Gets the Singleton instance.
Definition: DataFace.cs:51

Here is the caller graph for this function:

Property Documentation

List<StatusLine> Ntp.Analyzer.Statistics.StatusBuilder.Entries
get

Definition at line 39 of file StatusBuilder.cs.

Host Ntp.Analyzer.Statistics.StatusBuilder.Host
getprotected

Definition at line 37 of file StatusBuilder.cs.

abstract IList<AssociationEntry> Ntp.Analyzer.Statistics.StatusBuilder.PeerAssociations
getprotected

Definition at line 41 of file StatusBuilder.cs.


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