22 using System.Collections.Generic;
28 namespace Ntp.Analyzer.Import
62 while (Reader.Peek() != -1)
64 string peer = Reader.ReadLine();
65 string stat = Reader.ReadLine();
66 var entry = ParseLines(peer, stat);
75 Log.OpenNtpUnsynced();
80 IEnumerable<Peer> peerList = peers.Where(p => p.Ip == entry.
Remote).ToList();
84 switch (peerList.Count())
87 peer = peerList.Single();
90 Log.PeerNotFound(host.Name, entry.
Remote);
93 Log.MultiplePeersFound(host.Name, entry.
Remote);
97 Log.Syncing(host.Name, peer.
Name);
100 Entries.Add(reading);
double Jitter
Gets the dispersion of the peer in milliseconds.
double Offset
Gets the offset of the peer in milliseconds.
NtpctlHostImporter(Host host, ReadingBulk bulk, LogBase log)
PeerDatabaseMapper Peers
Gets the peer mapper.
string Remote
Gets the address of the remote peer.
Singleton facade class used to access memory persistent data.
readonly ReadingBulk bulk
void CreateEntry(AssociationEntry entry)
const string ImportHostError
static DataFace Instance
Gets the Singleton instance.
override void ReadFromStream()
override void Initialize()