NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Data.DataFace Class Reference

Singleton facade class used to access memory persistent data. More...

Collaboration diagram for Ntp.Analyzer.Data.DataFace:

Static Public Member Functions

static void Initialize (LogBase log)
 

Public Attributes

AssociationEntryMapper AssociationEntries => new AssociationEntryMapper(log)
 Gets the association entry mapper. More...
 
DriftReadingDatabaseMapper DriftReadings => new DriftReadingDatabaseMapper(Hosts, log)
 Gets the host drift reading mapper. More...
 
HostIoReadingDatabaseMapper HostIoReadings => new HostIoReadingDatabaseMapper(Hosts, log)
 Gets the host IO reading mapper. More...
 
HostReadingDatabaseMapper HostReadings => new HostReadingDatabaseMapper(Hosts, Peers, log)
 Gets the host reading mapper. More...
 
PeerReadingDatabaseMapper PeerReadings => new PeerReadingDatabaseMapper(Hosts, Peers, log)
 Gets the peer reading mapper. More...
 

Properties

HostDatabaseMapper Hosts [get]
 Gets the host mapper. More...
 
static DataFace Instance [get, private set]
 Gets the Singleton instance. More...
 
PeerActivityDatabaseMapper PeerActivities [get]
 Gets the peer activity mapper. More...
 
PeerDatabaseMapper Peers [get]
 Gets the peer mapper. More...
 
ReadingBulkMapper ReadingBulks [get]
 Gets the reading bulk mapper. More...
 
TimeServerDatabaseMapper Servers [get]
 Gets the time server mapper. More...
 

Private Member Functions

 DataFace (LogBase log)
 Initializes a new instance of the Ntp.Analyzer.Data.DataFace class. More...
 

Private Attributes

readonly LogBase log
 

Detailed Description

Singleton facade class used to access memory persistent data.

Definition at line 30 of file DataFace.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Data.DataFace.DataFace ( LogBase  log)
inlineprivate

Initializes a new instance of the Ntp.Analyzer.Data.DataFace class.

Definition at line 35 of file DataFace.cs.

36  {
37  this.log = log;
38  Hosts = new HostDatabaseMapper(log);
40  Peers = new PeerDatabaseMapper(Servers, log);
43  }
readonly LogBase log
Definition: DataFace.cs:45
HostDatabaseMapper Hosts
Gets the host mapper.
Definition: DataFace.cs:57
TimeServerDatabaseMapper Servers
Gets the time server mapper.
Definition: DataFace.cs:69
ReadingBulkMapper ReadingBulks
Gets the reading bulk mapper.
Definition: DataFace.cs:105
PeerDatabaseMapper Peers
Gets the peer mapper.
Definition: DataFace.cs:63
OR/M mapper for ReadingBulk objects. Reading bulks are not persisted.
PeerActivityDatabaseMapper PeerActivities
Gets the peer activity mapper.
Definition: DataFace.cs:99

Member Function Documentation

static void Ntp.Analyzer.Data.DataFace.Initialize ( LogBase  log)
inlinestatic

Definition at line 113 of file DataFace.cs.

Referenced by Ntp.Analyzer.Process.Initializer.InitializeDatabase().

114  {
115  Instance = new DataFace(log);
116  }
DataFace(LogBase log)
Initializes a new instance of the Ntp.Analyzer.Data.DataFace class.
Definition: DataFace.cs:35
static DataFace Instance
Gets the Singleton instance.
Definition: DataFace.cs:51

Here is the caller graph for this function:

Member Data Documentation

AssociationEntryMapper Ntp.Analyzer.Data.DataFace.AssociationEntries => new AssociationEntryMapper(log)

Gets the association entry mapper.

The the association entry mapper.

Definition at line 111 of file DataFace.cs.

Referenced by Ntp.Analyzer.Process.Initializer.InitializeData(), and Ntp.Analyzer.Process.Description.PeerStatJob.SaveResult().

DriftReadingDatabaseMapper Ntp.Analyzer.Data.DataFace.DriftReadings => new DriftReadingDatabaseMapper(Hosts, log)

Gets the host drift reading mapper.

The host drift reading mapper.

Definition at line 93 of file DataFace.cs.

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

HostIoReadingDatabaseMapper Ntp.Analyzer.Data.DataFace.HostIoReadings => new HostIoReadingDatabaseMapper(Hosts, log)

Gets the host IO reading mapper.

The host IO reading mapper.

Definition at line 81 of file DataFace.cs.

Referenced by Ntp.Analyzer.Process.Description.HostIoStatJob.InternalExecute(), and Ntp.Analyzer.Graph.TrafficGraph.LoadData().

HostReadingDatabaseMapper Ntp.Analyzer.Data.DataFace.HostReadings => new HostReadingDatabaseMapper(Hosts, Peers, log)

Gets the host reading mapper.

The host readings.

Definition at line 75 of file DataFace.cs.

Referenced by Ntp.Analyzer.Process.Description.HostStatJob.InternalExecute(), Ntp.Analyzer.Graph.HostGraph.LoadData(), and Ntp.Analyzer.Graph.PeerGraph.LoadData().

readonly LogBase Ntp.Analyzer.Data.DataFace.log
private

Definition at line 45 of file DataFace.cs.

PeerReadingDatabaseMapper Ntp.Analyzer.Data.DataFace.PeerReadings => new PeerReadingDatabaseMapper(Hosts, Peers, log)

Gets the peer reading mapper.

The peer readings.

Definition at line 87 of file DataFace.cs.

Referenced by Ntp.Analyzer.Graph.PeerGraph.LoadData(), and Ntp.Analyzer.Process.Description.PeerStatJob.SaveResult().

Property Documentation

DataFace Ntp.Analyzer.Data.DataFace.Instance
staticgetprivate set

Gets the Singleton instance.

The instance.

Definition at line 51 of file DataFace.cs.

Referenced by Ntp.Analyzer.Statistics.StatusBuilder.Build(), Ntp.Analyzer.Page.BootstrapHostPageBuilder.Generate(), Ntp.Analyzer.Page.DefaultHostPageBuilder.Generate(), Ntp.Analyzer.Process.Description.PeerStatJob.Import(), Ntp.Analyzer.Import.NtpctlHostImporter.Initialize(), Ntp.Analyzer.Import.NtpdcImporter.Initialize(), Ntp.Analyzer.Import.NtpqHostImporter.Initialize(), Ntp.Analyzer.Process.Description.PeerStatJob.Initialize(), Ntp.Analyzer.Process.Initializer.InitializeData(), Ntp.Analyzer.Process.Description.BulkStatJob.InternalExecute(), Ntp.Analyzer.Process.Description.TrafficGraphJob.InternalExecute(), Ntp.Analyzer.Process.Description.PeerGraphJob.InternalExecute(), Ntp.Analyzer.Process.Description.PeerGraphPageJob.InternalExecute(), Ntp.Analyzer.Process.Description.HostGraphJob.InternalExecute(), Ntp.Analyzer.Process.Description.HostIoStatJob.InternalExecute(), Ntp.Analyzer.Process.Description.HostGraphPageJob.InternalExecute(), Ntp.Analyzer.Process.Description.HostPageJob.InternalExecute(), Ntp.Analyzer.Process.Description.HostStatJob.InternalExecute(), Ntp.Analyzer.Process.Description.DriftStatJob.InternalExecute(), Ntp.Analyzer.Process.Description.PeerPageJob.InternalExecute(), Ntp.Analyzer.Graph.HostGraph.LoadData(), Ntp.Analyzer.Graph.PeerGraph.LoadData(), Ntp.Analyzer.Graph.TrafficGraph.LoadData(), Ntp.Analyzer.Render.Summary.DefaultPeerSummaryGraphRender.Render(), Ntp.Analyzer.Render.Summary.BootstrapSummaryGraphRender.Render(), Ntp.Analyzer.Render.Peer.BootstrapPeerGraphRender.Render(), and Ntp.Analyzer.Process.Description.PeerStatJob.SaveResult().

TimeServerDatabaseMapper Ntp.Analyzer.Data.DataFace.Servers
get

Gets the time server mapper.

The servers.

Definition at line 69 of file DataFace.cs.

Referenced by Ntp.Analyzer.Process.Initializer.InitializeData().


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