-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e726017
commit eb029e2
Showing
30 changed files
with
597 additions
and
504 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
QAction_1/PollingManager/Enums/Column.cs → ...PollingManager/GenericAPI/Enums/Column.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...PollingManager/Enums/ContextMenuOption.cs → ...ger/GenericAPI/Enums/ContextMenuOption.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
QAction_1/PollingManager/Enums/PeriodType.cs → ...ingManager/GenericAPI/Enums/PeriodType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
QAction_1/PollingManager/Enums/State.cs → .../PollingManager/GenericAPI/Enums/State.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
QAction_1/PollingManager/Enums/Status.cs → ...PollingManager/GenericAPI/Enums/Status.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
QAction_1/PollingManager/Enums/Trigger.cs → ...ollingManager/GenericAPI/Enums/Trigger.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...on_1/PollingManager/Pollable/IPollable.cs → ...gManager/GenericAPI/Pollable/IPollable.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...1/PollingManager/Pollable/PollableBase.cs → ...nager/GenericAPI/Pollable/PollableBase.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...llable/PollingManagerConfigurationBase.cs → ...llable/PollingManagerConfigurationBase.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...on_1/PollingManager/Structs/Dependency.cs → ...gManager/GenericAPI/Structs/Dependency.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
QAction_1/Client/Pollable.cs → QAction_1/PollingManager/Pollable.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...n_1/Client/PollingManagerConfiguration.cs → ...ingManager/PollingManagerConfiguration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
|
||
using Skyline.DataMiner.PollingManager; | ||
using Skyline.DataMiner.Scripting; | ||
|
||
/// <summary> | ||
/// DataMiner QAction Class: Polling Manager - Sets. | ||
/// </summary> | ||
public static class QAction | ||
{ | ||
/// <summary> | ||
/// The QAction entry point. | ||
/// </summary> | ||
/// <param name="protocol">Link with SLProtocol process.</param> | ||
public static void Run(SLProtocol protocol) | ||
{ | ||
try | ||
{ | ||
// Get trigger row key. | ||
Trigger trigger = (Trigger)protocol.GetTriggerParameter(); | ||
string rowId = protocol.RowKey(); | ||
|
||
// Updates row with specific key that was triggered by specific column. | ||
PollingManagerContainer | ||
.GetManager(protocol, initTrigger: 1) | ||
.HandleRowUpdate(rowId, trigger.ToColumn()); | ||
} | ||
catch (Exception ex) | ||
{ | ||
protocol.Log( | ||
$"QA{protocol.QActionID}|{protocol.GetTriggerParameter()}|Polling Manager - Sets|Exception thrown:{Environment.NewLine}{ex}", | ||
LogType.Error, | ||
LogLevel.NoLogging); | ||
} | ||
} | ||
} |
7 changes: 3 additions & 4 deletions
7
QAction_3/QAction_3.csproj → QAction_1050/QAction_1050.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net462</TargetFramework> | ||
<TargetFramework>net48</TargetFramework> | ||
<Company>Skyline Communications</Company> | ||
<Copyright>© Skyline Communications</Copyright> | ||
<GenerateDocumentationFile>True</GenerateDocumentationFile> | ||
<LangVersion>7.3</LangVersion> | ||
<AssemblyVersion>2023.1026.2007.32674</AssemblyVersion> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\QAction_1\QAction_1.csproj" /> | ||
<ProjectReference Include="..\QAction_Helper\QAction_Helper.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Skyline.DataMiner.Dev.Protocol" Version="10.1.0.6" /> | ||
<PackageReference Include="Skyline.DataMiner.Dev.Protocol" Version="10.2.0.25" /> | ||
</ItemGroup> | ||
<ProjectExtensions> | ||
<VisualStudio> | ||
<UserProperties DisLinkedXmlFile="..\protocol.xml" DisProjectType="qactionProject" DisLinkId="3" /> | ||
<UserProperties DisLinkedXmlFile="..\protocol.xml" DisProjectType="qactionProject" DisLinkId="1050" /> | ||
</VisualStudio> | ||
</ProjectExtensions> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,32 @@ | ||
using System; | ||
|
||
using Skyline.DataMiner.Protocol.PollingManager; | ||
using Skyline.DataMiner.Protocol.PollingManager.Client; | ||
using Skyline.DataMiner.PollingManager; | ||
using Skyline.DataMiner.Scripting; | ||
using Skyline.Protocol.PollingManager; | ||
|
||
/// <summary> | ||
/// DataMiner QAction Class: After Startup. | ||
/// </summary> | ||
public static class QAction | ||
{ | ||
/// <summary> | ||
/// Runs after startup in order to add/initialize polling manager. | ||
/// The QAction entry point. | ||
/// </summary> | ||
/// <param name="protocol">Link with SLProtocol process.</param> | ||
public static void PollingManagerInit(SLProtocol protocol) | ||
{ | ||
try | ||
{ | ||
var configuration = new PollingManagerConfiguration(protocol); | ||
|
||
// Creates PollingManager instance and adds it to PollingManagerContainer. | ||
PollingManagerContainer.AddManager(protocol, configuration); | ||
} | ||
catch (Exception ex) | ||
{ | ||
protocol.Log($"QA{protocol.QActionID}|{protocol.GetTriggerParameter()}|PollingManagerInit|Exception thrown:{Environment.NewLine}{ex}", LogType.Error, LogLevel.NoLogging); | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Gets called by timer to check for necessary polls. | ||
/// </summary> | ||
/// <param name="protocol">Link with SLProtocol process.</param> | ||
public static void PollingManagerCheck(SLProtocol protocol) | ||
public static void Run(SLProtocol protocol) | ||
{ | ||
try | ||
{ | ||
// Checks PollingManager table for rows that need to be polled. | ||
PollingManagerContainer.GetManager(protocol, 1).CheckForUpdate(); | ||
// Polling Manager Initialization | ||
var configuration = new PollingManagerConfiguration(protocol); | ||
PollingManagerContainer.AddManager(protocol, configuration); | ||
} | ||
catch (Exception ex) | ||
{ | ||
protocol.Log($"QA{protocol.QActionID}|{protocol.GetTriggerParameter()}|PollingManagerCheck|Exception thrown:{Environment.NewLine}{ex}", LogType.Error, LogLevel.NoLogging); | ||
protocol.Log( | ||
$"QA{protocol.QActionID}|{protocol.GetTriggerParameter()}|After Startup|Exception thrown:{Environment.NewLine}{ex}", | ||
LogType.Error, | ||
LogLevel.NoLogging); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net462</TargetFramework> | ||
<TargetFramework>net48</TargetFramework> | ||
<Company>Skyline Communications</Company> | ||
<Copyright>© Skyline Communications</Copyright> | ||
<GenerateDocumentationFile>True</GenerateDocumentationFile> | ||
<AssemblyVersion>2023.1101.0733.49300</AssemblyVersion> | ||
<LangVersion>7.3</LangVersion> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\QAction_1\QAction_1.csproj" /> | ||
<ProjectReference Include="..\QAction_Helper\QAction_Helper.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Skyline.DataMiner.Dev.Protocol" Version="10.1.0.6" /> | ||
<PackageReference Include="Skyline.DataMiner.Dev.Protocol" Version="10.2.0.25" /> | ||
</ItemGroup> | ||
<ProjectExtensions> | ||
<VisualStudio> | ||
<UserProperties DisLinkedXmlFile="..\protocol.xml" DisProjectType="qactionProject" DisLinkId="2" /> | ||
<UserProperties DisLinkId="2" DisProjectType="qactionProject" DisLinkedXmlFile="..\protocol.xml" /> | ||
</VisualStudio> | ||
</ProjectExtensions> | ||
</Project> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.