Class Node
Represent "Sentinet" node instance.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public class Node : DomainObjectBase, IValidator, IExtensibleDataObject, IEquatable<Node>, IFolderEntity
Constructors
Node()
Initializes a new instance of the Node object.
Declaration
public Node()
Fields
DefaultHeartbeatInterval
Default heartbeat interval (2 minutes).
Declaration
public static readonly TimeSpan DefaultHeartbeatInterval
Field Value
Type | Description |
---|---|
TimeSpan |
MinimumHeartbeatInterval
Minimum allowed heartbeat interval (5 seconds).
Declaration
public static readonly TimeSpan MinimumHeartbeatInterval
Field Value
Type | Description |
---|---|
TimeSpan |
Properties
FolderId
Gets or sets identifier of folder that node belongs to.
Declaration
public int? FolderId { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Int32> |
FriendlyName
Gets or sets node friendly name.
Declaration
public string FriendlyName { get; set; }
Property Value
Type | Description |
---|---|
String |
HeartbeatInterval
Gets or sets node's heartbeat interval (time between two subsequent live checks). Default is two minutes.
Declaration
public TimeSpan HeartbeatInterval { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
IsEnabled
Gets or sets flag indicating that node is enabled and hosting (ready to host) service endpoints.
Declaration
public bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
LastUpdate
Gets timestamp of the node's configuration.
Declaration
public DateTime LastUpdate { get; }
Property Value
Type | Description |
---|---|
DateTime |
NodeType
Gets or sets this node's type.
Declaration
public NodeType NodeType { get; set; }
Property Value
Type | Description |
---|---|
NodeType |
ObjectType
Gets object type identifier.
Declaration
public override EntityType ObjectType { get; }
Property Value
Type | Description |
---|---|
EntityType |
Overrides
Settings
Gets node's advanced configuration settings.
Declaration
public NodeSettings Settings { get; }
Property Value
Type | Description |
---|---|
NodeSettings |
Methods
Equals(Node)
Determines whether the specified node is equal to the current node.
Declaration
public bool Equals(Node other)
Parameters
Type | Name | Description |
---|---|---|
Node | other | The node to compare with the current node. |
Returns
Type | Description |
---|---|
Boolean | True, if nodes are equal. False, if nodes are not equal. |
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
Boolean | True, if objects are equal. False, if objects are not equal. |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | Hash code of the current instance. |
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string that represents the current object. |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public override bool Validate()
Returns
Type | Description |
---|---|
Boolean | True if state is valid; otherwise, false. |