Changeset 4769 for branches/HeuristicLab.Hive/sources
- Timestamp:
- 11/11/10 10:46:12 (14 years ago)
- Location:
- branches/HeuristicLab.Hive/sources/HeuristicLab.Hive
- Files:
-
- 1 added
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Calendar/3.3/Properties/AssemblyInfo.cs
r4760 r4769 58 58 // [assembly: AssemblyVersion("1.0.*")] 59 59 [assembly: AssemblyVersion("3.3.0.0")] 60 [assembly: AssemblyFileVersion("3.3.0.47 55")]60 [assembly: AssemblyFileVersion("3.3.0.4760")] -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.ExperimentManager.Views/3.3/HiveExperimentManagerView.cs
r4760 r4769 53 53 Content_HiveExperimentsChanged(this, EventArgs.Empty); 54 54 Content_IsProgressingChanged(this, EventArgs.Empty); 55 if(Content != null) UpdateExperimentsAsync(); 55 56 } 56 57 … … 78 79 79 80 private void updateExperimentsButton_Click(object sender, EventArgs e) { 80 MethodInvoker invoker = new MethodInvoker(Content.UpdateExperimentList); 81 invoker.BeginInvoke((ar) => { 82 try { 83 invoker.EndInvoke(ar); 84 } 85 catch (Exception ex) { 86 ThreadPool.QueueUserWorkItem(delegate(object exception) { ErrorHandling.ShowErrorDialog(this, (Exception)exception); }, ex); 87 } 88 }, null); 81 if(Content != null) UpdateExperimentsAsync(); 89 82 } 90 83 … … 116 109 } 117 110 } 111 112 private void UpdateExperimentsAsync() { 113 MethodInvoker invoker = new MethodInvoker(Content.UpdateExperimentList); 114 invoker.BeginInvoke((ar) => { 115 try { 116 invoker.EndInvoke(ar); 117 } 118 catch (Exception ex) { 119 ThreadPool.QueueUserWorkItem(delegate(object exception) { ErrorHandling.ShowErrorDialog(this, (Exception)exception); }, ex); 120 } 121 }, null); 122 } 118 123 } 119 124 } -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.ExperimentManager.Views/3.3/HiveExperimentView.Designer.cs
r4760 r4769 313 313 this.disconnectButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 314 314 this.disconnectButton.Enabled = false; 315 this.disconnectButton.Location = new System.Drawing.Point( 131, 500);315 this.disconnectButton.Location = new System.Drawing.Point(234, 500); 316 316 this.disconnectButton.Name = "disconnectButton"; 317 317 this.disconnectButton.Size = new System.Drawing.Size(120, 24); 318 318 this.disconnectButton.TabIndex = 15; 319 this.disconnectButton.Text = " Disconnect from Hive";319 this.disconnectButton.Text = "Stop Result Polling"; 320 320 this.toolTip.SetToolTip(this.disconnectButton, "Disconnect from Hive (Jobs will be continue to be calculated)"); 321 321 this.disconnectButton.UseVisualStyleBackColor = true; … … 326 326 this.reconnectButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 327 327 this.reconnectButton.Enabled = false; 328 this.reconnectButton.Location = new System.Drawing.Point( 257, 500);328 this.reconnectButton.Location = new System.Drawing.Point(120, 500); 329 329 this.reconnectButton.Name = "reconnectButton"; 330 this.reconnectButton.Size = new System.Drawing.Size( 77, 24);330 this.reconnectButton.Size = new System.Drawing.Size(108, 24); 331 331 this.reconnectButton.TabIndex = 16; 332 this.reconnectButton.Text = " Reconnect";332 this.reconnectButton.Text = "Start Result Polling"; 333 333 this.toolTip.SetToolTip(this.reconnectButton, "Reconnect to Hive"); 334 334 this.reconnectButton.UseVisualStyleBackColor = true; -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.ExperimentManager.Views/3.3/HiveExperimentView.resx
r4423 r4769 204 204 fNTws+7PbaOWo6fHXMf6Hwc/vj/OGn/2S8Yv7ycKnpCfVEyqTDZPmU2dmnafvvF05dOJZ+nPFmYKf5X+ 205 205 tfa5zvMffnP8rX82YnbiBf/Fp99LXsq/PPRq2aueuYC5R69TXy/MF72Rf3P4LeNt37vwd5MLWe+x7ys/ 206 6H7o/ujz8cGn1E+f/gUDmPP8usTo0wAAAAlwSFlzAAAOv gAADr4B6kKxwAAAA2JJREFUOE9lk31MFHQY206 6H7o/ujz8cGn1E+f/gUDmPP8usTo0wAAAAlwSFlzAAAOvQAADr0BR/uQrQAAA2JJREFUOE9lk31MFHQY 207 207 x59JZIU62/QPF1gauDJXjkpyZLxVMEEubgpKU0NePKS6yp168qaJ4OIlMhUH6hRWChyuuuTaQjqFk8j0 208 208 MEhlURdMRgp0XERccfjpx7G1Vn8822+/fb/fz/f54xFA/jtDf03S4fyTloE/6PhlFNfvY0xMTCjZ/7X/ -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.ExperimentManager/3.3/HeuristicLab.Hive.ExperimentManager-3.3.csproj
r4760 r4769 125 125 <Compile Include="JobResultPoller.cs" /> 126 126 <Compile Include="Exceptions\JobResultPollingException.cs" /> 127 <Compile Include="Hive Client.cs" />127 <Compile Include="HiveExperimentManager.cs" /> 128 128 <Compile Include="HiveExperimentList.cs" /> 129 129 <Compile Include="HeuristicLabHiveExperimentManagerPlugin.cs" /> -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.LINQDataAccess/3.3/Scripts/prepareHiveDatabase.sql
r4423 r4769 1 1 /* this script is supposed to be executed after the plain DB is generated by the linq-to-sql schema */ 2 USE [HeuristicLab.Hive] 3 GO 2 4 3 5 /* … … 32 34 ALTER TABLE dbo.AssignedResources ALTER COLUMN AssignedRessourcesId ADD ROWGUIDCOL; 33 35 ALTER TABLE dbo.AssignedResources WITH NOCHECK ADD CONSTRAINT [DF_AssignedResources_AssignedRessourcesId] DEFAULT (newid()) FOR AssignedRessourcesId; 36 ALTER TABLE [dbo].[AssignedResources] DROP CONSTRAINT [Job_AssignedResource] 37 ALTER TABLE [dbo].[AssignedResources] WITH CHECK ADD CONSTRAINT [Job_AssignedResource] FOREIGN KEY([JobId]) 38 REFERENCES [dbo].[Job] ([JobId]) 39 ON UPDATE CASCADE 40 ON DELETE CASCADE 41 GO 42 ALTER TABLE [dbo].[AssignedResources] DROP CONSTRAINT [Resource_AssignedResource] 43 ALTER TABLE [dbo].[AssignedResources] WITH CHECK ADD CONSTRAINT [Resource_AssignedResource] FOREIGN KEY([ResourceId]) 44 REFERENCES [dbo].[Resource] ([ResourceId]) 45 ON UPDATE CASCADE 46 ON DELETE CASCADE 47 GO 34 48 35 49 ALTER TABLE dbo.Job ALTER COLUMN JobId ADD ROWGUIDCOL; … … 51 65 ALTER TABLE dbo.RequiredPlugins WITH NOCHECK ADD CONSTRAINT [DF_RequiredPlugins_RequiredPluginId] DEFAULT (newid()) FOR RequiredPluginId; 52 66 67 ALTER TABLE [dbo].[RequiredPlugins] DROP CONSTRAINT [Job_RequiredPlugin] 68 ALTER TABLE [dbo].[RequiredPlugins] WITH CHECK ADD CONSTRAINT [Job_RequiredPlugin] FOREIGN KEY([JobId]) 69 REFERENCES [dbo].[Job] ([JobId]) 70 ON UPDATE CASCADE 71 ON DELETE CASCADE 72 GO 73 74 ALTER TABLE [dbo].[RequiredPlugins] DROP CONSTRAINT [PluginInfo_RequiredPlugin] 75 ALTER TABLE [dbo].[RequiredPlugins] WITH CHECK ADD CONSTRAINT [PluginInfo_RequiredPlugin] FOREIGN KEY([PluginId]) 76 REFERENCES [dbo].[PluginInfo] ([PluginId]) 77 ON UPDATE CASCADE 78 ON DELETE CASCADE 79 GO 80 53 81 ALTER TABLE dbo.Resource ALTER COLUMN ResourceId ADD ROWGUIDCOL; 54 82 ALTER TABLE dbo.Resource WITH NOCHECK ADD CONSTRAINT [DF_Resource_ResourceId] DEFAULT (newid()) FOR ResourceId; … … 65 93 /* create indices */ 66 94 CREATE INDEX Index_RequiredPlugins_JobId ON RequiredPlugins(JobId); 95 96 /* triggers */ 97 SET ANSI_NULLS ON 98 GO 99 SET QUOTED_IDENTIFIER ON 100 GO 101 -- ============================================= 102 -- Author: cneumuel 103 -- Create date: 11.11.2010 104 -- Description: Deletes the root-job of the experiment when experiment is deleted 105 -- ============================================= 106 CREATE TRIGGER [dbo].[tr_HiveExperimentDeleteCascade] ON [dbo].[HiveExperiment] FOR DELETE AS 107 SET NOCOUNT ON 108 DELETE Job FROM deleted, Job WHERE Job.JobId = deleted.RootJobId 109 GO 110 111 SET ANSI_NULLS ON 112 GO 113 SET QUOTED_IDENTIFIER ON 114 GO 115 -- ============================================= 116 -- Author: cneumuel 117 -- Create date: 11.11.2010 118 -- Description: Recursively deletes all child-jobs of a job when it is deleted. (Source: http://devio.wordpress.com/2008/05/23/recursive-delete-in-sql-server/) 119 -- ============================================= 120 CREATE TRIGGER [dbo].[tr_JobDeleteCascade] ON [dbo].[Job] INSTEAD OF DELETE AS 121 BEGIN 122 CREATE TABLE #Table( 123 JobId uniqueidentifier 124 ) 125 INSERT INTO #Table (JobId) 126 SELECT JobId FROM deleted 127 128 DECLARE @c INT 129 SET @c = 0 130 131 WHILE @c <> (SELECT COUNT(JobId) FROM #Table) BEGIN 132 SELECT @c = COUNT(JobId) FROM #Table 133 134 INSERT INTO #Table (JobId) 135 SELECT Job.JobId 136 FROM Job 137 LEFT OUTER JOIN #Table ON Job.JobId = #Table.JobId 138 WHERE Job.ParentJobId IN (SELECT JobId FROM #Table) 139 AND #Table.JobId IS NULL 140 END 141 142 DELETE Job FROM Job INNER JOIN #Table ON Job.JobId = #Table.JobId 143 END
Note: See TracChangeset
for help on using the changeset viewer.