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

Protected Member Functions

override void ReadFromStream ()
 
- Protected Member Functions inherited from Ntp.Analyzer.Import.NtpctlImporter< AssociationEntry >
 NtpctlImporter (int hostId, LogBase log)
 
AssociationEntry ParseLines (string peer, string stats)
 

Protected Attributes

override string ErrorMessage => LogMessage.ImportPeerError
 
- Protected Attributes inherited from Ntp.Analyzer.Import.NtpctlImporter< AssociationEntry >
override string Arguments
 
override string Command
 

Package Functions

 NtpctlPeerImporter (int hostId, LogBase log)
 

Detailed Description

Definition at line 27 of file NtpctlPeerImporter.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Import.NtpctlPeerImporter.NtpctlPeerImporter ( int  hostId,
LogBase  log 
)
inlinepackage

Definition at line 29 of file NtpctlPeerImporter.cs.

30  : base(hostId, log)
31  {
32  }

Member Function Documentation

override void Ntp.Analyzer.Import.NtpctlPeerImporter.ReadFromStream ( )
inlineprotected

Definition at line 36 of file NtpctlPeerImporter.cs.

37  {
38  // Skip header
39  Reader.ReadLine();
40  Reader.ReadLine();
41 
42  while (Reader.Peek() != -1)
43  {
44  string peer = Reader.ReadLine();
45  string stat = Reader.ReadLine();
46  var entry = ParseLines(peer, stat);
47  Entries.Add(entry);
48  }
49  }
AssociationEntry ParseLines(string peer, string stats)

Member Data Documentation

override string Ntp.Analyzer.Import.NtpctlPeerImporter.ErrorMessage => LogMessage.ImportPeerError
protected

Definition at line 34 of file NtpctlPeerImporter.cs.


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