Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/12/10 13:42:37 (15 years ago)
Author:
kgrading
Message:

fixed HiveBridge and removed compile errors (#830)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Grid.HiveBridge/3.2/HiveGridServerWrapper.cs

    r2591 r3013  
    4848
    4949    public JobState JobState(Guid guid) {
    50       ResponseObject<SerializedJobResult> response = SavelyExecute(() => executionEngine.GetLastSerializedResult(guid, false));
     50      ResponseObject<SerializedJob> response = SavelyExecute(() => executionEngine.GetLastSerializedResult(guid, false));
    5151      if (response != null) {
    5252        return HeuristicLab.Grid.JobState.Busy;
     
    5757      var jobObj = CreateJobObj(engine);
    5858
    59       ResponseObject<HeuristicLab.Hive.Contracts.BusinessObjects.Job> res = SavelyExecute(() => executionEngine.AddJob(jobObj));
     59      ResponseObject<HeuristicLab.Hive.Contracts.BusinessObjects.JobDto> res = SavelyExecute(() => executionEngine.AddJob(jobObj));
    6060      return res == null ? Guid.Empty : res.Obj.Id;
    6161    }
    6262
    6363    public byte[] TryEndExecuteEngine(Guid guid) {
    64       ResponseObject<SerializedJobResult> response = SavelyExecute(() => executionEngine.GetLastSerializedResult(guid, false));
     64      ResponseObject<SerializedJob> response = SavelyExecute(() => executionEngine.GetLastSerializedResult(guid, false));
    6565      if (response != null &&
    6666        response.Success && response.Obj != null) {
    67         HeuristicLab.Hive.Engine.Job restoredJob = (HeuristicLab.Hive.Engine.Job)PersistenceManager.RestoreFromGZip(response.Obj.SerializedJobResultData);
     67        HeuristicLab.Hive.Engine.Job restoredJob = (HeuristicLab.Hive.Engine.Job)PersistenceManager.RestoreFromGZip(response.Obj.SerializedJobData);
    6868        // only return the engine when it wasn't canceled (result is only a snapshot)
    6969        if (restoredJob.Progress == 1.0) {
     
    8686
    8787    private HeuristicLab.Hive.Contracts.BusinessObjects.SerializedJob CreateJobObj(byte[] serializedEngine) {
    88       HeuristicLab.Hive.Contracts.BusinessObjects.Job jobObj = new HeuristicLab.Hive.Contracts.BusinessObjects.Job();
     88      HeuristicLab.Hive.Contracts.BusinessObjects.JobDto jobObj = new HeuristicLab.Hive.Contracts.BusinessObjects.JobDto();
    8989
    90       List<HivePluginInfo> requiredPlugins = new List<HivePluginInfo>();
     90      List<HivePluginInfoDto> requiredPlugins = new List<HivePluginInfoDto>();
    9191      IEngine engine = RestoreEngine(serializedEngine, requiredPlugins);
    9292
     
    119119    }
    120120
    121     private IEngine RestoreEngine(byte[] serializedEngine, List<HivePluginInfo> requiredPlugins) {
     121    private IEngine RestoreEngine(byte[] serializedEngine, List<HivePluginInfoDto> requiredPlugins) {
    122122      // unzip and restore to determine the list of required plugins (NB: inefficient!)
    123123      MemoryStream memStream = new MemoryStream(serializedEngine);
     
    144144
    145145      foreach (IPluginDescription uniquePlugin in plugins) {
    146         HivePluginInfo pluginInfo =
    147           new HivePluginInfo();
     146        HivePluginInfoDto pluginInfo =
     147          new HivePluginInfoDto();
    148148        pluginInfo.Name = uniquePlugin.Name;
    149149        pluginInfo.Version = uniquePlugin.Version.ToString();
Note: See TracChangeset for help on using the changeset viewer.