Changeset 4772
- Timestamp:
- 11/11/10 15:30:03 (14 years ago)
- Location:
- branches/HeuristicLab.Hive/sources/HeuristicLab.Hive
- Files:
-
- 3 added
- 1 deleted
- 34 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Calendar/3.3/Properties/AssemblyInfo.frame
r4171 r4772 56 56 // You can specify all the values or you can default the Build and Revision Numbers 57 57 // by using the '*' as shown below: 58 // [assembly: AssemblyVersion("1.0.*")]59 58 [assembly: AssemblyVersion("3.3.0.0")] 60 59 [assembly: AssemblyFileVersion("3.3.0.$WCREV$")] -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/Interfaces/ILifecycleManager.cs
r4424 r4772 21 21 22 22 using System; 23 using System.Collections.Generic; 24 using HeuristicLab.PluginInfrastructure.Manager; 23 25 24 26 namespace HeuristicLab.Hive.Contracts.Interfaces { … … 47 49 48 50 event EventHandler Stopped; 51 52 IEnumerable<PluginDescription> Plugins { get; set; } 49 53 } 50 54 } -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.ExperimentManager.Views/3.3
- Property svn:ignore
-
old new 2 2 obj 3 3 HeuristicLab.Hive.Experiment.Views-3.3.csproj.user 4 HeuristicLab.Hive.ExperimentManager.Views-3.3.csproj.user
-
- Property svn:ignore
-
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.ExperimentManager.Views/3.3/MenuItems/ConnectionSetupMenuItem.cs
r4760 r4772 44 44 } 45 45 public override int Position { 46 get { return 1 0000; }46 get { return 11000; } 47 47 } 48 48 } -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.ExperimentManager.Views/3.3/MenuItems/ExperimentManagerMenuItem.cs
r4760 r4772 38 38 } 39 39 public override int Position { 40 get { return 1 1000; }40 get { return 10000; } 41 41 } 42 42 } -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.ExperimentManager/3.3
- Property svn:ignore
-
old new 2 2 obj 3 3 HeuristicLab.Hive.Experiment-3.3.csproj.user 4 HeuristicLab.Hive.ExperimentManager-3.3.csproj.user
-
- Property svn:ignore
-
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Console/3.3/HiveServerConsole.Designer.cs
r4425 r4772 46 46 private void InitializeComponent() { 47 47 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HiveServerConsole)); 48 this.gbConfiguration = new System.Windows.Forms.GroupBox();49 this.lblIp = new System.Windows.Forms.Label();50 this.tbIp = new System.Windows.Forms.TextBox();51 48 this.btnLogin = new System.Windows.Forms.Button(); 52 49 this.gpUser = new System.Windows.Forms.GroupBox(); … … 58 55 this.pictureBox1 = new System.Windows.Forms.PictureBox(); 59 56 this.btnCancel = new System.Windows.Forms.Button(); 60 this.gbConfiguration.SuspendLayout();61 57 this.gpUser.SuspendLayout(); 62 58 ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); 63 59 this.SuspendLayout(); 64 //65 // gbConfiguration66 //67 this.gbConfiguration.Controls.Add(this.lblIp);68 this.gbConfiguration.Controls.Add(this.tbIp);69 this.gbConfiguration.Location = new System.Drawing.Point(188, 100);70 this.gbConfiguration.Name = "gbConfiguration";71 this.gbConfiguration.Size = new System.Drawing.Size(283, 82);72 this.gbConfiguration.TabIndex = 4;73 this.gbConfiguration.TabStop = false;74 this.gbConfiguration.Text = "Configuration";75 //76 // lblIp77 //78 this.lblIp.AutoSize = true;79 this.lblIp.Location = new System.Drawing.Point(16, 26);80 this.lblIp.Name = "lblIp";81 this.lblIp.Size = new System.Drawing.Size(17, 13);82 this.lblIp.TabIndex = 2;83 this.lblIp.Text = "IP";84 //85 // tbIp86 //87 this.tbIp.Location = new System.Drawing.Point(77, 19);88 this.tbIp.Name = "tbIp";89 this.tbIp.Size = new System.Drawing.Size(191, 20);90 this.tbIp.TabIndex = 5;91 this.tbIp.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.HiveServerConsole_KeyPress);92 60 // 93 61 // btnLogin … … 193 161 this.Controls.Add(this.gpUser); 194 162 this.Controls.Add(this.btnLogin); 195 this.Controls.Add(this.gbConfiguration);196 163 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; 197 164 this.Name = "HiveServerConsole"; … … 199 166 this.Text = "Server Console Logon"; 200 167 this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.HiveServerConsole_KeyPress); 201 this.gbConfiguration.ResumeLayout(false);202 this.gbConfiguration.PerformLayout();203 168 this.gpUser.ResumeLayout(false); 204 169 this.gpUser.PerformLayout(); … … 211 176 #endregion 212 177 213 private System.Windows.Forms.GroupBox gbConfiguration;214 private System.Windows.Forms.Label lblIp;215 private System.Windows.Forms.TextBox tbIp;216 178 private System.Windows.Forms.Button btnLogin; 217 179 private System.Windows.Forms.GroupBox gpUser; -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Console/3.3/HiveServerConsole.cs
r4425 r4772 50 50 /// <param name="e"></param> 51 51 private void BtnLogin_Click(object sender, EventArgs e) { 52 string newIp = tbIp.Text;53 newIp = newIp.Replace(" ", "");54 55 ServiceLocator.Address = newIp;56 57 52 if (IsValid()) { 58 53 this.Visible = false; … … 71 66 Thread t = new Thread(new ThreadStart(ShowWaitDlg)); 72 67 if (IsFormValidated()) { 73 IPAddress ipAdress = IPAddress.Parse(tbIp.Text);74 68 IServerConsoleFacade scf; 75 69 Response resp; … … 79 73 t.Start(); 80 74 81 ServiceLocator.Address = tbIp.Text.Replace(" ", "");82 75 ServiceLocator.Username = tbUserName.Text; 83 76 ServiceLocator.Password = tbPwd.Text; … … 129 122 isValid = false; 130 123 } 131 if (String.IsNullOrEmpty(tbIp.Text)) {132 lblError.Text = "Please type in Port.";133 isValid = false;134 }135 try {136 IPAddress.Parse(tbIp.Text);137 }138 catch (Exception ex) {139 isValid = false;140 lblError.Text = "Please verify entered IP address.";141 }142 124 return isValid; 143 125 } -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Console/3.3/ServiceLocator.cs
r4425 r4772 9 9 private static IServerConsoleFacade serverConsoleFacade = null; 10 10 11 internal static string Address { get; set; }12 11 internal static string Username { get; set; } 13 12 internal static string Password { get; set; } // [chn] TODO: Don't store plaintext password in memory! … … 22 21 23 22 internal static IServerConsoleFacade GetServerConsoleFacade() { 24 if (serverConsoleFacade == null && Address != String.Empty) {23 if (serverConsoleFacade == null) { 25 24 ChannelFactory<IServerConsoleFacade> factory = new ChannelFactory<IServerConsoleFacade>("ServerConsoleHttpEndpoint"); 26 WcfSettings.SetEndpointAddress(factory.Endpoint, Address);25 //WcfSettings.SetEndpointAddress(factory.Endpoint, Address); 27 26 28 27 factory.Credentials.UserName.UserName = Username; -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/LifecycleManager.cs
r4710 r4772 24 24 using HeuristicLab.Hive.Contracts.Interfaces; 25 25 using HeuristicLab.Hive.Tracing; 26 using System.Collections.Generic; 27 using HeuristicLab.PluginInfrastructure.Manager; 26 28 27 29 namespace HeuristicLab.Hive.Server.Core { … … 46 48 } 47 49 } 50 } 51 52 private IEnumerable<PluginDescription> plugins; 53 public IEnumerable<PluginDescription> Plugins { 54 get { return plugins; } 55 set { plugins = value; } 48 56 } 49 57 … … 99 107 100 108 #endregion 109 110 101 111 } 102 112 } -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/SlaveCommunicator.cs
r4710 r4772 35 35 using System.Diagnostics; 36 36 using HeuristicLab.Hive.Tracing; 37 using HeuristicLab.PluginInfrastructure.Manager; 37 38 38 39 namespace HeuristicLab.Hive.Server.Core { … … 756 757 foreach (HivePluginInfoDto pluginInfo in pluginList) { 757 758 if (pluginInfo.Update) { 758 //check if there is a newer version 759 IPluginDescription ipd = ApplicationManager.Manager.Plugins.Where(pd => pd.Name == pluginInfo.Name && pd.Version.Major == pluginInfo.Version.Major && pd.Version.Minor == pluginInfo.Version.Minor && pd.Version.Revision > pluginInfo.Version.Revision).SingleOrDefault(); 759 //check if there is a newer version 760 761 IPluginDescription ipd = GetAvailablePlugins().Where(pd => pd.Name == pluginInfo.Name && pd.Version.Major == pluginInfo.Version.Major && pd.Version.Minor == pluginInfo.Version.Minor && pd.Version.Revision > pluginInfo.Version.Revision).SingleOrDefault(); 760 762 if (ipd != null) { 761 763 response.List.Add(ConvertPluginDescriptorToDto(ipd)); 762 764 } 763 765 } else { 764 IPluginDescription ipd = ApplicationManager.Manager.Plugins.Where(pd => pd.Name == pluginInfo.Name && pd.Version.Major == pluginInfo.Version.Major && pd.Version.Minor == pluginInfo.Version.Minor && pd.Version.Revision >= pluginInfo.Version.Revision).SingleOrDefault();766 IPluginDescription ipd = GetAvailablePlugins().Where(pd => pd.Name == pluginInfo.Name && pd.Version.Major == pluginInfo.Version.Major && pd.Version.Minor == pluginInfo.Version.Minor && pd.Version.Revision >= pluginInfo.Version.Revision).SingleOrDefault(); 765 767 if (ipd != null) { 766 768 response.List.Add(ConvertPluginDescriptorToDto(ipd)); … … 774 776 } 775 777 778 private IEnumerable<PluginDescription> GetAvailablePlugins() { 779 return lifecycleManager.Plugins; 780 } 781 776 782 private CachedHivePluginInfoDto ConvertPluginDescriptorToDto(IPluginDescription currPlugin) { 777 783 CachedHivePluginInfoDto currCachedPlugin = new CachedHivePluginInfoDto { -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.LINQDataAccess/3.3/JobDao.cs
r4424 r4772 184 184 Job j = Context.Jobs.SingleOrDefault(jq => jq.JobId.Equals(job.Id)); 185 185 j.Slave = null; 186 j.JobState = Enum.GetName(typeof(JobState), JobState.Offline); 186 187 var childJobs = Context.Jobs.Where(child => child.ParentJobId == j.JobId); 188 189 if (childJobs.Count() > 0) { 190 j.JobState = JobState.WaitForChildJobs.ToString(); 191 } else { 192 j.JobState = JobState.Offline.ToString(); 193 } 194 187 195 CommitChanges(); 188 196 } -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3/WcfService.cs
r4710 r4772 173 173 MemoryStream memStream = null; 174 174 try { 175 if (ar.IsCompleted) { 176 Logger.Debug("ENDED: Fetching of Jobs from Server for Slave"); 177 stream = service.Obj.EndGetStreamedJob(ar); 178 179 //first deserialize the response 180 BinaryFormatter formatter = new BinaryFormatter(); 181 ResponseObject<JobDto> response = (ResponseObject<JobDto>)formatter.Deserialize(stream); 182 183 //second deserialize the BLOB 184 memStream = new MemoryStream(); 185 186 byte[] buffer = new byte[3024]; 187 int read = 0; 188 while ((read = stream.Read(buffer, 0, buffer.Length)) > 0) { 189 memStream.Write(buffer, 0, read); 190 } 191 192 memStream.Close(); 193 194 GetJobCompletedEventArgs completedEventArgs = new GetJobCompletedEventArgs(new object[] { response, memStream.GetBuffer() }, null, !ar.IsCompleted, ar.AsyncState); 195 GetJobCompleted(this, completedEventArgs); 196 197 } else { 198 HandleNetworkError(new FaultException("GetJobAsync did not complete")); 175 Logger.Debug("ENDED: Fetching of Jobs from Server for Slave"); 176 stream = service.Obj.EndGetStreamedJob(ar); 177 178 //first deserialize the response 179 BinaryFormatter formatter = new BinaryFormatter(); 180 ResponseObject<JobDto> response = (ResponseObject<JobDto>)formatter.Deserialize(stream); 181 182 //second deserialize the BLOB 183 memStream = new MemoryStream(); 184 185 byte[] buffer = new byte[3024]; 186 int read = 0; 187 while ((read = stream.Read(buffer, 0, buffer.Length)) > 0) { 188 memStream.Write(buffer, 0, read); 199 189 } 190 191 memStream.Close(); 192 193 GetJobCompletedEventArgs completedEventArgs = new GetJobCompletedEventArgs(new object[] { response, memStream.GetBuffer() }, null, !ar.IsCompleted, ar.AsyncState); 194 GetJobCompleted(this, completedEventArgs); 200 195 } 201 196 catch (Exception e) { … … 236 231 stream.Dispose(); 237 232 238 if (ar.IsCompleted) { 239 var res = service.Obj.EndStoreFinishedJobResultStreamed(ar); 240 StoreFinishedJobResultCompletedEventArgs args = new StoreFinishedJobResultCompletedEventArgs(new object[] { res }, null, false, null); 241 Logger.Debug("calling the Finished Job Event"); 242 GetFinishedJobResultCompleted(this, args); 243 Logger.Debug("ENDED: Sending back the finished job results"); 244 } else { 245 HandleNetworkError(new FaultException("GetFinishedJobResultAsync did not complete")); 246 } 233 var res = service.Obj.EndStoreFinishedJobResultStreamed(ar); 234 StoreFinishedJobResultCompletedEventArgs args = new StoreFinishedJobResultCompletedEventArgs(new object[] { res }, null, false, null); 235 Logger.Debug("calling the Finished Job Event"); 236 GetFinishedJobResultCompleted(this, args); 237 Logger.Debug("ENDED: Sending back the finished job results"); 247 238 } 248 239 catch (Exception e) { … … 269 260 stream.Dispose(); 270 261 271 if (ar.IsCompleted) { 272 var res = service.Obj.EndStoreFinishedJobResultStreamed(ar); 273 ProcessSnapshotCompletedEventArgs args = new ProcessSnapshotCompletedEventArgs(new object[] { res }, null, false, null); 274 ProcessSnapshotCompleted(this, args); 275 } else { 276 HandleNetworkError(new FaultException("ProcessSnapshotAsync did not complete")); 277 } 262 var res = service.Obj.EndStoreFinishedJobResultStreamed(ar); 263 ProcessSnapshotCompletedEventArgs args = new ProcessSnapshotCompletedEventArgs(new object[] { res }, null, false, null); 264 ProcessSnapshotCompleted(this, args); 278 265 } 279 266 catch (Exception e) { -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Console/3.3/HeuristicLab.Hive.Slave.Console-3.3.csproj
r4710 r4772 79 79 </PropertyGroup> 80 80 <ItemGroup> 81 <Reference Include="HeuristicLab.Common-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 82 <HintPath>..\..\..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Common-3.3.dll</HintPath> 83 </Reference> 84 <Reference Include="HeuristicLab.Core-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 85 <HintPath>..\..\..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Core-3.3.dll</HintPath> 86 </Reference> 81 87 <Reference Include="HeuristicLab.PluginInfrastructure-3.3"> 82 88 <HintPath>C:\Program Files\HeuristicLab 3.3\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> … … 117 123 <Compile Include="HeuristicLabHiveSlaveConsolePlugin.cs" /> 118 124 <Compile Include="HeuristicLabHiveSlaveConsoleApplication.cs" /> 125 <Compile Include="ILogReader.cs" /> 119 126 <Compile Include="LogFileReader.cs" /> 127 <Compile Include="LogServiceReader.cs" /> 120 128 <Compile Include="Properties\AssemblyInfo.cs" /> 121 129 <Compile Include="Service References\SlaveConsoleService\Reference.cs"> … … 161 169 <DependentUpon>Recurrence.cs</DependentUpon> 162 170 </Compile> 171 <None Include="Service References\SlaveConsoleService\Arrays.xsd"> 172 <SubType>Designer</SubType> 173 </None> 163 174 <None Include="Service References\SlaveConsoleService\HeuristicLab.Calendar.xsd"> 164 175 <SubType>Designer</SubType> -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Console/3.3/HiveSlaveConsole.cs
r4424 r4772 51 51 private static bool isfired = false; 52 52 //the logfilereader 53 private LogFileReader logFileReader;53 private ILogReader logFileReader; 54 54 55 55 //communication with the slave … … 103 103 104 104 private void InitLogFileReader() { 105 logFileReader = new LogFileReader(AppDomain.CurrentDomain.BaseDirectory + @"/Hive.Slave.log"); 106 logFileReader.MoreData += new LogFileReader.MoreDataHandler(logFileReader_MoreData); 105 //logFileReader = new LogFileReader(AppDomain.CurrentDomain.BaseDirectory + @"/Hive.Slave.log"); 106 logFileReader = new LogServiceReader(slaveCommunicator); 107 logFileReader.MoreData += new MoreDataHandler(logFileReader_MoreData); 107 108 logFileReader.Start(); 108 109 } … … 406 407 407 408 private void btnSaveCal_Click(object sender, EventArgs e) { 408 slaveCommunicator.SetUptimeCalendarAsync(onlineTimes .ToArray());409 slaveCommunicator.SetUptimeCalendarAsync(onlineTimes); 409 410 } 410 411 … … 488 489 curJobStatusItem = new ListViewItem(curJob.JobId.ToString()); 489 490 curJobStatusItem.SubItems.Add(curJob.Since.ToString()); 490 progress = curJob.Progress * 100;491 curJobStatusItem.SubItems.Add(progress.ToString());492 491 lvJobDetail.Items.Add(curJobStatusItem); 493 492 } -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Console/3.3/HiveSlaveConsole.designer.cs
r4424 r4772 112 112 this.dvOnline.ActiveTool = drawTool1; 113 113 this.dvOnline.AmPmDisplay = false; 114 this.dvOnline.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 115 | System.Windows.Forms.AnchorStyles.Left) 116 | System.Windows.Forms.AnchorStyles.Right))); 114 117 this.dvOnline.AppointmentDuration = HeuristicLab.Calendar.AppointmentSlotDuration.SixtyMinutes; 115 118 this.dvOnline.AppointmentHeightMode = HeuristicLab.Calendar.AppHeightDrawMode.TrueHeightAll; … … 127 130 this.dvOnline.SelectionEnd = new System.DateTime(((long)(0))); 128 131 this.dvOnline.SelectionStart = new System.DateTime(((long)(0))); 129 this.dvOnline.Size = new System.Drawing.Size(823, 2 25);132 this.dvOnline.Size = new System.Drawing.Size(823, 234); 130 133 this.dvOnline.StartDate = new System.DateTime(((long)(0))); 131 134 this.dvOnline.TabIndex = 18; … … 134 137 // tcClientConsole 135 138 // 139 this.tcClientConsole.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 140 | System.Windows.Forms.AnchorStyles.Left) 141 | System.Windows.Forms.AnchorStyles.Right))); 136 142 this.tcClientConsole.Controls.Add(this.tpConnection); 137 143 this.tcClientConsole.Controls.Add(this.tabPage2); 138 this.tcClientConsole.Dock = System.Windows.Forms.DockStyle.Fill;139 144 this.tcClientConsole.ItemSize = new System.Drawing.Size(410, 21); 140 145 this.tcClientConsole.Location = new System.Drawing.Point(0, 0); 141 146 this.tcClientConsole.Name = "tcClientConsole"; 142 147 this.tcClientConsole.SelectedIndex = 0; 143 this.tcClientConsole.Size = new System.Drawing.Size(85 3, 438);148 this.tcClientConsole.Size = new System.Drawing.Size(850, 457); 144 149 this.tcClientConsole.SizeMode = System.Windows.Forms.TabSizeMode.Fixed; 145 150 this.tcClientConsole.TabIndex = 1; … … 155 160 this.tpConnection.Padding = new System.Windows.Forms.Padding(3); 156 161 this.tpConnection.RightToLeft = System.Windows.Forms.RightToLeft.No; 157 this.tpConnection.Size = new System.Drawing.Size(84 5, 409);162 this.tpConnection.Size = new System.Drawing.Size(842, 428); 158 163 this.tpConnection.TabIndex = 0; 159 164 this.tpConnection.Text = "Status"; … … 223 228 // gbJobCommon 224 229 // 230 this.gbJobCommon.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 231 | System.Windows.Forms.AnchorStyles.Right))); 225 232 this.gbJobCommon.Controls.Add(this.lvJobDetail); 226 233 this.gbJobCommon.Location = new System.Drawing.Point(568, 6); … … 401 408 // gbEventLog 402 409 // 410 this.gbEventLog.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 411 | System.Windows.Forms.AnchorStyles.Left) 412 | System.Windows.Forms.AnchorStyles.Right))); 403 413 this.gbEventLog.Controls.Add(this.txtLog); 404 414 this.gbEventLog.Location = new System.Drawing.Point(7, 176); 405 415 this.gbEventLog.Name = "gbEventLog"; 406 this.gbEventLog.Size = new System.Drawing.Size(830, 2 30);416 this.gbEventLog.Size = new System.Drawing.Size(830, 249); 407 417 this.gbEventLog.TabIndex = 7; 408 418 this.gbEventLog.TabStop = false; … … 411 421 // txtLog 412 422 // 423 this.txtLog.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 424 | System.Windows.Forms.AnchorStyles.Left) 425 | System.Windows.Forms.AnchorStyles.Right))); 413 426 this.txtLog.Location = new System.Drawing.Point(6, 19); 414 427 this.txtLog.Multiline = true; … … 416 429 this.txtLog.ReadOnly = true; 417 430 this.txtLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; 418 this.txtLog.Size = new System.Drawing.Size(818, 2 05);431 this.txtLog.Size = new System.Drawing.Size(818, 224); 419 432 this.txtLog.TabIndex = 0; 420 433 // … … 430 443 this.tabPage2.Name = "tabPage2"; 431 444 this.tabPage2.Padding = new System.Windows.Forms.Padding(3); 432 this.tabPage2.Size = new System.Drawing.Size(84 5, 409);445 this.tabPage2.Size = new System.Drawing.Size(842, 428); 433 446 this.tabPage2.TabIndex = 1; 434 447 this.tabPage2.Text = "Schedule"; … … 598 611 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 599 612 this.BackColor = System.Drawing.SystemColors.Control; 600 this.ClientSize = new System.Drawing.Size(85 3, 438);613 this.ClientSize = new System.Drawing.Size(850, 457); 601 614 this.Controls.Add(this.tcClientConsole); 602 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;603 615 this.MaximizeBox = false; 604 616 this.MinimizeBox = false; -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Console/3.3/HiveSlaveConsole.resx
r4423 r4772 125 125 AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w 126 126 LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 127 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERG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FAAGAAQABgAUAAYABAQGAAQEEAAHAAQEBwAEB 171 BAABwAEDAcABAwQAAeABBwHgAQcEAAH4AQ8B+AEPBAAE/wQACw== 172 172 </value> 173 173 </data> 174 <metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">175 <value>True</value>176 </metadata>177 174 <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 178 175 <value>46</value> -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Console/3.3/LogFileReader.cs
r4424 r4772 24 24 25 25 namespace HeuristicLab.Hive.Slave.Console { 26 class LogFileReader {26 internal class LogFileReader : HeuristicLab.Hive.Slave.Console.ILogReader { 27 27 string filename = ""; 28 28 FileSystemWatcher fileSystemWatcher = null; 29 29 long previousSeekPosition; 30 30 31 public delegate void MoreDataHandler(object sender, string newData);32 31 public event MoreDataHandler MoreData; 33 32 private int maxBytes = 1024 * 16; … … 72 71 73 72 public void StartMonitoring() { 74 73 fileSystemWatcher.Changed += new FileSystemEventHandler(TargetFile_Changed); 75 74 fileSystemWatcher.Renamed += new RenamedEventHandler(TargetFile_Renamed); 76 75 fileSystemWatcher.EnableRaisingEvents = true; -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Console/3.3/Service References/SlaveConsoleService/HeuristicLab.Hive.Slave.Core.SlaveConsoleService.xsd
r4320 r4772 25 25 <xs:complexType name="JobStatus"> 26 26 <xs:sequence> 27 <xs:element minOccurs="0" name="ExecutionTime" type="ser:duration" /> 27 28 <xs:element minOccurs="0" name="JobId" type="ser:guid" /> 28 <xs:element minOccurs="0" name="Progress" type="xs:double" />29 29 <xs:element minOccurs="0" name="Since" type="xs:dateTime" /> 30 30 </xs:sequence> -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Console/3.3/Service References/SlaveConsoleService/Reference.cs
r4710 r4772 34 34 35 35 [System.Runtime.Serialization.OptionalFieldAttribute()] 36 private HeuristicLab.Hive.Slave.Console.SlaveConsoleService.JobStatus[]JobsField;36 private System.Collections.Generic.List<HeuristicLab.Hive.Slave.Console.SlaveConsoleService.JobStatus> JobsField; 37 37 38 38 [System.Runtime.Serialization.OptionalFieldAttribute()] … … 101 101 102 102 [System.Runtime.Serialization.DataMemberAttribute()] 103 public HeuristicLab.Hive.Slave.Console.SlaveConsoleService.JobStatus[]Jobs {103 public System.Collections.Generic.List<HeuristicLab.Hive.Slave.Console.SlaveConsoleService.JobStatus> Jobs { 104 104 get { 105 105 return this.JobsField; … … 199 199 200 200 [System.Runtime.Serialization.OptionalFieldAttribute()] 201 private System.TimeSpan ExecutionTimeField; 202 203 [System.Runtime.Serialization.OptionalFieldAttribute()] 201 204 private System.Guid JobIdField; 202 203 [System.Runtime.Serialization.OptionalFieldAttribute()]204 private double ProgressField;205 205 206 206 [System.Runtime.Serialization.OptionalFieldAttribute()] … … 214 214 set { 215 215 this.extensionDataField = value; 216 } 217 } 218 219 [System.Runtime.Serialization.DataMemberAttribute()] 220 public System.TimeSpan ExecutionTime { 221 get { 222 return this.ExecutionTimeField; 223 } 224 set { 225 if ((this.ExecutionTimeField.Equals(value) != true)) { 226 this.ExecutionTimeField = value; 227 this.RaisePropertyChanged("ExecutionTime"); 228 } 216 229 } 217 230 } … … 226 239 this.JobIdField = value; 227 240 this.RaisePropertyChanged("JobId"); 228 }229 }230 }231 232 [System.Runtime.Serialization.DataMemberAttribute()]233 public double Progress {234 get {235 return this.ProgressField;236 }237 set {238 if ((this.ProgressField.Equals(value) != true)) {239 this.ProgressField = value;240 this.RaisePropertyChanged("Progress");241 241 } 242 242 } … … 363 363 364 364 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveConsoleCommunicator/SetUptimeCalendar", ReplyAction="http://tempuri.org/ISlaveConsoleCommunicator/SetUptimeCalendarResponse")] 365 void SetUptimeCalendar( HeuristicLab.Calendar.Appointment[]appointments);365 void SetUptimeCalendar(System.Collections.Generic.List<HeuristicLab.Calendar.Appointment> appointments); 366 366 367 367 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveConsoleCommunicator/SetUptimeCalendar", ReplyAction="http://tempuri.org/ISlaveConsoleCommunicator/SetUptimeCalendarResponse")] 368 System.IAsyncResult BeginSetUptimeCalendar( HeuristicLab.Calendar.Appointment[]appointments, System.AsyncCallback callback, object asyncState);368 System.IAsyncResult BeginSetUptimeCalendar(System.Collections.Generic.List<HeuristicLab.Calendar.Appointment> appointments, System.AsyncCallback callback, object asyncState); 369 369 370 370 void EndSetUptimeCalendar(System.IAsyncResult result); 371 371 372 372 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveConsoleCommunicator/GetUptimeCalendar", ReplyAction="http://tempuri.org/ISlaveConsoleCommunicator/GetUptimeCalendarResponse")] 373 HeuristicLab.Calendar.Appointment[]GetUptimeCalendar();373 System.Collections.Generic.List<HeuristicLab.Calendar.Appointment> GetUptimeCalendar(); 374 374 375 375 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveConsoleCommunicator/GetUptimeCalendar", ReplyAction="http://tempuri.org/ISlaveConsoleCommunicator/GetUptimeCalendarResponse")] 376 376 System.IAsyncResult BeginGetUptimeCalendar(System.AsyncCallback callback, object asyncState); 377 377 378 HeuristicLab.Calendar.Appointment[] EndGetUptimeCalendar(System.IAsyncResult result); 378 System.Collections.Generic.List<HeuristicLab.Calendar.Appointment> EndGetUptimeCalendar(System.IAsyncResult result); 379 380 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveConsoleCommunicator/GetLogMessages", ReplyAction="http://tempuri.org/ISlaveConsoleCommunicator/GetLogMessagesResponse")] 381 System.Collections.Generic.List<string> GetLogMessages(); 382 383 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveConsoleCommunicator/GetLogMessages", ReplyAction="http://tempuri.org/ISlaveConsoleCommunicator/GetLogMessagesResponse")] 384 System.IAsyncResult BeginGetLogMessages(System.AsyncCallback callback, object asyncState); 385 386 System.Collections.Generic.List<string> EndGetLogMessages(System.IAsyncResult result); 379 387 } 380 388 … … 432 440 } 433 441 434 public HeuristicLab.Calendar.Appointment[]Result {442 public System.Collections.Generic.List<HeuristicLab.Calendar.Appointment> Result { 435 443 get { 436 444 base.RaiseExceptionIfNecessary(); 437 return ((HeuristicLab.Calendar.Appointment[])(this.results[0])); 445 return ((System.Collections.Generic.List<HeuristicLab.Calendar.Appointment>)(this.results[0])); 446 } 447 } 448 } 449 450 [System.Diagnostics.DebuggerStepThroughAttribute()] 451 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 452 public partial class GetLogMessagesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { 453 454 private object[] results; 455 456 public GetLogMessagesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 457 base(exception, cancelled, userState) { 458 this.results = results; 459 } 460 461 public System.Collections.Generic.List<string> Result { 462 get { 463 base.RaiseExceptionIfNecessary(); 464 return ((System.Collections.Generic.List<string>)(this.results[0])); 438 465 } 439 466 } … … 480 507 private System.Threading.SendOrPostCallback onGetUptimeCalendarCompletedDelegate; 481 508 509 private BeginOperationDelegate onBeginGetLogMessagesDelegate; 510 511 private EndOperationDelegate onEndGetLogMessagesDelegate; 512 513 private System.Threading.SendOrPostCallback onGetLogMessagesCompletedDelegate; 514 482 515 public SlaveConsoleCommunicatorClient() { 483 516 } … … 510 543 511 544 public event System.EventHandler<GetUptimeCalendarCompletedEventArgs> GetUptimeCalendarCompleted; 545 546 public event System.EventHandler<GetLogMessagesCompletedEventArgs> GetLogMessagesCompleted; 512 547 513 548 public HeuristicLab.Hive.Slave.Console.SlaveConsoleService.StatusCommons GetStatusInfos() { … … 703 738 } 704 739 705 public void SetUptimeCalendar( HeuristicLab.Calendar.Appointment[]appointments) {740 public void SetUptimeCalendar(System.Collections.Generic.List<HeuristicLab.Calendar.Appointment> appointments) { 706 741 base.Channel.SetUptimeCalendar(appointments); 707 742 } 708 743 709 744 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 710 public System.IAsyncResult BeginSetUptimeCalendar( HeuristicLab.Calendar.Appointment[]appointments, System.AsyncCallback callback, object asyncState) {745 public System.IAsyncResult BeginSetUptimeCalendar(System.Collections.Generic.List<HeuristicLab.Calendar.Appointment> appointments, System.AsyncCallback callback, object asyncState) { 711 746 return base.Channel.BeginSetUptimeCalendar(appointments, callback, asyncState); 712 747 } … … 718 753 719 754 private System.IAsyncResult OnBeginSetUptimeCalendar(object[] inValues, System.AsyncCallback callback, object asyncState) { 720 HeuristicLab.Calendar.Appointment[] appointments = ((HeuristicLab.Calendar.Appointment[])(inValues[0]));755 System.Collections.Generic.List<HeuristicLab.Calendar.Appointment> appointments = ((System.Collections.Generic.List<HeuristicLab.Calendar.Appointment>)(inValues[0])); 721 756 return this.BeginSetUptimeCalendar(appointments, callback, asyncState); 722 757 } … … 734 769 } 735 770 736 public void SetUptimeCalendarAsync( HeuristicLab.Calendar.Appointment[]appointments) {771 public void SetUptimeCalendarAsync(System.Collections.Generic.List<HeuristicLab.Calendar.Appointment> appointments) { 737 772 this.SetUptimeCalendarAsync(appointments, null); 738 773 } 739 774 740 public void SetUptimeCalendarAsync( HeuristicLab.Calendar.Appointment[]appointments, object userState) {775 public void SetUptimeCalendarAsync(System.Collections.Generic.List<HeuristicLab.Calendar.Appointment> appointments, object userState) { 741 776 if ((this.onBeginSetUptimeCalendarDelegate == null)) { 742 777 this.onBeginSetUptimeCalendarDelegate = new BeginOperationDelegate(this.OnBeginSetUptimeCalendar); … … 752 787 } 753 788 754 public HeuristicLab.Calendar.Appointment[]GetUptimeCalendar() {789 public System.Collections.Generic.List<HeuristicLab.Calendar.Appointment> GetUptimeCalendar() { 755 790 return base.Channel.GetUptimeCalendar(); 756 791 } … … 762 797 763 798 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 764 public HeuristicLab.Calendar.Appointment[]EndGetUptimeCalendar(System.IAsyncResult result) {799 public System.Collections.Generic.List<HeuristicLab.Calendar.Appointment> EndGetUptimeCalendar(System.IAsyncResult result) { 765 800 return base.Channel.EndGetUptimeCalendar(result); 766 801 } … … 771 806 772 807 private object[] OnEndGetUptimeCalendar(System.IAsyncResult result) { 773 HeuristicLab.Calendar.Appointment[]retVal = this.EndGetUptimeCalendar(result);808 System.Collections.Generic.List<HeuristicLab.Calendar.Appointment> retVal = this.EndGetUptimeCalendar(result); 774 809 return new object[] { 775 810 retVal}; … … 799 834 base.InvokeAsync(this.onBeginGetUptimeCalendarDelegate, null, this.onEndGetUptimeCalendarDelegate, this.onGetUptimeCalendarCompletedDelegate, userState); 800 835 } 836 837 public System.Collections.Generic.List<string> GetLogMessages() { 838 return base.Channel.GetLogMessages(); 839 } 840 841 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 842 public System.IAsyncResult BeginGetLogMessages(System.AsyncCallback callback, object asyncState) { 843 return base.Channel.BeginGetLogMessages(callback, asyncState); 844 } 845 846 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 847 public System.Collections.Generic.List<string> EndGetLogMessages(System.IAsyncResult result) { 848 return base.Channel.EndGetLogMessages(result); 849 } 850 851 private System.IAsyncResult OnBeginGetLogMessages(object[] inValues, System.AsyncCallback callback, object asyncState) { 852 return this.BeginGetLogMessages(callback, asyncState); 853 } 854 855 private object[] OnEndGetLogMessages(System.IAsyncResult result) { 856 System.Collections.Generic.List<string> retVal = this.EndGetLogMessages(result); 857 return new object[] { 858 retVal}; 859 } 860 861 private void OnGetLogMessagesCompleted(object state) { 862 if ((this.GetLogMessagesCompleted != null)) { 863 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); 864 this.GetLogMessagesCompleted(this, new GetLogMessagesCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState)); 865 } 866 } 867 868 public void GetLogMessagesAsync() { 869 this.GetLogMessagesAsync(null); 870 } 871 872 public void GetLogMessagesAsync(object userState) { 873 if ((this.onBeginGetLogMessagesDelegate == null)) { 874 this.onBeginGetLogMessagesDelegate = new BeginOperationDelegate(this.OnBeginGetLogMessages); 875 } 876 if ((this.onEndGetLogMessagesDelegate == null)) { 877 this.onEndGetLogMessagesDelegate = new EndOperationDelegate(this.OnEndGetLogMessages); 878 } 879 if ((this.onGetLogMessagesCompletedDelegate == null)) { 880 this.onGetLogMessagesCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetLogMessagesCompleted); 881 } 882 base.InvokeAsync(this.onBeginGetLogMessagesDelegate, null, this.onEndGetLogMessagesDelegate, this.onGetLogMessagesCompletedDelegate, userState); 883 } 801 884 } 802 885 } -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Console/3.3/Service References/SlaveConsoleService/Reference.svcmap
r4320 r4772 9 9 <GenerateMessageContracts>false</GenerateMessageContracts> 10 10 <NamespaceMappings /> 11 <CollectionMappings /> 11 <CollectionMappings> 12 <CollectionMapping TypeName="System.Collections.Generic.List`1" Category="List" /> 13 </CollectionMappings> 12 14 <GenerateSerializableTypes>true</GenerateSerializableTypes> 13 15 <Serializer>Auto</Serializer> 14 16 <UseSerializerForFaults>true</UseSerializerForFaults> 15 <ReferenceAllAssemblies>true</ReferenceAllAssemblies> 16 <ReferencedAssemblies /> 17 <ReferenceAllAssemblies>false</ReferenceAllAssemblies> 18 <ReferencedAssemblies> 19 <ReferencedAssembly AssemblyName="HeuristicLab.Calendar-3.3" /> 20 <ReferencedAssembly AssemblyName="HeuristicLab.Common-3.3" /> 21 <ReferencedAssembly AssemblyName="HeuristicLab.Core-3.3" /> 22 <ReferencedAssembly AssemblyName="HeuristicLab.Hive.Contracts-3.3" /> 23 <ReferencedAssembly AssemblyName="HeuristicLab.PluginInfrastructure-3.3" /> 24 <ReferencedAssembly AssemblyName="mscorlib" /> 25 <ReferencedAssembly AssemblyName="System" /> 26 <ReferencedAssembly AssemblyName="System.Core" /> 27 <ReferencedAssembly AssemblyName="System.Data" /> 28 <ReferencedAssembly AssemblyName="System.Data.DataSetExtensions" /> 29 <ReferencedAssembly AssemblyName="System.Deployment" /> 30 <ReferencedAssembly AssemblyName="System.Drawing" /> 31 <ReferencedAssembly AssemblyName="System.Runtime.Serialization" /> 32 <ReferencedAssembly AssemblyName="System.ServiceModel" /> 33 <ReferencedAssembly AssemblyName="System.Windows.Forms" /> 34 <ReferencedAssembly AssemblyName="System.Xml" /> 35 <ReferencedAssembly AssemblyName="System.Xml.Linq" /> 36 </ReferencedAssemblies> 17 37 <ReferencedDataContractTypes /> 18 38 <ServiceContractMappings /> … … 29 49 <MetadataFile FileName="HeuristicLab.Calendar.xsd" MetadataType="Schema" ID="d6c22e40-4e4f-4549-bf7d-df34f00ddab5" SourceId="1" SourceUrl="net.tcp://localhost:8000/SlaveConsoleService/mex" /> 30 50 <MetadataFile FileName="System.Drawing.xsd" MetadataType="Schema" ID="bc68bc42-889a-42a3-b9f5-9c3fc446495c" SourceId="1" SourceUrl="net.tcp://localhost:8000/SlaveConsoleService/mex" /> 51 <MetadataFile FileName="Arrays.xsd" MetadataType="Schema" ID="76e752c7-248d-454e-8267-cd84a943b3e9" SourceId="1" SourceUrl="net.tcp://localhost:8000/SlaveConsoleService/mex" /> 31 52 </Metadata> 32 53 <Extensions> -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Console/3.3/Service References/SlaveConsoleService/service.wsdl
r4342 r4772 19 19 <xsd:import namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Calendar" /> 20 20 <xsd:import namespace="http://schemas.datacontract.org/2004/07/System.Drawing" /> 21 <xsd:import namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" /> 21 22 </xsd:schema> 22 23 </wsdl:types> … … 57 58 <wsdl:part name="parameters" element="tns:GetUptimeCalendarResponse" /> 58 59 </wsdl:message> 60 <wsdl:message name="ISlaveConsoleCommunicator_GetLogMessages_InputMessage"> 61 <wsdl:part name="parameters" element="tns:GetLogMessages" /> 62 </wsdl:message> 63 <wsdl:message name="ISlaveConsoleCommunicator_GetLogMessages_OutputMessage"> 64 <wsdl:part name="parameters" element="tns:GetLogMessagesResponse" /> 65 </wsdl:message> 59 66 <wsdl:portType name="ISlaveConsoleCommunicator"> 60 67 <wsdl:operation name="GetStatusInfos"> … … 81 88 <wsdl:input wsaw:Action="http://tempuri.org/ISlaveConsoleCommunicator/GetUptimeCalendar" message="tns:ISlaveConsoleCommunicator_GetUptimeCalendar_InputMessage" /> 82 89 <wsdl:output wsaw:Action="http://tempuri.org/ISlaveConsoleCommunicator/GetUptimeCalendarResponse" message="tns:ISlaveConsoleCommunicator_GetUptimeCalendar_OutputMessage" /> 90 </wsdl:operation> 91 <wsdl:operation name="GetLogMessages"> 92 <wsdl:input wsaw:Action="http://tempuri.org/ISlaveConsoleCommunicator/GetLogMessages" message="tns:ISlaveConsoleCommunicator_GetLogMessages_InputMessage" /> 93 <wsdl:output wsaw:Action="http://tempuri.org/ISlaveConsoleCommunicator/GetLogMessagesResponse" message="tns:ISlaveConsoleCommunicator_GetLogMessages_OutputMessage" /> 83 94 </wsdl:operation> 84 95 </wsdl:portType> … … 141 152 </wsdl:output> 142 153 </wsdl:operation> 154 <wsdl:operation name="GetLogMessages"> 155 <soap12:operation soapAction="http://tempuri.org/ISlaveConsoleCommunicator/GetLogMessages" style="document" /> 156 <wsdl:input> 157 <soap12:body use="literal" /> 158 </wsdl:input> 159 <wsdl:output> 160 <soap12:body use="literal" /> 161 </wsdl:output> 162 </wsdl:operation> 143 163 </wsdl:binding> 144 164 <wsdl:service name="SlaveConsoleCommunicator"> -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Console/3.3/Service References/SlaveConsoleService/service.xsd
r4342 r4772 3 3 <xs:import namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Slave.Core.SlaveConsoleService" /> 4 4 <xs:import namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Calendar" /> 5 <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" /> 5 6 <xs:element name="GetStatusInfos"> 6 7 <xs:complexType> … … 73 74 </xs:complexType> 74 75 </xs:element> 76 <xs:element name="GetLogMessages"> 77 <xs:complexType> 78 <xs:sequence /> 79 </xs:complexType> 80 </xs:element> 81 <xs:element name="GetLogMessagesResponse"> 82 <xs:complexType> 83 <xs:sequence> 84 <xs:element xmlns:q6="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="GetLogMessagesResult" nillable="true" type="q6:ArrayOfstring" /> 85 </xs:sequence> 86 </xs:complexType> 87 </xs:element> 75 88 </xs:schema> -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/ConfigurationManager/UptimeManager.cs
r4710 r4772 28 28 using HeuristicLab.Hive.Contracts.BusinessObjects; 29 29 using HeuristicLab.Hive.Contracts.ResponseObjects; 30 using HeuristicLab.Hive.Tracing;31 30 32 31 namespace HeuristicLab.Hive.Slave.Core.ConfigurationManager { -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/Core.cs
r4710 r4772 36 36 using HeuristicLab.Hive.Slave.Core.SlaveConsoleService; 37 37 using HeuristicLab.Hive.Slave.ExecutionEngine; 38 using HeuristicLab.Hive.Tracing;39 38 40 39 namespace HeuristicLab.Hive.Slave.Core { … … 44 43 public class Core : MarshalByRefObject { 45 44 public static bool abortRequested { get; set; } 45 46 public static ILog Log { get; set; } 46 47 47 48 private Dictionary<Guid, Executor> engines = new Dictionary<Guid, Executor>(); -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/HeartbeatManager.cs
r4710 r4772 30 30 using HeuristicLab.Hive.Slave.Communication.SlaveFacade; 31 31 using HeuristicLab.Hive.Slave.Core.ConfigurationManager; 32 using HeuristicLab.Hive.Tracing;33 32 34 33 namespace HeuristicLab.Hive.Slave.Core { -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/HeuristicLab.Hive.Slave.Core-3.3.csproj
r4710 r4772 108 108 </ItemGroup> 109 109 <ItemGroup> 110 <Compile Include="Logger.cs" /> 110 111 <Compile Include="SlaveConsoleService\SlaveConsoleCommunicator.cs" /> 111 112 <Compile Include="SlaveConsoleService\SlaveConsoleServer.cs" /> -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/JobStorage/JobStorageManager.cs
r4710 r4772 29 29 using HeuristicLab.Hive.Slave.Communication; 30 30 using HeuristicLab.Hive.Slave.Core.ConfigurationManager; 31 using HeuristicLab.Hive.Tracing;32 31 33 32 namespace HeuristicLab.Hive.Slave.Core.JobStorage { -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/PluginCache.cs
r4710 r4772 29 29 using HeuristicLab.PluginInfrastructure; 30 30 using HeuristicLab.PluginInfrastructure.Manager; 31 using HeuristicLab.Hive.Tracing;32 31 33 32 namespace HeuristicLab.Hive.Slave.Core { -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/SlaveConsoleService/Interfaces/ISlaveConsoleCommunicator.cs
r4424 r4772 23 23 using System.ServiceModel; 24 24 using HeuristicLab.Calendar; 25 using HeuristicLab.Core; 25 26 26 27 namespace HeuristicLab.Hive.Slave.Core.SlaveConsoleService.Interfaces { … … 65 66 List<Appointment> GetUptimeCalendar(); 66 67 68 [OperationContract] 69 List<string> GetLogMessages(); 67 70 } 68 71 } -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/SlaveConsoleService/SlaveConsoleCommunicator.cs
r4424 r4772 21 21 22 22 using System.Collections.Generic; 23 using System.Linq; 23 24 using HeuristicLab.Calendar; 24 25 using HeuristicLab.Hive.Contracts; … … 27 28 using HeuristicLab.Hive.Slave.Core.ConfigurationManager; 28 29 using HeuristicLab.Hive.Slave.Core.SlaveConsoleService.Interfaces; 30 using HeuristicLab.Core; 31 29 32 30 33 namespace HeuristicLab.Hive.Slave.Core.SlaveConsoleService { … … 57 60 } 58 61 62 public List<string> GetLogMessages() { 63 return Logger.Log.Messages.ToList(); 64 } 65 59 66 #endregion 60 67 } -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.ExecutionEngine/3.3/Executor.cs
r4424 r4772 46 46 } 47 47 public MessageQueue Queue { get; set; } 48 49 public bool JobIsFinished { get; set; } 50 48 51 49 public ExecutionState ExecutionState { 52 50 get { … … 87 85 } 88 86 catch (OutOfMemoryException e) { 89 JobIsFinished = true;90 87 this.currentException = e; 91 88 Queue.AddMessage(new MessageContainer(MessageContainer.MessageType.JobFailed, JobId)); … … 98 95 } 99 96 catch (OutOfMemoryException e) { 100 JobIsFinished = true;101 97 this.currentException = e; 102 98 Queue.AddMessage(new MessageContainer(MessageContainer.MessageType.JobFailed, JobId)); … … 108 104 if ((ExecutionState == ExecutionState.Started) || (ExecutionState == ExecutionState.Paused)) { 109 105 Job.Stop(); 106 } else { 107 Job_JobStopped(this, EventArgs.Empty); 110 108 } 111 109 } … … 156 154 }; 157 155 158 JobIsFinished = true;159 156 Queue.AddMessage(new MessageContainerWithJob(MessageContainer.MessageType.PauseJob, this.JobId, serializedJob)); 160 157 } … … 171 168 172 169 private void Job_JobStopped(object sender, EventArgs e) { 173 if (CurrentMessage == MessageContainer.MessageType.NoMessage) { 174 Queue.AddMessage(new MessageContainer(MessageContainer.MessageType.FinishedJob, JobId)); 175 JobIsFinished = true; 176 } else if (CurrentMessage == MessageContainer.MessageType.RequestSnapshot) { 170 if (CurrentMessage == MessageContainer.MessageType.RequestSnapshot) { 177 171 Queue.AddMessage(new MessageContainer(MessageContainer.MessageType.SnapshotReady, JobId)); 178 172 } else if (CurrentMessage == MessageContainer.MessageType.AbortJob) { 179 173 Queue.AddMessage(new MessageContainer(MessageContainer.MessageType.JobAborted, JobId)); 174 } else { 175 Queue.AddMessage(new MessageContainer(MessageContainer.MessageType.FinishedJob, JobId)); 180 176 } 181 177 } … … 217 213 public Executor() { 218 214 CurrentMessage = MessageContainer.MessageType.NoMessage; 219 JobIsFinished = false; 220 } 221 222 #region IDisposable Members 215 } 223 216 224 217 public void Dispose() { … … 227 220 Job = null; 228 221 } 229 230 #endregion231 232 222 } 233 223 } -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Tracing/3.3/Logger.cs
r4710 r4772 10 10 11 11 public static void Debug(object message) { 12 //TraceSource ts = new TraceSource(source);13 //ts.TraceInformation(message.ToString());14 //ts.Close();12 TraceSource ts = new TraceSource(source); 13 ts.TraceInformation(message.ToString()); 14 ts.Close(); 15 15 } 16 16 17 17 public static void Info(object message) { 18 //TraceSource ts = new TraceSource(source);19 //ts.TraceInformation(message.ToString());20 //ts.Close();18 TraceSource ts = new TraceSource(source); 19 ts.TraceInformation(message.ToString()); 20 ts.Close(); 21 21 } 22 22 23 23 public static void Warn(object message) { 24 //TraceSource ts = new TraceSource(source);25 //ts.TraceInformation(message.ToString());26 //ts.Close();24 TraceSource ts = new TraceSource(source); 25 ts.TraceInformation(message.ToString()); 26 ts.Close(); 27 27 } 28 28 -
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HiveWeb/App_Code/HiveServerModule.cs
r4755 r4772 9 9 using HeuristicLab.Hive.Contracts.Interfaces; 10 10 using HeuristicLab.PluginInfrastructure; 11 using HeuristicLab.PluginInfrastructure.Manager; 11 12 12 13 namespace HeuristicLab.Hive.Server.Core.IISModules { … … 14 15 private static object locker = new object(); 15 16 private static ILifecycleManager lifecycleManager; 16 17 private static PluginManager pm; 18 17 19 public void Init(HttpApplication context) { 18 20 lock (locker) { 19 if(lifecycleManager == null) lifecycleManager = ServiceLocator.GetLifecycleManager(); 20 lifecycleManager.Start(); 21 if (lifecycleManager == null) { 22 pm = new PluginManager(@"C:\ch\SVN\branches\HeuristicLab.Hive\sources\HeuristicLab.Hive\HiveWeb\App_Data\Plugins\"); 23 pm.DiscoverAndCheckPlugins(); 24 pm.InitializeLifetimeService(); 25 26 lifecycleManager = ServiceLocator.GetLifecycleManager(); 27 lifecycleManager.Plugins = pm.Plugins; 28 lifecycleManager.Start(); 29 } 21 30 } 22 31 }
Note: See TracChangeset
for help on using the changeset viewer.