NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Import.ImportFactory Class Reference

Static Public Member Functions

static DriftFileImporter CreateDriftImporter (string file, ServerType type, Host host, ReadingBulk bulk, LogBase log)
 
static Importer< HostReadingCreateHostImporter (string address, ServerType type, Host host, ReadingBulk bulk, LogBase log)
 
static Importer< IoStatsEntryCreateIoImporter (string address, ServerType type, LogBase log)
 
static Importer< AssociationEntryCreatePeerImporter (string address, ServerType type, Host host, LogBase log)
 

Detailed Description

Definition at line 27 of file ImportFactory.cs.

Member Function Documentation

static DriftFileImporter Ntp.Analyzer.Import.ImportFactory.CreateDriftImporter ( string  file,
ServerType  type,
Host  host,
ReadingBulk  bulk,
LogBase  log 
)
inlinestatic

Definition at line 29 of file ImportFactory.cs.

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

35  {
36  return new DriftFileImporter(host, file, bulk, log);
37  }

Here is the caller graph for this function:

static Importer<HostReading> Ntp.Analyzer.Import.ImportFactory.CreateHostImporter ( string  address,
ServerType  type,
Host  host,
ReadingBulk  bulk,
LogBase  log 
)
inlinestatic

Definition at line 39 of file ImportFactory.cs.

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

45  {
46  switch (type)
47  {
48  case ServerType.Ntpdc:
49  return new NtpdcImporter(address, host, bulk, log);
50  case ServerType.Ntpq:
51  return new NtpqHostImporter(address, host, bulk, log);
52  case ServerType.Ntpctl:
53  return new NtpctlHostImporter(host, bulk, log);
54  default:
55  return null;
56  }
57  }

Here is the caller graph for this function:

static Importer<IoStatsEntry> Ntp.Analyzer.Import.ImportFactory.CreateIoImporter ( string  address,
ServerType  type,
LogBase  log 
)
inlinestatic

Definition at line 59 of file ImportFactory.cs.

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

63  {
64  return new IoStatsImporter(address, type == ServerType.Ntpq, log);
65  }

Here is the caller graph for this function:

static Importer<AssociationEntry> Ntp.Analyzer.Import.ImportFactory.CreatePeerImporter ( string  address,
ServerType  type,
Host  host,
LogBase  log 
)
inlinestatic

Definition at line 67 of file ImportFactory.cs.

References Ntp.Analyzer.Objects.PersistentObject.Id.

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

72  {
73  switch (type)
74  {
75  case ServerType.Ntpdc:
76  case ServerType.Ntpq:
77  return new NtpqPeerImporter(address, host.Id, log);
78  case ServerType.Ntpctl:
79  return new NtpctlPeerImporter(host.Id, log);
80  default:
81  return null;
82  }
83  }

Here is the caller graph for this function:


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