Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/14/10 12:07:47 (14 years ago)
Author:
kgrading
Message:

added Priority and resource restricted scheduling (#907)

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

Legend:

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

    r3011 r3018  
    5252    public string HiveServerUrl { get; set; }
    5353    public string MultiSubmitCount { get; set; }
     54    public string RessourceIds { get; set; }
    5455
    5556    public HiveEngine() {
     
    9495      IExecutionEngineFacade executionEngineFacade = ServiceLocator.CreateExecutionEngineFacade(HiveServerUrl);
    9596     
     97      if(!String.Empty.Equals(RessourceIds)) {
     98        String[] ids = RessourceIds.Split(';');
     99        foreach (string sid in ids) {       
     100          try {
     101            System.Guid gid = new Guid(sid);
     102            jobObj.JobInfo.AssignedResourceIds.Add(gid);
     103          } catch(Exception ex) {
     104           
     105          }   
     106        }
     107      }     
     108
    96109      int loops = 1;
    97110     
  • trunk/sources/HeuristicLab.Hive.Engine/3.2/HiveEngineEditor.Designer.cs

    r2846 r3018  
    4545    /// </summary>
    4646    private void InitializeComponent() {
    47       this.urlTextBox = new System.Windows.Forms.TextBox();
    4847      this.urlLabel = new System.Windows.Forms.Label();
    4948      this.snapshotButton = new System.Windows.Forms.Button();
    5049      this.multiSubmitTextbox = new System.Windows.Forms.TextBox();
     50      this.urlTextBox = new System.Windows.Forms.TextBox();
     51      this.assignedRessourceTextBox = new System.Windows.Forms.TextBox();
     52      this.label1 = new System.Windows.Forms.Label();
    5153      this.splitContainer1.Panel1.SuspendLayout();
    5254      this.splitContainer1.Panel2.SuspendLayout();
     
    8587      this.scopeView.Size = new System.Drawing.Size(178, 422);
    8688      //
    87       // urlTextBox
    88       //
    89       this.urlTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    90       this.urlTextBox.Location = new System.Drawing.Point(526, 459);
    91       this.urlTextBox.Name = "urlTextBox";
    92       this.urlTextBox.Size = new System.Drawing.Size(154, 20);
    93       this.urlTextBox.TabIndex = 7;
    94       //
    9589      // urlLabel
    9690      //
     
    124118      this.multiSubmitTextbox.Text = "1";
    125119      //
     120      // urlTextBox
     121      //
     122      this.urlTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     123      this.urlTextBox.Location = new System.Drawing.Point(526, 459);
     124      this.urlTextBox.Name = "urlTextBox";
     125      this.urlTextBox.Size = new System.Drawing.Size(154, 20);
     126      this.urlTextBox.TabIndex = 7;
     127      //
     128      // assignedRessourceTextBox
     129      //
     130      this.assignedRessourceTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     131      this.assignedRessourceTextBox.Location = new System.Drawing.Point(412, 457);
     132      this.assignedRessourceTextBox.Name = "assignedRessourceTextBox";
     133      this.assignedRessourceTextBox.Size = new System.Drawing.Size(100, 20);
     134      this.assignedRessourceTextBox.TabIndex = 11;
     135      //
     136      // label1
     137      //
     138      this.label1.AutoSize = true;
     139      this.label1.Location = new System.Drawing.Point(409, 444);
     140      this.label1.Name = "label1";
     141      this.label1.Size = new System.Drawing.Size(85, 13);
     142      this.label1.TabIndex = 12;
     143      this.label1.Text = "Ressource GIDs";
     144      //
    126145      // HiveEngineEditor
    127146      //
     
    132151      this.Controls.Add(this.urlTextBox);
    133152      this.Controls.Add(this.urlLabel);
     153      this.Controls.Add(this.assignedRessourceTextBox);
     154      this.Controls.Add(this.label1);
    134155      this.Name = "HiveEngineEditor";
    135156      this.Size = new System.Drawing.Size(827, 480);
     157      this.Controls.SetChildIndex(this.label1, 0);
     158      this.Controls.SetChildIndex(this.assignedRessourceTextBox, 0);
     159      this.Controls.SetChildIndex(this.urlLabel, 0);
     160      this.Controls.SetChildIndex(this.urlTextBox, 0);
     161      this.Controls.SetChildIndex(this.snapshotButton, 0);
     162      this.Controls.SetChildIndex(this.multiSubmitTextbox, 0);
    136163      this.Controls.SetChildIndex(this.executeButton, 0);
    137164      this.Controls.SetChildIndex(this.abortButton, 0);
     
    140167      this.Controls.SetChildIndex(this.executionTimeLabel, 0);
    141168      this.Controls.SetChildIndex(this.executionTimeTextBox, 0);
    142       this.Controls.SetChildIndex(this.urlLabel, 0);
    143       this.Controls.SetChildIndex(this.urlTextBox, 0);
    144       this.Controls.SetChildIndex(this.snapshotButton, 0);
    145       this.Controls.SetChildIndex(this.multiSubmitTextbox, 0);
    146169      this.splitContainer1.Panel1.ResumeLayout(false);
    147170      this.splitContainer1.Panel2.ResumeLayout(false);
     
    156179    #endregion
    157180
    158     private System.Windows.Forms.TextBox urlTextBox;
    159181    private System.Windows.Forms.Label urlLabel;
    160182    private System.Windows.Forms.Button snapshotButton;
    161183    private System.Windows.Forms.TextBox multiSubmitTextbox;
     184    private System.Windows.Forms.TextBox urlTextBox;
     185    private System.Windows.Forms.TextBox assignedRessourceTextBox;
     186    private System.Windows.Forms.Label label1;
    162187  }
    163188}
  • trunk/sources/HeuristicLab.Hive.Engine/3.2/HiveEngineEditor.cs

    r2846 r3018  
    8080      urlTextBox.DataBindings.Add("Text", HiveEngine, "HiveServerUrl");
    8181      multiSubmitTextbox.DataBindings.Add("Text", HiveEngine, "MultiSubmitCount");
    82      
     82      assignedRessourceTextBox.DataBindings.Add("Text", HiveEngine, "RessourceIds");         
    8383    }
    8484
Note: See TracChangeset for help on using the changeset viewer.