From ecbae62d0734441d864ffe5363f6ee478f82c9e6 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Tue, 22 Aug 2023 15:03:01 -0400 Subject: [PATCH] feat: Add bones for DataStreamSuite TODO (Taha): Migrate source files from edge --- CMakePresets.json | 28 ++++++++++ .../DataStream/DataStream.csproj | 8 +++ .../DataStreamCore/DataStreamCore.csproj | 8 +++ .../DataStreamPublisher.csproj | 15 ++++++ .../DataStreamPublisher/Program.cs | 3 ++ .../DataStreamQueryAnalyzer.csproj | 10 ++++ .../DataStreamQueryAnalyzer/Program.cs | 3 ++ src/DataStreamSuite/DataStreamSuite.sln | 52 +++++++++++++++++++ src/DataStreamSuite/Directory.Build.props | 24 +++++++++ src/DataStreamSuite/PubSub/PubSub.csproj | 8 +++ src/DataStreamSuite/PubSubServer/Program.cs | 3 ++ .../PubSubServer/PubSubServer.csproj | 9 ++++ 12 files changed, 171 insertions(+) create mode 100644 src/DataStreamSuite/DataStream/DataStream.csproj create mode 100644 src/DataStreamSuite/DataStreamCore/DataStreamCore.csproj create mode 100644 src/DataStreamSuite/DataStreamPublisher/DataStreamPublisher.csproj create mode 100644 src/DataStreamSuite/DataStreamPublisher/Program.cs create mode 100644 src/DataStreamSuite/DataStreamQueryAnalyzer/DataStreamQueryAnalyzer.csproj create mode 100644 src/DataStreamSuite/DataStreamQueryAnalyzer/Program.cs create mode 100644 src/DataStreamSuite/DataStreamSuite.sln create mode 100644 src/DataStreamSuite/Directory.Build.props create mode 100644 src/DataStreamSuite/PubSub/PubSub.csproj create mode 100644 src/DataStreamSuite/PubSubServer/Program.cs create mode 100644 src/DataStreamSuite/PubSubServer/PubSubServer.csproj diff --git a/CMakePresets.json b/CMakePresets.json index 514ec05cd..e62fc4faa 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -206,6 +206,20 @@ "cacheVariables": { "CCAPI_LOG_LEVEL": "Trace" } + }, + + { + "name": "data-stream-suite", + "inherits": "spark", + "binaryDir": "${sourceDir}/build/${presetName}", + "cacheVariables": { + "BUILD_API_SERVER": { + "type": "bool", + "value": "OFF" + }, + "DOTNET_BINARY_DIR": "${sourceDir}/build/$/bin/net7.0", + "DOTNET_WINDOWS_BINARY_DIR": "${sourceDir}/build/$/bin/net7.0-windows" + } } ], @@ -346,6 +360,20 @@ "configurePreset": "sparkd-ccapi-diag", "displayName": "Debug (ccapi diag)", "inherits": "sparkd" + }, + + { + "name": "data-stream-suite-debug", + "displayName": "DataStreamSuite (Debug)", + "configurePreset": "data-stream-suite", + "configuration": "Debug" + }, + + { + "name": "data-stream-suite-release", + "displayName": "DataStreamSuite (Release)", + "configurePreset": "data-stream-suite", + "configuration": "Release" } ] } diff --git a/src/DataStreamSuite/DataStream/DataStream.csproj b/src/DataStreamSuite/DataStream/DataStream.csproj new file mode 100644 index 000000000..de3c61cba --- /dev/null +++ b/src/DataStreamSuite/DataStream/DataStream.csproj @@ -0,0 +1,8 @@ + + + + net7.0 + enable + + + diff --git a/src/DataStreamSuite/DataStreamCore/DataStreamCore.csproj b/src/DataStreamSuite/DataStreamCore/DataStreamCore.csproj new file mode 100644 index 000000000..de3c61cba --- /dev/null +++ b/src/DataStreamSuite/DataStreamCore/DataStreamCore.csproj @@ -0,0 +1,8 @@ + + + + net7.0 + enable + + + diff --git a/src/DataStreamSuite/DataStreamPublisher/DataStreamPublisher.csproj b/src/DataStreamSuite/DataStreamPublisher/DataStreamPublisher.csproj new file mode 100644 index 000000000..8a974744a --- /dev/null +++ b/src/DataStreamSuite/DataStreamPublisher/DataStreamPublisher.csproj @@ -0,0 +1,15 @@ + + + + + + + + + Exe + net7.0 + enable + true + + + diff --git a/src/DataStreamSuite/DataStreamPublisher/Program.cs b/src/DataStreamSuite/DataStreamPublisher/Program.cs new file mode 100644 index 000000000..97c3367f1 --- /dev/null +++ b/src/DataStreamSuite/DataStreamPublisher/Program.cs @@ -0,0 +1,3 @@ +using System; + +Console.WriteLine("Starting DataStreamPublisher..."); diff --git a/src/DataStreamSuite/DataStreamQueryAnalyzer/DataStreamQueryAnalyzer.csproj b/src/DataStreamSuite/DataStreamQueryAnalyzer/DataStreamQueryAnalyzer.csproj new file mode 100644 index 000000000..00076cc97 --- /dev/null +++ b/src/DataStreamSuite/DataStreamQueryAnalyzer/DataStreamQueryAnalyzer.csproj @@ -0,0 +1,10 @@ + + + + Exe + net7.0-windows + enable + true + + + diff --git a/src/DataStreamSuite/DataStreamQueryAnalyzer/Program.cs b/src/DataStreamSuite/DataStreamQueryAnalyzer/Program.cs new file mode 100644 index 000000000..636486e70 --- /dev/null +++ b/src/DataStreamSuite/DataStreamQueryAnalyzer/Program.cs @@ -0,0 +1,3 @@ +using System; + +Console.WriteLine("Starting DataStreamQueryAnalyzer..."); diff --git a/src/DataStreamSuite/DataStreamSuite.sln b/src/DataStreamSuite/DataStreamSuite.sln new file mode 100644 index 000000000..46bb55c41 --- /dev/null +++ b/src/DataStreamSuite/DataStreamSuite.sln @@ -0,0 +1,52 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31903.59 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataStream", "DataStream\DataStream.csproj", "{049E6723-E859-4829-B9D9-4B47CEA3054D}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataStreamCore", "DataStreamCore\DataStreamCore.csproj", "{CF444FFC-2A15-44AE-9DEA-9E0E412AB281}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataStreamPublisher", "DataStreamPublisher\DataStreamPublisher.csproj", "{4B5C4B20-6B37-48BD-A774-08932FA57E23}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataStreamQueryAnalyzer", "DataStreamQueryAnalyzer\DataStreamQueryAnalyzer.csproj", "{A3F8AA9E-6AAA-40EC-9E1C-D4FA400F5147}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PubSub", "PubSub\PubSub.csproj", "{9C45C299-14C5-4F8B-903F-49849D89D1DC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PubSubServer", "PubSubServer\PubSubServer.csproj", "{0DBD814A-E17F-4836-8EEE-6E91B00C578F}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {049E6723-E859-4829-B9D9-4B47CEA3054D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {049E6723-E859-4829-B9D9-4B47CEA3054D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {049E6723-E859-4829-B9D9-4B47CEA3054D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {049E6723-E859-4829-B9D9-4B47CEA3054D}.Release|Any CPU.Build.0 = Release|Any CPU + {CF444FFC-2A15-44AE-9DEA-9E0E412AB281}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CF444FFC-2A15-44AE-9DEA-9E0E412AB281}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CF444FFC-2A15-44AE-9DEA-9E0E412AB281}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CF444FFC-2A15-44AE-9DEA-9E0E412AB281}.Release|Any CPU.Build.0 = Release|Any CPU + {4B5C4B20-6B37-48BD-A774-08932FA57E23}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4B5C4B20-6B37-48BD-A774-08932FA57E23}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4B5C4B20-6B37-48BD-A774-08932FA57E23}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4B5C4B20-6B37-48BD-A774-08932FA57E23}.Release|Any CPU.Build.0 = Release|Any CPU + {A3F8AA9E-6AAA-40EC-9E1C-D4FA400F5147}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A3F8AA9E-6AAA-40EC-9E1C-D4FA400F5147}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A3F8AA9E-6AAA-40EC-9E1C-D4FA400F5147}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A3F8AA9E-6AAA-40EC-9E1C-D4FA400F5147}.Release|Any CPU.Build.0 = Release|Any CPU + {9C45C299-14C5-4F8B-903F-49849D89D1DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9C45C299-14C5-4F8B-903F-49849D89D1DC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9C45C299-14C5-4F8B-903F-49849D89D1DC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9C45C299-14C5-4F8B-903F-49849D89D1DC}.Release|Any CPU.Build.0 = Release|Any CPU + {0DBD814A-E17F-4836-8EEE-6E91B00C578F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0DBD814A-E17F-4836-8EEE-6E91B00C578F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0DBD814A-E17F-4836-8EEE-6E91B00C578F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0DBD814A-E17F-4836-8EEE-6E91B00C578F}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/src/DataStreamSuite/Directory.Build.props b/src/DataStreamSuite/Directory.Build.props new file mode 100644 index 000000000..4c436b225 --- /dev/null +++ b/src/DataStreamSuite/Directory.Build.props @@ -0,0 +1,24 @@ + + + + $([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)\..\..)) + $([System.IO.Path]::GetFullPath($(SparkRoot)\src)) + $([System.IO.Path]::GetFileName($([System.IO.Path]::GetFullPath($(SparkRoot))))) + None + False + true + False + false + Debug + true + 11 + + + + $(SparkRoot)\build\$(Configuration) + $(BaseOutputPath)\bin + $(BaseOutputPath)\obj\$(MSBuildProjectName) + $(BaseOutputPath)\obj\$(MSBuildProjectName) + $(BaseOutputPath)\obj\$(MSBuildProjectName) + + diff --git a/src/DataStreamSuite/PubSub/PubSub.csproj b/src/DataStreamSuite/PubSub/PubSub.csproj new file mode 100644 index 000000000..de3c61cba --- /dev/null +++ b/src/DataStreamSuite/PubSub/PubSub.csproj @@ -0,0 +1,8 @@ + + + + net7.0 + enable + + + diff --git a/src/DataStreamSuite/PubSubServer/Program.cs b/src/DataStreamSuite/PubSubServer/Program.cs new file mode 100644 index 000000000..015c77104 --- /dev/null +++ b/src/DataStreamSuite/PubSubServer/Program.cs @@ -0,0 +1,3 @@ +using System; + +Console.WriteLine("Starting PubSubServer..."); diff --git a/src/DataStreamSuite/PubSubServer/PubSubServer.csproj b/src/DataStreamSuite/PubSubServer/PubSubServer.csproj new file mode 100644 index 000000000..8c8d40ddc --- /dev/null +++ b/src/DataStreamSuite/PubSubServer/PubSubServer.csproj @@ -0,0 +1,9 @@ + + + + Exe + net7.0 + enable + + +