Interface IConfigurationService
Defines a contract for Repository Management Service methods used by nodes.
Namespace: Nevatech.Vsb.Repository.Services
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public interface IConfigurationService
Methods
GetFile(Guid, Int32)
Returns file corresponding to provided identifier.
Declaration
File GetFile(Guid nodeKey, int fileId)
Parameters
Type | Name | Description |
---|---|---|
Guid | nodeKey | Calling node's unique identifier. |
Int32 | fileId | File identifier. |
Returns
Type | Description |
---|---|
File | File corresponding to provided identifier. |
GetMetadata(Guid, Int32)
Returns metadata for the specified service version specific to the requesting node.
Declaration
XmlNode[] GetMetadata(Guid nodeKey, int serviceVersionId)
Parameters
Type | Name | Description |
---|---|---|
Guid | nodeKey | Calling node's unique identifier. |
Int32 | serviceVersionId | Identifier of the service version which metadata needs to be retrieved. |
Returns
Type | Description |
---|---|
XmlNode[] | Metadata for the specified service version specific to the requesting node. |
GetNode(Guid)
Returns the node corresponding to provided key with its underlying objects.
Declaration
NodeDefinition GetNode(Guid nodeKey)
Parameters
Type | Name | Description |
---|---|---|
Guid | nodeKey | Node unique identifier. |
Returns
Type | Description |
---|---|
NodeDefinition | Fully populated hierarchy of objects composing the node. |
GetNodeConfiguration(Guid, DateTime)
Returns runtime configuration of the specified node.
Declaration
NodeConfiguration GetNodeConfiguration(Guid nodeKey, DateTime nodeLastUpdate)
Parameters
Type | Name | Description |
---|---|---|
Guid | nodeKey | Node global identifier. |
DateTime | nodeLastUpdate | Configuration timestamp on the node side. Only changes with the more recent timestamp will be fully populated in the returned result. |
Returns
Type | Description |
---|---|
NodeConfiguration | Runtime configuration of the specified node. |
GetProductConfiguration(Guid, Int32, Nullable<DateTime>)
Returns runtime configuration for the requested product hosted on the specified node.
Declaration
ProductConfiguration GetProductConfiguration(Guid nodeKey, int productId, DateTime? productLastUpdate)
Parameters
Type | Name | Description |
---|---|---|
Guid | nodeKey | Node global identifier. |
Int32 | productId | Product identifier. |
Nullable<DateTime> | productLastUpdate | Product configuration timestamp on the node's side. Only changes made later this time will be included in the result. If parameter is NULL then full configuration will be returned. |
Returns
Type | Description |
---|---|
ProductConfiguration | Runtime configuration for the requested product hosted on the specified node. |
GetServiceConfiguration(Guid, Int32)
Returns runtime configuration of the requested service version hosted on the specified node.
Declaration
ServiceConfiguration GetServiceConfiguration(Guid nodeKey, int serviceVersionId)
Parameters
Type | Name | Description |
---|---|---|
Guid | nodeKey | Node global identifier. |
Int32 | serviceVersionId | Identifier of the service version which runtime configuration needs to be retrieved. |
Returns
Type | Description |
---|---|
ServiceConfiguration | Runtime configuration of the requested service version hosted on the specified node. |
UpdateNodeInstanceState(NodeInstanceState)
Updates node instance last heartbeat timestamp, sets node current health status, and returns node current configuration timestamp.
Declaration
DateTime UpdateNodeInstanceState(NodeInstanceState state)
Parameters
Type | Name | Description |
---|---|---|
NodeInstanceState | state | Node instance current state. |
Returns
Type | Description |
---|---|
DateTime | Node's most recent configuration timestamp. |
Exceptions
Type | Condition |
---|---|
FaultException<> | Thrown if the specified node does not exist. |
Write(MonitoringBatch)
Writes provided monitoring data that includes collections of transactions, activity records, and captured messages to underlying persistent store.
Declaration
void Write(MonitoringBatch batch)
Parameters
Type | Name | Description |
---|---|---|
MonitoringBatch | batch | Monitoring data that need to be recorded. |