Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/16/11 00:06:54 (13 years ago)
Author:
cneumuel
Message:

#1233

  • created events when statelog changed
  • fixed memory leak in hiveengine
  • extended timeout for long running transactions and database contexts (when jobdata is stored)
  • replaced random guids in database with sequential guids for performance reasons
  • minor fixes and cleanups
Location:
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.4/Views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.4/Views/RefreshableHiveExperimentView.Designer.cs

    r6381 r6419  
    2121
    2222using HeuristicLab.Clients.Hive.Views.ExperimentManager;
     23using HeuristicLab.MainForm.WindowsForms;
    2324namespace HeuristicLab.Clients.Hive.ExperimentManager.Views {
    2425  partial class RefreshableHiveExperimentView {
     
    6667      this.toolTip = new System.Windows.Forms.ToolTip(this.components);
    6768      this.refreshButton = new System.Windows.Forms.Button();
     69      this.isPrivilegedCheckBox = new System.Windows.Forms.CheckBox();
    6870      this.refreshAutomaticallyCheckBox = new System.Windows.Forms.CheckBox();
    6971      this.infoGroupBox = new System.Windows.Forms.GroupBox();
     
    7476      this.calculatingLabel = new System.Windows.Forms.Label();
    7577      this.jobsLabel = new System.Windows.Forms.Label();
    76       this.isPrivilegedCheckBox = new System.Windows.Forms.CheckBox();
     78      this.stateTabPage = new System.Windows.Forms.TabPage();
     79      this.stateLogViewHost = new ViewHost();
    7780      this.tabControl.SuspendLayout();
    7881      this.jobsTabPage.SuspendLayout();
    7982      this.logTabPage.SuspendLayout();
    8083      this.infoGroupBox.SuspendLayout();
     84      this.stateTabPage.SuspendLayout();
    8185      this.SuspendLayout();
    8286      //
     
    8791                  | System.Windows.Forms.AnchorStyles.Right)));
    8892      this.tabControl.Controls.Add(this.jobsTabPage);
     93      this.tabControl.Controls.Add(this.stateTabPage);
    8994      this.tabControl.Controls.Add(this.logTabPage);
    9095      this.tabControl.Location = new System.Drawing.Point(0, 78);
     
    126131      this.logTabPage.Location = new System.Drawing.Point(4, 22);
    127132      this.logTabPage.Name = "logTabPage";
    128       this.logTabPage.Size = new System.Drawing.Size(813, 494);
     133      this.logTabPage.Size = new System.Drawing.Size(709, 426);
    129134      this.logTabPage.TabIndex = 3;
    130135      this.logTabPage.Text = "Log";
     
    271276      this.refreshButton.UseVisualStyleBackColor = true;
    272277      this.refreshButton.Click += new System.EventHandler(this.refreshButton_Click);
     278      //
     279      // isPrivilegedCheckBox
     280      //
     281      this.isPrivilegedCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     282      this.isPrivilegedCheckBox.AutoSize = true;
     283      this.isPrivilegedCheckBox.Location = new System.Drawing.Point(383, 55);
     284      this.isPrivilegedCheckBox.Name = "isPrivilegedCheckBox";
     285      this.isPrivilegedCheckBox.Size = new System.Drawing.Size(80, 17);
     286      this.isPrivilegedCheckBox.TabIndex = 26;
     287      this.isPrivilegedCheckBox.Text = "IsPrivileged";
     288      this.toolTip.SetToolTip(this.isPrivilegedCheckBox, "If checked, the job will be executed in a privileged sandbox on the slave.");
     289      this.isPrivilegedCheckBox.UseVisualStyleBackColor = true;
     290      this.isPrivilegedCheckBox.CheckedChanged += new System.EventHandler(this.isPrivilegedCheckBox_CheckedChanged);
    273291      //
    274292      // refreshAutomaticallyCheckBox
     
    353371      this.jobsLabel.Text = "Jobs:";
    354372      //
    355       // isPrivilegedCheckBox
    356       //
    357       this.isPrivilegedCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    358       this.isPrivilegedCheckBox.AutoSize = true;
    359       this.isPrivilegedCheckBox.Location = new System.Drawing.Point(383, 55);
    360       this.isPrivilegedCheckBox.Name = "isPrivilegedCheckBox";
    361       this.isPrivilegedCheckBox.Size = new System.Drawing.Size(80, 17);
    362       this.isPrivilegedCheckBox.TabIndex = 26;
    363       this.isPrivilegedCheckBox.Text = "IsPrivileged";
    364       this.toolTip.SetToolTip(this.isPrivilegedCheckBox, "If checked, the job will be executed in a privileged sandbox on the slave.");
    365       this.isPrivilegedCheckBox.UseVisualStyleBackColor = true;
    366       this.isPrivilegedCheckBox.CheckedChanged += new System.EventHandler(this.isPrivilegedCheckBox_CheckedChanged);
     373      // stateTabPage
     374      //
     375      this.stateTabPage.Controls.Add(this.stateLogViewHost);
     376      this.stateTabPage.Location = new System.Drawing.Point(4, 22);
     377      this.stateTabPage.Name = "stateTabPage";
     378      this.stateTabPage.Size = new System.Drawing.Size(709, 426);
     379      this.stateTabPage.TabIndex = 6;
     380      this.stateTabPage.Text = "State";
     381      this.stateTabPage.UseVisualStyleBackColor = true;
     382      //
     383      // stateLogViewHost
     384      //
     385      this.stateLogViewHost.Caption = "StateLog View";
     386      this.stateLogViewHost.Content = null;
     387      this.stateLogViewHost.Dock = System.Windows.Forms.DockStyle.Fill;
     388      this.stateLogViewHost.Location = new System.Drawing.Point(0, 0);
     389      this.stateLogViewHost.Name = "stateLogViewHost";
     390      this.stateLogViewHost.ReadOnly = false;
     391      this.stateLogViewHost.Size = new System.Drawing.Size(709, 426);
     392      this.stateLogViewHost.TabIndex = 0;
    367393      //
    368394      // RefreshableHiveExperimentView
     
    393419      this.infoGroupBox.ResumeLayout(false);
    394420      this.infoGroupBox.PerformLayout();
     421      this.stateTabPage.ResumeLayout(false);
    395422      this.ResumeLayout(false);
    396423      this.PerformLayout();
     
    426453    private System.Windows.Forms.Label jobsLabel;
    427454    private System.Windows.Forms.CheckBox isPrivilegedCheckBox;
     455    private System.Windows.Forms.TabPage stateTabPage;
     456    private ViewHost stateLogViewHost;
    428457
    429458  }
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.4/Views/RefreshableHiveExperimentView.cs

    r6381 r6419  
    6161      Content.JobStatisticsChanged += new EventHandler(Content_JobStatisticsChanged);
    6262      Content.ExceptionOccured += new EventHandler<EventArgs<Exception>>(Content_ExceptionOccured);
     63      Content.StateLogListChanged += new EventHandler(Content_StateLogListChanged);
    6364    }
    6465
     
    6970      Content.JobStatisticsChanged -= new EventHandler(Content_JobStatisticsChanged);
    7071      Content.ExceptionOccured -= new EventHandler<EventArgs<Exception>>(Content_ExceptionOccured);
     72      Content.StateLogListChanged -= new EventHandler(Content_StateLogListChanged);
    7173      base.DeregisterContentEvents();
    7274    }
     
    105107        isPrivilegedCheckBox.Checked = false;
    106108        logView.Content = null;
    107         refreshAutomaticallyCheckBox.Checked = false;       
     109        refreshAutomaticallyCheckBox.Checked = false;
    108110        logView.Content = null;
    109111      } else {
     
    120122      Content_HiveJobChanged(this, EventArgs.Empty);
    121123      Content_IsProgressingChanged(this, EventArgs.Empty);
     124      Content_StateLogListChanged(this, EventArgs.Empty);
    122125      SetEnabledStateOfControls();
    123126    }
     
    260263        // show error dialog only if Controllable (otherwise it should continue trying without an error dialog (e.g. HiveEngine))
    261264        ErrorHandling.ShowErrorDialog(this, e.Value);
     265      }
     266    }
     267    private void Content_StateLogListChanged(object sender, EventArgs e) {
     268      if (InvokeRequired)
     269        Invoke(new EventHandler(Content_StateLogListChanged), sender, e);
     270      else {
     271        UpdateStateLogList();
     272      }
     273    }
     274
     275    private void UpdateStateLogList() {
     276      if (Content != null && this.Content.HiveExperiment != null) {
     277        stateLogViewHost.Content = this.Content.HiveExperiment.StateLogList;
     278      } else {
     279        stateLogViewHost.Content = null;
    262280      }
    263281    }
Note: See TracChangeset for help on using the changeset viewer.