Changeset 5402
- Timestamp:
- 01/31/11 18:15:15 (14 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources
- Files:
-
- 1 added
- 5 deleted
- 36 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.ConsoleClient-3.4/app.config
r5375 r5402 24 24 <client> 25 25 <!--http://localhost:9000/Hive-3.4--> 26 <endpoint address="http://localhost :80/Service.svc"26 <endpoint address="http://localhost/Hive-3.4/HiveService.svc" 27 27 binding="wsHttpBinding" 28 28 bindingConfiguration="wsHttpBinding" -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Tests/HeuristicLab.Clients.Hive.Slave.Tests-3.4.csproj
r5158 r5402 33 33 <WarningLevel>4</WarningLevel> 34 34 </PropertyGroup> 35 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> 36 <DebugSymbols>true</DebugSymbols> 37 <OutputPath>bin\x86\Debug\</OutputPath> 38 <DefineConstants>DEBUG;TRACE</DefineConstants> 39 <DebugType>full</DebugType> 40 <PlatformTarget>x86</PlatformTarget> 41 <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Clients.Hive.Slave.Tests-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 42 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 43 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 44 <ErrorReport>prompt</ErrorReport> 45 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 46 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 47 <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets> 48 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 49 <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> 50 </PropertyGroup> 51 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> 52 <OutputPath>bin\x86\Release\</OutputPath> 53 <DefineConstants>TRACE</DefineConstants> 54 <Optimize>true</Optimize> 55 <DebugType>pdbonly</DebugType> 56 <PlatformTarget>x86</PlatformTarget> 57 <CodeAnalysisLogFile>bin\Release\HeuristicLab.Clients.Hive.Slave.Tests-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 58 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 59 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 60 <ErrorReport>prompt</ErrorReport> 61 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 62 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 63 <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets> 64 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 65 <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> 66 </PropertyGroup> 35 67 <ItemGroup> 36 68 <Reference Include="ALGLIB-2.5.0"> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Views/3.4/HeuristicLab.Clients.Hive.Slave.Views-3.4.csproj
r5314 r5402 37 37 <PropertyGroup> 38 38 <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile> 39 </PropertyGroup> 40 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> 41 <DebugSymbols>true</DebugSymbols> 42 <OutputPath>bin\x86\Debug\</OutputPath> 43 <DefineConstants>DEBUG;TRACE</DefineConstants> 44 <DebugType>full</DebugType> 45 <PlatformTarget>x86</PlatformTarget> 46 <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Clients.Hive.Slave.Views-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 47 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 48 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 49 <ErrorReport>prompt</ErrorReport> 50 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 51 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 52 <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets> 53 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 54 <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> 55 </PropertyGroup> 56 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> 57 <OutputPath>bin\x86\Release\</OutputPath> 58 <DefineConstants>TRACE</DefineConstants> 59 <Optimize>true</Optimize> 60 <DebugType>pdbonly</DebugType> 61 <PlatformTarget>x86</PlatformTarget> 62 <CodeAnalysisLogFile>bin\Release\HeuristicLab.Clients.Hive.Slave.Views-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 63 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 64 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 65 <ErrorReport>prompt</ErrorReport> 66 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 67 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 68 <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets> 69 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 70 <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> 39 71 </PropertyGroup> 40 72 <ItemGroup> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Core.cs
r5315 r5402 40 40 41 41 //TODO: this class should be a singleton; there is only one instance, the reference is meanwhile save in TheCore 42 public static Core TheCore;42 public static Core theCore; 43 43 44 44 public static bool abortRequested { get; set; } … … 66 66 67 67 public Core() { 68 TheCore = this;68 theCore = this; 69 69 } 70 70 -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/HeuristicLab.Clients.Hive.Slave-3.4.csproj
r5264 r5402 37 37 <PropertyGroup> 38 38 <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile> 39 </PropertyGroup> 40 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> 41 <DebugSymbols>true</DebugSymbols> 42 <OutputPath>bin\x86\Debug\</OutputPath> 43 <DefineConstants>DEBUG;TRACE</DefineConstants> 44 <DebugType>full</DebugType> 45 <PlatformTarget>x86</PlatformTarget> 46 <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Clients.Hive.Slave-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 47 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 48 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 49 <ErrorReport>prompt</ErrorReport> 50 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 51 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 52 <CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets> 53 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 54 <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules> 55 </PropertyGroup> 56 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> 57 <OutputPath>bin\x86\Release\</OutputPath> 58 <DefineConstants>TRACE</DefineConstants> 59 <Optimize>true</Optimize> 60 <DebugType>pdbonly</DebugType> 61 <PlatformTarget>x86</PlatformTarget> 62 <CodeAnalysisLogFile>bin\Release\HeuristicLab.Clients.Hive.Slave-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 63 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 64 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 65 <ErrorReport>prompt</ErrorReport> 66 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 67 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 68 <CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets> 69 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 70 <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules> 39 71 </PropertyGroup> 40 72 <ItemGroup> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/SlaveCommunicationService.cs
r5315 r5402 84 84 85 85 public void Restart() { 86 Core. TheCore.Restart();86 Core.theCore.Restart(); 87 87 } 88 88 public void HardPause() { 89 Core. TheCore.HardPause();89 Core.theCore.HardPause(); 90 90 } 91 91 92 92 public void SoftPause() { 93 Core. TheCore.SoftPause();93 Core.theCore.SoftPause(); 94 94 } 95 95 96 96 public void ShutdownSlave() { 97 Core. TheCore.Shutdown();97 Core.theCore.Shutdown(); 98 98 } 99 99 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/app.config
r5280 r5402 33 33 </services> 34 34 <client> 35 <endpoint address="http://localhost :9000/Hive-3.4" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding" contract="HeuristicLab.Services.Hive.Common.ServiceContracts.IHiveService" name="wsHttpBinding_IHiveService">35 <endpoint address="http://localhost/Hive-3.4/HiveService.svc" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding" contract="HeuristicLab.Services.Hive.Common.ServiceContracts.IHiveService" name="wsHttpBinding_IHiveService"> 36 36 <identity> 37 37 <certificate encodedValue="AwAAAAEAAAAUAAAAfEKvcVixnJay+q4hCPFuO0JL5TQgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhCNN5wrUcXMmE/9xwp4TYa9MAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMTAxOTEwNTMxNVoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDXwC5TGcAffd/0oAWHtm0s6YXVXEgXgb1AYmBkkkhkKIFJG/e/Z0KSYbJepmSJD44W3oOAVm+x1DAsZxU79HahDYgWCuHLMm1TLpwSmYOQ0kV3pGHWHhiWV7h7oGLds/eqZ2EOpaNGryfEPnrA4VmxY91vV5/2BTeVSWG6F8lRKQIDAQABo0kwRzBFBgNVHQEEPjA8gBAR7kBnMRHO5gzThEqda0wWoRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghCNN5wrUcXMmE/9xwp4TYa9MAkGBSsOAwIdBQADgYEAoPwEG4QTDXhlxERNDfsZmM2IhEpV42ppz1kEah2oYKDa/ElIMVtvqLv6flVtg18ENN/mEJWiHZ3NyP3qr2Pip+sh+/2WBiSbOaukES/CM7OJn9kJCImH7M/xqM8pxqY8IfgM6iBVrVj9uHqj3j2BBck+cYY8fKyh3CFifMIp6ac="/> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/ExperimentManager/HiveExperimentView.Designer.cs
r4905 r5402 53 53 this.viewExperimentButton = new System.Windows.Forms.Button(); 54 54 this.jobsTabPage = new System.Windows.Forms.TabPage(); 55 this.hiveJobView = new HiveJobView();56 55 this.logTabPage = new System.Windows.Forms.TabPage(); 57 56 this.logView = new HeuristicLab.Core.Views.LogView(); … … 68 67 this.reconnectButton = new System.Windows.Forms.Button(); 69 68 this.downloadExperimentPanel = new System.Windows.Forms.Panel(); 69 this.useLocalPluginsCheckBox = new System.Windows.Forms.CheckBox(); 70 this.hiveJobView = new HeuristicLab.Clients.Hive.Views.HiveJobView(); 70 71 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 71 72 this.tabControl.SuspendLayout(); … … 80 81 this.errorProvider.SetIconAlignment(this.nameTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 81 82 this.errorProvider.SetIconPadding(this.nameTextBox, 2); 82 this.nameTextBox.Size = new System.Drawing.Size(6 63, 20);83 this.nameTextBox.Size = new System.Drawing.Size(670, 20); 83 84 // 84 85 // descriptionTextBox 85 86 // 86 this.descriptionTextBox.Size = new System.Drawing.Size(6 63, 20);87 this.descriptionTextBox.Size = new System.Drawing.Size(670, 20); 87 88 // 88 89 // tabControl … … 97 98 this.tabControl.Name = "tabControl"; 98 99 this.tabControl.SelectedIndex = 0; 99 this.tabControl.Size = new System.Drawing.Size(7 35, 416);100 this.tabControl.Size = new System.Drawing.Size(742, 416); 100 101 this.tabControl.TabIndex = 4; 101 102 // … … 109 110 this.experimentTabPage.Name = "experimentTabPage"; 110 111 this.experimentTabPage.Padding = new System.Windows.Forms.Padding(3); 111 this.experimentTabPage.Size = new System.Drawing.Size(7 27, 390);112 this.experimentTabPage.Size = new System.Drawing.Size(734, 390); 112 113 this.experimentTabPage.TabIndex = 1; 113 114 this.experimentTabPage.Text = "Experiment"; … … 145 146 this.experimentNamedItemView.Name = "experimentNamedItemView"; 146 147 this.experimentNamedItemView.ReadOnly = false; 147 this.experimentNamedItemView.Size = new System.Drawing.Size(72 1, 52);148 this.experimentNamedItemView.Size = new System.Drawing.Size(728, 52); 148 149 this.experimentNamedItemView.TabIndex = 3; 149 150 // … … 154 155 this.viewExperimentButton.Location = new System.Drawing.Point(0, 94); 155 156 this.viewExperimentButton.Name = "viewExperimentButton"; 156 this.viewExperimentButton.Size = new System.Drawing.Size(7 27, 23);157 this.viewExperimentButton.Size = new System.Drawing.Size(734, 23); 157 158 this.viewExperimentButton.TabIndex = 1; 158 159 this.viewExperimentButton.Text = "&Show Experiment"; … … 165 166 this.jobsTabPage.Location = new System.Drawing.Point(4, 22); 166 167 this.jobsTabPage.Name = "jobsTabPage"; 167 this.jobsTabPage.Size = new System.Drawing.Size(7 27, 390);168 this.jobsTabPage.Size = new System.Drawing.Size(734, 390); 168 169 this.jobsTabPage.TabIndex = 5; 169 170 this.jobsTabPage.Text = "Jobs"; 170 171 this.jobsTabPage.UseVisualStyleBackColor = true; 171 172 // 172 // hiveJobView173 //174 this.hiveJobView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)175 | System.Windows.Forms.AnchorStyles.Left)176 | System.Windows.Forms.AnchorStyles.Right)));177 this.hiveJobView.Caption = "HiveJob View";178 this.hiveJobView.Content = null;179 this.hiveJobView.Location = new System.Drawing.Point(2, 3);180 this.hiveJobView.Name = "hiveJobView";181 this.hiveJobView.ReadOnly = true;182 this.hiveJobView.Size = new System.Drawing.Size(722, 384);183 this.hiveJobView.TabIndex = 0;184 //185 173 // logTabPage 186 174 // … … 188 176 this.logTabPage.Location = new System.Drawing.Point(4, 22); 189 177 this.logTabPage.Name = "logTabPage"; 190 this.logTabPage.Size = new System.Drawing.Size(7 27, 390);178 this.logTabPage.Size = new System.Drawing.Size(734, 390); 191 179 this.logTabPage.TabIndex = 3; 192 180 this.logTabPage.Text = "Log"; … … 262 250 this.executionTimeLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 263 251 this.executionTimeLabel.AutoSize = true; 264 this.executionTimeLabel.Location = new System.Drawing.Point(5 09, 507);252 this.executionTimeLabel.Location = new System.Drawing.Point(516, 507); 265 253 this.executionTimeLabel.Name = "executionTimeLabel"; 266 254 this.executionTimeLabel.Size = new System.Drawing.Size(83, 13); … … 271 259 // 272 260 this.executionTimeTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 273 this.executionTimeTextBox.Location = new System.Drawing.Point( 598, 504);261 this.executionTimeTextBox.Location = new System.Drawing.Point(605, 504); 274 262 this.executionTimeTextBox.Name = "executionTimeTextBox"; 275 263 this.executionTimeTextBox.ReadOnly = true; … … 305 293 this.resourceIdsTextBox.Location = new System.Drawing.Point(72, 52); 306 294 this.resourceIdsTextBox.Name = "resourceIdsTextBox"; 307 this.resourceIdsTextBox.Size = new System.Drawing.Size( 663, 20);295 this.resourceIdsTextBox.Size = new System.Drawing.Size(559, 20); 308 296 this.resourceIdsTextBox.TabIndex = 14; 309 297 this.resourceIdsTextBox.Validated += new System.EventHandler(this.resourceIdsTextBox_Validated); … … 343 331 this.downloadExperimentPanel.TabIndex = 18; 344 332 // 333 // useLocalPluginsCheckBox 334 // 335 this.useLocalPluginsCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 336 this.useLocalPluginsCheckBox.AutoSize = true; 337 this.useLocalPluginsCheckBox.Location = new System.Drawing.Point(637, 54); 338 this.useLocalPluginsCheckBox.Name = "useLocalPluginsCheckBox"; 339 this.useLocalPluginsCheckBox.Size = new System.Drawing.Size(105, 17); 340 this.useLocalPluginsCheckBox.TabIndex = 19; 341 this.useLocalPluginsCheckBox.Text = "UseLocalPlugins"; 342 this.useLocalPluginsCheckBox.UseVisualStyleBackColor = true; 343 this.useLocalPluginsCheckBox.CheckedChanged += new System.EventHandler(this.useLocalPluginsCheckBox_CheckedChanged); 344 // 345 // hiveJobView 346 // 347 this.hiveJobView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 348 | System.Windows.Forms.AnchorStyles.Left) 349 | System.Windows.Forms.AnchorStyles.Right))); 350 this.hiveJobView.Caption = "HiveJob View"; 351 this.hiveJobView.Content = null; 352 this.hiveJobView.Location = new System.Drawing.Point(2, 3); 353 this.hiveJobView.Name = "hiveJobView"; 354 this.hiveJobView.ReadOnly = true; 355 this.hiveJobView.Size = new System.Drawing.Size(722, 384); 356 this.hiveJobView.TabIndex = 0; 357 // 345 358 // HiveExperimentView 346 359 // … … 355 368 this.Controls.Add(this.resourceIdsLabel); 356 369 this.Controls.Add(this.executionTimeLabel); 370 this.Controls.Add(this.useLocalPluginsCheckBox); 357 371 this.Controls.Add(this.pauseButton); 358 372 this.Controls.Add(this.stopButton); … … 360 374 this.Controls.Add(this.reconnectButton); 361 375 this.Name = "HiveExperimentView"; 362 this.Size = new System.Drawing.Size(735, 524); 376 this.Size = new System.Drawing.Size(742, 524); 377 this.Controls.SetChildIndex(this.nameTextBox, 0); 378 this.Controls.SetChildIndex(this.descriptionTextBox, 0); 363 379 this.Controls.SetChildIndex(this.reconnectButton, 0); 364 380 this.Controls.SetChildIndex(this.resetButton, 0); 365 381 this.Controls.SetChildIndex(this.stopButton, 0); 366 382 this.Controls.SetChildIndex(this.pauseButton, 0); 383 this.Controls.SetChildIndex(this.useLocalPluginsCheckBox, 0); 367 384 this.Controls.SetChildIndex(this.executionTimeLabel, 0); 368 385 this.Controls.SetChildIndex(this.resourceIdsLabel, 0); … … 374 391 this.Controls.SetChildIndex(this.nameLabel, 0); 375 392 this.Controls.SetChildIndex(this.descriptionLabel, 0); 376 this.Controls.SetChildIndex(this.nameTextBox, 0);377 this.Controls.SetChildIndex(this.descriptionTextBox, 0);378 393 this.Controls.SetChildIndex(this.downloadExperimentPanel, 0); 379 394 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); … … 411 426 private System.Windows.Forms.Panel downloadExperimentPanel; 412 427 private HiveJobView hiveJobView; 428 private System.Windows.Forms.CheckBox useLocalPluginsCheckBox; 413 429 414 430 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/ExperimentManager/HiveExperimentView.cs
r4905 r5402 84 84 executionTimeTextBox.Text = string.Empty; 85 85 resourceIdsTextBox.Text = string.Empty; 86 useLocalPluginsCheckBox.Checked = false; 86 87 logView.Content = null; 87 88 } else { 88 89 executionTimeTextBox.Text = Content.ExecutionTime.ToString(); 89 90 resourceIdsTextBox.Text = Content.ResourceIds; 91 useLocalPluginsCheckBox.Checked = Content.UseLocalPlugins; 90 92 logView.Content = Content.Log; 91 93 } … … 104 106 this.resourceIdsTextBox.ReadOnly = Content.ExecutionState != ExecutionState.Prepared; 105 107 this.hiveJobView.ReadOnly = Content.ExecutionState != ExecutionState.Prepared; 108 this.useLocalPluginsCheckBox.Enabled = Content.ExecutionState == ExecutionState.Prepared; 106 109 107 110 viewExperimentButton.Enabled = Content.GetExperiment() != null; … … 247 250 Content.StartResultPolling(); 248 251 SetEnabledStateOfControls(); 252 } 253 } 254 255 private void useLocalPluginsCheckBox_CheckedChanged(object sender, EventArgs e) { 256 if (Content != null) { 257 Content.UseLocalPlugins = useLocalPluginsCheckBox.Checked; 249 258 } 250 259 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/ExperimentManager/HiveExperimentView.resx
r4905 r5402 113 113 </resheader> 114 114 <resheader name="reader"> 115 <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version= 2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>115 <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 116 116 </resheader> 117 117 <resheader name="writer"> 118 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version= 2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>119 </resheader> 120 <metadata name="errorProvider.TrayLocation" type="System.Drawing.Point, System.Drawing, Version= 2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">118 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 119 </resheader> 120 <metadata name="errorProvider.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 121 121 <value>107, 17</value> 122 122 </metadata> 123 <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version= 2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">123 <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 124 124 <value>17, 17</value> 125 125 </metadata> 126 <assembly alias="System.Drawing" name="System.Drawing, Version= 2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />126 <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> 127 127 <data name="openExperimentButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> 128 128 <value> … … 204 204 fNTws+7PbaOWo6fHXMf6Hwc/vj/OGn/2S8Yv7ycKnpCfVEyqTDZPmU2dmnafvvF05dOJZ+nPFmYKf5X+ 205 205 tfa5zvMffnP8rX82YnbiBf/Fp99LXsq/PPRq2aueuYC5R69TXy/MF72Rf3P4LeNt37vwd5MLWe+x7ys/ 206 6H7o/ujz8cGn1E+f/gUDmPP8usTo0wAAAAlwSFlzAAAOv QAADr0BR/uQrQAAA2JJREFUOE9lk31MFHQY206 6H7o/ujz8cGn1E+f/gUDmPP8usTo0wAAAAlwSFlzAAAOvAAADrwBlbxySQAAA2JJREFUOE9lk31MFHQY 207 207 x59JZIU62/QPF1gauDJXjkpyZLxVMEEubgpKU0NePKS6yp168qaJ4OIlMhUH6hRWChyuuuTaQjqFk8j0 208 208 MEhlURdMRgp0XERccfjpx7G1Vn8822+/fb/fz/f54xFA/jtDf03S4fyTloE/6PhlFNfvY0xMTCjZ/7X/ … … 268 268 </value> 269 269 </data> 270 <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version= 2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">270 <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 271 271 <value>25</value> 272 272 </metadata> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/ExperimentManager/MenuItems/ExperimentManagerMenuItem.cs
r4905 r5402 28 28 public class ExperimentManagerMenuItem : HeuristicLab.MainForm.WindowsForms.MenuItem, IOptimizerUserInterfaceItemProvider { 29 29 public override string Name { 30 get { return "&Experiment Manager "; }30 get { return "&Experiment Manager 3.4"; } 31 31 } 32 32 public override IEnumerable<string> Structure { -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/HeuristicLab.Clients.Hive.Views-3.4.csproj
r5264 r5402 38 38 <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile> 39 39 </PropertyGroup> 40 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> 41 <DebugSymbols>true</DebugSymbols> 42 <OutputPath>bin\x86\Debug\</OutputPath> 43 <DefineConstants>DEBUG;TRACE</DefineConstants> 44 <DebugType>full</DebugType> 45 <PlatformTarget>x86</PlatformTarget> 46 <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Clients.Hive.Views-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 47 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 48 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 49 <ErrorReport>prompt</ErrorReport> 50 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 51 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 52 <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets> 53 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 54 <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> 55 </PropertyGroup> 56 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> 57 <OutputPath>bin\x86\Release\</OutputPath> 58 <DefineConstants>TRACE</DefineConstants> 59 <Optimize>true</Optimize> 60 <DebugType>pdbonly</DebugType> 61 <PlatformTarget>x86</PlatformTarget> 62 <CodeAnalysisLogFile>bin\Release\HeuristicLab.Clients.Hive.Views-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 63 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 64 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 65 <ErrorReport>prompt</ErrorReport> 66 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 67 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 68 <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets> 69 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 70 <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> 71 </PropertyGroup> 40 72 <ItemGroup> 41 73 <Reference Include="HeuristicLab.Collections-3.3"> … … 86 118 <ItemGroup> 87 119 <None Include="HeuristicLabClientsHiveViewsPlugin.cs.frame" /> 88 <Compile Include="ExperimentManager\ConnectionSetupView.cs">89 <SubType>Form</SubType>90 </Compile>91 <Compile Include="ExperimentManager\ConnectionSetupView.Designer.cs">92 <DependentUpon>ConnectionSetupView.cs</DependentUpon>93 </Compile>94 120 <Compile Include="ExperimentManager\HiveExperimentListView.cs"> 95 121 <SubType>UserControl</SubType> … … 122 148 <DependentUpon>HiveJobView.cs</DependentUpon> 123 149 </Compile> 124 <Compile Include="ExperimentManager\MenuItems\ConnectionSetupMenuItem.cs" />125 150 <Compile Include="ExperimentManager\MenuItems\ExperimentManagerMenuItem.cs" /> 126 151 <Compile Include="HeuristicLabClientsHiveViewsPlugin.cs" /> … … 138 163 </ItemGroup> 139 164 <ItemGroup> 140 <EmbeddedResource Include="ExperimentManager\ConnectionSetupView.resx">141 <DependentUpon>ConnectionSetupView.cs</DependentUpon>142 </EmbeddedResource>143 165 <EmbeddedResource Include="ExperimentManager\HiveExperimentManagerView.resx"> 144 166 <DependentUpon>HiveExperimentManagerView.cs</DependentUpon> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/ExperimentManager/HiveExperimentClient.cs
r5155 r5402 29 29 using HeuristicLab.Services.Hive.Common; 30 30 using HeuristicLab.Services.Hive.Common.ServiceContracts; 31 using HeuristicLab.Services.Hive.Common.DataTransfer; 32 using HeuristicLab.Clients.Hive.Jobs; 33 using HeuristicLab.Clients.Common; 34 using HeuristicLab.Optimization; 31 35 32 36 namespace HeuristicLab.Clients.Hive { 33 37 using DT = HeuristicLab.Services.Hive.Common.DataTransfer; 34 using HeuristicLab.Services.Hive.Common.DataTransfer; 35 using HeuristicLab.Clients.Hive.Jobs; 36 using HeuristicLab.Clients.Common; 38 using HeuristicLab.PluginInfrastructure; 39 using System.IO; 37 40 38 41 /// <summary> … … 111 114 } 112 115 116 private List<Guid> pluginsNeededIds; 117 public List<Guid> PluginsNeededIds { 118 get { return pluginsNeededIds; } 119 set { pluginsNeededIds = value; } 120 } 121 122 private bool useLocalPlugins; 123 public bool UseLocalPlugins { 124 get { return useLocalPlugins; } 125 set { useLocalPlugins = value; } 126 } 127 113 128 public HiveExperimentClient() : base(itemName, itemDescription) { 114 129 // TODO //this.ResourceIds = HeuristicLab.Hive.Experiment.Properties.Settings.Default.ResourceIds; 115 this.ResourceIds = " MyGroup";130 this.ResourceIds = "HEAL"; 116 131 this.log = new Log(); 117 132 InitTimer(); … … 151 166 } 152 167 153 public void SetExperiment( Optimization.Experiment experiment) {168 public void SetExperiment(Experiment experiment) { 154 169 this.HiveJob = new HiveJob(experiment); 155 170 Prepare(); … … 171 186 /// Returns the experiment from the root HiveJob 172 187 /// </summary> 173 public Optimization.Experiment GetExperiment() {188 public Experiment GetExperiment() { 174 189 if (this.HiveJob != null) { 175 190 return HiveJob.OptimizerJob.OptimizerAsExperiment; … … 179 194 180 195 #region IExecutable Members 181 private Core.ExecutionState executionState;196 private ExecutionState executionState; 182 197 public ExecutionState ExecutionState { 183 198 get { return executionState; } … … 231 246 int jobCount = 0; 232 247 248 this.progress.Status = "Uploading plugins..."; 249 this.PluginsNeededIds = GetPluginsNeededIds(this.useLocalPlugins); 250 233 251 this.progress.Status = "Uploading jobs..."; 234 252 UploadJobWithChildren(service.Obj, this.HiveJob, null, groups, ref jobCount, totalJobCount); … … 251 269 IsProgressing = false; 252 270 } 271 } 272 273 /// <summary> 274 /// Gets the Ids of all plugins needed for executing the job. 275 /// All loaded plugins are assumed to be necessary. 276 /// If a plugin with the same name and version is already online, it is used. Otherwise the local plugin is uploaded. 277 /// If useLocalPlugins is true, all local plugins are uploaded regardless of the existence of the same plugin online. 278 /// </summary> 279 public static List<Guid> GetPluginsNeededIds(bool useLocalPlugins) { 280 IEnumerable<IPluginDescription> localPlugins = ApplicationManager.Manager.Plugins; 281 List<Guid> pluginsNeededIds = new List<Guid>(); 282 283 using (var service = ServiceLocator.Instance.GetService()) { 284 IEnumerable<Plugin> onlinePlugins = service.Obj.GetPlugins(); 285 286 foreach (IPluginDescription localPlugin in localPlugins) { 287 Plugin found = onlinePlugins.Where(onlinePlugin => onlinePlugin.Name == localPlugin.Name && onlinePlugin.Version == localPlugin.Version).SingleOrDefault(); 288 if (!useLocalPlugins && found != null) { 289 // plugin is available online; reuse 290 pluginsNeededIds.Add(found.Id); 291 } else { 292 // upload the plugin 293 Plugin p = new Plugin() { Name = localPlugin.Name, Version = localPlugin.Version, IsLocal = useLocalPlugins }; 294 List<PluginData> pluginDatas = new List<PluginData>(); 295 296 foreach (IPluginFile pf in localPlugin.Files) { 297 PluginData pluginData = new PluginData(); 298 299 pluginData.Data = File.ReadAllBytes(pf.Name); 300 pluginDatas.Add(pluginData); 301 } 302 pluginsNeededIds.Add(service.Obj.AddPlugin(p, pluginDatas)); 303 } 304 } 305 } 306 return pluginsNeededIds; 253 307 } 254 308 … … 273 327 jobData = hiveJob.GetAsJobData(false); 274 328 } 329 330 hiveJob.Job.PluginsNeededIds = this.PluginsNeededIds; 275 331 276 332 this.progress.Status = string.Format("Uploading job {0} of {1} ({2} kb)", jobCount, totalJobCount, jobData.Data.Count() / 1024); … … 618 674 } 619 675 } 676 620 677 } 621 678 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/ExperimentManager/HiveExperimentManagerClient.cs
r5055 r5402 137 137 } 138 138 139 void hiveExperiments_ItemsRemoved(object sender, Collection s.CollectionItemsChangedEventArgs<Collections.IndexedItem<HiveExperimentClient>> e) {139 void hiveExperiments_ItemsRemoved(object sender, CollectionItemsChangedEventArgs<IndexedItem<HiveExperimentClient>> e) { 140 140 if (!currentlyUpdating) { 141 141 using (Disposable<IHiveService> service = ServiceLocator.Instance.GetService()) { -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/ExperimentManager/HiveJobClient.cs
r5363 r5402 107 107 public HiveJob() { 108 108 this.Job = new Job() { 109 JobState = JobState. Waiting,109 JobState = JobState.Offline, 110 110 DateCreated = DateTime.Now, 111 111 CoresNeeded = 1, … … 191 191 if (OptimizerJob.Optimizer is Optimization.Experiment) { 192 192 Optimization.Experiment experiment = OptimizerJob.OptimizerAsExperiment; 193 experiment.Optimizers.ItemsAdded += new Collection s.CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsAdded);194 experiment.Optimizers.ItemsReplaced += new Collection s.CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsReplaced);195 experiment.Optimizers.ItemsRemoved += new Collection s.CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsRemoved);193 experiment.Optimizers.ItemsAdded += new CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsAdded); 194 experiment.Optimizers.ItemsReplaced += new CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsReplaced); 195 experiment.Optimizers.ItemsRemoved += new CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsRemoved); 196 196 experiment.Optimizers.CollectionReset += new CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_CollectionReset); 197 197 } else if (OptimizerJob.Optimizer is Optimization.BatchRun) { … … 208 208 if (OptimizerJob.Optimizer is Optimization.Experiment) { 209 209 Optimization.Experiment experiment = OptimizerJob.OptimizerAsExperiment; 210 experiment.Optimizers.ItemsAdded -= new Collection s.CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsAdded);211 experiment.Optimizers.ItemsReplaced -= new Collection s.CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsReplaced);212 experiment.Optimizers.ItemsRemoved -= new Collection s.CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsRemoved);210 experiment.Optimizers.ItemsAdded -= new CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsAdded); 211 experiment.Optimizers.ItemsReplaced -= new CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsReplaced); 212 experiment.Optimizers.ItemsRemoved -= new CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsRemoved); 213 213 experiment.Optimizers.CollectionReset -= new CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_CollectionReset); 214 214 } else if (OptimizerJob.Optimizer is Optimization.BatchRun) { … … 222 222 } 223 223 224 void batchRun_OptimizerChanged(object sender, EventArgs e) {224 private void batchRun_OptimizerChanged(object sender, EventArgs e) { 225 225 if (syncJobsWithOptimizers) { 226 226 this.childHiveJobs.Clear(); … … 229 229 } 230 230 231 void batchRun_RepetitionsChanged(object sender, EventArgs e) {231 private void batchRun_RepetitionsChanged(object sender, EventArgs e) { 232 232 if (syncJobsWithOptimizers) { 233 233 UpdateChildHiveJobs(); … … 235 235 } 236 236 237 void OptimizerJob_ToStringChanged(object sender, EventArgs e) {237 private void OptimizerJob_ToStringChanged(object sender, EventArgs e) { 238 238 this.OnToStringChanged(); 239 239 } … … 267 267 } 268 268 } 269 void Optimizers_CollectionReset(object sender, CollectionItemsChangedEventArgs<IndexedItem<IOptimizer>> e) {269 private void Optimizers_CollectionReset(object sender, CollectionItemsChangedEventArgs<IndexedItem<IOptimizer>> e) { 270 270 if (syncJobsWithOptimizers && this.OptimizerJob.ComputeInParallel) { 271 271 foreach (var item in e.Items) { … … 275 275 } 276 276 277 void OptimizerJob_ComputeInParallelChanged(object sender, EventArgs e) {277 private void OptimizerJob_ComputeInParallelChanged(object sender, EventArgs e) { 278 278 if (OptimizerJob != null && syncJobsWithOptimizers) { 279 279 if (OptimizerJob.ComputeInParallel) { … … 445 445 } 446 446 447 UpdateRequiredPlugins();448 449 447 JobData jobData = new JobData() { 450 448 JobId = job.Id, … … 453 451 454 452 return jobData; 455 }456 457 /// <summary>458 /// find out which which plugins are needed for the given object459 /// </summary>460 private void UpdateRequiredPlugins() {461 List<Guid> pluginList = new List<Guid>();462 463 IEnumerable<IPluginDescription> neededPlugins = ApplicationManager.Manager.Plugins; //HivePluginInfoDto.FindPluginsNeeded(optimizerJob.GetType());464 using (var service = ServiceLocator.Instance.GetService()) {465 IEnumerable<Plugin> availablePlugins = service.Obj.GetPlugins();466 foreach (IPluginDescription neededPlugin in neededPlugins) {467 Plugin found = availablePlugins.Where(availablePlugin => availablePlugin.Name == neededPlugin.Name && availablePlugin.Version.Major == neededPlugin.Version.Major && availablePlugin.Version.Minor == neededPlugin.Version.Minor && availablePlugin.Version.Revision == neededPlugin.Version.Revision && availablePlugin.Version.MinorRevision == neededPlugin.Version.MinorRevision).SingleOrDefault();468 if (found != null) {469 pluginList.Add(found.Id);470 } else {471 Plugin p = new Plugin() { Name = neededPlugin.Name, Version = neededPlugin.Version };472 List<PluginData> pluginDatas = new List<PluginData>();473 474 foreach (IPluginFile pf in neededPlugin.Files) {475 PluginData pluginData = new PluginData();476 477 pluginData.Data = File.ReadAllBytes(pf.Name);478 pluginDatas.Add(pluginData);479 }480 pluginList.Add(service.Obj.AddPlugin(p, pluginDatas));481 }482 }483 }484 this.Job.PluginsNeededIds = pluginList;485 453 } 486 454 -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/HeuristicLab.Clients.Hive-3.4.csproj
r5264 r5402 37 37 <PropertyGroup> 38 38 <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile> 39 </PropertyGroup> 40 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> 41 <DebugSymbols>true</DebugSymbols> 42 <OutputPath>bin\x86\Debug\</OutputPath> 43 <DefineConstants>DEBUG;TRACE</DefineConstants> 44 <DebugType>full</DebugType> 45 <PlatformTarget>x86</PlatformTarget> 46 <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Clients.Hive-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 47 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 48 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 49 <ErrorReport>prompt</ErrorReport> 50 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 51 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 52 <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets> 53 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 54 <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> 55 </PropertyGroup> 56 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> 57 <OutputPath>bin\x86\Release\</OutputPath> 58 <DefineConstants>TRACE</DefineConstants> 59 <Optimize>true</Optimize> 60 <DebugType>pdbonly</DebugType> 61 <PlatformTarget>x86</PlatformTarget> 62 <CodeAnalysisLogFile>bin\Release\HeuristicLab.Clients.Hive-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 63 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 64 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 65 <ErrorReport>prompt</ErrorReport> 66 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 67 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 68 <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets> 69 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 70 <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> 39 71 </PropertyGroup> 40 72 <ItemGroup> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/app.config
r5264 r5402 15 15 </bindings> 16 16 <client> 17 <endpoint address="http://localhost :9000/Hive-3.4" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding" contract="HeuristicLab.Services.Hive.Common.ServiceContracts.IHiveService" name="wsHttpBinding_IHiveService">17 <endpoint address="http://localhost/Hive-3.4/HiveService.svc" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding" contract="HeuristicLab.Services.Hive.Common.ServiceContracts.IHiveService" name="wsHttpBinding_IHiveService"> 18 18 <identity> 19 19 <certificate encodedValue="AwAAAAEAAAAUAAAAfEKvcVixnJay+q4hCPFuO0JL5TQgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhCNN5wrUcXMmE/9xwp4TYa9MAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMTAxOTEwNTMxNVoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDXwC5TGcAffd/0oAWHtm0s6YXVXEgXgb1AYmBkkkhkKIFJG/e/Z0KSYbJepmSJD44W3oOAVm+x1DAsZxU79HahDYgWCuHLMm1TLpwSmYOQ0kV3pGHWHhiWV7h7oGLds/eqZ2EOpaNGryfEPnrA4VmxY91vV5/2BTeVSWG6F8lRKQIDAQABo0kwRzBFBgNVHQEEPjA8gBAR7kBnMRHO5gzThEqda0wWoRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghCNN5wrUcXMmE/9xwp4TYa9MAkGBSsOAwIdBQADgYEAoPwEG4QTDXhlxERNDfsZmM2IhEpV42ppz1kEah2oYKDa/ElIMVtvqLv6flVtg18ENN/mEJWiHZ3NyP3qr2Pip+sh+/2WBiSbOaukES/CM7OJn9kJCImH7M/xqM8pxqY8IfgM6iBVrVj9uHqj3j2BBck+cYY8fKyh3CFifMIp6ac="/> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Hive 3.4.sln
r5375 r5402 82 82 {F98A1740-9AC9-4D36-A582-6A2D0D06978D}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU 83 83 {F98A1740-9AC9-4D36-A582-6A2D0D06978D}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU 84 {F98A1740-9AC9-4D36-A582-6A2D0D06978D}.Debug|x86.ActiveCfg = Debug|Any CPU 84 {F98A1740-9AC9-4D36-A582-6A2D0D06978D}.Debug|x86.ActiveCfg = Debug|x86 85 {F98A1740-9AC9-4D36-A582-6A2D0D06978D}.Debug|x86.Build.0 = Debug|x86 85 86 {F98A1740-9AC9-4D36-A582-6A2D0D06978D}.Release|Any CPU.ActiveCfg = Release|Any CPU 86 87 {F98A1740-9AC9-4D36-A582-6A2D0D06978D}.Release|Any CPU.Build.0 = Release|Any CPU … … 92 93 {989FE92B-484E-41EE-87E2-6A24AF0381D8}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU 93 94 {989FE92B-484E-41EE-87E2-6A24AF0381D8}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU 94 {989FE92B-484E-41EE-87E2-6A24AF0381D8}.Debug|x86.ActiveCfg = Debug|Any CPU 95 {989FE92B-484E-41EE-87E2-6A24AF0381D8}.Debug|x86.ActiveCfg = Debug|x86 96 {989FE92B-484E-41EE-87E2-6A24AF0381D8}.Debug|x86.Build.0 = Debug|x86 95 97 {989FE92B-484E-41EE-87E2-6A24AF0381D8}.Release|Any CPU.ActiveCfg = Release|Any CPU 96 98 {989FE92B-484E-41EE-87E2-6A24AF0381D8}.Release|Any CPU.Build.0 = Release|Any CPU … … 102 104 {14424A16-48D4-445E-80BF-DDF617548BBB}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU 103 105 {14424A16-48D4-445E-80BF-DDF617548BBB}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU 104 {14424A16-48D4-445E-80BF-DDF617548BBB}.Debug|x86.ActiveCfg = Debug|Any CPU 106 {14424A16-48D4-445E-80BF-DDF617548BBB}.Debug|x86.ActiveCfg = Debug|x86 107 {14424A16-48D4-445E-80BF-DDF617548BBB}.Debug|x86.Build.0 = Debug|x86 105 108 {14424A16-48D4-445E-80BF-DDF617548BBB}.Release|Any CPU.ActiveCfg = Release|Any CPU 106 109 {14424A16-48D4-445E-80BF-DDF617548BBB}.Release|Any CPU.Build.0 = Release|Any CPU … … 112 115 {EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU 113 116 {EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU 114 {EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Debug|x86.ActiveCfg = Debug|Any CPU 117 {EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Debug|x86.ActiveCfg = Debug|x86 118 {EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Debug|x86.Build.0 = Debug|x86 115 119 {EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Release|Any CPU.ActiveCfg = Release|Any CPU 116 120 {EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Release|Any CPU.Build.0 = Release|Any CPU … … 122 126 {B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU 123 127 {B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU 124 {B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Debug|x86.ActiveCfg = Debug|Any CPU 128 {B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Debug|x86.ActiveCfg = Debug|x86 129 {B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Debug|x86.Build.0 = Debug|x86 125 130 {B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Release|Any CPU.ActiveCfg = Release|Any CPU 126 131 {B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Release|Any CPU.Build.0 = Release|Any CPU … … 132 137 {E1D6C801-892A-406A-B606-F158E36DD3C3}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU 133 138 {E1D6C801-892A-406A-B606-F158E36DD3C3}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU 134 {E1D6C801-892A-406A-B606-F158E36DD3C3}.Debug|x86.ActiveCfg = Debug|Any CPU 139 {E1D6C801-892A-406A-B606-F158E36DD3C3}.Debug|x86.ActiveCfg = Debug|x86 140 {E1D6C801-892A-406A-B606-F158E36DD3C3}.Debug|x86.Build.0 = Debug|x86 135 141 {E1D6C801-892A-406A-B606-F158E36DD3C3}.Release|Any CPU.ActiveCfg = Release|Any CPU 136 142 {E1D6C801-892A-406A-B606-F158E36DD3C3}.Release|Any CPU.Build.0 = Release|Any CPU … … 142 148 {8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU 143 149 {8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU 144 {8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Debug|x86.ActiveCfg = Debug|Any CPU 150 {8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Debug|x86.ActiveCfg = Debug|x86 151 {8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Debug|x86.Build.0 = Debug|x86 145 152 {8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Release|Any CPU.ActiveCfg = Release|Any CPU 146 153 {8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Release|Any CPU.Build.0 = Release|Any CPU … … 152 159 {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU 153 160 {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU 154 {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Debug|x86.ActiveCfg = Debug|Any CPU 161 {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Debug|x86.ActiveCfg = Debug|x86 162 {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Debug|x86.Build.0 = Debug|x86 155 163 {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Release|Any CPU.ActiveCfg = Release|Any CPU 156 164 {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Release|Any CPU.Build.0 = Release|Any CPU … … 163 171 {0CA6706D-A569-45DE-A85C-4158891CC1BC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU 164 172 {0CA6706D-A569-45DE-A85C-4158891CC1BC}.Debug|x86.ActiveCfg = Debug|Any CPU 173 {0CA6706D-A569-45DE-A85C-4158891CC1BC}.Debug|x86.Build.0 = Debug|Any CPU 165 174 {0CA6706D-A569-45DE-A85C-4158891CC1BC}.Release|Any CPU.ActiveCfg = Debug|Any CPU 166 175 {0CA6706D-A569-45DE-A85C-4158891CC1BC}.Release|Any CPU.Build.0 = Debug|Any CPU … … 172 181 {C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU 173 182 {C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU 174 {C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Debug|x86.ActiveCfg = Debug|Any CPU 183 {C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Debug|x86.ActiveCfg = Debug|x86 184 {C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Debug|x86.Build.0 = Debug|x86 175 185 {C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Release|Any CPU.ActiveCfg = Release|Any CPU 176 186 {C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Release|Any CPU.Build.0 = Release|Any CPU … … 182 192 {17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU 183 193 {17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU 184 {17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Debug|x86.ActiveCfg = Debug|Any CPU 194 {17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Debug|x86.ActiveCfg = Debug|x86 195 {17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Debug|x86.Build.0 = Debug|x86 185 196 {17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Release|Any CPU.ActiveCfg = Release|Any CPU 186 197 {17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Release|Any CPU.Build.0 = Release|Any CPU … … 215 226 {28711372-0255-4883-9BED-81E150D73880}.Debug|Mixed Platforms.ActiveCfg = Debug 216 227 {28711372-0255-4883-9BED-81E150D73880}.Debug|x86.ActiveCfg = Debug 228 {28711372-0255-4883-9BED-81E150D73880}.Debug|x86.Build.0 = Debug 217 229 {28711372-0255-4883-9BED-81E150D73880}.Release|Any CPU.ActiveCfg = Release 218 230 {28711372-0255-4883-9BED-81E150D73880}.Release|Mixed Platforms.ActiveCfg = Release -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Hive/3.4/HeuristicLab.Hive-3.4.csproj
r5264 r5402 37 37 <PropertyGroup> 38 38 <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile> 39 </PropertyGroup> 40 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> 41 <DebugSymbols>true</DebugSymbols> 42 <OutputPath>bin\x86\Debug\</OutputPath> 43 <DefineConstants>DEBUG;TRACE</DefineConstants> 44 <DebugType>full</DebugType> 45 <PlatformTarget>x86</PlatformTarget> 46 <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Hive-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 47 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 48 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 49 <ErrorReport>prompt</ErrorReport> 50 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 51 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 52 <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets> 53 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 54 <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> 55 </PropertyGroup> 56 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> 57 <OutputPath>bin\x86\Release\</OutputPath> 58 <DefineConstants>TRACE</DefineConstants> 59 <Optimize>true</Optimize> 60 <DebugType>pdbonly</DebugType> 61 <PlatformTarget>x86</PlatformTarget> 62 <CodeAnalysisLogFile>bin\Release\HeuristicLab.Hive-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 63 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 64 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 65 <ErrorReport>prompt</ErrorReport> 66 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 67 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 68 <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets> 69 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 70 <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> 39 71 </PropertyGroup> 40 72 <ItemGroup> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer/Job.cs
r5106 r5402 41 41 public List<Guid> PluginsNeededIds { get; set; } 42 42 43 public Job() { } 43 public Job() { 44 this.PluginsNeededIds = new List<Guid>(); 45 } 44 46 protected Job(Job original, Cloner cloner) : base(original, cloner) { 45 47 this.UserId = original.UserId; -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer/Plugin.cs
r4905 r5402 33 33 public Version Version { get; set; } 34 34 35 [DataMember] 36 public Guid UserId { get; set; } 37 38 [DataMember] 39 public DateTime DateCreated { get; set; } 40 41 [DataMember] 42 public bool IsLocal { get; set; } 43 35 44 public Plugin() { } 36 45 protected Plugin(Plugin original, Cloner cloner) : base(original, cloner) { 37 46 this.Version = original.Version; 47 this.UserId = original.UserId; 48 this.DateCreated = original.DateCreated; 49 this.IsLocal = original.IsLocal; 38 50 } 39 51 public override IDeepCloneable Clone(Cloner cloner) { -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer/PluginData.cs
r5375 r5402 27 27 [Serializable] 28 28 [DataContract] 29 public class PluginData : HiveItemBase { 30 [DataMember] 31 public int PluginDataId { get; set; } 29 public class PluginData : HiveItem { 32 30 [DataMember] 33 31 public Guid PluginId { get; set; } … … 36 34 [DataMember] 37 35 public String FileName { get; set; } 38 39 36 40 37 public PluginData() { } … … 45 42 Array.Copy(original.Data, this.Data, original.Data.Length); 46 43 this.FileName = original.FileName; 47 this.PluginDataId = original.PluginDataId;48 44 this.PluginId = original.PluginId; 49 45 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/HeuristicLab.Services.Hive.Common-3.4.csproj
r5264 r5402 37 37 <PropertyGroup> 38 38 <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile> 39 </PropertyGroup> 40 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> 41 <DebugSymbols>true</DebugSymbols> 42 <OutputPath>bin\x86\Debug\</OutputPath> 43 <DefineConstants>DEBUG;TRACE</DefineConstants> 44 <DebugType>full</DebugType> 45 <PlatformTarget>x86</PlatformTarget> 46 <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Services.Hive.Common-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 47 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 48 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 49 <ErrorReport>prompt</ErrorReport> 50 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 51 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 52 <CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets> 53 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 54 <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules> 55 </PropertyGroup> 56 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> 57 <OutputPath>bin\x86\Release\</OutputPath> 58 <DefineConstants>TRACE</DefineConstants> 59 <Optimize>true</Optimize> 60 <DebugType>pdbonly</DebugType> 61 <PlatformTarget>x86</PlatformTarget> 62 <CodeAnalysisLogFile>bin\Release\HeuristicLab.Services.Hive.Common-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 63 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 64 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 65 <ErrorReport>prompt</ErrorReport> 66 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 67 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 68 <CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets> 69 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 70 <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules> 39 71 </PropertyGroup> 40 72 <ItemGroup> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/Convert.cs
r5375 r5402 67 67 target.JobState = source.JobState; 68 68 target.UserId = source.UserId; 69 // target.RequiredPlugins = db.Plugins.Select(x => source.PluginsNeededIds.Contains(x.PluginId)); - this is difficult69 // RequiredPlugins need to be added by Dao 70 70 } 71 71 } … … 109 109 public static DT.Plugin ToDto(Plugin source) { 110 110 if (source == null) return null; 111 return new DT.Plugin { Id = source.PluginId, Name = source.Name, Version = new Version(source.Version) };111 return new DT.Plugin { Id = source.PluginId, Name = source.Name, Version = new Version(source.Version), UserId = source.UserId, IsLocal = source.IsLocal, DateCreated = source.DateCreated }; 112 112 } 113 113 public static Plugin ToEntity(DT.Plugin source) { … … 118 118 public static void ToEntity(DT.Plugin source, Plugin target) { 119 119 if ((source != null) && (target != null)) { 120 target.PluginId = source.Id; target.Name = source.Name; target.Version = source.Version.ToString(); 120 target.PluginId = source.Id; target.Name = source.Name; target.Version = source.Version.ToString(); target.UserId = source.UserId; target.IsLocal = source.IsLocal; target.DateCreated = source.DateCreated; 121 121 } 122 122 } … … 126 126 public static DT.PluginData ToDto(PluginData source) { 127 127 if (source == null) return null; 128 return new DT.PluginData { PluginId = source.PluginId, Data = source.Data.ToArray(), FileName = source.FileName, PluginDataId = source.PluginDataId};128 return new DT.PluginData { Id = source.PluginDataId, PluginId = source.PluginId, Data = source.Data.ToArray(), FileName = source.FileName }; 129 129 } 130 130 public static PluginData ToEntity(DT.PluginData source) { … … 135 135 public static void ToEntity(DT.PluginData source, PluginData target) { 136 136 if ((source != null) && (target != null)) { 137 target.PluginId = source.PluginId; target.Data = new Binary(source.Data); 138 target.FileName = target.FileName; 137 target.PluginDataId = source.Id; target.PluginId = source.PluginId; target.Data = new Binary(source.Data); target.FileName = source.FileName; 139 138 } 140 139 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HeuristicLab.Services.Hive.DataAccess-3.4.csproj
r5264 r5402 37 37 <PropertyGroup> 38 38 <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile> 39 </PropertyGroup> 40 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> 41 <DebugSymbols>true</DebugSymbols> 42 <OutputPath>bin\x86\Debug\</OutputPath> 43 <DefineConstants>DEBUG;TRACE</DefineConstants> 44 <DebugType>full</DebugType> 45 <PlatformTarget>x86</PlatformTarget> 46 <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Services.Hive.DataAccess-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 47 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 48 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 49 <ErrorReport>prompt</ErrorReport> 50 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 51 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 52 <CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets> 53 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 54 <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules> 55 </PropertyGroup> 56 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> 57 <OutputPath>bin\x86\Release\</OutputPath> 58 <DefineConstants>TRACE</DefineConstants> 59 <Optimize>true</Optimize> 60 <DebugType>pdbonly</DebugType> 61 <PlatformTarget>x86</PlatformTarget> 62 <CodeAnalysisLogFile>bin\Release\HeuristicLab.Services.Hive.DataAccess-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 63 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 64 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 65 <ErrorReport>prompt</ErrorReport> 66 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 67 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 68 <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets> 69 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 70 <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> 39 71 </PropertyGroup> 40 72 <ItemGroup> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HiveDao.cs
r5375 r5402 56 56 db.Jobs.InsertOnSubmit(entity); 57 57 db.SubmitChanges(); 58 foreach (Guid pluginId in dto.PluginsNeededIds) { 59 db.RequiredPlugins.InsertOnSubmit(new RequiredPlugin() { JobId = entity.JobId, PluginId = pluginId }); 60 } 61 db.SubmitChanges(); 58 62 return entity.JobId; 59 63 } … … 65 69 if (entity == null) db.Jobs.InsertOnSubmit(Convert.ToEntity(dto)); 66 70 else Convert.ToEntity(dto, entity); 71 // todo: update required plugins 67 72 db.SubmitChanges(); 68 73 } … … 232 237 public DT.PluginData GetPluginData(Guid id) { 233 238 using (var db = CreateContext()) { 234 return Convert.ToDto(db.PluginDatas.SingleOrDefault(x => x.Plugin Id == id));239 return Convert.ToDto(db.PluginDatas.SingleOrDefault(x => x.PluginDataId == id)); 235 240 } 236 241 } … … 247 252 db.PluginDatas.InsertOnSubmit(entity); 248 253 db.SubmitChanges(); 249 return entity.Plugin Id;254 return entity.PluginDataId; 250 255 } 251 256 } … … 262 267 public void DeletePluginData(Guid id) { 263 268 using (var db = CreateContext()) { 264 var entity = db.PluginDatas.FirstOrDefault(x => x.Plugin Id == id); //check if all the byte[] is loaded into memory here. otherwise work around to delete without loading it269 var entity = db.PluginDatas.FirstOrDefault(x => x.PluginDataId == id); // todo: check if all the byte[] is loaded into memory here. otherwise work around to delete without loading it 265 270 if (entity != null) db.PluginDatas.DeleteOnSubmit(entity); 266 271 db.SubmitChanges(); -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HiveDataContext.dbml
r5375 r5402 14 14 <Column Name="Name" Type="System.String" DbType="VarChar(MAX)" CanBeNull="false" /> 15 15 <Column Name="Version" Type="System.String" DbType="VarChar(MAX)" CanBeNull="false" /> 16 <Column Name="IsLocal" Type="System.Boolean" DbType="Bit" CanBeNull="false" /> 17 <Column Name="UserId" Type="System.Guid" DbType="UniqueIdentifier" CanBeNull="false" /> 18 <Column Name="DateCreated" Type="System.DateTime" DbType="DateTime" CanBeNull="false" /> 16 19 <Association Name="Plugin_RequiredPlugin" Member="RequiredPlugins" ThisKey="PluginId" OtherKey="PluginId" Type="RequiredPlugin" /> 17 20 <Association Name="Plugin_PluginData" Member="PluginData" ThisKey="PluginId" OtherKey="PluginId" Type="PluginData" /> … … 77 80 <Table Name="dbo.UptimeCalendar" Member="UptimeCalendars"> 78 81 <Type Name="UptimeCalendar"> 79 <Column Name="UptimeCalendarId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />80 <Column Name="ResourceId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" CanBeNull="false" />81 <Column Name="StartDate" Type="System.DateTime" DbType="DateTime NOT NULL" CanBeNull="false" />82 <Column Name="EndDate" Type="System.DateTime" DbType="DateTime NOT NULL" CanBeNull="false" />83 <Column Name="AllDayEvent" Type="System.Boolean" DbType="Bit NOT NULL" CanBeNull="false" />84 <Column Name="Recurring" Type="System.Boolean" DbType="Bit NOT NULL" CanBeNull="false" />82 <Column Name="UptimeCalendarId" Type="System.Guid" DbType="UniqueIdentifier" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" /> 83 <Column Name="ResourceId" Type="System.Guid" DbType="UniqueIdentifier" CanBeNull="false" /> 84 <Column Name="StartDate" Type="System.DateTime" DbType="DateTime" CanBeNull="false" /> 85 <Column Name="EndDate" Type="System.DateTime" DbType="DateTime" CanBeNull="false" /> 86 <Column Name="AllDayEvent" Type="System.Boolean" DbType="Bit" CanBeNull="false" /> 87 <Column Name="Recurring" Type="System.Boolean" DbType="Bit" CanBeNull="false" /> 85 88 <Column Name="RecurringId" Type="System.Guid" DbType="UniqueIdentifier" CanBeNull="false" /> 86 89 <Association Name="Resource_UptimeCalendar" Member="Resource" ThisKey="ResourceId" OtherKey="ResourceId" Type="Resource" IsForeignKey="true" DeleteRule="CASCADE" /> … … 109 112 <Table Name="" Member="PluginDatas"> 110 113 <Type Name="PluginData"> 114 <Column Name="PluginDataId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" /> 111 115 <Column Name="PluginId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" CanBeNull="false" /> 112 116 <Column Name="Data" Type="System.Data.Linq.Binary" DbType="VarBinary(MAX) NOT NULL" CanBeNull="false" UpdateCheck="Never" /> 113 117 <Column Name="FileName" Type="System.String" DbType="VarChar(MAX)" CanBeNull="false" /> 114 <Column Name="PluginDataId" Type="System.Int32" DbType="Int IDENTITY(1,1)" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />115 118 <Association Name="Plugin_PluginData" Member="Plugin" ThisKey="PluginId" OtherKey="PluginId" Type="Plugin" IsForeignKey="true" /> 116 119 </Type> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HiveDataContext.dbml.layout
r5375 r5402 9 9 </nestedChildShapes> 10 10 </classShape> 11 <classShape Id="7d998e56-4fba-41ca-a1a8-1dcdb9068edf" absoluteBounds="9, 5.5, 2, 1. 3862939453125005">11 <classShape Id="7d998e56-4fba-41ca-a1a8-1dcdb9068edf" absoluteBounds="9, 5.5, 2, 1.9631982421874996"> 12 12 <DataClassMoniker Name="/HiveDataContext/Plugin" /> 13 13 <nestedChildShapes> 14 <elementListCompartment Id="ec4ba325-6dff-4418-baad-59af81ae2024" absoluteBounds="9.015, 5.9600000000000009, 1.9700000000000002, 0.8262939453125" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" />14 <elementListCompartment Id="ec4ba325-6dff-4418-baad-59af81ae2024" absoluteBounds="9.015, 5.9600000000000009, 1.9700000000000002, 1.4031982421875" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" /> 15 15 </nestedChildShapes> 16 16 </classShape> … … 130 130 </nestedChildShapes> 131 131 </classShape> 132 <associationConnector edgePoints="[(11 : 6. 19314697265625); (11.625 : 6.19314697265625)]" fixedFrom="NotFixed" fixedTo="NotFixed">132 <associationConnector edgePoints="[(11 : 6.28929768880208); (11.625 : 6.28929768880208)]" fixedFrom="Algorithm" fixedTo="Algorithm"> 133 133 <AssociationMoniker Name="/HiveDataContext/Plugin/Plugin_PluginData" /> 134 134 <nodes> … … 144 144 </nodes> 145 145 </associationConnector> 146 <associationConnector edgePoints="[(9 : 6.19314697265625); (8.5 : 6.19314697265625)]" fixedFrom=" NotFixed" fixedTo="NotFixed">146 <associationConnector edgePoints="[(9 : 6.19314697265625); (8.5 : 6.19314697265625)]" fixedFrom="Algorithm" fixedTo="Algorithm"> 147 147 <AssociationMoniker Name="/HiveDataContext/Plugin/Plugin_RequiredPlugin" /> 148 148 <nodes> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HiveDataContext.designer.cs
r5375 r5402 361 361 private string _Version; 362 362 363 private bool _IsLocal; 364 365 private System.Guid _UserId; 366 367 private System.DateTime _DateCreated; 368 363 369 private EntitySet<RequiredPlugin> _RequiredPlugins; 364 370 … … 375 381 partial void OnVersionChanging(string value); 376 382 partial void OnVersionChanged(); 383 partial void OnIsLocalChanging(bool value); 384 partial void OnIsLocalChanged(); 385 partial void OnUserIdChanging(System.Guid value); 386 partial void OnUserIdChanged(); 387 partial void OnDateCreatedChanging(System.DateTime value); 388 partial void OnDateCreatedChanged(); 377 389 #endregion 378 390 … … 440 452 this.SendPropertyChanged("Version"); 441 453 this.OnVersionChanged(); 454 } 455 } 456 } 457 458 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsLocal", DbType="Bit")] 459 public bool IsLocal 460 { 461 get 462 { 463 return this._IsLocal; 464 } 465 set 466 { 467 if ((this._IsLocal != value)) 468 { 469 this.OnIsLocalChanging(value); 470 this.SendPropertyChanging(); 471 this._IsLocal = value; 472 this.SendPropertyChanged("IsLocal"); 473 this.OnIsLocalChanged(); 474 } 475 } 476 } 477 478 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier")] 479 public System.Guid UserId 480 { 481 get 482 { 483 return this._UserId; 484 } 485 set 486 { 487 if ((this._UserId != value)) 488 { 489 this.OnUserIdChanging(value); 490 this.SendPropertyChanging(); 491 this._UserId = value; 492 this.SendPropertyChanged("UserId"); 493 this.OnUserIdChanged(); 494 } 495 } 496 } 497 498 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DateCreated", DbType="DateTime")] 499 public System.DateTime DateCreated 500 { 501 get 502 { 503 return this._DateCreated; 504 } 505 set 506 { 507 if ((this._DateCreated != value)) 508 { 509 this.OnDateCreatedChanging(value); 510 this.SendPropertyChanging(); 511 this._DateCreated = value; 512 this.SendPropertyChanged("DateCreated"); 513 this.OnDateCreatedChanged(); 442 514 } 443 515 } … … 1835 1907 } 1836 1908 1837 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UptimeCalendarId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)]1909 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UptimeCalendarId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier", IsPrimaryKey=true, IsDbGenerated=true)] 1838 1910 public System.Guid UptimeCalendarId 1839 1911 { … … 1855 1927 } 1856 1928 1857 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceId", DbType="UniqueIdentifier NOT NULL")]1929 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceId", DbType="UniqueIdentifier")] 1858 1930 public System.Guid ResourceId 1859 1931 { … … 1879 1951 } 1880 1952 1881 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StartDate", DbType="DateTime NOT NULL")]1953 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StartDate", DbType="DateTime")] 1882 1954 public System.DateTime StartDate 1883 1955 { … … 1899 1971 } 1900 1972 1901 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EndDate", DbType="DateTime NOT NULL")]1973 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EndDate", DbType="DateTime")] 1902 1974 public System.DateTime EndDate 1903 1975 { … … 1919 1991 } 1920 1992 1921 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AllDayEvent", DbType="Bit NOT NULL")]1993 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AllDayEvent", DbType="Bit")] 1922 1994 public bool AllDayEvent 1923 1995 { … … 1939 2011 } 1940 2012 1941 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Recurring", DbType="Bit NOT NULL")]2013 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Recurring", DbType="Bit")] 1942 2014 public bool Recurring 1943 2015 { … … 2422 2494 private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); 2423 2495 2496 private System.Guid _PluginDataId; 2497 2424 2498 private System.Guid _PluginId; 2425 2499 … … 2427 2501 2428 2502 private string _FileName; 2429 2430 private int _PluginDataId;2431 2503 2432 2504 private EntityRef<Plugin> _Plugin; … … 2436 2508 partial void OnValidate(System.Data.Linq.ChangeAction action); 2437 2509 partial void OnCreated(); 2510 partial void OnPluginDataIdChanging(System.Guid value); 2511 partial void OnPluginDataIdChanged(); 2438 2512 partial void OnPluginIdChanging(System.Guid value); 2439 2513 partial void OnPluginIdChanged(); … … 2442 2516 partial void OnFileNameChanging(string value); 2443 2517 partial void OnFileNameChanged(); 2444 partial void OnPluginDataIdChanging(int value);2445 partial void OnPluginDataIdChanged();2446 2518 #endregion 2447 2519 … … 2450 2522 this._Plugin = default(EntityRef<Plugin>); 2451 2523 OnCreated(); 2524 } 2525 2526 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PluginDataId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)] 2527 public System.Guid PluginDataId 2528 { 2529 get 2530 { 2531 return this._PluginDataId; 2532 } 2533 set 2534 { 2535 if ((this._PluginDataId != value)) 2536 { 2537 this.OnPluginDataIdChanging(value); 2538 this.SendPropertyChanging(); 2539 this._PluginDataId = value; 2540 this.SendPropertyChanged("PluginDataId"); 2541 this.OnPluginDataIdChanged(); 2542 } 2543 } 2452 2544 } 2453 2545 … … 2516 2608 } 2517 2609 2518 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PluginDataId", AutoSync=AutoSync.OnInsert, DbType="Int IDENTITY(1,1)", IsPrimaryKey=true, IsDbGenerated=true)]2519 public int PluginDataId2520 {2521 get2522 {2523 return this._PluginDataId;2524 }2525 set2526 {2527 if ((this._PluginDataId != value))2528 {2529 this.OnPluginDataIdChanging(value);2530 this.SendPropertyChanging();2531 this._PluginDataId = value;2532 this.SendPropertyChanged("PluginDataId");2533 this.OnPluginDataIdChanged();2534 }2535 }2536 }2537 2538 2610 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Plugin_PluginData", Storage="_Plugin", ThisKey="PluginId", OtherKey="PluginId", IsForeignKey=true)] 2539 2611 public Plugin Plugin -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/Tools/prepareHiveDatabase.sql
r5106 r5402 43 43 ALTER TABLE dbo.Plugin ALTER COLUMN PluginId ADD ROWGUIDCOL; 44 44 ALTER TABLE dbo.Plugin WITH NOCHECK ADD CONSTRAINT [DF_Plugin_PluginId] DEFAULT (newid()) FOR PluginId; 45 46 ALTER TABLE dbo.PluginData ALTER COLUMN PluginDataId ADD ROWGUIDCOL; 47 ALTER TABLE dbo.PluginData WITH NOCHECK ADD CONSTRAINT [DF_PluginData_PluginDataId] DEFAULT (newid()) FOR PluginDataId; 45 48 46 49 ALTER TABLE dbo.RequiredPlugins ALTER COLUMN RequiredPluginId ADD ROWGUIDCOL; -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Tests/DaoTests.cs
r5155 r5402 33 33 DT.Job job1 = new DT.Job(); 34 34 job1.DateCreated = DateTime.Now; 35 36 DT.Plugin plugin1 = new DT.Plugin(); 37 plugin1.Name = "Tests.MyPlugin"; 38 plugin1.Version = new Version("1.0.0.0"); 39 plugin1.UserId = Guid.Empty; 40 plugin1.IsLocal = true; 41 plugin1.DateCreated = DateTime.Now; 42 43 DT.PluginData pluginData1 = new DT.PluginData(); 44 pluginData1.PluginId = plugin1.Id; 45 pluginData1.FileName = "Tests.MyPlugin-1.0.dll"; 46 pluginData1.Data = new byte[] { 0, 1, 2, 3, 4, 5 }; 47 48 plugin1.Id = dao.AddPlugin(plugin1); 49 pluginData1.PluginId = plugin1.Id; 50 pluginData1.Id = dao.AddPluginData(pluginData1); 51 52 job1.PluginsNeededIds.Add(plugin1.Id); 53 35 54 job1.Id = dao.AddJob(job1); 36 55 … … 41 60 Assert.AreEqual(job1.DateCreated.ToString(), job1loaded.DateCreated.ToString()); 42 61 Assert.AreEqual(null, job1loaded.DateFinished); 62 Assert.IsTrue(job1.PluginsNeededIds.SequenceEqual(job1loaded.PluginsNeededIds)); 43 63 44 64 dao.DeleteJob(job1.Id); … … 73 93 job.Id = dao.AddJob(job); 74 94 95 // todo 96 } 75 97 98 [TestMethod] 99 public void TestPluginDao() { 100 IHiveDao dao = ServiceLocator.Instance.HiveDao; 101 102 DT.Plugin plugin1 = new DT.Plugin(); 103 plugin1.DateCreated = DateTime.Now; 104 plugin1.IsLocal = false; 105 plugin1.Name = "Tests.MyPlugin"; 106 plugin1.Version = new Version("1.0.0.0"); 107 plugin1.UserId = Guid.Empty; 108 109 plugin1.Id = dao.AddPlugin(plugin1); 110 111 DT.Plugin plugin1loaded = dao.GetPlugin(plugin1.Id); 112 Assert.AreEqual(plugin1.Id, plugin1loaded.Id); 113 Assert.AreEqual(plugin1.Name, plugin1loaded.Name); 114 Assert.AreEqual(plugin1.Version, plugin1loaded.Version); 115 Assert.AreEqual(plugin1.UserId, plugin1loaded.UserId); 116 Assert.AreEqual(plugin1.DateCreated.ToString(), plugin1loaded.DateCreated.ToString()); 117 Assert.AreEqual(plugin1.IsLocal, plugin1loaded.IsLocal); 118 119 DT.PluginData pluginData1 = new DT.PluginData(); 120 pluginData1.PluginId = plugin1.Id; 121 pluginData1.FileName = "Tests.MyPlugin-1.0.dll"; 122 pluginData1.Data = new byte[] { 0, 1, 2, 3, 4, 5 }; 123 124 pluginData1.Id = dao.AddPluginData(pluginData1); 125 126 DT.PluginData pluginData1loaded = dao.GetPluginData(pluginData1.Id); 127 Assert.AreEqual(pluginData1.Id, pluginData1loaded.Id); 128 129 Assert.AreEqual(pluginData1.PluginId, pluginData1loaded.PluginId); 130 Assert.AreEqual(pluginData1.FileName, pluginData1loaded.FileName); 131 Assert.IsTrue(pluginData1.Data.SequenceEqual(pluginData1loaded.Data)); 132 133 dao.DeletePluginData(pluginData1.Id); 134 dao.DeletePlugin(plugin1.Id); 135 136 Assert.AreEqual(null, dao.GetPlugin(plugin1.Id)); 137 Assert.AreEqual(null, dao.GetPluginData(pluginData1.Id)); 76 138 } 139 77 140 } 78 141 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Tests/HeuristicLab.Services.Hive.Tests-3.4.csproj
r5106 r5402 33 33 <WarningLevel>4</WarningLevel> 34 34 </PropertyGroup> 35 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> 36 <DebugSymbols>true</DebugSymbols> 37 <OutputPath>bin\x86\Debug\</OutputPath> 38 <DefineConstants>DEBUG;TRACE</DefineConstants> 39 <DebugType>full</DebugType> 40 <PlatformTarget>x86</PlatformTarget> 41 <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Services.Hive.Tests-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 42 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 43 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 44 <ErrorReport>prompt</ErrorReport> 45 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 46 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 47 <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets> 48 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 49 <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> 50 </PropertyGroup> 51 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> 52 <OutputPath>bin\x86\Release\</OutputPath> 53 <DefineConstants>TRACE</DefineConstants> 54 <Optimize>true</Optimize> 55 <DebugType>pdbonly</DebugType> 56 <PlatformTarget>x86</PlatformTarget> 57 <CodeAnalysisLogFile>bin\Release\HeuristicLab.Services.Hive.Tests-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 58 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 59 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 60 <ErrorReport>prompt</ErrorReport> 61 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 62 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 63 <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets> 64 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 65 <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> 66 </PropertyGroup> 35 67 <ItemGroup> 36 68 <Reference Include="ALGLIB-2.5.0"> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Web/Hive-3.4
-
Property
svn:ignore
set to
Bin
-
Property
svn:ignore
set to
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Web/Hive-3.4/Web.config
r5364 r5402 70 70 71 71 <system.webServer> 72 < modules runAllManagedModulesForAllRequests="true">72 <!--<modules runAllManagedModulesForAllRequests="true"> 73 73 <add name="HiveServerModule" type="HeuristicLab.Hive.Server.Core.IISModules.HiveServerModule"/> 74 </modules> 74 </modules>--> 75 75 <directoryBrowse enabled="true"/> 76 76 </system.webServer> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive/3.4/HeuristicLab.Services.Hive-3.4.csproj
r5363 r5402 38 38 <PropertyGroup> 39 39 <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile> 40 </PropertyGroup> 41 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> 42 <DebugSymbols>true</DebugSymbols> 43 <OutputPath>bin\x86\Debug\</OutputPath> 44 <DefineConstants>DEBUG;TRACE</DefineConstants> 45 <DebugType>full</DebugType> 46 <PlatformTarget>x86</PlatformTarget> 47 <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Services.Hive-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 48 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 49 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 50 <ErrorReport>prompt</ErrorReport> 51 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 52 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 53 <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets> 54 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 55 <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> 56 </PropertyGroup> 57 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> 58 <OutputPath>bin\x86\Release\</OutputPath> 59 <DefineConstants>TRACE</DefineConstants> 60 <Optimize>true</Optimize> 61 <DebugType>pdbonly</DebugType> 62 <PlatformTarget>x86</PlatformTarget> 63 <CodeAnalysisLogFile>bin\Release\HeuristicLab.Services.Hive-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 64 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 65 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 66 <ErrorReport>prompt</ErrorReport> 67 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 68 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 69 <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets> 70 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 71 <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> 40 72 </PropertyGroup> 41 73 <ItemGroup> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive/3.4/HiveService.cs
r5375 r5402 213 213 public Guid AddPlugin(Plugin plugin, List<PluginData> pluginDatas) { 214 214 using (trans.OpenTransaction()) { 215 plugin.UserId = auth.UserId; 216 plugin.DateCreated = DateTime.Now; 215 217 Guid pluginId = dao.AddPlugin(plugin); 216 218 foreach (PluginData pluginData in pluginDatas) {
Note: See TracChangeset
for help on using the changeset viewer.