Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/21/11 15:05:48 (13 years ago)
Author:
cneumuel
Message:

#1233

  • implemented pause, stop for single jobs
  • introduced Command property for jobs (to distinguish between state and command (abort vs. aborted))
  • improved behaviour of ItemTreeView (double click opens new window, selected item stays marked)
  • fixed bugs in StateLogGanttChartListView and HiveJobView
  • fixed cloning of client-side dtos
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/ExperimentManager/HiveJobClient.cs

    r5718 r5779  
    4545          else if (job.State == JobState.Calculating) return HeuristicLab.Common.Resources.VSImageLibrary.ExecutableStarted;
    4646          else if (job.State == JobState.Transferring) return HeuristicLab.Common.Resources.VSImageLibrary.ExecutableStarted;
     47          else if (job.State == JobState.Paused) return HeuristicLab.Common.Resources.VSImageLibrary.ExecutablePaused;
    4748          else if (job.State == JobState.Aborted) return HeuristicLab.Common.Resources.VSImageLibrary.ExecutableStopped;
    4849          else if (job.State == JobState.Failed) return HeuristicLab.Common.Resources.VSImageLibrary.Error;
     
    604605    }
    605606    #endregion
     607
     608    public void Pause() {
     609      ServiceLocator.Instance.CallHiveService(s => s.PauseJob(this.job.Id));
     610    }
     611
     612    public void Stop() {
     613      ServiceLocator.Instance.CallHiveService(s => s.StopJob(this.job.Id));
     614    }
     615
     616    public void Restart() {
     617      ServiceLocator.Instance.CallHiveService(s => s.RestartJob(this.job.Id));
     618    }
    606619  }
    607620}
Note: See TracChangeset for help on using the changeset viewer.