Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/31/11 18:15:15 (14 years ago)
Author:
cneumuel
Message:

#1233

  • single sign on with HL
  • local plugins are uploaded if not available online (user can force the useage of local plugins)
  • changed plugin and plugindata db-schema
  • plugin dao tests
Location:
branches/HeuristicLab.Hive-3.4/sources
Files:
1 added
5 deleted
36 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.ConsoleClient-3.4/app.config

    r5375 r5402  
    2424   <client>
    2525     <!--http://localhost:9000/Hive-3.4-->
    26     <endpoint address="http://localhost:80/Service.svc"
     26    <endpoint address="http://localhost/Hive-3.4/HiveService.svc"
    2727              binding="wsHttpBinding"
    2828              bindingConfiguration="wsHttpBinding"
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Tests/HeuristicLab.Clients.Hive.Slave.Tests-3.4.csproj

    r5158 r5402  
    3333    <WarningLevel>4</WarningLevel>
    3434  </PropertyGroup>
     35  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
     36    <DebugSymbols>true</DebugSymbols>
     37    <OutputPath>bin\x86\Debug\</OutputPath>
     38    <DefineConstants>DEBUG;TRACE</DefineConstants>
     39    <DebugType>full</DebugType>
     40    <PlatformTarget>x86</PlatformTarget>
     41    <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Clients.Hive.Slave.Tests-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
     42    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
     43    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
     44    <ErrorReport>prompt</ErrorReport>
     45    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     46    <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
     47    <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
     48    <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
     49    <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
     50  </PropertyGroup>
     51  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
     52    <OutputPath>bin\x86\Release\</OutputPath>
     53    <DefineConstants>TRACE</DefineConstants>
     54    <Optimize>true</Optimize>
     55    <DebugType>pdbonly</DebugType>
     56    <PlatformTarget>x86</PlatformTarget>
     57    <CodeAnalysisLogFile>bin\Release\HeuristicLab.Clients.Hive.Slave.Tests-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
     58    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
     59    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
     60    <ErrorReport>prompt</ErrorReport>
     61    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     62    <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
     63    <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
     64    <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
     65    <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
     66  </PropertyGroup>
    3567  <ItemGroup>
    3668    <Reference Include="ALGLIB-2.5.0">
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Views/3.4/HeuristicLab.Clients.Hive.Slave.Views-3.4.csproj

    r5314 r5402  
    3737  <PropertyGroup>
    3838    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
     39  </PropertyGroup>
     40  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
     41    <DebugSymbols>true</DebugSymbols>
     42    <OutputPath>bin\x86\Debug\</OutputPath>
     43    <DefineConstants>DEBUG;TRACE</DefineConstants>
     44    <DebugType>full</DebugType>
     45    <PlatformTarget>x86</PlatformTarget>
     46    <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Clients.Hive.Slave.Views-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
     47    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
     48    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
     49    <ErrorReport>prompt</ErrorReport>
     50    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     51    <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
     52    <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
     53    <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
     54    <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
     55  </PropertyGroup>
     56  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
     57    <OutputPath>bin\x86\Release\</OutputPath>
     58    <DefineConstants>TRACE</DefineConstants>
     59    <Optimize>true</Optimize>
     60    <DebugType>pdbonly</DebugType>
     61    <PlatformTarget>x86</PlatformTarget>
     62    <CodeAnalysisLogFile>bin\Release\HeuristicLab.Clients.Hive.Slave.Views-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
     63    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
     64    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
     65    <ErrorReport>prompt</ErrorReport>
     66    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     67    <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
     68    <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
     69    <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
     70    <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
    3971  </PropertyGroup>
    4072  <ItemGroup>
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Core.cs

    r5315 r5402  
    4040
    4141    //TODO: this class should be a singleton; there is only one instance, the reference is meanwhile save in TheCore
    42     public static Core TheCore;
     42    public static Core theCore;
    4343
    4444    public static bool abortRequested { get; set; }
     
    6666
    6767    public Core() {
    68       TheCore = this;
     68      theCore = this;
    6969    }
    7070
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/HeuristicLab.Clients.Hive.Slave-3.4.csproj

    r5264 r5402  
    3737  <PropertyGroup>
    3838    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
     39  </PropertyGroup>
     40  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
     41    <DebugSymbols>true</DebugSymbols>
     42    <OutputPath>bin\x86\Debug\</OutputPath>
     43    <DefineConstants>DEBUG;TRACE</DefineConstants>
     44    <DebugType>full</DebugType>
     45    <PlatformTarget>x86</PlatformTarget>
     46    <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Clients.Hive.Slave-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
     47    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
     48    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
     49    <ErrorReport>prompt</ErrorReport>
     50    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     51    <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
     52    <CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets>
     53    <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
     54    <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
     55  </PropertyGroup>
     56  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
     57    <OutputPath>bin\x86\Release\</OutputPath>
     58    <DefineConstants>TRACE</DefineConstants>
     59    <Optimize>true</Optimize>
     60    <DebugType>pdbonly</DebugType>
     61    <PlatformTarget>x86</PlatformTarget>
     62    <CodeAnalysisLogFile>bin\Release\HeuristicLab.Clients.Hive.Slave-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
     63    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
     64    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
     65    <ErrorReport>prompt</ErrorReport>
     66    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     67    <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
     68    <CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets>
     69    <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
     70    <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
    3971  </PropertyGroup>
    4072  <ItemGroup>
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/SlaveCommunicationService.cs

    r5315 r5402  
    8484
    8585    public void Restart() {
    86       Core.TheCore.Restart();
     86      Core.theCore.Restart();
    8787    }
    8888    public void HardPause() {
    89       Core.TheCore.HardPause();
     89      Core.theCore.HardPause();
    9090    }
    9191
    9292    public void SoftPause() {
    93       Core.TheCore.SoftPause();
     93      Core.theCore.SoftPause();
    9494    }
    9595
    9696    public void ShutdownSlave() {
    97       Core.TheCore.Shutdown();
     97      Core.theCore.Shutdown();
    9898    }
    9999  }
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/app.config

    r5280 r5402  
    3333    </services>
    3434    <client>
    35       <endpoint address="http://localhost:9000/Hive-3.4" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding" contract="HeuristicLab.Services.Hive.Common.ServiceContracts.IHiveService" name="wsHttpBinding_IHiveService">
     35      <endpoint address="http://localhost/Hive-3.4/HiveService.svc" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding" contract="HeuristicLab.Services.Hive.Common.ServiceContracts.IHiveService" name="wsHttpBinding_IHiveService">
    3636        <identity>
    3737          <certificate encodedValue="AwAAAAEAAAAUAAAAfEKvcVixnJay+q4hCPFuO0JL5TQgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhCNN5wrUcXMmE/9xwp4TYa9MAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMTAxOTEwNTMxNVoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDXwC5TGcAffd/0oAWHtm0s6YXVXEgXgb1AYmBkkkhkKIFJG/e/Z0KSYbJepmSJD44W3oOAVm+x1DAsZxU79HahDYgWCuHLMm1TLpwSmYOQ0kV3pGHWHhiWV7h7oGLds/eqZ2EOpaNGryfEPnrA4VmxY91vV5/2BTeVSWG6F8lRKQIDAQABo0kwRzBFBgNVHQEEPjA8gBAR7kBnMRHO5gzThEqda0wWoRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghCNN5wrUcXMmE/9xwp4TYa9MAkGBSsOAwIdBQADgYEAoPwEG4QTDXhlxERNDfsZmM2IhEpV42ppz1kEah2oYKDa/ElIMVtvqLv6flVtg18ENN/mEJWiHZ3NyP3qr2Pip+sh+/2WBiSbOaukES/CM7OJn9kJCImH7M/xqM8pxqY8IfgM6iBVrVj9uHqj3j2BBck+cYY8fKyh3CFifMIp6ac="/>
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/ExperimentManager/HiveExperimentView.Designer.cs

    r4905 r5402  
    5353      this.viewExperimentButton = new System.Windows.Forms.Button();
    5454      this.jobsTabPage = new System.Windows.Forms.TabPage();
    55       this.hiveJobView = new HiveJobView();
    5655      this.logTabPage = new System.Windows.Forms.TabPage();
    5756      this.logView = new HeuristicLab.Core.Views.LogView();
     
    6867      this.reconnectButton = new System.Windows.Forms.Button();
    6968      this.downloadExperimentPanel = new System.Windows.Forms.Panel();
     69      this.useLocalPluginsCheckBox = new System.Windows.Forms.CheckBox();
     70      this.hiveJobView = new HeuristicLab.Clients.Hive.Views.HiveJobView();
    7071      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    7172      this.tabControl.SuspendLayout();
     
    8081      this.errorProvider.SetIconAlignment(this.nameTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);
    8182      this.errorProvider.SetIconPadding(this.nameTextBox, 2);
    82       this.nameTextBox.Size = new System.Drawing.Size(663, 20);
     83      this.nameTextBox.Size = new System.Drawing.Size(670, 20);
    8384      //
    8485      // descriptionTextBox
    8586      //
    86       this.descriptionTextBox.Size = new System.Drawing.Size(663, 20);
     87      this.descriptionTextBox.Size = new System.Drawing.Size(670, 20);
    8788      //
    8889      // tabControl
     
    9798      this.tabControl.Name = "tabControl";
    9899      this.tabControl.SelectedIndex = 0;
    99       this.tabControl.Size = new System.Drawing.Size(735, 416);
     100      this.tabControl.Size = new System.Drawing.Size(742, 416);
    100101      this.tabControl.TabIndex = 4;
    101102      //
     
    109110      this.experimentTabPage.Name = "experimentTabPage";
    110111      this.experimentTabPage.Padding = new System.Windows.Forms.Padding(3);
    111       this.experimentTabPage.Size = new System.Drawing.Size(727, 390);
     112      this.experimentTabPage.Size = new System.Drawing.Size(734, 390);
    112113      this.experimentTabPage.TabIndex = 1;
    113114      this.experimentTabPage.Text = "Experiment";
     
    145146      this.experimentNamedItemView.Name = "experimentNamedItemView";
    146147      this.experimentNamedItemView.ReadOnly = false;
    147       this.experimentNamedItemView.Size = new System.Drawing.Size(721, 52);
     148      this.experimentNamedItemView.Size = new System.Drawing.Size(728, 52);
    148149      this.experimentNamedItemView.TabIndex = 3;
    149150      //
     
    154155      this.viewExperimentButton.Location = new System.Drawing.Point(0, 94);
    155156      this.viewExperimentButton.Name = "viewExperimentButton";
    156       this.viewExperimentButton.Size = new System.Drawing.Size(727, 23);
     157      this.viewExperimentButton.Size = new System.Drawing.Size(734, 23);
    157158      this.viewExperimentButton.TabIndex = 1;
    158159      this.viewExperimentButton.Text = "&Show Experiment";
     
    165166      this.jobsTabPage.Location = new System.Drawing.Point(4, 22);
    166167      this.jobsTabPage.Name = "jobsTabPage";
    167       this.jobsTabPage.Size = new System.Drawing.Size(727, 390);
     168      this.jobsTabPage.Size = new System.Drawing.Size(734, 390);
    168169      this.jobsTabPage.TabIndex = 5;
    169170      this.jobsTabPage.Text = "Jobs";
    170171      this.jobsTabPage.UseVisualStyleBackColor = true;
    171172      //
    172       // hiveJobView
    173       //
    174       this.hiveJobView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    175                   | System.Windows.Forms.AnchorStyles.Left)
    176                   | System.Windows.Forms.AnchorStyles.Right)));
    177       this.hiveJobView.Caption = "HiveJob View";
    178       this.hiveJobView.Content = null;
    179       this.hiveJobView.Location = new System.Drawing.Point(2, 3);
    180       this.hiveJobView.Name = "hiveJobView";
    181       this.hiveJobView.ReadOnly = true;
    182       this.hiveJobView.Size = new System.Drawing.Size(722, 384);
    183       this.hiveJobView.TabIndex = 0;
    184       //
    185173      // logTabPage
    186174      //
     
    188176      this.logTabPage.Location = new System.Drawing.Point(4, 22);
    189177      this.logTabPage.Name = "logTabPage";
    190       this.logTabPage.Size = new System.Drawing.Size(727, 390);
     178      this.logTabPage.Size = new System.Drawing.Size(734, 390);
    191179      this.logTabPage.TabIndex = 3;
    192180      this.logTabPage.Text = "Log";
     
    262250      this.executionTimeLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    263251      this.executionTimeLabel.AutoSize = true;
    264       this.executionTimeLabel.Location = new System.Drawing.Point(509, 507);
     252      this.executionTimeLabel.Location = new System.Drawing.Point(516, 507);
    265253      this.executionTimeLabel.Name = "executionTimeLabel";
    266254      this.executionTimeLabel.Size = new System.Drawing.Size(83, 13);
     
    271259      //
    272260      this.executionTimeTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    273       this.executionTimeTextBox.Location = new System.Drawing.Point(598, 504);
     261      this.executionTimeTextBox.Location = new System.Drawing.Point(605, 504);
    274262      this.executionTimeTextBox.Name = "executionTimeTextBox";
    275263      this.executionTimeTextBox.ReadOnly = true;
     
    305293      this.resourceIdsTextBox.Location = new System.Drawing.Point(72, 52);
    306294      this.resourceIdsTextBox.Name = "resourceIdsTextBox";
    307       this.resourceIdsTextBox.Size = new System.Drawing.Size(663, 20);
     295      this.resourceIdsTextBox.Size = new System.Drawing.Size(559, 20);
    308296      this.resourceIdsTextBox.TabIndex = 14;
    309297      this.resourceIdsTextBox.Validated += new System.EventHandler(this.resourceIdsTextBox_Validated);
     
    343331      this.downloadExperimentPanel.TabIndex = 18;
    344332      //
     333      // useLocalPluginsCheckBox
     334      //
     335      this.useLocalPluginsCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     336      this.useLocalPluginsCheckBox.AutoSize = true;
     337      this.useLocalPluginsCheckBox.Location = new System.Drawing.Point(637, 54);
     338      this.useLocalPluginsCheckBox.Name = "useLocalPluginsCheckBox";
     339      this.useLocalPluginsCheckBox.Size = new System.Drawing.Size(105, 17);
     340      this.useLocalPluginsCheckBox.TabIndex = 19;
     341      this.useLocalPluginsCheckBox.Text = "UseLocalPlugins";
     342      this.useLocalPluginsCheckBox.UseVisualStyleBackColor = true;
     343      this.useLocalPluginsCheckBox.CheckedChanged += new System.EventHandler(this.useLocalPluginsCheckBox_CheckedChanged);
     344      //
     345      // hiveJobView
     346      //
     347      this.hiveJobView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     348                  | System.Windows.Forms.AnchorStyles.Left)
     349                  | System.Windows.Forms.AnchorStyles.Right)));
     350      this.hiveJobView.Caption = "HiveJob View";
     351      this.hiveJobView.Content = null;
     352      this.hiveJobView.Location = new System.Drawing.Point(2, 3);
     353      this.hiveJobView.Name = "hiveJobView";
     354      this.hiveJobView.ReadOnly = true;
     355      this.hiveJobView.Size = new System.Drawing.Size(722, 384);
     356      this.hiveJobView.TabIndex = 0;
     357      //
    345358      // HiveExperimentView
    346359      //
     
    355368      this.Controls.Add(this.resourceIdsLabel);
    356369      this.Controls.Add(this.executionTimeLabel);
     370      this.Controls.Add(this.useLocalPluginsCheckBox);
    357371      this.Controls.Add(this.pauseButton);
    358372      this.Controls.Add(this.stopButton);
     
    360374      this.Controls.Add(this.reconnectButton);
    361375      this.Name = "HiveExperimentView";
    362       this.Size = new System.Drawing.Size(735, 524);
     376      this.Size = new System.Drawing.Size(742, 524);
     377      this.Controls.SetChildIndex(this.nameTextBox, 0);
     378      this.Controls.SetChildIndex(this.descriptionTextBox, 0);
    363379      this.Controls.SetChildIndex(this.reconnectButton, 0);
    364380      this.Controls.SetChildIndex(this.resetButton, 0);
    365381      this.Controls.SetChildIndex(this.stopButton, 0);
    366382      this.Controls.SetChildIndex(this.pauseButton, 0);
     383      this.Controls.SetChildIndex(this.useLocalPluginsCheckBox, 0);
    367384      this.Controls.SetChildIndex(this.executionTimeLabel, 0);
    368385      this.Controls.SetChildIndex(this.resourceIdsLabel, 0);
     
    374391      this.Controls.SetChildIndex(this.nameLabel, 0);
    375392      this.Controls.SetChildIndex(this.descriptionLabel, 0);
    376       this.Controls.SetChildIndex(this.nameTextBox, 0);
    377       this.Controls.SetChildIndex(this.descriptionTextBox, 0);
    378393      this.Controls.SetChildIndex(this.downloadExperimentPanel, 0);
    379394      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
     
    411426    private System.Windows.Forms.Panel downloadExperimentPanel;
    412427    private HiveJobView hiveJobView;
     428    private System.Windows.Forms.CheckBox useLocalPluginsCheckBox;
    413429
    414430  }
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/ExperimentManager/HiveExperimentView.cs

    r4905 r5402  
    8484        executionTimeTextBox.Text = string.Empty;
    8585        resourceIdsTextBox.Text = string.Empty;
     86        useLocalPluginsCheckBox.Checked = false;
    8687        logView.Content = null;
    8788      } else {
    8889        executionTimeTextBox.Text = Content.ExecutionTime.ToString();
    8990        resourceIdsTextBox.Text = Content.ResourceIds;
     91        useLocalPluginsCheckBox.Checked = Content.UseLocalPlugins;
    9092        logView.Content = Content.Log;
    9193      }
     
    104106        this.resourceIdsTextBox.ReadOnly = Content.ExecutionState != ExecutionState.Prepared;
    105107        this.hiveJobView.ReadOnly = Content.ExecutionState != ExecutionState.Prepared;
     108        this.useLocalPluginsCheckBox.Enabled = Content.ExecutionState == ExecutionState.Prepared;
    106109
    107110        viewExperimentButton.Enabled = Content.GetExperiment() != null;
     
    247250        Content.StartResultPolling();
    248251        SetEnabledStateOfControls();
     252      }
     253    }
     254
     255    private void useLocalPluginsCheckBox_CheckedChanged(object sender, EventArgs e) {
     256      if (Content != null) {
     257        Content.UseLocalPlugins = useLocalPluginsCheckBox.Checked;
    249258      }
    250259    }
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/ExperimentManager/HiveExperimentView.resx

    r4905 r5402  
    113113  </resheader>
    114114  <resheader name="reader">
    115     <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
     115    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
    116116  </resheader>
    117117  <resheader name="writer">
    118     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
    119   </resheader>
    120   <metadata name="errorProvider.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     118    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
     119  </resheader>
     120  <metadata name="errorProvider.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    121121    <value>107, 17</value>
    122122  </metadata>
    123   <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     123  <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    124124    <value>17, 17</value>
    125125  </metadata>
    126   <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
     126  <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    127127  <data name="openExperimentButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
    128128    <value>
     
    204204        fNTws+7PbaOWo6fHXMf6Hwc/vj/OGn/2S8Yv7ycKnpCfVEyqTDZPmU2dmnafvvF05dOJZ+nPFmYKf5X+
    205205        tfa5zvMffnP8rX82YnbiBf/Fp99LXsq/PPRq2aueuYC5R69TXy/MF72Rf3P4LeNt37vwd5MLWe+x7ys/
    206         6H7o/ujz8cGn1E+f/gUDmPP8usTo0wAAAAlwSFlzAAAOvQAADr0BR/uQrQAAA2JJREFUOE9lk31MFHQY
     206        6H7o/ujz8cGn1E+f/gUDmPP8usTo0wAAAAlwSFlzAAAOvAAADrwBlbxySQAAA2JJREFUOE9lk31MFHQY
    207207        x59JZIU62/QPF1gauDJXjkpyZLxVMEEubgpKU0NePKS6yp168qaJ4OIlMhUH6hRWChyuuuTaQjqFk8j0
    208208        MEhlURdMRgp0XERccfjpx7G1Vn8822+/fb/fz/f54xFA/jtDf03S4fyTloE/6PhlFNfvY0xMTCjZ/7X/
     
    268268</value>
    269269  </data>
    270   <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     270  <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    271271    <value>25</value>
    272272  </metadata>
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/ExperimentManager/MenuItems/ExperimentManagerMenuItem.cs

    r4905 r5402  
    2828  public class ExperimentManagerMenuItem : HeuristicLab.MainForm.WindowsForms.MenuItem, IOptimizerUserInterfaceItemProvider {
    2929    public override string Name {
    30       get { return "&Experiment Manager"; }
     30      get { return "&Experiment Manager 3.4"; }
    3131    }
    3232    public override IEnumerable<string> Structure {
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/HeuristicLab.Clients.Hive.Views-3.4.csproj

    r5264 r5402  
    3838    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
    3939  </PropertyGroup>
     40  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
     41    <DebugSymbols>true</DebugSymbols>
     42    <OutputPath>bin\x86\Debug\</OutputPath>
     43    <DefineConstants>DEBUG;TRACE</DefineConstants>
     44    <DebugType>full</DebugType>
     45    <PlatformTarget>x86</PlatformTarget>
     46    <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Clients.Hive.Views-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
     47    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
     48    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
     49    <ErrorReport>prompt</ErrorReport>
     50    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     51    <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
     52    <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
     53    <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
     54    <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
     55  </PropertyGroup>
     56  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
     57    <OutputPath>bin\x86\Release\</OutputPath>
     58    <DefineConstants>TRACE</DefineConstants>
     59    <Optimize>true</Optimize>
     60    <DebugType>pdbonly</DebugType>
     61    <PlatformTarget>x86</PlatformTarget>
     62    <CodeAnalysisLogFile>bin\Release\HeuristicLab.Clients.Hive.Views-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
     63    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
     64    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
     65    <ErrorReport>prompt</ErrorReport>
     66    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     67    <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
     68    <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
     69    <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
     70    <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
     71  </PropertyGroup>
    4072  <ItemGroup>
    4173    <Reference Include="HeuristicLab.Collections-3.3">
     
    86118  <ItemGroup>
    87119    <None Include="HeuristicLabClientsHiveViewsPlugin.cs.frame" />
    88     <Compile Include="ExperimentManager\ConnectionSetupView.cs">
    89       <SubType>Form</SubType>
    90     </Compile>
    91     <Compile Include="ExperimentManager\ConnectionSetupView.Designer.cs">
    92       <DependentUpon>ConnectionSetupView.cs</DependentUpon>
    93     </Compile>
    94120    <Compile Include="ExperimentManager\HiveExperimentListView.cs">
    95121      <SubType>UserControl</SubType>
     
    122148      <DependentUpon>HiveJobView.cs</DependentUpon>
    123149    </Compile>
    124     <Compile Include="ExperimentManager\MenuItems\ConnectionSetupMenuItem.cs" />
    125150    <Compile Include="ExperimentManager\MenuItems\ExperimentManagerMenuItem.cs" />
    126151    <Compile Include="HeuristicLabClientsHiveViewsPlugin.cs" />
     
    138163  </ItemGroup>
    139164  <ItemGroup>
    140     <EmbeddedResource Include="ExperimentManager\ConnectionSetupView.resx">
    141       <DependentUpon>ConnectionSetupView.cs</DependentUpon>
    142     </EmbeddedResource>
    143165    <EmbeddedResource Include="ExperimentManager\HiveExperimentManagerView.resx">
    144166      <DependentUpon>HiveExperimentManagerView.cs</DependentUpon>
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/ExperimentManager/HiveExperimentClient.cs

    r5155 r5402  
    2929using HeuristicLab.Services.Hive.Common;
    3030using HeuristicLab.Services.Hive.Common.ServiceContracts;
     31using HeuristicLab.Services.Hive.Common.DataTransfer;
     32using HeuristicLab.Clients.Hive.Jobs;
     33using HeuristicLab.Clients.Common;
     34using HeuristicLab.Optimization;
    3135
    3236namespace HeuristicLab.Clients.Hive {
    3337  using DT = HeuristicLab.Services.Hive.Common.DataTransfer;
    34   using HeuristicLab.Services.Hive.Common.DataTransfer;
    35   using HeuristicLab.Clients.Hive.Jobs;
    36   using HeuristicLab.Clients.Common;
     38  using HeuristicLab.PluginInfrastructure;
     39  using System.IO;
    3740
    3841  /// <summary>
     
    111114    }
    112115
     116    private List<Guid> pluginsNeededIds;
     117    public List<Guid> PluginsNeededIds {
     118      get { return pluginsNeededIds; }
     119      set { pluginsNeededIds = value; }
     120    }
     121
     122    private bool useLocalPlugins;
     123    public bool UseLocalPlugins {
     124      get { return useLocalPlugins; }
     125      set { useLocalPlugins = value; }
     126    }
     127   
    113128    public HiveExperimentClient() : base(itemName, itemDescription) {
    114129      // TODO //this.ResourceIds = HeuristicLab.Hive.Experiment.Properties.Settings.Default.ResourceIds;
    115       this.ResourceIds = "MyGroup";
     130      this.ResourceIds = "HEAL";
    116131      this.log = new Log();
    117132      InitTimer();
     
    151166    }
    152167
    153     public void SetExperiment(Optimization.Experiment experiment) {
     168    public void SetExperiment(Experiment experiment) {
    154169      this.HiveJob = new HiveJob(experiment);
    155170      Prepare();
     
    171186    /// Returns the experiment from the root HiveJob
    172187    /// </summary>
    173     public Optimization.Experiment GetExperiment() {
     188    public Experiment GetExperiment() {
    174189      if (this.HiveJob != null) {
    175190        return HiveJob.OptimizerJob.OptimizerAsExperiment;
     
    179194
    180195    #region IExecutable Members
    181     private Core.ExecutionState executionState;
     196    private ExecutionState executionState;
    182197    public ExecutionState ExecutionState {
    183198      get { return executionState; }
     
    231246          int jobCount = 0;
    232247
     248          this.progress.Status = "Uploading plugins...";
     249          this.PluginsNeededIds = GetPluginsNeededIds(this.useLocalPlugins);
     250
    233251          this.progress.Status = "Uploading jobs...";
    234252          UploadJobWithChildren(service.Obj, this.HiveJob, null, groups, ref jobCount, totalJobCount);
     
    251269        IsProgressing = false;
    252270      }
     271    }
     272
     273    /// <summary>
     274    /// Gets the Ids of all plugins needed for executing the job.
     275    /// All loaded plugins are assumed to be necessary.
     276    /// If a plugin with the same name and version is already online, it is used. Otherwise the local plugin is uploaded.
     277    /// If useLocalPlugins is true, all local plugins are uploaded regardless of the existence of the same plugin online.
     278    /// </summary>
     279    public static List<Guid> GetPluginsNeededIds(bool useLocalPlugins) {
     280      IEnumerable<IPluginDescription> localPlugins = ApplicationManager.Manager.Plugins;
     281      List<Guid> pluginsNeededIds = new List<Guid>();
     282
     283      using (var service = ServiceLocator.Instance.GetService()) {
     284        IEnumerable<Plugin> onlinePlugins = service.Obj.GetPlugins();
     285
     286        foreach (IPluginDescription localPlugin in localPlugins) {
     287          Plugin found = onlinePlugins.Where(onlinePlugin => onlinePlugin.Name == localPlugin.Name && onlinePlugin.Version == localPlugin.Version).SingleOrDefault();
     288          if (!useLocalPlugins && found != null) {
     289            // plugin is available online; reuse
     290            pluginsNeededIds.Add(found.Id);
     291          } else {
     292            // upload the plugin
     293            Plugin p = new Plugin() { Name = localPlugin.Name, Version = localPlugin.Version, IsLocal = useLocalPlugins };
     294            List<PluginData> pluginDatas = new List<PluginData>();
     295
     296            foreach (IPluginFile pf in localPlugin.Files) {
     297              PluginData pluginData = new PluginData();
     298
     299              pluginData.Data = File.ReadAllBytes(pf.Name);
     300              pluginDatas.Add(pluginData);
     301            }
     302            pluginsNeededIds.Add(service.Obj.AddPlugin(p, pluginDatas));
     303          }
     304        }
     305      }
     306      return pluginsNeededIds;
    253307    }
    254308
     
    273327        jobData = hiveJob.GetAsJobData(false);
    274328      }
     329
     330      hiveJob.Job.PluginsNeededIds = this.PluginsNeededIds;
    275331
    276332      this.progress.Status = string.Format("Uploading job {0} of {1} ({2} kb)", jobCount, totalJobCount, jobData.Data.Count() / 1024);
     
    618674      }
    619675    }
     676   
    620677  }
    621678}
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/ExperimentManager/HiveExperimentManagerClient.cs

    r5055 r5402  
    137137    }
    138138
    139     void hiveExperiments_ItemsRemoved(object sender, Collections.CollectionItemsChangedEventArgs<Collections.IndexedItem<HiveExperimentClient>> e) {
     139    void hiveExperiments_ItemsRemoved(object sender, CollectionItemsChangedEventArgs<IndexedItem<HiveExperimentClient>> e) {
    140140      if (!currentlyUpdating) {
    141141        using (Disposable<IHiveService> service = ServiceLocator.Instance.GetService()) {
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/ExperimentManager/HiveJobClient.cs

    r5363 r5402  
    107107    public HiveJob() {
    108108      this.Job = new Job() {
    109         JobState = JobState.Waiting,
     109        JobState = JobState.Offline,
    110110        DateCreated = DateTime.Now,
    111111        CoresNeeded = 1,
     
    191191        if (OptimizerJob.Optimizer is Optimization.Experiment) {
    192192          Optimization.Experiment experiment = OptimizerJob.OptimizerAsExperiment;
    193           experiment.Optimizers.ItemsAdded += new Collections.CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsAdded);
    194           experiment.Optimizers.ItemsReplaced += new Collections.CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsReplaced);
    195           experiment.Optimizers.ItemsRemoved += new Collections.CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsRemoved);
     193          experiment.Optimizers.ItemsAdded += new CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsAdded);
     194          experiment.Optimizers.ItemsReplaced += new CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsReplaced);
     195          experiment.Optimizers.ItemsRemoved += new CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsRemoved);
    196196          experiment.Optimizers.CollectionReset += new CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_CollectionReset);
    197197        } else if (OptimizerJob.Optimizer is Optimization.BatchRun) {
     
    208208        if (OptimizerJob.Optimizer is Optimization.Experiment) {
    209209          Optimization.Experiment experiment = OptimizerJob.OptimizerAsExperiment;
    210           experiment.Optimizers.ItemsAdded -= new Collections.CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsAdded);
    211           experiment.Optimizers.ItemsReplaced -= new Collections.CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsReplaced);
    212           experiment.Optimizers.ItemsRemoved -= new Collections.CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsRemoved);
     210          experiment.Optimizers.ItemsAdded -= new CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsAdded);
     211          experiment.Optimizers.ItemsReplaced -= new CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsReplaced);
     212          experiment.Optimizers.ItemsRemoved -= new CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_ItemsRemoved);
    213213          experiment.Optimizers.CollectionReset -= new CollectionItemsChangedEventHandler<IndexedItem<IOptimizer>>(Optimizers_CollectionReset);
    214214        } else if (OptimizerJob.Optimizer is Optimization.BatchRun) {
     
    222222    }
    223223
    224     void batchRun_OptimizerChanged(object sender, EventArgs e) {
     224    private void batchRun_OptimizerChanged(object sender, EventArgs e) {
    225225      if (syncJobsWithOptimizers) {
    226226        this.childHiveJobs.Clear();
     
    229229    }
    230230
    231     void batchRun_RepetitionsChanged(object sender, EventArgs e) {
     231    private void batchRun_RepetitionsChanged(object sender, EventArgs e) {
    232232      if (syncJobsWithOptimizers) {
    233233        UpdateChildHiveJobs();
     
    235235    }
    236236
    237     void OptimizerJob_ToStringChanged(object sender, EventArgs e) {
     237    private void OptimizerJob_ToStringChanged(object sender, EventArgs e) {
    238238      this.OnToStringChanged();
    239239    }
     
    267267      }
    268268    }
    269     void Optimizers_CollectionReset(object sender, CollectionItemsChangedEventArgs<IndexedItem<IOptimizer>> e) {
     269    private void Optimizers_CollectionReset(object sender, CollectionItemsChangedEventArgs<IndexedItem<IOptimizer>> e) {
    270270      if (syncJobsWithOptimizers && this.OptimizerJob.ComputeInParallel) {
    271271        foreach (var item in e.Items) {
     
    275275    }
    276276
    277     void OptimizerJob_ComputeInParallelChanged(object sender, EventArgs e) {
     277    private void OptimizerJob_ComputeInParallelChanged(object sender, EventArgs e) {
    278278      if (OptimizerJob != null && syncJobsWithOptimizers) {
    279279        if (OptimizerJob.ComputeInParallel) {
     
    445445      }
    446446
    447       UpdateRequiredPlugins();
    448 
    449447      JobData jobData = new JobData() {
    450448        JobId = job.Id,
     
    453451
    454452      return jobData;
    455     }
    456 
    457     /// <summary>
    458     /// find out which which plugins are needed for the given object
    459     /// </summary>
    460     private void UpdateRequiredPlugins() {
    461       List<Guid> pluginList = new List<Guid>();
    462 
    463       IEnumerable<IPluginDescription> neededPlugins = ApplicationManager.Manager.Plugins; //HivePluginInfoDto.FindPluginsNeeded(optimizerJob.GetType());
    464       using (var service = ServiceLocator.Instance.GetService()) {
    465         IEnumerable<Plugin> availablePlugins = service.Obj.GetPlugins();
    466         foreach (IPluginDescription neededPlugin in neededPlugins) {
    467           Plugin found = availablePlugins.Where(availablePlugin => availablePlugin.Name == neededPlugin.Name && availablePlugin.Version.Major == neededPlugin.Version.Major && availablePlugin.Version.Minor == neededPlugin.Version.Minor && availablePlugin.Version.Revision == neededPlugin.Version.Revision && availablePlugin.Version.MinorRevision == neededPlugin.Version.MinorRevision).SingleOrDefault();
    468           if (found != null) {
    469             pluginList.Add(found.Id);
    470           } else {
    471             Plugin p = new Plugin() { Name = neededPlugin.Name, Version = neededPlugin.Version };
    472             List<PluginData> pluginDatas = new List<PluginData>();
    473 
    474             foreach (IPluginFile pf in neededPlugin.Files) {
    475               PluginData pluginData = new PluginData();
    476 
    477               pluginData.Data = File.ReadAllBytes(pf.Name);
    478               pluginDatas.Add(pluginData);
    479             }
    480             pluginList.Add(service.Obj.AddPlugin(p, pluginDatas));
    481           }
    482         }
    483       }
    484       this.Job.PluginsNeededIds = pluginList;
    485453    }
    486454
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/HeuristicLab.Clients.Hive-3.4.csproj

    r5264 r5402  
    3737  <PropertyGroup>
    3838    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
     39  </PropertyGroup>
     40  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
     41    <DebugSymbols>true</DebugSymbols>
     42    <OutputPath>bin\x86\Debug\</OutputPath>
     43    <DefineConstants>DEBUG;TRACE</DefineConstants>
     44    <DebugType>full</DebugType>
     45    <PlatformTarget>x86</PlatformTarget>
     46    <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Clients.Hive-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
     47    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
     48    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
     49    <ErrorReport>prompt</ErrorReport>
     50    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     51    <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
     52    <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
     53    <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
     54    <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
     55  </PropertyGroup>
     56  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
     57    <OutputPath>bin\x86\Release\</OutputPath>
     58    <DefineConstants>TRACE</DefineConstants>
     59    <Optimize>true</Optimize>
     60    <DebugType>pdbonly</DebugType>
     61    <PlatformTarget>x86</PlatformTarget>
     62    <CodeAnalysisLogFile>bin\Release\HeuristicLab.Clients.Hive-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
     63    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
     64    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
     65    <ErrorReport>prompt</ErrorReport>
     66    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     67    <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
     68    <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
     69    <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
     70    <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
    3971  </PropertyGroup>
    4072  <ItemGroup>
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/app.config

    r5264 r5402  
    1515            </bindings>
    1616        <client>
    17             <endpoint address="http://localhost:9000/Hive-3.4" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding" contract="HeuristicLab.Services.Hive.Common.ServiceContracts.IHiveService" name="wsHttpBinding_IHiveService">
     17            <endpoint address="http://localhost/Hive-3.4/HiveService.svc" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding" contract="HeuristicLab.Services.Hive.Common.ServiceContracts.IHiveService" name="wsHttpBinding_IHiveService">
    1818              <identity>
    1919                <certificate encodedValue="AwAAAAEAAAAUAAAAfEKvcVixnJay+q4hCPFuO0JL5TQgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhCNN5wrUcXMmE/9xwp4TYa9MAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMTAxOTEwNTMxNVoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDXwC5TGcAffd/0oAWHtm0s6YXVXEgXgb1AYmBkkkhkKIFJG/e/Z0KSYbJepmSJD44W3oOAVm+x1DAsZxU79HahDYgWCuHLMm1TLpwSmYOQ0kV3pGHWHhiWV7h7oGLds/eqZ2EOpaNGryfEPnrA4VmxY91vV5/2BTeVSWG6F8lRKQIDAQABo0kwRzBFBgNVHQEEPjA8gBAR7kBnMRHO5gzThEqda0wWoRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghCNN5wrUcXMmE/9xwp4TYa9MAkGBSsOAwIdBQADgYEAoPwEG4QTDXhlxERNDfsZmM2IhEpV42ppz1kEah2oYKDa/ElIMVtvqLv6flVtg18ENN/mEJWiHZ3NyP3qr2Pip+sh+/2WBiSbOaukES/CM7OJn9kJCImH7M/xqM8pxqY8IfgM6iBVrVj9uHqj3j2BBck+cYY8fKyh3CFifMIp6ac="/>
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Hive 3.4.sln

    r5375 r5402  
    8282    {F98A1740-9AC9-4D36-A582-6A2D0D06978D}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
    8383    {F98A1740-9AC9-4D36-A582-6A2D0D06978D}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
    84     {F98A1740-9AC9-4D36-A582-6A2D0D06978D}.Debug|x86.ActiveCfg = Debug|Any CPU
     84    {F98A1740-9AC9-4D36-A582-6A2D0D06978D}.Debug|x86.ActiveCfg = Debug|x86
     85    {F98A1740-9AC9-4D36-A582-6A2D0D06978D}.Debug|x86.Build.0 = Debug|x86
    8586    {F98A1740-9AC9-4D36-A582-6A2D0D06978D}.Release|Any CPU.ActiveCfg = Release|Any CPU
    8687    {F98A1740-9AC9-4D36-A582-6A2D0D06978D}.Release|Any CPU.Build.0 = Release|Any CPU
     
    9293    {989FE92B-484E-41EE-87E2-6A24AF0381D8}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
    9394    {989FE92B-484E-41EE-87E2-6A24AF0381D8}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
    94     {989FE92B-484E-41EE-87E2-6A24AF0381D8}.Debug|x86.ActiveCfg = Debug|Any CPU
     95    {989FE92B-484E-41EE-87E2-6A24AF0381D8}.Debug|x86.ActiveCfg = Debug|x86
     96    {989FE92B-484E-41EE-87E2-6A24AF0381D8}.Debug|x86.Build.0 = Debug|x86
    9597    {989FE92B-484E-41EE-87E2-6A24AF0381D8}.Release|Any CPU.ActiveCfg = Release|Any CPU
    9698    {989FE92B-484E-41EE-87E2-6A24AF0381D8}.Release|Any CPU.Build.0 = Release|Any CPU
     
    102104    {14424A16-48D4-445E-80BF-DDF617548BBB}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
    103105    {14424A16-48D4-445E-80BF-DDF617548BBB}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
    104     {14424A16-48D4-445E-80BF-DDF617548BBB}.Debug|x86.ActiveCfg = Debug|Any CPU
     106    {14424A16-48D4-445E-80BF-DDF617548BBB}.Debug|x86.ActiveCfg = Debug|x86
     107    {14424A16-48D4-445E-80BF-DDF617548BBB}.Debug|x86.Build.0 = Debug|x86
    105108    {14424A16-48D4-445E-80BF-DDF617548BBB}.Release|Any CPU.ActiveCfg = Release|Any CPU
    106109    {14424A16-48D4-445E-80BF-DDF617548BBB}.Release|Any CPU.Build.0 = Release|Any CPU
     
    112115    {EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
    113116    {EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
    114     {EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Debug|x86.ActiveCfg = Debug|Any CPU
     117    {EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Debug|x86.ActiveCfg = Debug|x86
     118    {EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Debug|x86.Build.0 = Debug|x86
    115119    {EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
    116120    {EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Release|Any CPU.Build.0 = Release|Any CPU
     
    122126    {B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
    123127    {B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
    124     {B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Debug|x86.ActiveCfg = Debug|Any CPU
     128    {B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Debug|x86.ActiveCfg = Debug|x86
     129    {B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Debug|x86.Build.0 = Debug|x86
    125130    {B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Release|Any CPU.ActiveCfg = Release|Any CPU
    126131    {B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Release|Any CPU.Build.0 = Release|Any CPU
     
    132137    {E1D6C801-892A-406A-B606-F158E36DD3C3}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
    133138    {E1D6C801-892A-406A-B606-F158E36DD3C3}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
    134     {E1D6C801-892A-406A-B606-F158E36DD3C3}.Debug|x86.ActiveCfg = Debug|Any CPU
     139    {E1D6C801-892A-406A-B606-F158E36DD3C3}.Debug|x86.ActiveCfg = Debug|x86
     140    {E1D6C801-892A-406A-B606-F158E36DD3C3}.Debug|x86.Build.0 = Debug|x86
    135141    {E1D6C801-892A-406A-B606-F158E36DD3C3}.Release|Any CPU.ActiveCfg = Release|Any CPU
    136142    {E1D6C801-892A-406A-B606-F158E36DD3C3}.Release|Any CPU.Build.0 = Release|Any CPU
     
    142148    {8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
    143149    {8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
    144     {8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Debug|x86.ActiveCfg = Debug|Any CPU
     150    {8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Debug|x86.ActiveCfg = Debug|x86
     151    {8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Debug|x86.Build.0 = Debug|x86
    145152    {8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Release|Any CPU.ActiveCfg = Release|Any CPU
    146153    {8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Release|Any CPU.Build.0 = Release|Any CPU
     
    152159    {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
    153160    {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
    154     {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Debug|x86.ActiveCfg = Debug|Any CPU
     161    {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Debug|x86.ActiveCfg = Debug|x86
     162    {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Debug|x86.Build.0 = Debug|x86
    155163    {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Release|Any CPU.ActiveCfg = Release|Any CPU
    156164    {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Release|Any CPU.Build.0 = Release|Any CPU
     
    163171    {0CA6706D-A569-45DE-A85C-4158891CC1BC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
    164172    {0CA6706D-A569-45DE-A85C-4158891CC1BC}.Debug|x86.ActiveCfg = Debug|Any CPU
     173    {0CA6706D-A569-45DE-A85C-4158891CC1BC}.Debug|x86.Build.0 = Debug|Any CPU
    165174    {0CA6706D-A569-45DE-A85C-4158891CC1BC}.Release|Any CPU.ActiveCfg = Debug|Any CPU
    166175    {0CA6706D-A569-45DE-A85C-4158891CC1BC}.Release|Any CPU.Build.0 = Debug|Any CPU
     
    172181    {C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
    173182    {C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
    174     {C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Debug|x86.ActiveCfg = Debug|Any CPU
     183    {C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Debug|x86.ActiveCfg = Debug|x86
     184    {C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Debug|x86.Build.0 = Debug|x86
    175185    {C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Release|Any CPU.ActiveCfg = Release|Any CPU
    176186    {C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Release|Any CPU.Build.0 = Release|Any CPU
     
    182192    {17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
    183193    {17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
    184     {17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Debug|x86.ActiveCfg = Debug|Any CPU
     194    {17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Debug|x86.ActiveCfg = Debug|x86
     195    {17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Debug|x86.Build.0 = Debug|x86
    185196    {17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Release|Any CPU.ActiveCfg = Release|Any CPU
    186197    {17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Release|Any CPU.Build.0 = Release|Any CPU
     
    215226    {28711372-0255-4883-9BED-81E150D73880}.Debug|Mixed Platforms.ActiveCfg = Debug
    216227    {28711372-0255-4883-9BED-81E150D73880}.Debug|x86.ActiveCfg = Debug
     228    {28711372-0255-4883-9BED-81E150D73880}.Debug|x86.Build.0 = Debug
    217229    {28711372-0255-4883-9BED-81E150D73880}.Release|Any CPU.ActiveCfg = Release
    218230    {28711372-0255-4883-9BED-81E150D73880}.Release|Mixed Platforms.ActiveCfg = Release
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Hive/3.4/HeuristicLab.Hive-3.4.csproj

    r5264 r5402  
    3737  <PropertyGroup>
    3838    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
     39  </PropertyGroup>
     40  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
     41    <DebugSymbols>true</DebugSymbols>
     42    <OutputPath>bin\x86\Debug\</OutputPath>
     43    <DefineConstants>DEBUG;TRACE</DefineConstants>
     44    <DebugType>full</DebugType>
     45    <PlatformTarget>x86</PlatformTarget>
     46    <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Hive-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
     47    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
     48    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
     49    <ErrorReport>prompt</ErrorReport>
     50    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     51    <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
     52    <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
     53    <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
     54    <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
     55  </PropertyGroup>
     56  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
     57    <OutputPath>bin\x86\Release\</OutputPath>
     58    <DefineConstants>TRACE</DefineConstants>
     59    <Optimize>true</Optimize>
     60    <DebugType>pdbonly</DebugType>
     61    <PlatformTarget>x86</PlatformTarget>
     62    <CodeAnalysisLogFile>bin\Release\HeuristicLab.Hive-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
     63    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
     64    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
     65    <ErrorReport>prompt</ErrorReport>
     66    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     67    <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
     68    <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
     69    <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
     70    <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
    3971  </PropertyGroup>
    4072  <ItemGroup>
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer/Job.cs

    r5106 r5402  
    4141    public List<Guid> PluginsNeededIds { get; set; }
    4242
    43     public Job() { }
     43    public Job() {
     44      this.PluginsNeededIds = new List<Guid>();
     45    }
    4446    protected Job(Job original, Cloner cloner) : base(original, cloner) {
    4547      this.UserId = original.UserId;
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer/Plugin.cs

    r4905 r5402  
    3333    public Version Version { get; set; }
    3434
     35    [DataMember]
     36    public Guid UserId { get; set; }
     37
     38    [DataMember]
     39    public DateTime DateCreated { get; set; }
     40
     41    [DataMember]
     42    public bool IsLocal { get; set; }
     43
    3544    public Plugin() { }
    3645    protected Plugin(Plugin original, Cloner cloner) : base(original, cloner) {
    3746      this.Version = original.Version;
     47      this.UserId = original.UserId;
     48      this.DateCreated = original.DateCreated;
     49      this.IsLocal = original.IsLocal;
    3850    }
    3951    public override IDeepCloneable Clone(Cloner cloner) {
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer/PluginData.cs

    r5375 r5402  
    2727  [Serializable]
    2828  [DataContract]
    29   public class PluginData : HiveItemBase {
    30     [DataMember]
    31     public int PluginDataId { get; set; }
     29  public class PluginData : HiveItem {
    3230    [DataMember]
    3331    public Guid PluginId { get; set; }
     
    3634    [DataMember]
    3735    public String FileName { get; set; }
    38 
    3936
    4037    public PluginData() { }
     
    4542      Array.Copy(original.Data, this.Data, original.Data.Length);
    4643      this.FileName = original.FileName;
    47       this.PluginDataId = original.PluginDataId;
    4844      this.PluginId = original.PluginId;
    4945    }
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/HeuristicLab.Services.Hive.Common-3.4.csproj

    r5264 r5402  
    3737  <PropertyGroup>
    3838    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
     39  </PropertyGroup>
     40  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
     41    <DebugSymbols>true</DebugSymbols>
     42    <OutputPath>bin\x86\Debug\</OutputPath>
     43    <DefineConstants>DEBUG;TRACE</DefineConstants>
     44    <DebugType>full</DebugType>
     45    <PlatformTarget>x86</PlatformTarget>
     46    <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Services.Hive.Common-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
     47    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
     48    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
     49    <ErrorReport>prompt</ErrorReport>
     50    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     51    <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
     52    <CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets>
     53    <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
     54    <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
     55  </PropertyGroup>
     56  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
     57    <OutputPath>bin\x86\Release\</OutputPath>
     58    <DefineConstants>TRACE</DefineConstants>
     59    <Optimize>true</Optimize>
     60    <DebugType>pdbonly</DebugType>
     61    <PlatformTarget>x86</PlatformTarget>
     62    <CodeAnalysisLogFile>bin\Release\HeuristicLab.Services.Hive.Common-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
     63    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
     64    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
     65    <ErrorReport>prompt</ErrorReport>
     66    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     67    <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
     68    <CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets>
     69    <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
     70    <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
    3971  </PropertyGroup>
    4072  <ItemGroup>
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/Convert.cs

    r5375 r5402  
    6767        target.JobState = source.JobState;
    6868        target.UserId = source.UserId;
    69         //        target.RequiredPlugins = db.Plugins.Select(x => source.PluginsNeededIds.Contains(x.PluginId)); - this is difficult
     69        // RequiredPlugins need to be added by Dao
    7070      }
    7171    }
     
    109109    public static DT.Plugin ToDto(Plugin source) {
    110110      if (source == null) return null;
    111       return new DT.Plugin { Id = source.PluginId, Name = source.Name, Version = new Version(source.Version) };
     111      return new DT.Plugin { Id = source.PluginId, Name = source.Name, Version = new Version(source.Version), UserId = source.UserId, IsLocal = source.IsLocal, DateCreated = source.DateCreated };
    112112    }
    113113    public static Plugin ToEntity(DT.Plugin source) {
     
    118118    public static void ToEntity(DT.Plugin source, Plugin target) {
    119119      if ((source != null) && (target != null)) {
    120         target.PluginId = source.Id; target.Name = source.Name; target.Version = source.Version.ToString();
     120        target.PluginId = source.Id; target.Name = source.Name; target.Version = source.Version.ToString(); target.UserId = source.UserId; target.IsLocal = source.IsLocal; target.DateCreated = source.DateCreated;
    121121      }
    122122    }
     
    126126    public static DT.PluginData ToDto(PluginData source) {
    127127      if (source == null) return null;
    128       return new DT.PluginData { PluginId = source.PluginId, Data = source.Data.ToArray(), FileName = source.FileName, PluginDataId = source.PluginDataId };
     128      return new DT.PluginData { Id = source.PluginDataId, PluginId = source.PluginId, Data = source.Data.ToArray(), FileName = source.FileName };
    129129    }
    130130    public static PluginData ToEntity(DT.PluginData source) {
     
    135135    public static void ToEntity(DT.PluginData source, PluginData target) {
    136136      if ((source != null) && (target != null)) {
    137         target.PluginId = source.PluginId; target.Data = new Binary(source.Data);
    138         target.FileName = target.FileName;
     137        target.PluginDataId = source.Id; target.PluginId = source.PluginId; target.Data = new Binary(source.Data); target.FileName = source.FileName;
    139138      }
    140139    }
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HeuristicLab.Services.Hive.DataAccess-3.4.csproj

    r5264 r5402  
    3737  <PropertyGroup>
    3838    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
     39  </PropertyGroup>
     40  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
     41    <DebugSymbols>true</DebugSymbols>
     42    <OutputPath>bin\x86\Debug\</OutputPath>
     43    <DefineConstants>DEBUG;TRACE</DefineConstants>
     44    <DebugType>full</DebugType>
     45    <PlatformTarget>x86</PlatformTarget>
     46    <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Services.Hive.DataAccess-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
     47    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
     48    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
     49    <ErrorReport>prompt</ErrorReport>
     50    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     51    <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
     52    <CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets>
     53    <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
     54    <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
     55  </PropertyGroup>
     56  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
     57    <OutputPath>bin\x86\Release\</OutputPath>
     58    <DefineConstants>TRACE</DefineConstants>
     59    <Optimize>true</Optimize>
     60    <DebugType>pdbonly</DebugType>
     61    <PlatformTarget>x86</PlatformTarget>
     62    <CodeAnalysisLogFile>bin\Release\HeuristicLab.Services.Hive.DataAccess-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
     63    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
     64    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
     65    <ErrorReport>prompt</ErrorReport>
     66    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     67    <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
     68    <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
     69    <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
     70    <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
    3971  </PropertyGroup>
    4072  <ItemGroup>
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HiveDao.cs

    r5375 r5402  
    5656        db.Jobs.InsertOnSubmit(entity);
    5757        db.SubmitChanges();
     58        foreach (Guid pluginId in dto.PluginsNeededIds) {
     59          db.RequiredPlugins.InsertOnSubmit(new RequiredPlugin() { JobId = entity.JobId, PluginId = pluginId });
     60        }
     61        db.SubmitChanges();
    5862        return entity.JobId;
    5963      }
     
    6569        if (entity == null) db.Jobs.InsertOnSubmit(Convert.ToEntity(dto));
    6670        else Convert.ToEntity(dto, entity);
     71        // todo: update required plugins
    6772        db.SubmitChanges();
    6873      }
     
    232237    public DT.PluginData GetPluginData(Guid id) {
    233238      using (var db = CreateContext()) {
    234         return Convert.ToDto(db.PluginDatas.SingleOrDefault(x => x.PluginId == id));
     239        return Convert.ToDto(db.PluginDatas.SingleOrDefault(x => x.PluginDataId == id));
    235240      }
    236241    }
     
    247252        db.PluginDatas.InsertOnSubmit(entity);
    248253        db.SubmitChanges();
    249         return entity.PluginId;
     254        return entity.PluginDataId;
    250255      }
    251256    }
     
    262267    public void DeletePluginData(Guid id) {
    263268      using (var db = CreateContext()) {
    264         var entity = db.PluginDatas.FirstOrDefault(x => x.PluginId == id); // check if all the byte[] is loaded into memory here. otherwise work around to delete without loading it
     269        var entity = db.PluginDatas.FirstOrDefault(x => x.PluginDataId == id); // todo: check if all the byte[] is loaded into memory here. otherwise work around to delete without loading it
    265270        if (entity != null) db.PluginDatas.DeleteOnSubmit(entity);
    266271        db.SubmitChanges();
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HiveDataContext.dbml

    r5375 r5402  
    1414      <Column Name="Name" Type="System.String" DbType="VarChar(MAX)" CanBeNull="false" />
    1515      <Column Name="Version" Type="System.String" DbType="VarChar(MAX)" CanBeNull="false" />
     16      <Column Name="IsLocal" Type="System.Boolean" DbType="Bit" CanBeNull="false" />
     17      <Column Name="UserId" Type="System.Guid" DbType="UniqueIdentifier" CanBeNull="false" />
     18      <Column Name="DateCreated" Type="System.DateTime" DbType="DateTime" CanBeNull="false" />
    1619      <Association Name="Plugin_RequiredPlugin" Member="RequiredPlugins" ThisKey="PluginId" OtherKey="PluginId" Type="RequiredPlugin" />
    1720      <Association Name="Plugin_PluginData" Member="PluginData" ThisKey="PluginId" OtherKey="PluginId" Type="PluginData" />
     
    7780  <Table Name="dbo.UptimeCalendar" Member="UptimeCalendars">
    7881    <Type Name="UptimeCalendar">
    79       <Column Name="UptimeCalendarId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
    80       <Column Name="ResourceId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" CanBeNull="false" />
    81       <Column Name="StartDate" Type="System.DateTime" DbType="DateTime NOT NULL" CanBeNull="false" />
    82       <Column Name="EndDate" Type="System.DateTime" DbType="DateTime NOT NULL" CanBeNull="false" />
    83       <Column Name="AllDayEvent" Type="System.Boolean" DbType="Bit NOT NULL" CanBeNull="false" />
    84       <Column Name="Recurring" Type="System.Boolean" DbType="Bit NOT NULL" CanBeNull="false" />
     82      <Column Name="UptimeCalendarId" Type="System.Guid" DbType="UniqueIdentifier" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
     83      <Column Name="ResourceId" Type="System.Guid" DbType="UniqueIdentifier" CanBeNull="false" />
     84      <Column Name="StartDate" Type="System.DateTime" DbType="DateTime" CanBeNull="false" />
     85      <Column Name="EndDate" Type="System.DateTime" DbType="DateTime" CanBeNull="false" />
     86      <Column Name="AllDayEvent" Type="System.Boolean" DbType="Bit" CanBeNull="false" />
     87      <Column Name="Recurring" Type="System.Boolean" DbType="Bit" CanBeNull="false" />
    8588      <Column Name="RecurringId" Type="System.Guid" DbType="UniqueIdentifier" CanBeNull="false" />
    8689      <Association Name="Resource_UptimeCalendar" Member="Resource" ThisKey="ResourceId" OtherKey="ResourceId" Type="Resource" IsForeignKey="true" DeleteRule="CASCADE" />
     
    109112  <Table Name="" Member="PluginDatas">
    110113    <Type Name="PluginData">
     114      <Column Name="PluginDataId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
    111115      <Column Name="PluginId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" CanBeNull="false" />
    112116      <Column Name="Data" Type="System.Data.Linq.Binary" DbType="VarBinary(MAX) NOT NULL" CanBeNull="false" UpdateCheck="Never" />
    113117      <Column Name="FileName" Type="System.String" DbType="VarChar(MAX)" CanBeNull="false" />
    114       <Column Name="PluginDataId" Type="System.Int32" DbType="Int IDENTITY(1,1)" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
    115118      <Association Name="Plugin_PluginData" Member="Plugin" ThisKey="PluginId" OtherKey="PluginId" Type="Plugin" IsForeignKey="true" />
    116119    </Type>
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HiveDataContext.dbml.layout

    r5375 r5402  
    99      </nestedChildShapes>
    1010    </classShape>
    11     <classShape Id="7d998e56-4fba-41ca-a1a8-1dcdb9068edf" absoluteBounds="9, 5.5, 2, 1.3862939453125005">
     11    <classShape Id="7d998e56-4fba-41ca-a1a8-1dcdb9068edf" absoluteBounds="9, 5.5, 2, 1.9631982421874996">
    1212      <DataClassMoniker Name="/HiveDataContext/Plugin" />
    1313      <nestedChildShapes>
    14         <elementListCompartment Id="ec4ba325-6dff-4418-baad-59af81ae2024" absoluteBounds="9.015, 5.9600000000000009, 1.9700000000000002, 0.8262939453125" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" />
     14        <elementListCompartment Id="ec4ba325-6dff-4418-baad-59af81ae2024" absoluteBounds="9.015, 5.9600000000000009, 1.9700000000000002, 1.4031982421875" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" />
    1515      </nestedChildShapes>
    1616    </classShape>
     
    130130      </nestedChildShapes>
    131131    </classShape>
    132     <associationConnector edgePoints="[(11 : 6.19314697265625); (11.625 : 6.19314697265625)]" fixedFrom="NotFixed" fixedTo="NotFixed">
     132    <associationConnector edgePoints="[(11 : 6.28929768880208); (11.625 : 6.28929768880208)]" fixedFrom="Algorithm" fixedTo="Algorithm">
    133133      <AssociationMoniker Name="/HiveDataContext/Plugin/Plugin_PluginData" />
    134134      <nodes>
     
    144144      </nodes>
    145145    </associationConnector>
    146     <associationConnector edgePoints="[(9 : 6.19314697265625); (8.5 : 6.19314697265625)]" fixedFrom="NotFixed" fixedTo="NotFixed">
     146    <associationConnector edgePoints="[(9 : 6.19314697265625); (8.5 : 6.19314697265625)]" fixedFrom="Algorithm" fixedTo="Algorithm">
    147147      <AssociationMoniker Name="/HiveDataContext/Plugin/Plugin_RequiredPlugin" />
    148148      <nodes>
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HiveDataContext.designer.cs

    r5375 r5402  
    361361    private string _Version;
    362362   
     363    private bool _IsLocal;
     364   
     365    private System.Guid _UserId;
     366   
     367    private System.DateTime _DateCreated;
     368   
    363369    private EntitySet<RequiredPlugin> _RequiredPlugins;
    364370   
     
    375381    partial void OnVersionChanging(string value);
    376382    partial void OnVersionChanged();
     383    partial void OnIsLocalChanging(bool value);
     384    partial void OnIsLocalChanged();
     385    partial void OnUserIdChanging(System.Guid value);
     386    partial void OnUserIdChanged();
     387    partial void OnDateCreatedChanging(System.DateTime value);
     388    partial void OnDateCreatedChanged();
    377389    #endregion
    378390   
     
    440452          this.SendPropertyChanged("Version");
    441453          this.OnVersionChanged();
     454        }
     455      }
     456    }
     457   
     458    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsLocal", DbType="Bit")]
     459    public bool IsLocal
     460    {
     461      get
     462      {
     463        return this._IsLocal;
     464      }
     465      set
     466      {
     467        if ((this._IsLocal != value))
     468        {
     469          this.OnIsLocalChanging(value);
     470          this.SendPropertyChanging();
     471          this._IsLocal = value;
     472          this.SendPropertyChanged("IsLocal");
     473          this.OnIsLocalChanged();
     474        }
     475      }
     476    }
     477   
     478    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier")]
     479    public System.Guid UserId
     480    {
     481      get
     482      {
     483        return this._UserId;
     484      }
     485      set
     486      {
     487        if ((this._UserId != value))
     488        {
     489          this.OnUserIdChanging(value);
     490          this.SendPropertyChanging();
     491          this._UserId = value;
     492          this.SendPropertyChanged("UserId");
     493          this.OnUserIdChanged();
     494        }
     495      }
     496    }
     497   
     498    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DateCreated", DbType="DateTime")]
     499    public System.DateTime DateCreated
     500    {
     501      get
     502      {
     503        return this._DateCreated;
     504      }
     505      set
     506      {
     507        if ((this._DateCreated != value))
     508        {
     509          this.OnDateCreatedChanging(value);
     510          this.SendPropertyChanging();
     511          this._DateCreated = value;
     512          this.SendPropertyChanged("DateCreated");
     513          this.OnDateCreatedChanged();
    442514        }
    443515      }
     
    18351907    }
    18361908   
    1837     [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UptimeCalendarId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)]
     1909    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UptimeCalendarId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier", IsPrimaryKey=true, IsDbGenerated=true)]
    18381910    public System.Guid UptimeCalendarId
    18391911    {
     
    18551927    }
    18561928   
    1857     [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceId", DbType="UniqueIdentifier NOT NULL")]
     1929    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceId", DbType="UniqueIdentifier")]
    18581930    public System.Guid ResourceId
    18591931    {
     
    18791951    }
    18801952   
    1881     [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StartDate", DbType="DateTime NOT NULL")]
     1953    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StartDate", DbType="DateTime")]
    18821954    public System.DateTime StartDate
    18831955    {
     
    18991971    }
    19001972   
    1901     [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EndDate", DbType="DateTime NOT NULL")]
     1973    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EndDate", DbType="DateTime")]
    19021974    public System.DateTime EndDate
    19031975    {
     
    19191991    }
    19201992   
    1921     [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AllDayEvent", DbType="Bit NOT NULL")]
     1993    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AllDayEvent", DbType="Bit")]
    19221994    public bool AllDayEvent
    19231995    {
     
    19392011    }
    19402012   
    1941     [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Recurring", DbType="Bit NOT NULL")]
     2013    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Recurring", DbType="Bit")]
    19422014    public bool Recurring
    19432015    {
     
    24222494    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
    24232495   
     2496    private System.Guid _PluginDataId;
     2497   
    24242498    private System.Guid _PluginId;
    24252499   
     
    24272501   
    24282502    private string _FileName;
    2429    
    2430     private int _PluginDataId;
    24312503   
    24322504    private EntityRef<Plugin> _Plugin;
     
    24362508    partial void OnValidate(System.Data.Linq.ChangeAction action);
    24372509    partial void OnCreated();
     2510    partial void OnPluginDataIdChanging(System.Guid value);
     2511    partial void OnPluginDataIdChanged();
    24382512    partial void OnPluginIdChanging(System.Guid value);
    24392513    partial void OnPluginIdChanged();
     
    24422516    partial void OnFileNameChanging(string value);
    24432517    partial void OnFileNameChanged();
    2444     partial void OnPluginDataIdChanging(int value);
    2445     partial void OnPluginDataIdChanged();
    24462518    #endregion
    24472519   
     
    24502522      this._Plugin = default(EntityRef<Plugin>);
    24512523      OnCreated();
     2524    }
     2525   
     2526    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PluginDataId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)]
     2527    public System.Guid PluginDataId
     2528    {
     2529      get
     2530      {
     2531        return this._PluginDataId;
     2532      }
     2533      set
     2534      {
     2535        if ((this._PluginDataId != value))
     2536        {
     2537          this.OnPluginDataIdChanging(value);
     2538          this.SendPropertyChanging();
     2539          this._PluginDataId = value;
     2540          this.SendPropertyChanged("PluginDataId");
     2541          this.OnPluginDataIdChanged();
     2542        }
     2543      }
    24522544    }
    24532545   
     
    25162608    }
    25172609   
    2518     [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PluginDataId", AutoSync=AutoSync.OnInsert, DbType="Int IDENTITY(1,1)", IsPrimaryKey=true, IsDbGenerated=true)]
    2519     public int PluginDataId
    2520     {
    2521       get
    2522       {
    2523         return this._PluginDataId;
    2524       }
    2525       set
    2526       {
    2527         if ((this._PluginDataId != value))
    2528         {
    2529           this.OnPluginDataIdChanging(value);
    2530           this.SendPropertyChanging();
    2531           this._PluginDataId = value;
    2532           this.SendPropertyChanged("PluginDataId");
    2533           this.OnPluginDataIdChanged();
    2534         }
    2535       }
    2536     }
    2537    
    25382610    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Plugin_PluginData", Storage="_Plugin", ThisKey="PluginId", OtherKey="PluginId", IsForeignKey=true)]
    25392611    public Plugin Plugin
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/Tools/prepareHiveDatabase.sql

    r5106 r5402  
    4343ALTER TABLE dbo.Plugin ALTER COLUMN PluginId ADD ROWGUIDCOL;
    4444ALTER TABLE dbo.Plugin WITH NOCHECK ADD CONSTRAINT [DF_Plugin_PluginId] DEFAULT (newid()) FOR PluginId;
     45
     46ALTER TABLE dbo.PluginData ALTER COLUMN PluginDataId ADD ROWGUIDCOL;
     47ALTER TABLE dbo.PluginData WITH NOCHECK ADD CONSTRAINT [DF_PluginData_PluginDataId] DEFAULT (newid()) FOR PluginDataId;
    4548
    4649ALTER TABLE dbo.RequiredPlugins ALTER COLUMN RequiredPluginId ADD ROWGUIDCOL;
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Tests/DaoTests.cs

    r5155 r5402  
    3333      DT.Job job1 = new DT.Job();
    3434      job1.DateCreated = DateTime.Now;
     35
     36      DT.Plugin plugin1 = new DT.Plugin();
     37      plugin1.Name = "Tests.MyPlugin";
     38      plugin1.Version = new Version("1.0.0.0");
     39      plugin1.UserId = Guid.Empty;
     40      plugin1.IsLocal = true;
     41      plugin1.DateCreated = DateTime.Now;
     42
     43      DT.PluginData pluginData1 = new DT.PluginData();
     44      pluginData1.PluginId = plugin1.Id;
     45      pluginData1.FileName = "Tests.MyPlugin-1.0.dll";
     46      pluginData1.Data = new byte[] { 0, 1, 2, 3, 4, 5 };
     47
     48      plugin1.Id = dao.AddPlugin(plugin1);
     49      pluginData1.PluginId = plugin1.Id;
     50      pluginData1.Id = dao.AddPluginData(pluginData1);
     51
     52      job1.PluginsNeededIds.Add(plugin1.Id);
     53
    3554      job1.Id = dao.AddJob(job1);
    3655
     
    4160      Assert.AreEqual(job1.DateCreated.ToString(), job1loaded.DateCreated.ToString());
    4261      Assert.AreEqual(null, job1loaded.DateFinished);
     62      Assert.IsTrue(job1.PluginsNeededIds.SequenceEqual(job1loaded.PluginsNeededIds));
    4363     
    4464      dao.DeleteJob(job1.Id);
     
    7393      job.Id = dao.AddJob(job);
    7494
     95      // todo
     96    }
    7597
     98    [TestMethod]
     99    public void TestPluginDao() {
     100      IHiveDao dao = ServiceLocator.Instance.HiveDao;
     101
     102      DT.Plugin plugin1 = new DT.Plugin();
     103      plugin1.DateCreated = DateTime.Now;
     104      plugin1.IsLocal = false;
     105      plugin1.Name = "Tests.MyPlugin";
     106      plugin1.Version = new Version("1.0.0.0");
     107      plugin1.UserId = Guid.Empty;
     108
     109      plugin1.Id = dao.AddPlugin(plugin1);
     110
     111      DT.Plugin plugin1loaded = dao.GetPlugin(plugin1.Id);
     112      Assert.AreEqual(plugin1.Id, plugin1loaded.Id);
     113      Assert.AreEqual(plugin1.Name, plugin1loaded.Name);
     114      Assert.AreEqual(plugin1.Version, plugin1loaded.Version);
     115      Assert.AreEqual(plugin1.UserId, plugin1loaded.UserId);
     116      Assert.AreEqual(plugin1.DateCreated.ToString(), plugin1loaded.DateCreated.ToString());
     117      Assert.AreEqual(plugin1.IsLocal, plugin1loaded.IsLocal);
     118
     119      DT.PluginData pluginData1 = new DT.PluginData();
     120      pluginData1.PluginId = plugin1.Id;
     121      pluginData1.FileName = "Tests.MyPlugin-1.0.dll";
     122      pluginData1.Data = new byte[] { 0, 1, 2, 3, 4, 5 };
     123
     124      pluginData1.Id = dao.AddPluginData(pluginData1);
     125
     126      DT.PluginData pluginData1loaded = dao.GetPluginData(pluginData1.Id);
     127      Assert.AreEqual(pluginData1.Id, pluginData1loaded.Id);
     128
     129      Assert.AreEqual(pluginData1.PluginId, pluginData1loaded.PluginId);
     130      Assert.AreEqual(pluginData1.FileName, pluginData1loaded.FileName);
     131      Assert.IsTrue(pluginData1.Data.SequenceEqual(pluginData1loaded.Data));
     132
     133      dao.DeletePluginData(pluginData1.Id);
     134      dao.DeletePlugin(plugin1.Id);
     135
     136      Assert.AreEqual(null, dao.GetPlugin(plugin1.Id));
     137      Assert.AreEqual(null, dao.GetPluginData(pluginData1.Id));
    76138    }
     139
    77140  }
    78141}
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Tests/HeuristicLab.Services.Hive.Tests-3.4.csproj

    r5106 r5402  
    3333    <WarningLevel>4</WarningLevel>
    3434  </PropertyGroup>
     35  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
     36    <DebugSymbols>true</DebugSymbols>
     37    <OutputPath>bin\x86\Debug\</OutputPath>
     38    <DefineConstants>DEBUG;TRACE</DefineConstants>
     39    <DebugType>full</DebugType>
     40    <PlatformTarget>x86</PlatformTarget>
     41    <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Services.Hive.Tests-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
     42    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
     43    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
     44    <ErrorReport>prompt</ErrorReport>
     45    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     46    <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
     47    <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
     48    <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
     49    <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
     50  </PropertyGroup>
     51  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
     52    <OutputPath>bin\x86\Release\</OutputPath>
     53    <DefineConstants>TRACE</DefineConstants>
     54    <Optimize>true</Optimize>
     55    <DebugType>pdbonly</DebugType>
     56    <PlatformTarget>x86</PlatformTarget>
     57    <CodeAnalysisLogFile>bin\Release\HeuristicLab.Services.Hive.Tests-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
     58    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
     59    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
     60    <ErrorReport>prompt</ErrorReport>
     61    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     62    <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
     63    <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
     64    <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
     65    <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
     66  </PropertyGroup>
    3567  <ItemGroup>
    3668    <Reference Include="ALGLIB-2.5.0">
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Web/Hive-3.4

    • Property svn:ignore set to
      Bin
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Web/Hive-3.4/Web.config

    r5364 r5402  
    7070
    7171  <system.webServer>
    72     <modules runAllManagedModulesForAllRequests="true">
     72    <!--<modules runAllManagedModulesForAllRequests="true">
    7373      <add name="HiveServerModule" type="HeuristicLab.Hive.Server.Core.IISModules.HiveServerModule"/>
    74     </modules>
     74    </modules>-->
    7575    <directoryBrowse enabled="true"/>
    7676  </system.webServer>
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive/3.4/HeuristicLab.Services.Hive-3.4.csproj

    r5363 r5402  
    3838  <PropertyGroup>
    3939    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
     40  </PropertyGroup>
     41  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
     42    <DebugSymbols>true</DebugSymbols>
     43    <OutputPath>bin\x86\Debug\</OutputPath>
     44    <DefineConstants>DEBUG;TRACE</DefineConstants>
     45    <DebugType>full</DebugType>
     46    <PlatformTarget>x86</PlatformTarget>
     47    <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Services.Hive-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
     48    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
     49    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
     50    <ErrorReport>prompt</ErrorReport>
     51    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     52    <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
     53    <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
     54    <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
     55    <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
     56  </PropertyGroup>
     57  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
     58    <OutputPath>bin\x86\Release\</OutputPath>
     59    <DefineConstants>TRACE</DefineConstants>
     60    <Optimize>true</Optimize>
     61    <DebugType>pdbonly</DebugType>
     62    <PlatformTarget>x86</PlatformTarget>
     63    <CodeAnalysisLogFile>bin\Release\HeuristicLab.Services.Hive-3.4.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
     64    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
     65    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
     66    <ErrorReport>prompt</ErrorReport>
     67    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     68    <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
     69    <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
     70    <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
     71    <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
    4072  </PropertyGroup>
    4173  <ItemGroup>
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive/3.4/HiveService.cs

    r5375 r5402  
    213213    public Guid AddPlugin(Plugin plugin, List<PluginData> pluginDatas) {
    214214      using (trans.OpenTransaction()) {
     215        plugin.UserId = auth.UserId;
     216        plugin.DateCreated = DateTime.Now;
    215217        Guid pluginId = dao.AddPlugin(plugin);
    216218        foreach (PluginData pluginData in pluginDatas) {
Note: See TracChangeset for help on using the changeset viewer.