Changeset 4116 for branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Console/3.3
- Timestamp:
- 07/27/10 18:36:36 (14 years ago)
- Location:
- branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Console/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Console/3.3/AddJobForm.cs
r4105 r4116 110 110 if (numJobs > 0) { 111 111 for (int i = 0; i < numJobs; i++) { 112 JobDto job = new JobDto { State = State. offline, CoresNeeded = 1 };112 JobDto job = new JobDto { State = State.Offline, CoresNeeded = 1 }; 113 113 114 114 // if project selected (0 -> none) -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Console/3.3/HiveServerManagementConsole.cs
r4042 r4116 109 109 void jdf_NewDataAvailable(object sender, EventArgs e) { 110 110 JobDataFetcher fetcher = (JobDataFetcher) sender; 111 if (fetcher.PollStates.Contains(State. finished)) {111 if (fetcher.PollStates.Contains(State.Finished)) { 112 112 updateJobListView(fetcher, lv_finishedJobs, 0); 113 } else if(fetcher.PollStates.Contains(State. calculating)) {113 } else if(fetcher.PollStates.Contains(State.Calculating)) { 114 114 updateJobListView(fetcher, lv_calculatingJobs, 1); 115 } else if (fetcher.PollStates.Contains(State. offline)) {115 } else if (fetcher.PollStates.Contains(State.Offline)) { 116 116 updateJobListView(fetcher, lv_offlineJobs, 2); 117 117 } … … 136 136 private void Init() { 137 137 138 jdfFinished = new JobDataFetcher(new State[] {State. finished}, 50);139 jdfCalculating = new JobDataFetcher(new State[] {State. calculating}, 50);140 jdfOffline = new JobDataFetcher(new State[] {State. offline}, 50);138 jdfFinished = new JobDataFetcher(new State[] {State.Finished}, 50); 139 jdfCalculating = new JobDataFetcher(new State[] {State.Calculating}, 50); 140 jdfOffline = new JobDataFetcher(new State[] {State.Offline}, 50); 141 141 142 142 cmb_finishedJob_count.SelectedItem = "50"; … … 348 348 int percentageUsage = CapacityRam(((ClientDto)resource).NrOfCores, ((ClientDto)resource).NrOfFreeCores); 349 349 int usage = 3; 350 if ((((ClientDto)resource).State != State. offline) &&351 (((ClientDto)resource).State != State. nullState)) {350 if ((((ClientDto)resource).State != State.Offline) && 351 (((ClientDto)resource).State != State.NullState)) { 352 352 if ((percentageUsage >= 0) && (percentageUsage <= 25)) { 353 353 usage = 0; … … 419 419 //lvSnapshots.Enabled = true; 420 420 421 if (job.State == State. offline) {421 if (job.State == State.Offline) { 422 422 pbJobControl.Image = ilLargeImgJob.Images[2]; 423 } else if (job.State == State. calculating) {423 } else if (job.State == State.Calculating) { 424 424 pbJobControl.Image = ilLargeImgJob.Images[1]; 425 } else if (job.State == State. finished) {425 } else if (job.State == State.Finished) { 426 426 pbJobControl.Image = ilLargeImgJob.Images[0]; 427 427 } … … 480 480 lvJobDetails.Items.Add(lvi); 481 481 482 if (job.State == State. finished) {482 if (job.State == State.Finished) { 483 483 lvi = null; 484 484 lvi = new ListViewItem(); … … 500 500 int percentageUsage = CapacityRam(currentClient.NrOfCores, currentClient.NrOfFreeCores); 501 501 int usage = 3; 502 if ((currentClient.State != State. offline) && (currentClient.State != State.nullState)) {502 if ((currentClient.State != State.Offline) && (currentClient.State != State.NullState)) { 503 503 if ((percentageUsage >= 0) && (percentageUsage <= 25)) { 504 504 usage = 0; … … 630 630 JobDto selectedJob = (JobDto)jlv.SelectedItems[0].Tag; 631 631 632 if (selectedJob != null && selectedJob.State == State. calculating) {632 if (selectedJob != null && selectedJob.State == State.Calculating) { 633 633 jlv.ContextMenuStrip.Items.Add(offlineItemAbortJob); 634 634 jlv.ContextMenuStrip.Items.Add(menuItemGetSnapshot); … … 806 806 change = true; 807 807 } 808 if (job.State != State. offline) {808 if (job.State != State.Offline) { 809 809 if ((!IsEqual(job.Client, jobold.Client)) || (job.State != jobold.State) 810 810 || (job.Percentage != jobold.Percentage)) { -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Console/3.3/JobListView.cs
r4042 r4116 40 40 JobDataFetcher datafetcher = (JobDataFetcher) sender; 41 41 this.BeginUpdate(); 42 if (datafetcher.PollStates.Contains(State. finished)) {42 if (datafetcher.PollStates.Contains(State.Finished)) { 43 43 this.Items.Clear(); 44 44 ListViewItem lviDummy = new ListViewItem("blahr", 0);
Note: See TracChangeset
for help on using the changeset viewer.