Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/20/11 13:54:57 (12 years ago)
Author:
spimming
Message:

#1680:

  • merged changes from trunk into branch

' removed pre-build event for multiple app.configs

Location:
branches/HeuristicLab.Hive.Azure
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive.Azure

  • branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive/3.3

    • Property svn:ignore
      •  

        old new  
        11obj
        22Plugin.cs
         3bin
  • branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive/3.3/RefreshableJob.cs

    r6976 r7215  
    5151          OnJobChanged();
    5252          OnToStringChanged(this, EventArgs.Empty);
     53          job_ItemImageChanged(this, EventArgs.Empty);
    5354        }
    5455      }
     
    194195      this.Job = new Job();
    195196      this.log = new ThreadSafeLog();
    196       this.jobDownloader = new ConcurrentTaskDownloader<ItemTask>(2, 2);
     197      this.jobDownloader = new ConcurrentTaskDownloader<ItemTask>(Settings.Default.MaxParallelDownloads, Settings.Default.MaxParallelDownloads);
    197198      this.jobDownloader.ExceptionOccured += new EventHandler<EventArgs<Exception>>(jobDownloader_ExceptionOccured);
    198199      this.HiveTasks = new ItemCollection<HiveTask>();
     
    202203      this.Job = hiveExperiment;
    203204      this.log = new ThreadSafeLog();
    204       this.jobDownloader = new ConcurrentTaskDownloader<ItemTask>(2, 2);
     205      this.jobDownloader = new ConcurrentTaskDownloader<ItemTask>(Settings.Default.MaxParallelDownloads, Settings.Default.MaxParallelDownloads);
    205206      this.jobDownloader.ExceptionOccured += new EventHandler<EventArgs<Exception>>(jobDownloader_ExceptionOccured);
    206207      this.HiveTasks = new ItemCollection<HiveTask>();
     
    208209    protected RefreshableJob(RefreshableJob original, Cloner cloner) {
    209210      cloner.RegisterClonedObject(original, this);
    210       this.Job = original.Job;
     211      this.Job = cloner.Clone(original.Job);
    211212      this.IsControllable = original.IsControllable;
    212213      this.log = cloner.Clone(original.log);
    213214      this.RefreshAutomatically = false; // do not start results polling automatically
    214       this.jobDownloader = new ConcurrentTaskDownloader<ItemTask>(2, 2);
     215      this.jobDownloader = new ConcurrentTaskDownloader<ItemTask>(Settings.Default.MaxParallelDownloads, Settings.Default.MaxParallelDownloads);
    215216      this.jobDownloader.ExceptionOccured += new EventHandler<EventArgs<Exception>>(jobDownloader_ExceptionOccured);
    216217      this.HiveTasks = cloner.Clone(original.HiveTasks);
     
    230231    public void StartResultPolling() {
    231232      if (jobResultPoller == null) {
    232         jobResultPoller = new JobResultPoller(job.Id, /*ApplicationConstants.ResultPollingInterval*/new TimeSpan(0, 0, 5)); //TODO: find a better place for ApplicationConstants
     233        jobResultPoller = new JobResultPoller(job.Id, Settings.Default.ResultPollingInterval);
    233234        RegisterResultPollingEvents();
    234235        jobResultPoller.AutoResumeOnException = true;
     
    276277            log.LogMessage(string.Format("Downloading task {0}", lightweightTask.Id));
    277278            hiveTask.IsDownloading = true;
    278             jobDownloader.DownloadTask(hiveTask.Task, (localJob, itemJob) => {
     279            jobDownloader.DownloadTaskData(hiveTask.Task, (localJob, itemJob) => {
    279280              log.LogMessage(string.Format("Finished downloading task {0}", localJob.Id));
    280281              HiveTask localHiveTask = GetHiveJobById(localJob.Id);
     
    533534    public virtual void OnLoaded() {
    534535      this.UpdateTotalExecutionTime();
     536      this.OnStateLogListChanged();
    535537
    536538      if (this.ExecutionState != ExecutionState.Stopped) {
Note: See TracChangeset for help on using the changeset viewer.