Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1024 for trunk


Ignore:
Timestamp:
12/18/08 14:19:46 (16 years ago)
Author:
msteinbi
Message:

Implementation of JobManager (#431)

Location:
trunk/sources
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Contracts/ApplicationConstants.cs

    r1004 r1024  
    5151    public static string RESPONSE_JOB_JOB_DOESNT_EXIST = "JobDoesntExist";
    5252    public static string RESPONSE_JOB_JOB_REMOVED = "Job.JobRemoved";
     53    public static string RESPONSE_JOB_JOBSTATE_MUST_BE_OFFLINE = "Job.JobStateMustBeOffline";
    5354  }
    5455}
  • trunk/sources/HeuristicLab.Hive.Contracts/HiveServerMessages.resx

    r1004 r1024  
    223223    <value>There exists no job with this id</value>
    224224  </data>
     225  <data name="Job.JobStateMustBeOffline" xml:space="preserve">
     226    <value>The state of the job must be offline</value>
     227  </data>
    225228</root>
  • trunk/sources/HeuristicLab.Hive.Server.Core/JobManager.cs

    r995 r1024  
    5454
    5555      if (job != null) {
     56        if (job.State != State.offline) {
     57          response.Success = false;
     58          response.StatusMessage = ApplicationConstants.RESPONSE_JOB_JOBSTATE_MUST_BE_OFFLINE;
     59          return response;
     60        }
    5661        if (job.Id != 0) {
    5762          response.Success = false;
Note: See TracChangeset for help on using the changeset viewer.