Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/19/10 12:41:05 (14 years ago)
Author:
cneumuel
Message:

consolidated Response objects to use only StatusMessage with enums instead of strings.
removed Success property from Response. success is now represented by StatusMessage alone. (#1159)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/JobStorage/JobStorageManager.cs

    r4254 r4263  
    1212using System.Xml;
    1313using HeuristicLab.Tracing;
     14using HeuristicLab.Hive.Contracts.ResponseObjects;
    1415
    1516namespace HeuristicLab.Hive.Slave.Core.JobStorage {
     
    4950          try {
    5051            byte[] job = File.ReadAllBytes(path + filename + ".dat");
    51             if (WcfService.Instance.IsJobStillNeeded(storedJobsList[index - 1].JobID).StatusMessage == ApplicationConstants.RESPONSE_COMMUNICATOR_SEND_JOBRESULT) {
     52            if (WcfService.Instance.IsJobStillNeeded(storedJobsList[index - 1].JobID).StatusMessage == ResponseStatus.Ok) {
    5253              ResponseResultReceived res = WcfService.Instance.StoreFinishedJobResultsSync(ConfigManager.Instance.GetClientInfo().Id, storedJobsList[index - 1].JobID, job, 1.00, null, true);
    53               if (!res.Success)
    54                 Logger.Error("sending of job failed: " + res.StatusMessage);
    55               else
    56                 Logger.Info("Sending of job " + storedJobsList[index - 1].JobID + " done");
     54              Logger.Info("Sending of job " + storedJobsList[index - 1].JobID + " done");
    5755            }
    5856            SlaveStatusInfo.JobsProcessed++;
Note: See TracChangeset for help on using the changeset viewer.