Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/21/10 16:34:55 (14 years ago)
Author:
kgrading
Message:

various improvements (#828) concerning the stability of the server

Location:
trunk/sources/HeuristicLab.Hive.Engine/3.2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Engine/3.2/HiveEngine.cs

    r2591 r2846  
    5151
    5252    public string HiveServerUrl { get; set; }
     53    public string MultiSubmitCount { get; set; }
    5354
    5455    public HiveEngine() {
     
    9293      var jobObj = CreateJobObj();
    9394      IExecutionEngineFacade executionEngineFacade = ServiceLocator.CreateExecutionEngineFacade(HiveServerUrl);
    94       ResponseObject<Contracts.BusinessObjects.Job> res = executionEngineFacade.AddJob(jobObj);
    95       jobId = res.Obj.Id;
    96 
     95     
     96      int loops = 1;
     97     
     98      Int32.TryParse(MultiSubmitCount, out loops);
     99      if(loops == 0)
     100        loops = 1;
     101
     102      for (int i = 0; i < loops; i++) {
     103        ResponseObject<Contracts.BusinessObjects.Job> res = executionEngineFacade.AddJob(jobObj);
     104        jobId = res.Obj.Id;
     105      }
     106     
    97107      StartResultPollingThread();
    98108    }
  • trunk/sources/HeuristicLab.Hive.Engine/3.2/HiveEngineEditor.Designer.cs

    r2032 r2846  
    4848      this.urlLabel = new System.Windows.Forms.Label();
    4949      this.snapshotButton = new System.Windows.Forms.Button();
     50      this.multiSubmitTextbox = new System.Windows.Forms.TextBox();
    5051      this.splitContainer1.Panel1.SuspendLayout();
    5152      this.splitContainer1.Panel2.SuspendLayout();
     
    114115      this.snapshotButton.Click += new System.EventHandler(this.snapshotButton_Click);
    115116      //
     117      // multiSubmitTextbox
     118      //
     119      this.multiSubmitTextbox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     120      this.multiSubmitTextbox.Location = new System.Drawing.Point(375, 460);
     121      this.multiSubmitTextbox.Name = "multiSubmitTextbox";
     122      this.multiSubmitTextbox.Size = new System.Drawing.Size(31, 20);
     123      this.multiSubmitTextbox.TabIndex = 10;
     124      this.multiSubmitTextbox.Text = "1";
     125      //
    116126      // HiveEngineEditor
    117127      //
    118128      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    119129      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     130      this.Controls.Add(this.multiSubmitTextbox);
    120131      this.Controls.Add(this.snapshotButton);
    121132      this.Controls.Add(this.urlTextBox);
     
    132143      this.Controls.SetChildIndex(this.urlTextBox, 0);
    133144      this.Controls.SetChildIndex(this.snapshotButton, 0);
     145      this.Controls.SetChildIndex(this.multiSubmitTextbox, 0);
    134146      this.splitContainer1.Panel1.ResumeLayout(false);
    135147      this.splitContainer1.Panel2.ResumeLayout(false);
     
    147159    private System.Windows.Forms.Label urlLabel;
    148160    private System.Windows.Forms.Button snapshotButton;
     161    private System.Windows.Forms.TextBox multiSubmitTextbox;
    149162  }
    150163}
  • trunk/sources/HeuristicLab.Hive.Engine/3.2/HiveEngineEditor.cs

    r2032 r2846  
    7979    private void SetDataBinding() {
    8080      urlTextBox.DataBindings.Add("Text", HiveEngine, "HiveServerUrl");
     81      multiSubmitTextbox.DataBindings.Add("Text", HiveEngine, "MultiSubmitCount");
     82     
    8183    }
    8284
Note: See TracChangeset for help on using the changeset viewer.