NTP Analyzer
0.8.2
Analyze the operation of time servers
|
OR/M mapper for table timeServer. More...
Protected Member Functions | |
override TimeServer | FetchExternal (int id) |
Fetch time server from external source. More... | |
override void | Insert (TimeServer item) |
override void | ReadContent () |
override void | Update (TimeServer item) |
Protected Member Functions inherited from Ntp.Analyzer.Data.Sql.SqlDatabaseMapper< TimeServer > | |
SqlDatabaseMapper (LogBase log) | |
void | AddItem (T item) |
void | Close () |
IDbDataParameter | CreateParameter (string name, object value) |
abstract void | Insert (T item) |
void | Open () |
string | PrepareInsertSql (string sql) |
virtual string | PrepareSql (string sql) |
void | RemoveItem (T item) |
abstract void | Update (T item) |
Protected Attributes | |
override string | CreateSql |
override string | TableName => "timeServer" |
override bool | UseCache => true |
Protected Attributes inherited from Ntp.Analyzer.Data.Sql.SqlDatabaseMapper< TimeServer > | |
IEnumerable< T > | Content |
readonly object | MapperLocker |
IDataReader | Reader |
Package Functions | |
TimeServerDatabaseMapper (LogBase log) | |
Private Attributes | |
const string | InsertSql |
const string | SelectSql |
Additional Inherited Members | |
Public Member Functions inherited from Ntp.Analyzer.Data.Sql.SqlDatabaseMapper< TimeServer > | |
void | CheckTable () |
override IEnumerator< T > | GetEnumerator () |
Read all data from table in a sequential manner. More... | |
void | Save (T item) |
Properties inherited from Ntp.Analyzer.Data.Sql.SqlDatabaseMapper< TimeServer > | |
IDbCommand | Command [get, private set] |
abstract string | CreateSql [get] |
abstract string | TableName [get] |
T | this[int id] [get] |
abstract bool | UseCache [get] |
OR/M mapper for table timeServer.
Definition at line 36 of file TimeServerDatabaseMapper.cs.
|
inlinepackage |
Definition at line 38 of file TimeServerDatabaseMapper.cs.
|
inlineprotectedvirtual |
Fetch time server from external source.
id | The time server identifier used on support.ntp.org. |
Reimplemented from Ntp.Analyzer.Data.Sql.SqlDatabaseMapper< TimeServer >.
Definition at line 102 of file TimeServerDatabaseMapper.cs.
References Ntp.Analyzer.Data.Import.TimeServerWebAdapter.Create(), and e.
|
inlineprotected |
Definition at line 127 of file TimeServerDatabaseMapper.cs.
References Ntp.Analyzer.Objects.TimeServer.AccessDetails, Ntp.Analyzer.Objects.TimeServer.AccessPolicy, Ntp.Analyzer.Objects.TimeServer.Address, Ntp.Analyzer.Objects.TimeServer.AutoKey, Ntp.Analyzer.Objects.TimeServer.Contact, Ntp.Analyzer.Objects.TimeServer.Country, Ntp.Analyzer.Objects.TimeServer.DisplayLocation, e, Ntp.Analyzer.Objects.TimeServer.Geo, Ntp.Analyzer.Objects.PersistentObject.Id, Ntp.Analyzer.Objects.TimeServer.IsPoolMember, Ntp.Analyzer.Objects.TimeServer.Location, Ntp.Analyzer.Objects.TimeServer.Name, Ntp.Analyzer.Objects.TimeServer.Organization, Ntp.Analyzer.Objects.TimeServer.ProviderPage, Ntp.Analyzer.Objects.TimeServer.ProviderUrl, Ntp.Analyzer.Objects.TimeServer.Server, Ntp.Analyzer.Objects.TimeServer.ServiceArea, Ntp.Analyzer.Objects.PersistentObject.SetId(), Ntp.Analyzer.Objects.TimeServer.ShouldNotify, Ntp.Analyzer.Objects.TimeServer.ShouldUseDns, Ntp.Analyzer.Objects.TimeServer.Stratum, Ntp.Analyzer.Objects.TimeServer.SymKey, Ntp.Analyzer.Objects.TimeServer.SymUrl, Ntp.Analyzer.Objects.TimeServer.Updated, and Ntp.Analyzer.Objects.TimeServer.V6Address.
|
inlineprotectedvirtual |
Implements Ntp.Analyzer.Data.Sql.SqlDatabaseMapper< TimeServer >.
Definition at line 195 of file TimeServerDatabaseMapper.cs.
References e.
|
inlineprotected |
Definition at line 272 of file TimeServerDatabaseMapper.cs.
References Ntp.Analyzer.Data.Log.LogMessages.DatabaseNoUpdate.
|
protected |
Definition at line 70 of file TimeServerDatabaseMapper.cs.
|
private |
Definition at line 52 of file TimeServerDatabaseMapper.cs.
|
private |
Definition at line 43 of file TimeServerDatabaseMapper.cs.
|
protected |
Definition at line 68 of file TimeServerDatabaseMapper.cs.
|
protected |
Definition at line 66 of file TimeServerDatabaseMapper.cs.