Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/12/11 18:04:25 (13 years ago)
Author:
ascheibe
Message:

#1233

  • fixed a bug in the Slave UI
  • finished renaming Webservice and Dao methods to be consistent with Job/Task naming
  • some cosmetic changes and project dependencies cleanups
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.HiveEngine/3.3/HiveEngine.cs

    r6725 r6743  
    252252          var engineHiveJob = new EngineHiveTask(jobs[i], parentScopeClone);
    253253          engineHiveJob.Task.Priority = this.Priority;
    254           refreshableJob.HiveJobs.Add(engineHiveJob);
     254          refreshableJob.HiveTasks.Add(engineHiveJob);
    255255
    256256          // shuffle random variable to avoid the same random sequence in each operation; todo: does not yet work (it cannot find the random variable)
     
    259259            random.Reset(random.Next());
    260260        }
    261         HiveClient.StartExperiment((e) => { log.LogException(e); }, refreshableJob, cancellationToken);
     261        HiveClient.StartJob((e) => { log.LogException(e); }, refreshableJob, cancellationToken);
    262262
    263263        // do polling until experiment is finished and all jobs are downloaded
     
    269269        log.LogMessage(string.Format("{0} finished (TotalExecutionTime: {1}).", refreshableJob.ToString(), refreshableJob.ExecutionTime));
    270270
    271         var failedJobs = refreshableJob.HiveJobs.Where(x => x.Task.State == TaskState.Failed);
     271        var failedJobs = refreshableJob.HiveTasks.Where(x => x.Task.State == TaskState.Failed);
    272272        if (failedJobs.Count() > 0) {
    273273          throw new HiveEngineException("Task failed: " + failedJobs.First().Task.StateLog.Last().Exception);
     
    276276        // get scopes
    277277        int j = 0;
    278         foreach (var hiveJob in refreshableJob.HiveJobs) {
     278        foreach (var hiveJob in refreshableJob.HiveTasks) {
    279279          var scope = ((IAtomicOperation)((EngineTask)hiveJob.ItemTask).InitialOperation).Scope;
    280280          scopes[j++] = scope;
     
    315315
    316316    private void ClearData(RefreshableJob refreshableJob) {
    317       var jobs = refreshableJob.GetAllHiveJobs();
     317      var jobs = refreshableJob.GetAllHiveTasks();
    318318      foreach (var job in jobs) {
    319319        job.ClearData();
     
    321321    }
    322322
    323     private void DeleteHiveExperiment(Guid hiveExperimentId) {
     323    private void DeleteHiveExperiment(Guid jobId) {
    324324      HiveClient.TryAndRepeat(() => {
    325         ServiceLocator.Instance.CallHiveService(s => s.DeleteHiveExperiment(hiveExperimentId));
     325        ServiceLocator.Instance.CallHiveService(s => s.DeleteJob(jobId));
    326326      }, 5, string.Format("Could not delete jobs"));
    327327    }
Note: See TracChangeset for help on using the changeset viewer.