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

Public Member Functions

 CalgaryTimeServer (string name, IPAddress address, int orgId)
 
 CalgaryTimeServer (int id, int stratum, string country, string name, IPAddress address, string v6Address, bool?useDns, bool?poolMember, string location, string displayLocation, string organization, string geo, string server, string serviceArea, string accessDetails, string accessPolicy, bool?notification, string autoKey, string symKey, string symUrl, string contact, string providerPage, string providerUrl, DateTime updated)
 
- Public Member Functions inherited from Ntp.Analyzer.Objects.PersistentObject
override bool Equals (object obj)
 
override int GetHashCode ()
 
void SetId (int id)
 Sets the identifier after the object have been stored in persistent storage. More...
 
override string ToString ()
 Returns a string that represents the current PersistentObject. More...
 

Public Attributes

override bool IsPoolMember => poolMember ?? false
 
override bool ShouldNotify => notification ?? false
 
override bool ShouldUseDns => useDns ?? false
 
- Public Attributes inherited from Ntp.Analyzer.Objects.TimeServer
bool IsOrgServer => Id < 5000
 

Properties

override string AccessDetails [get]
 
override string AccessPolicy [get]
 
override IPAddress Address [get]
 
override string AutoKey [get]
 
override string Contact [get]
 
override string Country [get]
 
override string DisplayLocation [get]
 
override string Geo [get]
 
override string Location [get]
 
override string Name [get]
 
override string Organization [get]
 
override string ProviderPage [get]
 
override string ProviderUrl [get]
 
override string Server [get]
 
override string ServiceArea [get]
 
override int Stratum [get]
 
override string SymKey [get]
 
override string SymUrl [get]
 
override DateTime Updated [get]
 
override string V6Address [get]
 
- Properties inherited from Ntp.Analyzer.Objects.TimeServer
abstract string AccessDetails [get]
 
abstract string AccessPolicy [get]
 
abstract IPAddress Address [get]
 
abstract string AutoKey [get]
 
abstract string Contact [get]
 
abstract string Country [get]
 
abstract string DisplayLocation [get]
 
abstract string Geo [get]
 
abstract bool IsPoolMember [get]
 
abstract string Location [get]
 
abstract string Name [get]
 
abstract string Organization [get]
 
abstract string ProviderPage [get]
 
abstract string ProviderUrl [get]
 
abstract string Server [get]
 
abstract string ServiceArea [get]
 
abstract bool ShouldNotify [get]
 
abstract bool ShouldUseDns [get]
 
abstract int Stratum [get]
 
abstract string SymKey [get]
 
abstract string SymUrl [get]
 
abstract DateTime Updated [get]
 
abstract string V6Address [get]
 
- Properties inherited from Ntp.Analyzer.Objects.PersistentObject
int Id [get, private set]
 Gets the identifier. More...
 
bool NewObject [get, protected set]
 Gets a value indicating whether this PersistentObject is a new object which does not yet exists in the peristing storage (database etc). More...
 

Static Private Member Functions

static string Scrub (string input)
 

Private Attributes

readonly bool notification
 
readonly bool poolMember
 
readonly bool useDns
 

Additional Inherited Members

- Protected Member Functions inherited from Ntp.Analyzer.Objects.TimeServer
 TimeServer ()
 
 TimeServer (int id)
 
- Protected Member Functions inherited from Ntp.Analyzer.Objects.PersistentObject
 PersistentObject (int id)
 Initializes a new instance of the PersistentObject class. More...
 
 PersistentObject ()
 Initializes a new instance of the PersistentObject class. More...
 

Detailed Description

Definition at line 27 of file CalgaryTimeServer.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Objects.CalgaryTimeServer.CalgaryTimeServer ( string  name,
IPAddress  address,
int  orgId 
)
inline

Definition at line 29 of file CalgaryTimeServer.cs.

30  {
31  Name = name;
32  Address = address;
33  SetId(orgId);
34  }
void SetId(int id)
Sets the identifier after the object have been stored in persistent storage.
Ntp.Analyzer.Objects.CalgaryTimeServer.CalgaryTimeServer ( int  id,
int  stratum,
string  country,
string  name,
IPAddress  address,
string  v6Address,
bool?  useDns,
bool?  poolMember,
string  location,
string  displayLocation,
string  organization,
string  geo,
string  server,
string  serviceArea,
string  accessDetails,
string  accessPolicy,
bool?  notification,
string  autoKey,
string  symKey,
string  symUrl,
string  contact,
string  providerPage,
string  providerUrl,
DateTime  updated 
)
inline

Definition at line 36 of file CalgaryTimeServer.cs.

44  : base(id)
45  {
46  Stratum = stratum;
47  Country = country;
48  Name = name;
49  Address = address;
50  V6Address = Scrub(v6Address);
51  this.useDns = useDns;
52  this.poolMember = poolMember;
53  Location = location;
54  DisplayLocation = displayLocation;
55  Organization = Scrub(organization);
56  Geo = Scrub(geo);
57  Location = location;
58  Server = server;
59  ServiceArea = serviceArea;
60  AccessDetails = accessDetails;
61  AccessPolicy = Scrub(accessPolicy);
63  AutoKey = Scrub(autoKey);
64  SymKey = Scrub(symKey);
65  SymUrl = Scrub(symUrl);
66  Contact = contact;
67  ProviderPage = providerPage;
68  ProviderUrl = providerUrl;
69  Updated = updated;
70  }

Member Function Documentation

static string Ntp.Analyzer.Objects.CalgaryTimeServer.Scrub ( string  input)
inlinestaticprivate

Definition at line 122 of file CalgaryTimeServer.cs.

123  {
124  if (input == null || input.Trim() == string.Empty)
125  return null;
126 
127  return input.Trim();
128  }

Member Data Documentation

override bool Ntp.Analyzer.Objects.CalgaryTimeServer.IsPoolMember => poolMember ?? false

Definition at line 88 of file CalgaryTimeServer.cs.

readonly bool Ntp.Analyzer.Objects.CalgaryTimeServer.notification
private

Definition at line 72 of file CalgaryTimeServer.cs.

readonly bool Ntp.Analyzer.Objects.CalgaryTimeServer.poolMember
private

Definition at line 73 of file CalgaryTimeServer.cs.

override bool Ntp.Analyzer.Objects.CalgaryTimeServer.ShouldNotify => notification ?? false

Definition at line 106 of file CalgaryTimeServer.cs.

override bool Ntp.Analyzer.Objects.CalgaryTimeServer.ShouldUseDns => useDns ?? false

Definition at line 86 of file CalgaryTimeServer.cs.

readonly bool Ntp.Analyzer.Objects.CalgaryTimeServer.useDns
private

Definition at line 74 of file CalgaryTimeServer.cs.

Property Documentation

override string Ntp.Analyzer.Objects.CalgaryTimeServer.AccessDetails
get

Definition at line 104 of file CalgaryTimeServer.cs.

override string Ntp.Analyzer.Objects.CalgaryTimeServer.AccessPolicy
get

Definition at line 102 of file CalgaryTimeServer.cs.

override IPAddress Ntp.Analyzer.Objects.CalgaryTimeServer.Address
get

Definition at line 82 of file CalgaryTimeServer.cs.

override string Ntp.Analyzer.Objects.CalgaryTimeServer.AutoKey
get

Definition at line 108 of file CalgaryTimeServer.cs.

override string Ntp.Analyzer.Objects.CalgaryTimeServer.Contact
get

Definition at line 114 of file CalgaryTimeServer.cs.

override string Ntp.Analyzer.Objects.CalgaryTimeServer.Country
get

Definition at line 78 of file CalgaryTimeServer.cs.

override string Ntp.Analyzer.Objects.CalgaryTimeServer.DisplayLocation
get

Definition at line 92 of file CalgaryTimeServer.cs.

override string Ntp.Analyzer.Objects.CalgaryTimeServer.Geo
get

Definition at line 96 of file CalgaryTimeServer.cs.

override string Ntp.Analyzer.Objects.CalgaryTimeServer.Location
get

Definition at line 90 of file CalgaryTimeServer.cs.

override string Ntp.Analyzer.Objects.CalgaryTimeServer.Name
get

Definition at line 80 of file CalgaryTimeServer.cs.

override string Ntp.Analyzer.Objects.CalgaryTimeServer.Organization
get

Definition at line 94 of file CalgaryTimeServer.cs.

override string Ntp.Analyzer.Objects.CalgaryTimeServer.ProviderPage
get

Definition at line 116 of file CalgaryTimeServer.cs.

override string Ntp.Analyzer.Objects.CalgaryTimeServer.ProviderUrl
get

Definition at line 118 of file CalgaryTimeServer.cs.

override string Ntp.Analyzer.Objects.CalgaryTimeServer.Server
get

Definition at line 98 of file CalgaryTimeServer.cs.

override string Ntp.Analyzer.Objects.CalgaryTimeServer.ServiceArea
get

Definition at line 100 of file CalgaryTimeServer.cs.

override int Ntp.Analyzer.Objects.CalgaryTimeServer.Stratum
get

Definition at line 76 of file CalgaryTimeServer.cs.

override string Ntp.Analyzer.Objects.CalgaryTimeServer.SymKey
get

Definition at line 110 of file CalgaryTimeServer.cs.

override string Ntp.Analyzer.Objects.CalgaryTimeServer.SymUrl
get

Definition at line 112 of file CalgaryTimeServer.cs.

override DateTime Ntp.Analyzer.Objects.CalgaryTimeServer.Updated
get

Definition at line 120 of file CalgaryTimeServer.cs.

override string Ntp.Analyzer.Objects.CalgaryTimeServer.V6Address
get

Definition at line 84 of file CalgaryTimeServer.cs.


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