Changeset 1581
- Timestamp:
- 04/16/09 17:48:26 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Hive.Server.Console/3.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Console/3.2/HiveServerManagementConsole.Designer.cs
r1530 r1581 47 47 this.plJobDetails = new System.Windows.Forms.Panel(); 48 48 this.lvSnapshots = new System.Windows.Forms.ListView(); 49 this.chJobId = new System.Windows.Forms.ColumnHeader(); 50 this.chTimeCalculated = new System.Windows.Forms.ColumnHeader(); 49 this.chClientCalculated = new System.Windows.Forms.ColumnHeader(); 51 50 this.chProgress = new System.Windows.Forms.ColumnHeader(); 51 this.chSnapshotTime = new System.Windows.Forms.ColumnHeader(); 52 52 this.lblPriorityJob = new System.Windows.Forms.Label(); 53 53 this.lblParentJob = new System.Windows.Forms.Label(); … … 289 289 // 290 290 this.lvSnapshots.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { 291 this.ch JobId,292 this.ch TimeCalculated,293 this.ch Progress});291 this.chClientCalculated, 292 this.chProgress, 293 this.chSnapshotTime}); 294 294 this.lvSnapshots.Enabled = false; 295 295 this.lvSnapshots.FullRowSelect = true; … … 302 302 this.lvSnapshots.View = System.Windows.Forms.View.Details; 303 303 // 304 // chJobId 305 // 306 this.chJobId.Text = "Job-ID"; 307 // 308 // chTimeCalculated 309 // 310 this.chTimeCalculated.Text = "Calculated At"; 304 // chClientCalculated 305 // 306 this.chClientCalculated.Text = "Client Calculated"; 307 this.chClientCalculated.Width = 88; 311 308 // 312 309 // chProgress 313 310 // 314 311 this.chProgress.Text = "Progress"; 312 this.chProgress.Width = 67; 313 // 314 // chSnapshotTime 315 // 316 this.chSnapshotTime.Text = "Snapshot request"; 317 this.chSnapshotTime.Width = 166; 315 318 // 316 319 // lblPriorityJob … … 636 639 private System.Windows.Forms.Label lblParentJob; 637 640 private System.Windows.Forms.ListView lvSnapshots; 638 private System.Windows.Forms.ColumnHeader chJobId; 639 private System.Windows.Forms.ColumnHeader chTimeCalculated; 641 private System.Windows.Forms.ColumnHeader chClientCalculated; 640 642 private System.Windows.Forms.ColumnHeader chProgress; 641 643 private System.Windows.Forms.Label lblStateClient; … … 650 652 private System.Windows.Forms.ListView lvJobControl; 651 653 private System.Windows.Forms.CheckBox checkBox1; 654 private System.Windows.Forms.ColumnHeader chSnapshotTime; 652 655 } 653 656 } -
trunk/sources/HeuristicLab.Hive.Server.Console/3.2/HiveServerManagementConsole.cs
r1530 r1581 79 79 } 80 80 81 private void updaterWoker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { 82 Refresh(); 83 } 81 84 82 85 private int CapacityRam(int noCores, int freeCores) { … … 231 234 232 235 /// <summary> 233 /// if one client is clicked, a panel is opened with the details 236 /// if one client is clicked, the details for the clicked client are shown 237 /// in the second panel 234 238 /// </summary> 235 239 private void ClientClicked() { … … 258 262 259 263 /// <summary> 260 /// if one job is clicked, a panel is opened with the details 264 /// if one job is clicked, the details for the clicked job are shown 265 /// in the second panel 261 266 /// </summary> 262 267 private void JobClicked() { … … 296 301 } 297 302 if (currentJob.State != State.offline) { 303 GetSnapshotList(); 298 304 lvSnapshots.Visible = true; 299 305 } else { … … 307 313 RefreshJob(change); 308 314 } else if (change.Types == Type.Client) { 309 315 RefreshClient(change); 310 316 } else if (change.Types == Type.ClientGroup) { 311 317 RefreshClientGroup(change); … … 426 432 AddJobForm newForm = new AddJobForm(); 427 433 newForm.Show(); 428 //newForm.addJobEvent += new addDelegate(updaterWoker.RunWorkerAsync);434 newForm.addJobEvent += new addDelegate(updaterWoker.RunWorkerAsync); 429 435 } 430 436 … … 649 655 } 650 656 657 private void GetSnapshotList() { 658 659 lvSnapshots.Items.Clear(); 660 IJobManager jobManager = 661 ServiceLocator.GetJobManager(); 662 ResponseObject<JobResult> jobRes = jobManager.GetLastJobResultOf(currentJob.Id, false); 663 ListViewItem curSnapshot = new ListViewItem(jobRes.Obj.Client.Name); 664 double percentage = jobRes.Obj.Percentage * 100; 665 curSnapshot.SubItems.Add(percentage.ToString() + " %"); 666 curSnapshot.SubItems.Add(jobRes.Obj.timestamp.ToString()); 667 lvSnapshots.Items.Add(curSnapshot); 668 669 670 } 651 671 652 672 #endregion 653 673 654 private void updaterWoker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) {655 Refresh();656 }657 674 658 675
Note: See TracChangeset
for help on using the changeset viewer.