Class Metabank.SectionHost
Represents metadata for Host
Inheritance
System.Object
Metabank.SectionHost
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.Sky.dll
public sealed class SectionHost : Metabank.SectionRegionBase, INamed
Properties
Returns true if host is dynamic - that is: a physical representation of host gets created/torn at the runtime of cluster.
The Dynamic host section represents a prototype of (possibly) many host instances spawn in the Sky.
Every particular instance of dynamic host gets a HOST-unique signature that can be supplied to host resolution service
to get actual network addresses for particular host
Declaration
public bool Dynamic { get; }
Property Value
Type |
Description |
System.Boolean |
|
Returns true for Host nodes that are process host
Declaration
public bool IsProcessHost { get; }
Property Value
Type |
Description |
System.Boolean |
|
Returns true when this host has zone governor application in its role
Declaration
public bool IsZGov { get; }
Property Value
Type |
Description |
System.Boolean |
|
Returns true for ZGov nodes that are failover lock service nodes which are used when primary nodes fail
Declaration
public bool IsZGovLockFailover { get; }
Property Value
Type |
Description |
System.Boolean |
|
Navigates to a named child region or NOC. The search is done using case-insensitive comparison, however
the underlying file system may be case-sensitive and must be supplied the exact name
Declaration
public override Metabank.SectionRegionBase this[string name] { get; }
Parameters
Type |
Name |
Description |
System.String |
name |
|
Property Value
Overrides
Returns the NOC that this host is under
Declaration
public Metabank.SectionNOC NOC { get; }
Property Value
Returns the name of the operating system that this host operates on. The value is required or exception is thrown
Declaration
public string OS { get; }
Property Value
Type |
Description |
System.String |
|
Returns the parent zone that this host is in
Declaration
public Metabank.SectionZone ParentZone { get; }
Property Value
Returns a role app catalog section for the role that this host has in the Sky
Declaration
public Metabank.SectionRole Role { get; }
Property Value
Returns a name of the role (as defined by the attribute in host confog file) that this host has in the Sky
Declaration
public string RoleName { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
public override string RootNodeName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Methods
Gets the information for the best suitable binary packages on this host for the named app
Declaration
public IEnumerable<Metabank.SectionApplication.AppPackage> GetAppPackages(string appName)
Parameters
Type |
Name |
Description |
System.String |
appName |
Metabase application name which should resolve in App catalog
|
Returns
Gets an application configuration tree for the particular named application on this host.
This method traverses the whole region catalog and calculates the effective configuration tree for this host -
the one that will get supplied into the application container process-wide.
The traversal is done in the following order: MetabaseRoot->Role->App->[Regions]->NOC->[Zones]->Host.
Declaration
public IConfigSectionNode GetEffectiveAppConfig(string appName, bool latest = false)
Parameters
Type |
Name |
Description |
System.String |
appName |
Metabase application name which should resolve in App catalog
|
System.Boolean |
latest |
Pass true to bypass the metabase cache on read so the config tree is recalculated
|
Returns
Returns true if this zone has direct or indirect parent zone governor above it, optionally examining higher-level NOCs.
Declaration
public bool HasDirectOrIndirectParentZoneGovernor(Metabank.SectionHost zgovHost, bool? iAmZoneGovernor = default(bool? ), bool transcendNOC = false)
Parameters
Type |
Name |
Description |
Metabank.SectionHost |
zgovHost |
|
System.Nullable<System.Boolean> |
iAmZoneGovernor |
|
System.Boolean |
transcendNOC |
|
Returns
Type |
Description |
System.Boolean |
|
Returns true if this zone has direct or indirect parent zone governor above it, optionally examining higher-level NOCs.
Declaration
public bool HasDirectOrIndirectParentZoneGovernor(string zgovHost, bool? iAmZoneGovernor = default(bool? ), bool transcendNOC = false)
Parameters
Type |
Name |
Description |
System.String |
zgovHost |
|
System.Nullable<System.Boolean> |
iAmZoneGovernor |
|
System.Boolean |
transcendNOC |
|
Returns
Type |
Description |
System.Boolean |
|
Returns the first/primary host that runs the parent Zone governor for this host.
Null returned for top-level hosts that do not have zone governors higher than themselves in this NOC unless transcendNOC is true
in which case the governor from higher-level NOC may be returned
Declaration
public Metabank.SectionHost ParentZoneGovernorPrimaryHost(bool transcendNOC = false)
Parameters
Type |
Name |
Description |
System.Boolean |
transcendNOC |
|
Returns
Validate(Metabank.ValidationContext)
Declaration
public override void Validate(Metabank.ValidationContext ctx)
Parameters
Overrides
Implements
Extension Methods