Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/06/10 09:20:18 (14 years ago)
Author:
cneumuel
Message:

refactoring of Result-Polling of HiveExperiment, polling is now much faster and code is cleaner (1092#)

Location:
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/BusinessObjects/HivePluginInfoDto.cs

    r4141 r4170  
    6060    [StorableHook(HookType.AfterDeserialization)]
    6161    private void AfterDeserialization() {
    62       int[] parts = this.storableVersion.Split('.').Select(s => int.Parse(s)).ToArray();
    63       this.Version = new Version(parts[0], parts[1], parts[2], parts[3]);
     62      this.Version = new Version(storableVersion);
    6463    }
    6564
     
    7170      return clone;
    7271    }
     72
    7373  }
    7474}
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/BusinessObjects/JobResult.cs

    r4133 r4170  
    4141    [Storable]
    4242    [DataMember]
    43     public double Percentage { get; set; }
    44     [Storable]
    45     [DataMember]
    46     public DateTime Timestamp { get; set; }
    47     [Storable]
    48     [DataMember]
    4943    public Guid ClientId { get; set; }
    5044    [Storable]
    5145    [DataMember]
    52     public Exception Exception { get; set; }
     46    public State State { get; set; }
    5347    [Storable]
    5448    [DataMember]
    55     public DateTime DateFinished { get; set; }
     49    public double? Percentage { get; set; }
     50    [Storable]
     51    [DataMember]
     52    public String Exception { get; set; }
     53    [Storable]
     54    [DataMember]
     55    public DateTime? DateCalculated { get; set; }
     56    [Storable]
     57    [DataMember]
     58    public DateTime? DateFinished { get; set; }
    5659
    5760    public override Common.IDeepCloneable Clone(Common.Cloner cloner) {
    5861      JobResult clone = (JobResult) base.Clone(cloner);
    5962      clone.ClientId = this.ClientId;
     63      clone.DateCalculated = this.DateCalculated;
    6064      clone.DateFinished = this.DateFinished;
    61       throw new NotImplementedException("Exception kann nicht serialisiert werden, deshalb irgendwie wrappen... oder nur message (+stacktrace, ...?) speichern");
    6265      clone.Exception = this.Exception;
    6366      clone.JobId = this.JobId;
    6467      clone.Percentage = this.Percentage;
    65       clone.Timestamp = this.Timestamp;
     68      clone.State = this.State;
    6669      return clone;
    6770    }
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/HeuristicLab.Hive.Contracts-3.3.csproj

    r4133 r4170  
    120120    <Compile Include="BusinessObjects\ClientGroupDto.cs" />
    121121    <Compile Include="BusinessObjects\HivePluginFile.cs" />
     122    <Compile Include="BusinessObjects\JobResultList.cs" />
    122123    <Compile Include="BusinessObjects\ResourceDto.cs" />
    123124    <Compile Include="BusinessObjects\SerializedJob.cs" />
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/Interfaces/IClientCommunicator.cs

    r3203 r4170  
    4747      byte[] result,
    4848      double percentage,
    49       Exception exception);
     49      string exception);
    5050    [OperationContract]
    5151    ResponseResultReceived ProcessSnapshot(Guid clientId,
     
    5353      byte[] result,
    5454      double percentage,
    55       Exception exception);
     55      string exception);
    5656    [OperationContract]
    5757    Response Logout(Guid clientId);
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/Interfaces/IExecutionEngineFacade.cs

    r4121 r4170  
    4242    [OperationContract]
    4343    ResponseObject<JobDto> GetJobById(Guid jobId);
     44    [OperationContract]
     45    ResponseObject<JobResultList> GetAllJobResults(IEnumerable<Guid> jobIds);
    4446  }
    4547}
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/Interfaces/IJobManager.cs

    r4121 r4170  
    5050    ResponseObject<SerializedJob> GetLastSerializedJobResultOf(Guid jobId, bool requested, bool snapshot);
    5151    [OperationContract]
    52     ResponseList<JobResult> GetAllJobResults(Guid jobId);
     52    ResponseObject<JobResultList> GetAllJobResults(IEnumerable<Guid> jobIds);
    5353    [OperationContract]
    5454    Response RequestSnapshot(Guid jobId);
Note: See TracChangeset for help on using the changeset viewer.