Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4629 for branches


Ignore:
Timestamp:
10/20/10 15:05:55 (14 years ago)
Author:
cneumuel
Message:
  • worked on new hive structure
  • created IIS hostable website for hive (old structure)

(#1233)

Location:
branches/HeuristicLab.Hive/sources
Files:
49 added
40 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Clients.Hive.Slave.Views/3.3

    • Property svn:ignore
      •  

        old new  
        11bin
        22obj
         3*.user
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Clients.Hive.Slave.Views/3.3/HeuristicLab.Clients.Hive.Slave.Views-3.3.csproj

    r4593 r4629  
    3131    <WarningLevel>4</WarningLevel>
    3232  </PropertyGroup>
     33  <PropertyGroup>
     34    <SignAssembly>true</SignAssembly>
     35  </PropertyGroup>
     36  <PropertyGroup>
     37    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
     38  </PropertyGroup>
    3339  <ItemGroup>
    3440    <Reference Include="HeuristicLab.Common-3.3">
     
    5662    <Compile Include="Properties\AssemblyInfo.cs" />
    5763  </ItemGroup>
     64  <ItemGroup>
     65    <None Include="HeuristicLab.snk" />
     66  </ItemGroup>
    5867  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    5968  <PropertyGroup>
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Clients.Hive.Slave/3.3

    • Property svn:ignore
      •  

        old new  
        11bin
        22obj
         3*.user
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Clients.Hive.Slave/3.3/HeuristicLab.Clients.Hive.Slave-3.3.csproj

    r4593 r4629  
    3131    <WarningLevel>4</WarningLevel>
    3232  </PropertyGroup>
     33  <PropertyGroup>
     34    <SignAssembly>true</SignAssembly>
     35  </PropertyGroup>
     36  <PropertyGroup>
     37    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
     38  </PropertyGroup>
    3339  <ItemGroup>
    3440    <Reference Include="HeuristicLab.Common-3.3">
     
    5561    <Compile Include="Properties\AssemblyInfo.cs" />
    5662  </ItemGroup>
     63  <ItemGroup>
     64    <None Include="HeuristicLab.snk" />
     65  </ItemGroup>
    5766  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    5867  <PropertyGroup>
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Clients.Hive.Views/3.3

    • Property svn:ignore
      •  

        old new  
        11bin
        22obj
         3*.user
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Clients.Hive.Views/3.3/HeuristicLab.Clients.Hive.Views-3.3.csproj

    r4593 r4629  
    3131    <WarningLevel>4</WarningLevel>
    3232  </PropertyGroup>
     33  <PropertyGroup>
     34    <SignAssembly>true</SignAssembly>
     35  </PropertyGroup>
     36  <PropertyGroup>
     37    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
     38  </PropertyGroup>
    3339  <ItemGroup>
    3440    <Reference Include="HeuristicLab.Common-3.3">
     
    5561    <Compile Include="Properties\AssemblyInfo.cs" />
    5662  </ItemGroup>
     63  <ItemGroup>
     64    <None Include="HeuristicLab.snk" />
     65  </ItemGroup>
    5766  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    5867  <PropertyGroup>
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Clients.Hive/3.3

    • Property svn:ignore
      •  

        old new  
        22obj
        33obj
         4*.user
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Clients.Hive/3.3/HeuristicLab.Clients.Hive-3.3.csproj

    r4593 r4629  
    3131    <WarningLevel>4</WarningLevel>
    3232  </PropertyGroup>
     33  <PropertyGroup>
     34    <SignAssembly>true</SignAssembly>
     35  </PropertyGroup>
     36  <PropertyGroup>
     37    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
     38  </PropertyGroup>
    3339  <ItemGroup>
     40    <Reference Include="HeuristicLab.Clients.Common-3.3">
     41      <HintPath>..\..\..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Clients.Common-3.3.dll</HintPath>
     42    </Reference>
     43    <Reference Include="HeuristicLab.Collections-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" />
    3444    <Reference Include="HeuristicLab.Common-3.3">
    3545      <HintPath>..\..\..\..\..\..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Common-3.3.dll</HintPath>
    3646    </Reference>
     47    <Reference Include="HeuristicLab.Common.Resources-3.3, Version=3.2.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" />
    3748    <Reference Include="HeuristicLab.Core-3.3">
    3849      <HintPath>..\..\..\..\..\..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Core-3.3.dll</HintPath>
     50    </Reference>
     51    <Reference Include="HeuristicLab.Data-3.3">
     52      <HintPath>..\..\..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Data-3.3.dll</HintPath>
     53    </Reference>
     54    <Reference Include="HeuristicLab.Optimization-3.3">
     55      <HintPath>..\..\..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Optimization-3.3.dll</HintPath>
    3956    </Reference>
    4057    <Reference Include="HeuristicLab.Persistence-3.3">
     
    4461      <HintPath>..\..\..\..\..\..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath>
    4562    </Reference>
     63    <Reference Include="HeuristicLab.Tracing-3.3, Version=3.2.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" />
    4664    <Reference Include="System" />
    4765    <Reference Include="System.Core" />
     66    <Reference Include="System.Drawing" />
     67    <Reference Include="System.Runtime.Serialization" />
     68    <Reference Include="System.ServiceModel" />
    4869    <Reference Include="System.Xml.Linq" />
    4970    <Reference Include="System.Data.DataSetExtensions" />
     
    5273  </ItemGroup>
    5374  <ItemGroup>
     75    <Compile Include="Exceptions\AddJobToHiveException.cs" />
     76    <Compile Include="Exceptions\JobResultPollingException.cs" />
     77    <Compile Include="Exceptions\OptimizerNotFoundException.cs" />
     78    <Compile Include="HiveExperiment\HiveExperimentList.cs" />
     79    <Compile Include="HiveExperiment\HiveJobList.cs" />
     80    <Compile Include="Jobs\JobList.cs" />
     81    <Compile Include="Jobs\OptimizerJob.cs" />
    5482    <Compile Include="HeuristicLabClientsHivePlugin.cs" />
     83    <Compile Include="HiveExperiment\HiveClient.cs" />
     84    <Compile Include="HiveExperiment\HiveJob.cs" />
     85    <Compile Include="HiveExperiment\HiveExperiment.cs" />
     86    <Compile Include="HiveExperiment\JobResultPoller.cs" />
     87    <Compile Include="Progress\IProgress.cs" />
     88    <Compile Include="Progress\IProgressReporter.cs" />
     89    <Compile Include="Progress\Progress.cs" />
    5590    <Compile Include="Properties\AssemblyInfo.cs" />
     91    <Compile Include="PersistenceUtil.cs" />
     92    <Compile Include="ServiceClients\ServiceClientFactory.cs" />
     93    <Compile Include="ServiceClients\ServiceClientFactoryException.cs" />
     94    <Compile Include="ServiceLocator.cs" />
     95    <Compile Include="Properties\Settings.Designer.cs">
     96      <AutoGen>True</AutoGen>
     97      <DesignTimeSharedInput>True</DesignTimeSharedInput>
     98      <DependentUpon>Settings.settings</DependentUpon>
     99    </Compile>
     100    <None Include="app.config" />
     101    <None Include="HeuristicLab.snk" />
     102    <None Include="ServiceClients\GenerateServiceClients.cmd" />
     103    <None Include="Properties\Settings.settings">
     104      <Generator>SettingsSingleFileGenerator</Generator>
     105      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
     106    </None>
     107  </ItemGroup>
     108  <ItemGroup>
     109    <Folder Include="Administration\" />
     110    <Folder Include="Slave\" />
     111  </ItemGroup>
     112  <ItemGroup>
     113    <ProjectReference Include="..\..\HeuristicLab.Hive\3.3\HeuristicLab.Hive-3.3.csproj">
     114      <Project>{F98A1740-9AC9-4D36-A582-6A2D0D06978D}</Project>
     115      <Name>HeuristicLab.Hive-3.3</Name>
     116    </ProjectReference>
     117    <ProjectReference Include="..\..\HeuristicLab.Services.Hive.Common\3.3\HeuristicLab.Services.Hive.Common-3.3.csproj">
     118      <Project>{14424A16-48D4-445E-80BF-DDF617548BBB}</Project>
     119      <Name>HeuristicLab.Services.Hive.Common-3.3</Name>
     120    </ProjectReference>
    56121  </ItemGroup>
    57122  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Hive.sln

    r4615 r4629  
    33# Visual Studio 2010
    44Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Hive-3.3", "HeuristicLab.Hive\3.3\HeuristicLab.Hive-3.3.csproj", "{F98A1740-9AC9-4D36-A582-6A2D0D06978D}"
    5   ProjectSection(ProjectDependencies) = postProject
    6     {E1D6C801-892A-406A-B606-F158E36DD3C3} = {E1D6C801-892A-406A-B606-F158E36DD3C3}
    7     {EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC} = {EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}
    8     {14424A16-48D4-445E-80BF-DDF617548BBB} = {14424A16-48D4-445E-80BF-DDF617548BBB}
    9     {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE} = {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}
    10     {989FE92B-484E-41EE-87E2-6A24AF0381D8} = {989FE92B-484E-41EE-87E2-6A24AF0381D8}
    11     {8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8} = {8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}
    12     {B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB} = {B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}
    13   EndProjectSection
    145EndProject
    156Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Clients.Hive.Slave-3.3", "HeuristicLab.Clients.Hive.Slave\3.3\HeuristicLab.Clients.Hive.Slave-3.3.csproj", "{989FE92B-484E-41EE-87E2-6A24AF0381D8}"
    167EndProject
    178Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Services.Hive.Common-3.3", "HeuristicLab.Services.Hive.Common\3.3\HeuristicLab.Services.Hive.Common-3.3.csproj", "{14424A16-48D4-445E-80BF-DDF617548BBB}"
    18 EndProject
    19 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Services.Hive-3.3", "HeuristicLab.Services.Hive.Server\3.3\HeuristicLab.Services.Hive-3.3.csproj", "{CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}"
    209EndProject
    2110Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Services.Hive.DataAccess-3.3", "HeuristicLab.Services.Hive.DataAccess\3.3\HeuristicLab.Services.Hive.DataAccess-3.3.csproj", "{EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}"
     
    3524EndProject
    3625Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Clients.Hive.Slave.Views-3.3", "HeuristicLab.Clients.Hive.Slave.Views\3.3\HeuristicLab.Clients.Hive.Slave.Views-3.3.csproj", "{8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}"
     26EndProject
     27Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Services.Hive-3.3", "HeuristicLab.Services.Hive\3.3\HeuristicLab.Services.Hive-3.3.csproj", "{CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}"
    3728EndProject
    3829Global
     
    5445    {14424A16-48D4-445E-80BF-DDF617548BBB}.Release|Any CPU.ActiveCfg = Release|Any CPU
    5546    {14424A16-48D4-445E-80BF-DDF617548BBB}.Release|Any CPU.Build.0 = Release|Any CPU
    56     {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
    57     {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Debug|Any CPU.Build.0 = Debug|Any CPU
    58     {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Release|Any CPU.ActiveCfg = Release|Any CPU
    59     {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Release|Any CPU.Build.0 = Release|Any CPU
    6047    {EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
    6148    {EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
     
    7461    {8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Release|Any CPU.ActiveCfg = Release|Any CPU
    7562    {8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Release|Any CPU.Build.0 = Release|Any CPU
     63    {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
     64    {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Debug|Any CPU.Build.0 = Debug|Any CPU
     65    {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Release|Any CPU.ActiveCfg = Release|Any CPU
     66    {CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Release|Any CPU.Build.0 = Release|Any CPU
    7667  EndGlobalSection
    7768  GlobalSection(SolutionProperties) = preSolution
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Hive/3.3

    • Property svn:ignore
      •  

        old new  
        11bin
        22obj
         3*.user
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Hive/3.3/HeuristicLab.Hive-3.3.csproj

    r4615 r4629  
    3232    <WarningLevel>4</WarningLevel>
    3333  </PropertyGroup>
     34  <PropertyGroup>
     35    <SignAssembly>true</SignAssembly>
     36  </PropertyGroup>
     37  <PropertyGroup>
     38    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
     39  </PropertyGroup>
    3440  <ItemGroup>
    3541    <Reference Include="HeuristicLab.Common-3.3">
     
    5763    <Compile Include="Properties\AssemblyInfo.cs" />
    5864  </ItemGroup>
     65  <ItemGroup>
     66    <None Include="HeuristicLab.snk" />
     67  </ItemGroup>
    5968  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    6069  <PropertyGroup>
    6170    <PostBuildEvent>set ProjectName=$(ProjectName)
    6271set TargetPath=$(TargetPath)
     72set TargetDir=$(TargetDir)
    6373set SolutionDir=$(SolutionDir)
    64 call $(SolutionDir)/MergeConfigs.cmd
    65 call $(SolutionDir)/CopyAssembly.cmd</PostBuildEvent>
     74call $(SolutionDir)/CopyAssembly.cmd
     75call $(SolutionDir)/MergeConfigs.cmd</PostBuildEvent>
    6676  </PropertyGroup>
    6777  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.Common/3.3

    • Property svn:ignore
      •  

        old new  
        11bin
        22obj
         3*.user
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.Common/3.3/DataTransfer/Appointment.cs

    r4593 r4629  
    2222using System;
    2323using System.Runtime.Serialization;
     24using HeuristicLab.Common;
    2425
    2526namespace HeuristicLab.Services.Hive.Common.DataTransfer {
     
    3839    [DataMember]
    3940    public Guid ResourceId { get; set; }
     41
     42    public override IDeepCloneable Clone(Cloner cloner) {
     43      Appointment clone = (Appointment)base.Clone(cloner);
     44      clone.AllDayEvent = this.AllDayEvent;
     45      clone.EndDate = this.EndDate;
     46      clone.Recurring = this.Recurring;
     47      clone.RecurringId = this.RecurringId;
     48      clone.ResourceId = this.ResourceId;
     49      clone.StartDate = this.StartDate;
     50      return clone;
     51    }
    4052  }
    4153}
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.Common/3.3/DataTransfer/HeartBeat.cs

    r4593 r4629  
    2727
    2828  [DataContract]
    29   public class HeartBeat {
     29  public class Heartbeat {
    3030    [DataMember]
    3131    public Guid SlaveId { get; set; }
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.Common/3.3/DataTransfer/HiveExperiment.cs

    r4593 r4629  
    3939      return base.ToString() + "Name: " + Name + ", Description: " + Description + ", ResourceIds: " + ResourceIds;
    4040    }
    41 
    42     public HiveExperiment() {
     41   
     42    public override IDeepCloneable Clone(Cloner cloner) {
     43      var clone = (HiveExperiment)base.Clone(cloner);
     44      clone.ResourceIds = this.ResourceIds;
     45      clone.RootJobId = this.RootJobId;
     46      clone.UserId = this.UserId;
     47      return clone;
    4348    }
    4449  }
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.Common/3.3/DataTransfer/HiveItem.cs

    r4593 r4629  
    44using System.Text;
    55using System.Runtime.Serialization;
     6using HeuristicLab.Common;
    67
    78namespace HeuristicLab.Services.Hive.Common.DataTransfer {
    89  [DataContract]
    9   public abstract class HiveItem {
     10  public abstract class HiveItem : IDeepCloneable {
    1011    [DataMember]
    1112    public Guid Id { get; set; }
     13
     14    public virtual IDeepCloneable Clone(Cloner cloner) {
     15      HiveItem clone = (HiveItem)Activator.CreateInstance(this.GetType(), true);
     16      cloner.RegisterClonedObject(this, clone);
     17      clone.Id = this.Id;
     18      return clone;
     19    }
     20
     21    public object Clone() {
     22      return Clone(new Cloner());
     23    }
    1224  }
    1325}
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.Common/3.3/DataTransfer/HivePlugin.cs

    r4593 r4629  
    2424using System.Linq;
    2525using System.Runtime.Serialization;
     26using HeuristicLab.Common;
    2627
    2728namespace HeuristicLab.Services.Hive.Common.DataTransfer {
     
    3233    public Version Version { get; set; }
    3334    [DataMember]
    34     public Boolean Update { get; set; }
     35    public bool Update { get; set; }
     36
     37    public override IDeepCloneable Clone(Cloner cloner) {
     38      var clone = (HivePlugin)base.Clone(cloner);
     39      clone.Version = this.Version;
     40      clone.Update = this.Update;
     41      return clone;
     42    }
    3543  }
    3644}
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.Common/3.3/DataTransfer/HivePluginData.cs

    r4598 r4629  
    2222using System;
    2323using System.Runtime.Serialization;
     24using HeuristicLab.Common;
    2425
    2526namespace HeuristicLab.Services.Hive.Common.DataTransfer {
     
    3435      Name = name;
    3536    }
     37
     38    public override IDeepCloneable Clone(Cloner cloner) {
     39      var clone = (HivePluginData)base.Clone(cloner);
     40      if (this.Data != null) clone.Data = new byte[this.Data.Length]; Array.Copy(this.Data, clone.Data, this.Data.Length);
     41      return clone;
     42    }
    3643  }
    3744}
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.Common/3.3/DataTransfer/Job.cs

    r4615 r4629  
    5555      AssignedResourceIds = new List<Guid>();
    5656    }
     57
     58    public override IDeepCloneable Clone(Cloner cloner) {
     59      var clone = (Job)base.Clone(cloner);
     60      clone.UserId = this.UserId;
     61      clone.Priority = this.Priority;
     62      clone.CoresNeeded = this.CoresNeeded;
     63      clone.MemoryNeeded = this.MemoryNeeded;
     64      clone.PluginsNeededIds = new List<Guid>(this.PluginsNeededIds);
     65      clone.AssignedResourceIds = new List<Guid>(this.AssignedResourceIds);
     66      clone.ProjectId = this.ProjectId;
     67      return clone;
     68    }
    5769  }
    5870}
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.Common/3.3/DataTransfer/JobData.cs

    r4598 r4629  
    2323using System.IO;
    2424using System.Runtime.Serialization;
     25using HeuristicLab.Common;
    2526
    2627namespace HeuristicLab.Services.Hive.Common.DataTransfer {
     
    3233    [DataMember]
    3334    public byte[] Data { get; set; }
     35
     36    public override IDeepCloneable Clone(Cloner cloner) {
     37      var clone = (JobData)base.Clone(cloner);
     38      if (this.Data != null) clone.Data = new byte[this.Data.Length]; Array.Copy(this.Data, clone.Data, this.Data.Length);
     39      return clone;
     40    }
    3441  }
    3542}
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.Common/3.3/DataTransfer/LightweightJob.cs

    r4598 r4629  
    2222using System;
    2323using System.Runtime.Serialization;
     24using HeuristicLab.Common;
    2425
    2526namespace HeuristicLab.Services.Hive.Common.DataTransfer {
     
    5657      this.ParentJobId = job.ParentJobId;
    5758    }
     59
     60    public override IDeepCloneable Clone(Cloner cloner) {
     61      var clone = (LightweightJob)base.Clone(cloner);
     62      clone.SlaveId = this.SlaveId;
     63      clone.State = this.State;
     64      clone.ExecutionTime = this.ExecutionTime;
     65      clone.Exception = this.Exception;
     66      clone.DateCreated = this.DateCreated;
     67      clone.DateCalculated = this.DateCalculated;
     68      clone.DateFinished = this.DateFinished;
     69      clone.ParentJobId = this.ParentJobId;
     70      return clone;
     71    }
    5872  }
    5973}
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.Common/3.3/DataTransfer/NamedHiveItem.cs

    r4593 r4629  
    44using System.Text;
    55using System.Runtime.Serialization;
     6using HeuristicLab.Common;
    67
    78namespace HeuristicLab.Services.Hive.Common.DataTransfer {
     
    1213    [DataMember]
    1314    public string Description { get; set; }
     15
     16    public override IDeepCloneable Clone(Cloner cloner) {
     17      var clone = (NamedHiveItem)base.Clone(cloner);
     18      clone.Name = this.Name;
     19      clone.Description = this.Description;
     20      return clone;
     21    }
    1422  }
    1523}
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.Common/3.3/DataTransfer/Slave.cs

    r4593 r4629  
    2929  public class Slave : Resource {
    3030    [DataMember]
    31     public int? NrOfCores { get; set; }
     31    public int? Cores { get; set; }
    3232    [DataMember]
    33     public int? NrOfFreeCores { get; set; }
     33    public int? FreeCores { get; set; }
    3434    [DataMember]
    3535    public int? CpuSpeedPerCore { get; set; }
     
    3939    public int? FreeMemory { get; set; }
    4040    [DataMember]
    41     public DateTime? Login { get; set; }
    42     [DataMember]
    4341    public SlaveState State { get; set; }
    4442    [DataMember]
    4543    public CalendarState CalendarSyncStatus { get; set; }
    4644    [DataMember]
    47     public SlaveConfig Config { get; set; }
     45    public Guid SlaveConfigId { get; set; }
    4846    [DataMember]
    4947    public bool IsAllowedToCalculate { get; set; }
    5048
    5149    public override string ToString() {
    52       return base.ToString() + ", NrOfCores: " + NrOfCores + ", NrOfFreeCores " + NrOfFreeCores + ", Login: " + Login + ", State: " + State;
     50      return base.ToString() + ", NrOfCores: " + Cores + ", NrOfFreeCores " + FreeCores + ", State: " + State;
     51    }
     52
     53    public override IDeepCloneable Clone(Cloner cloner) {
     54      var clone = (Slave)base.Clone(cloner);
     55      clone.Cores = this.Cores;
     56      clone.FreeCores = this.FreeCores;
     57      clone.CpuSpeedPerCore = this.CpuSpeedPerCore;
     58      clone.Memory = this.Memory;
     59      clone.FreeMemory = this.FreeMemory;
     60      clone.State = this.State;
     61      clone.CalendarSyncStatus = this.CalendarSyncStatus;
     62      clone.SlaveConfigId = this.SlaveConfigId;
     63      clone.IsAllowedToCalculate = this.IsAllowedToCalculate;
     64      return clone;
    5365    }
    5466  }
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.Common/3.3/DataTransfer/SlaveConfig.cs

    r4593 r4629  
    3232    [DataMember]
    3333    public int? HeartBeatIntervall { get; set; }
     34
     35    public override IDeepCloneable Clone(Cloner cloner) {
     36      var clone = (SlaveConfig)base.Clone(cloner);
     37      clone.UpDownTimeCalendar = this.UpDownTimeCalendar;
     38      clone.HeartBeatIntervall = this.HeartBeatIntervall;
     39      return clone;
     40    }
    3441  }
    3542}
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.Common/3.3/DataTransfer/SlaveGroup.cs

    r4593 r4629  
    2323using System.Linq;
    2424using System.Runtime.Serialization;
     25using System;
     26using HeuristicLab.Common;
    2527
    2628namespace HeuristicLab.Services.Hive.Common.DataTransfer {
     
    2830  public class SlaveGroup : Resource {
    2931    [DataMember]
    30     public List<Resource> Resources { get; set; }
     32    public List<Guid> ResourcesIds { get; set; }
    3133
    3234    public SlaveGroup() {
    33       Resources = new List<Resource>();
     35      ResourcesIds = new List<Guid>();
     36    }
     37
     38    public override IDeepCloneable Clone(Cloner cloner) {
     39      var clone = (SlaveGroup)base.Clone(cloner);
     40      clone.ResourcesIds = new List<Guid>(this.ResourcesIds);
     41      return clone;
    3442    }
    3543  }
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.Common/3.3/DataTransfer/SlaveState.cs

    r4593 r4629  
    2323namespace HeuristicLab.Services.Hive.Common.DataTransfer {
    2424  public enum SlaveState {
    25     NullState,
    2625    Idle,
    2726    Calculating,
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.Common/3.3/DataTransfer/UpTimeStatistics.cs

    r4593 r4629  
    2222using System;
    2323using System.Runtime.Serialization;
     24using HeuristicLab.Common;
    2425
    2526namespace HeuristicLab.Services.Hive.Common.DataTransfer {
     
    2728  public class UpTimeStatistics : HiveItem {
    2829    [DataMember]
    29     public Slave Slave { get; set; }
     30    public Guid SlaveId { get; set; }
    3031    [DataMember]
    3132    public DateTime Login { get; set; }
    3233    [DataMember]
    3334    public DateTime Logout { get; set; }
     35
     36    public override IDeepCloneable Clone(Cloner cloner) {
     37      var clone = (UpTimeStatistics)base.Clone(cloner);
     38      clone.SlaveId = this.SlaveId;
     39      clone.Login = this.Login;
     40      clone.Logout = this.Logout;
     41      return clone;
     42    }
    3443  }
    3544}
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.Common/3.3/HeuristicLab.Services.Hive.Common-3.3.csproj

    r4598 r4629  
    3030    <ErrorReport>prompt</ErrorReport>
    3131    <WarningLevel>4</WarningLevel>
     32  </PropertyGroup>
     33  <PropertyGroup>
     34    <SignAssembly>true</SignAssembly>
     35  </PropertyGroup>
     36  <PropertyGroup>
     37    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
    3238  </PropertyGroup>
    3339  <ItemGroup>
     
    8187    <Compile Include="ServiceContracts\IHiveService.cs" />
    8288  </ItemGroup>
     89  <ItemGroup>
     90    <None Include="HeuristicLab.snk" />
     91  </ItemGroup>
    8392  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    8493  <PropertyGroup>
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.Common/3.3/MessageContainer.cs

    r4615 r4629  
    4343      JobFailed,
    4444      UptimeLimitDisconnect,
    45       FetchOrForceFetchCalendar,
     45      UpdateCalendar,
    4646      AddChildJob,
    4747      PauseJob,
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.Common/3.3/ServiceContracts/IHiveService.cs

    r4615 r4629  
    66using System.IO;
    77using HeuristicLab.Services.Hive.Common.DataTransfer;
     8using System.Net.Security;
    89
    910namespace HeuristicLab.Services.Hive.Common.ServiceContracts {
     11
     12  [ServiceContract(ProtectionLevel = ProtectionLevel.EncryptAndSign)]
    1013  public interface IHiveService {
    1114
    12     // todo: Rename:
    13     //  Result is ambiguous; sometimes it refers to a serialized job which has finished, sometimes it is the current state of the job
    1415    #region Job Methods
    1516    [OperationContract]
     
    8182
    8283    #region HiveExperiment Methods
     84    [OperationContract]
     85    HiveExperiment GetHiveExperiment(Guid id);
     86
    8387    /// <summary>
    8488    /// Returns all experiments for the current user
     
    8690    [OperationContract]
    8791    IEnumerable<HiveExperiment> GetHiveExperiments();
     92
     93    [OperationContract]
     94    Guid AddHiveExperiment(HiveExperiment hiveExperimentDto);
    8895
    8996    [OperationContract]
     
    113120    /// </summary>
    114121    /// <returns></returns>
    115     [OperationContract]
    116     void Login();
    117     /// <summary>
    118     /// This method registers the slave and marks it as online
    119     /// </summary>
    120     [OperationContract]
    121     void Login(Slave slave);
    122     [OperationContract]
    123     void Logout(Guid clientId);
     122    //[OperationContract]
     123    //void Login();
     124    ///// <summary>
     125    ///// This method registers the slave and marks it as online
     126    ///// </summary>
     127    //[OperationContract]
     128    //void Login(Slave slave);
     129    //[OperationContract]
     130    //void Logout(Guid clientId);
    124131    #endregion
    125132
    126133    #region Heartbeat Methods
    127134    [OperationContract]
    128     List<MessageContainer> ProcessHeartBeat(HeartBeat heartbeat);
     135    List<MessageContainer> ProcessHeartbeat(Heartbeat heartbeat);
    129136    #endregion
    130137
     
    138145    #region Calendar Methods
    139146    [OperationContract]
    140     IEnumerable<Appointment> GetCalendar(Guid clientId);
     147    IEnumerable<Appointment> GetCalendar(Guid slaveId);
    141148    [OperationContract]
    142149    void SetCalendarStatus(Guid clientId, CalendarState state);
     
    171178    [OperationContract]
    172179    void RemoveResourceFromGroup(Guid slaveGroupId, Guid resourceId);
     180
     181    [OperationContract]
     182    void UpdateSlave(Slave slave);
    173183    #endregion
    174184   
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.DataAccess/3.3

    • Property svn:ignore
      •  

        old new  
        11bin
        22obj
         3*.user
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.DataAccess/3.3/ContextFactory.cs

    r4598 r4629  
    7575          transactions.Add(threadId, transaction);
    7676        }
    77         return context;
     77        return disposableContext;
    7878      }
    7979    }
     
    9696      lock (locker) {
    9797        int threadId = Thread.CurrentThread.ManagedThreadId;
    98         contexts[threadId].Dispose();
     98        contexts[threadId].Obj.Dispose();
    9999        contexts.Remove(threadId);
    100100        // context gets disposed implicitly, when it is used as IDisposable
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.DataAccess/3.3/HeuristicLab.Services.Hive.DataAccess-3.3.csproj

    r4615 r4629  
    3030    <ErrorReport>prompt</ErrorReport>
    3131    <WarningLevel>4</WarningLevel>
     32  </PropertyGroup>
     33  <PropertyGroup>
     34    <SignAssembly>true</SignAssembly>
     35  </PropertyGroup>
     36  <PropertyGroup>
     37    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
    3238  </PropertyGroup>
    3339  <ItemGroup>
     
    7581      <DependentUpon>Settings.settings</DependentUpon>
    7682    </Compile>
     83    <Compile Include="Tools\CreateHiveDatabaseApplication.cs" />
    7784  </ItemGroup>
    7885  <ItemGroup>
     
    8390      <SubType>Designer</SubType>
    8491    </None>
     92    <None Include="HeuristicLab.snk" />
    8593    <None Include="HiveDataContext.dbml">
    8694      <Generator>MSLinqToSQLGenerator</Generator>
     
    104112    </ProjectReference>
    105113  </ItemGroup>
     114  <ItemGroup>
     115    <Content Include="Tools\cleanHiveDatabase.sql" />
     116    <Content Include="Tools\prepareHiveDatabase.sql" />
     117  </ItemGroup>
    106118  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    107119  <PropertyGroup>
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.DataAccess/3.3/HiveDao.cs

    r4615 r4629  
    5858                  orderby ar.Job.Priority descending
    5959                  select Convert.ToDto(ar.Job);
    60       return query.ToArray();
     60      return query;
     61    }
     62
     63    public IEnumerable<DT.Job> GetAvailableJobs(DT.Slave slave) {
     64      var query = from j in db.Jobs
     65                  where j.JobState == JobState.Waiting && j.CoresNeeded <= slave.FreeCores && j.MemoryNeeded <= slave.FreeMemory
     66                  orderby j.Priority descending
     67                  select Convert.ToDto(j);
     68      return query.Union(GetAvailableParentJobs(slave.Id)).OrderByDescending(x => x.Priority).ToArray();
    6169    }
    6270    #endregion
     
    217225    public bool IsUserAuthorizedForJobs(Guid userId, params Guid[] jobIds) {
    218226      var userIds = from job in db.Jobs // this needs to be fast!
    219                  where jobIds.Contains(job.JobId)
    220                  select job.UserId;
     227                    where jobIds.Contains(job.JobId)
     228                    select job.UserId;
    221229      return userIds.All(x => x == userId);
    222230    }
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.DataAccess/3.3/Interfaces/IHiveDao.cs

    r4615 r4629  
    1515    void UpdateJob(DT.Job dto);
    1616    void DeleteJob(Guid id);
    17     IEnumerable<DT.Job> GetAvailableParentJobs(Guid slaveId);
     17    IEnumerable<DT.Job> GetAvailableJobs(DT.Slave slave);
    1818    #endregion
    1919
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/MergeConfigs.cmd

    r4615 r4629  
    1 copy "%SolutionDir%HeuristicLab.Hive-3.3.dll.config" "%TargetPath%"
    2 echo HeuristicLab.Hive-3.3.dll.config copied
     1copy "%SolutionDir%HeuristicLab.Hive-3.3.dll.config" "%TargetDir%"
    32
    4 %SolutionDir%ConfigMerger "%SolutionDir%HeuristicLab.Services.Hive\3.3\app.config" "%TargetPath%HeuristicLab.Hive-3.3.dll.config"
    5 %SolutionDir%ConfigMerger "%SolutionDir%HeuristicLab.Services.Hive.DataAccess\3.3\app.config" "%TargetPath%HeuristicLab.Hive-3.3.dll.config"
     3%SolutionDir%ConfigMerger "%SolutionDir%HeuristicLab.Services.Hive\3.3\app.config" "%TargetDir%HeuristicLab.Hive-3.3.dll.config"
     4%SolutionDir%ConfigMerger "%SolutionDir%HeuristicLab.Services.Hive.DataAccess\3.3\app.config" "%TargetDir%HeuristicLab.Hive-3.3.dll.config"
    65
    7 copy "%SolutionDir%HeuristicLab-3.3.dll.config" "%TargetPath%"
    8 echo HeuristicLab-3.3.dll.config copied
     6copy "%SolutionDir%HeuristicLab 3.3.exe.config" "%TargetDir%"
    97
    10 %SolutionDir%ConfigMerger "HeuristicLab.Hive-3.3.dll.config" "HeuristicLab 3.3.exe.config"
     8%SolutionDir%ConfigMerger "%SolutionDir%HeuristicLab.Hive-3.3.dll.config" "HeuristicLab 3.3.exe.config"
     9
     10copy "HeuristicLab 3.3.exe.config" "%target%"
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Calendar/3.3/Properties/AssemblyInfo.cs

    r4598 r4629  
    5858// [assembly: AssemblyVersion("1.0.*")]
    5959[assembly: AssemblyVersion("3.3.0.0")]
    60 [assembly: AssemblyFileVersion("3.3.0.4560")]
     60[assembly: AssemblyFileVersion("3.3.0.4598")]
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive 3.3.sln

    r4425 r4629  
    8181EndProject
    8282Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Hive.Slave.ExecutionEngine-3.3", "HeuristicLab.Hive.Slave.ExecutionEngine\3.3\HeuristicLab.Hive.Slave.ExecutionEngine-3.3.csproj", "{1605256A-1CB3-44AB-AAFF-577093EE5789}"
     83EndProject
     84Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "HiveWeb", "..\..\..\..\..\Web\HiveWeb\", "{F8E2A0BB-5B04-49EE-88CE-F0DF12474221}"
     85  ProjectSection(WebsiteProperties) = preProject
     86    TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0"
     87    Debug.AspNetCompiler.VirtualPath = "/HiveWeb"
     88    Debug.AspNetCompiler.PhysicalPath = "..\..\..\..\..\Web\HiveWeb\"
     89    Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\HiveWeb\"
     90    Debug.AspNetCompiler.Updateable = "true"
     91    Debug.AspNetCompiler.ForceOverwrite = "true"
     92    Debug.AspNetCompiler.FixedNames = "false"
     93    Debug.AspNetCompiler.Debug = "True"
     94    Release.AspNetCompiler.VirtualPath = "/HiveWeb"
     95    Release.AspNetCompiler.PhysicalPath = "..\..\..\..\..\Web\HiveWeb\"
     96    Release.AspNetCompiler.TargetPath = "PrecompiledWeb\HiveWeb\"
     97    Release.AspNetCompiler.Updateable = "true"
     98    Release.AspNetCompiler.ForceOverwrite = "true"
     99    Release.AspNetCompiler.FixedNames = "false"
     100    Release.AspNetCompiler.Debug = "False"
     101    VWDPort = "2681"
     102  EndProjectSection
    83103EndProject
    84104Global
     
    372392    {1605256A-1CB3-44AB-AAFF-577093EE5789}.Release|x86.ActiveCfg = Release|x86
    373393    {1605256A-1CB3-44AB-AAFF-577093EE5789}.Release|x86.Build.0 = Release|x86
     394    {F8E2A0BB-5B04-49EE-88CE-F0DF12474221}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
     395    {F8E2A0BB-5B04-49EE-88CE-F0DF12474221}.Debug|Any CPU.Build.0 = Debug|Any CPU
     396    {F8E2A0BB-5B04-49EE-88CE-F0DF12474221}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
     397    {F8E2A0BB-5B04-49EE-88CE-F0DF12474221}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
     398    {F8E2A0BB-5B04-49EE-88CE-F0DF12474221}.Debug|x64.ActiveCfg = Debug|Any CPU
     399    {F8E2A0BB-5B04-49EE-88CE-F0DF12474221}.Debug|x86.ActiveCfg = Debug|Any CPU
     400    {F8E2A0BB-5B04-49EE-88CE-F0DF12474221}.Release|Any CPU.ActiveCfg = Debug|Any CPU
     401    {F8E2A0BB-5B04-49EE-88CE-F0DF12474221}.Release|Any CPU.Build.0 = Debug|Any CPU
     402    {F8E2A0BB-5B04-49EE-88CE-F0DF12474221}.Release|Mixed Platforms.ActiveCfg = Debug|Any CPU
     403    {F8E2A0BB-5B04-49EE-88CE-F0DF12474221}.Release|Mixed Platforms.Build.0 = Debug|Any CPU
     404    {F8E2A0BB-5B04-49EE-88CE-F0DF12474221}.Release|x64.ActiveCfg = Debug|Any CPU
     405    {F8E2A0BB-5B04-49EE-88CE-F0DF12474221}.Release|x86.ActiveCfg = Debug|Any CPU
    374406  EndGlobalSection
    375407  GlobalSection(SolutionProperties) = preSolution
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/HeuristicLab.Hive.Server.Core-3.3.csproj

    r4560 r4629  
    192192call PreBuildEvent.cmd</PreBuildEvent>
    193193  </PropertyGroup>
     194  <PropertyGroup>
     195    <PostBuildEvent>
     196    </PostBuildEvent>
     197  </PropertyGroup>
    194198</Project>
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/app.config

    r4423 r4629  
    6363
    6464  <system.serviceModel>
    65 
    6665    <diagnostics>
    6766      <messageLogging logEntireMessage="true" logMalformedMessages="true"
     
    141140      </service>
    142141    </services>
    143 
    144142  </system.serviceModel>
    145143
Note: See TracChangeset for help on using the changeset viewer.