Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/ResponseStatus.cs @ 4267

Last change on this file since 4267 was 4267, checked in by cneumuel, 14 years ago

renamed all database entities from "Client" to "Slave" (#1157)
made slave-heartbeats synchronous, also they send HBs when timetable disallows them to calculate. they will appear on the server as Idle bis IsAllowedToCalculate will be false (#1159)

File size: 3.5 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5
6namespace HeuristicLab.Hive.Contracts {
7  /// <summary>
8  /// [chn] todo: make names consistent: NotFound, DoesNotExist, NotAvailable, ...
9  /// </summary>
10  public enum ResponseStatus {
11    Ok,
12
13    RequestSnapshot_JobIsNotBeeingCalculated, // ApplicationConstants.RESPONSE_JOB_REQUEST_ALLREADY_SET
14    RequestSnapshot_SnapshotAlreadyRequested, // ApplicationConstants.RESPONSE_JOB_IS_NOT_BEEING_CALCULATED
15
16    GetJobById_JobDoesNotExist, // ApplicationConstants.RESPONSE_JOB_JOB_DOESNT_EXIST
17
18    GetJobByIdWithDetails_JobDoesNotExist, // ApplicationConstants.RESPONSE_JOB_JOB_DOESNT_EXIST
19
20    AddNewJob_JobStateMustBeOffline, // ApplicationConstants.RESPONSE_JOB_JOBSTATE_MUST_BE_OFFLINE
21    AddNewJob_JobIdMustNotBeSet, // ApplicationConstants.RESPONSE_JOB_ID_MUST_NOT_BE_SET
22    AddNewJob_JobNull, // ApplicationConstants.RESPONSE_JOB_JOB_NULL
23
24    RemoveJob_JobDoesNotExist, // ApplicationConstants.RESPONSE_JOB_JOB_DOESNT_EXIST
25
26    GetLastSerializedResult_JobResultNotYetThere, // ApplicationConstants.RESPONSE_JOB_RESULT_NOT_YET_HERE
27
28    AbortJob_JobDoesNotExist, // ApplicationConstants.RESPONSE_JOB_JOB_DOESNT_EXIST
29    AbortJob_AbortAlreadyRequested, // ApplicationConstants.RESPONSE_JOB_ABORT_REQUEST_ALLREADY_SET
30    AbortJob_JobIsNotBeeingCalculated, // ApplicationConstants.RESPONSE_JOB_IS_NOT_BEEING_CALCULATED
31
32    GetCalendar_ResourceNotFound, // ApplicationConstants.RESPONSE_CLIENT_RESOURCE_NOT_FOUND
33    GetCalendar_NoCalendarFound, // ApplicationConstants.RESPONSE_UPTIMECALENDAR_NO_CALENDAR_FOUND
34
35    SetCalendarStatus_ResourceNotFound, // ApplicationConstants.RESPONSE_CLIENT_RESOURCE_NOT_FOUND
36
37    ProcessHeartBeat_UserNotLoggedIn, // ApplicationConstants.RESPONSE_COMMUNICATOR_USER_NOT_LOGGED_IN
38
39    GetJob_NoJobsAvailable, // ApplicationConstants.RESPONSE_COMMUNICATOR_NO_JOBS_LEFT
40
41    ProcessJobResult_JobDoesNotExist, // ApplicationConstants.RESPONSE_COMMUNICATOR_NO_JOB_WITH_THIS_ID
42    ProcessJobResult_JobAborted, // ApplicationConstants.RESPONSE_COMMUNICATOR_JOB_WAS_ABORTED
43    ProcessJobResult_JobIsNotBeeingCalculated, // ApplicationConstants.RESPONSE_COMMUNICATOR_JOB_IS_NOT_BEEING_CALCULATED
44    ProcessJobResult_WrongSlaveForJob, // ApplicationConstants.RESPONSE_COMMUNICATOR_WRONG_CLIENT_FOR_JOB
45    ProcessJobResult_InvalidJobState, // ApplicationConstants.RESPONSE_COMMUNICATOR_WRONG_JOB_STATE
46
47    Login_LoginFaild, // ApplicationConstants.RESPONSE_SERVERCONSOLE_LOGIN_FAILED
48
49    Logout_SlaveNotRegistered, // ApplicationConstants.RESPONSE_COMMUNICATOR_LOGOUT_CLIENT_NOT_REGISTERED
50
51    IsJobStillNeeded_JobDoesNotExist, // ApplicationConstants.RESPONSE_COMMUNICATOR_JOB_DOESNT_EXIST
52    IsJobStillNeeded_JobAlreadyFinished, // ApplicationConstants.RESPONSE_COMMUNICATOR_JOB_ALLREADY_FINISHED
53
54    GetPlugins_PluginsNotAvailable, // ApplicationConstants.RESPONSE_COMMUNICATOR_PLUGINS_NOT_AVAIL
55
56    AddSlaveGroup_SlaveIdMustNotBeSet, // ApplicationConstants.RESPONSE_CLIENT_ID_MUST_NOT_BE_SET
57
58    AddResourceToGroup_SlaveGroupDoesNotExist, // ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_DOESNT_EXIST
59
60    DeleteResourceFromGroup_SlaveGroupDoesNotExist, // ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_DOESNT_EXIST
61
62    GetAllGroupsOfResource_ResourceNotFound, // ApplicationConstants.RESPONSE_CLIENT_RESOURCE_NOT_FOUND
63
64    DeleteSlaveGroup_SlaveGroupDoesNotExist, // ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_DOESNT_EXIST
65
66  }
67}
Note: See TracBrowser for help on using the repository browser.