[1121] | 1 | #region License Information
|
---|
| 2 | /* HeuristicLab
|
---|
| 3 | * Copyright (C) 2002-2008 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
|
---|
| 4 | *
|
---|
| 5 | * This file is part of HeuristicLab.
|
---|
| 6 | *
|
---|
| 7 | * HeuristicLab is free software: you can redistribute it and/or modify
|
---|
| 8 | * it under the terms of the GNU General Public License as published by
|
---|
| 9 | * the Free Software Foundation, either version 3 of the License, or
|
---|
| 10 | * (at your option) any later version.
|
---|
| 11 | *
|
---|
| 12 | * HeuristicLab is distributed in the hope that it will be useful,
|
---|
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 15 | * GNU General Public License for more details.
|
---|
| 16 | *
|
---|
| 17 | * You should have received a copy of the GNU General Public License
|
---|
| 18 | * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
|
---|
| 19 | */
|
---|
| 20 | #endregion
|
---|
| 21 |
|
---|
| 22 | using System;
|
---|
[902] | 23 | using System.Collections.Generic;
|
---|
| 24 | using System.Linq;
|
---|
| 25 | using System.Text;
|
---|
| 26 |
|
---|
| 27 | namespace HeuristicLab.Hive.Contracts {
|
---|
| 28 | public class ApplicationConstants {
|
---|
[907] | 29 |
|
---|
[1468] | 30 | public static int HEARTBEAT_MAX_DIF = 120; // value in seconds
|
---|
[1752] | 31 | public static int JOB_TIME_TO_LIVE = 5;
|
---|
[1118] | 32 |
|
---|
[1086] | 33 | public static string RESPONSE_SERVERCONSOLE_LOGIN_SUCCESS = "Logged in";
|
---|
| 34 | public static string RESPONSE_SERVERCONSOLE_LOGIN_FAILED = "Login failed";
|
---|
| 35 |
|
---|
[907] | 36 | public static string RESPONSE_USERROLE_GET_ALL_USERS = "UserRole.GetAllUsers";
|
---|
| 37 | public static string RESPONSE_USERROLE_USER_EXISTS_ALLREADY = "UserRole.UserExistsAllready";
|
---|
| 38 | public static string RESPONSE_USERROLE_USER_SUCCESSFULLY_ADDED = "UserRole.UserSuccessfullyAdded";
|
---|
| 39 | public static string RESPONSE_USERROLE_USER_DOESNT_EXIST = "UserRole.UserDoesntExist";
|
---|
| 40 | public static string RESPONSE_USERROLE_USER_REMOVED = "UserRole.UserRemoved";
|
---|
[934] | 41 | public static string RESPONSE_USERROLE_USERGROUP_EXISTS_ALLREADY = "UserRole.UsergroupExistsAllready";
|
---|
| 42 | public static string RESPONSE_USERROLE_USERGROUP_ADDED = "UserRole.UserGroupAdded";
|
---|
| 43 | public static string RESPONSE_USERROLE_USERGROUP_DOESNT_EXIST = "UserRole.UserGroupDoesntExist";
|
---|
| 44 | public static string RESPONSE_USERROLE_PERMISSIONOWNER_DOESNT_EXIST = "UserRole.PermissionOwnerDoesntExist";
|
---|
| 45 | public static string RESPONSE_USERROLE_PERMISSIONOWNER_REMOVED = "UserRole.PermissionOwnerRemoved";
|
---|
| 46 | public static string RESPONSE_USERROLE_PERMISSIONOWNER_ADDED = "UserRole.PermissionOwnerAdded";
|
---|
| 47 | public static string RESPONSE_USERROLE_GET_ALL_USERGROUPS = "UserRole.AllUserGroupsReturned";
|
---|
[937] | 48 | public static string RESPONSE_USERROLE_ID_MUST_NOT_BE_SET = "UserRole.IdMustNotBeSet";
|
---|
[947] | 49 | public static string RESPONSE_USERROLE_USERGROUP_ADDED_TO_USERGROUP = "UserRole.UserGroupAddedToUserGroup";
|
---|
[969] | 50 | public static string RESPONSE_USERROLE_USERNAME_EXISTS_ALLREADY = "UserRole.UsernameExistsAllready";
|
---|
[907] | 51 |
|
---|
[929] | 52 | public static string RESPONSE_CLIENT_GET_ALL_CLIENTS = "Client.GetAllClients";
|
---|
[934] | 53 | public static string RESPONSE_CLIENT_GET_ALL_CLIENTGROUPS = "Client.GetAllClientGroups";
|
---|
[942] | 54 | public static string RESPONSE_CLIENT_ID_MUST_NOT_BE_SET = "Client.IdMustNotBeSet";
|
---|
| 55 | public static string RESPONSE_CLIENT_CLIENTGROUP_ADDED = "Client.ClientGroupAdded";
|
---|
| 56 | public static string RESPONSE_CLIENT_CLIENTGROUP_DOESNT_EXIST = "Client.ClientGroupDoesntExist";
|
---|
[1824] | 57 | public static string RESPONSE_CLIENT_CLIENTGROUP_DELETED = "Client group sucessfully deleted";
|
---|
[942] | 58 | public static string RESPONSE_CLIENT_RESOURCE_ADDED_TO_GROUP = "Client.ResourceAddedToGroup";
|
---|
| 59 | public static string RESPONSE_CLIENT_RESOURCE_REMOVED = "Client.ResourceRemoved";
|
---|
| 60 | public static string RESPONSE_CLIENT_RESOURCE_NOT_FOUND = "Client.ResourceNotFound";
|
---|
[945] | 61 | public static string RESPONSE_CLIENT_PERMISSIONOWNER_DOESNT_EXIST = "Client.PermissionOwnerDoesntExist";
|
---|
[1757] | 62 | public static string RESPONSE_CLIENT_GET_GROUPS_OF_CLIENT = "Get all groups of a client";
|
---|
[929] | 63 |
|
---|
[1272] | 64 | public static string RESPONSE_COMMUNICATOR_HEARTBEAT_RECEIVED = "Communicator.HeardbeatReceived";
|
---|
[929] | 65 | public static string RESPONSE_COMMUNICATOR_JOB_PULLED = "Communicator.JobPulled";
|
---|
| 66 | public static string RESPONSE_COMMUNICATOR_JOBRESULT_RECEIVED = "Communicator.JobResultReceived";
|
---|
| 67 | public static string RESPONSE_COMMUNICATOR_LOGIN_USER_ALLREADY_ONLINE = "Communicator.LoginUserAllreadyOnline";
|
---|
| 68 | public static string RESPONSE_COMMUNICATOR_LOGIN_SUCCESS = "Communicator.LoginSuccess";
|
---|
| 69 | public static string RESPONSE_COMMUNICATOR_LOGOUT_CLIENT_NOT_REGISTERED = "Communicator.LogoutClientNotRegistered";
|
---|
[947] | 70 | public static string RESPONSE_COMMUNICATOR_LOGOUT_SUCCESS = "Communicator.LogoutSuccess";
|
---|
[940] | 71 | public static string RESPONSE_COMMUNICATOR_NO_JOBS_LEFT = "Communicator.NoJobsLeft";
|
---|
[1004] | 72 | public static string RESPONSE_COMMUNICATOR_ID_MUST_NOT_BE_SET = "Communicator.IdMustNotBeSet";
|
---|
[1133] | 73 | public static string RESPONSE_COMMUNICATOR_NO_JOB_WITH_THIS_ID = "Communicator.NoJobWithThisId";
|
---|
[1004] | 74 | public static string RESPONSE_COMMUNICATOR_WRONG_JOB_STATE = "Communicator.WrongJobState";
|
---|
[1096] | 75 | public static string RESPONSE_COMMUNICATOR_USER_NOT_LOGGED_IN = "Communicator.UserNotLoggedIn";
|
---|
[1133] | 76 | public static string RESPONSE_COMMUNICATOR_JOB_IS_NOT_BEEING_CALCULATED = "Communicator.JobIsNotBeenigCalculated";
|
---|
| 77 | public static string RESPONSE_COMMUNICATOR_WRONG_CLIENT_FOR_JOB = "Communicator.WrongClientForJob";
|
---|
[1369] | 78 | public static string RESPONSE_COMMUNICATOR_JOB_ALLREADY_FINISHED = "Job allready finished. Not needed anymore";
|
---|
| 79 | public static string RESPONSE_COMMUNICATOR_JOB_DOESNT_EXIST = "No job exists with this id";
|
---|
| 80 | public static string RESPONSE_COMMUNICATOR_SEND_JOBRESULT = "Please send the Jobresult to the server";
|
---|
[1596] | 81 | public static string RESPONSE_COMMUNICATOR_PLUGINS_SENT = "Communicator.PluginsSent";
|
---|
[1813] | 82 | public static string RESPONSE_COMMUNICATOR_JOB_WAS_ABORTED = "Job was aborted";
|
---|
[929] | 83 |
|
---|
[967] | 84 | public static string RESPONSE_JOB_ALL_JOBS = "Job.AllJobs";
|
---|
| 85 | public static string RESPONSE_JOB_ID_MUST_NOT_BE_SET = "Job.IdMustNotBeSet";
|
---|
| 86 | public static string RESPONSE_JOB_JOB_ADDED = "Job.JobAdded";
|
---|
| 87 | public static string RESPONSE_JOB_JOB_NULL = "Job.JobNull";
|
---|
| 88 | public static string RESPONSE_JOB_JOB_DOESNT_EXIST = "JobDoesntExist";
|
---|
| 89 | public static string RESPONSE_JOB_JOB_REMOVED = "Job.JobRemoved";
|
---|
[1024] | 90 | public static string RESPONSE_JOB_JOBSTATE_MUST_BE_OFFLINE = "Job.JobStateMustBeOffline";
|
---|
[1577] | 91 | public static string RESPONSE_JOB_IS_NOT_BEEING_CALCULATED = "Job.IsNotBeeingCalculated";
|
---|
[1170] | 92 | public static string RESPONSE_JOB_JOB_RESULT_SENT = "Job.JobResultSent";
|
---|
[1577] | 93 | public static string RESPONSE_JOB_REQUEST_ALLREADY_SET = "Job.RequestAllreadySet";
|
---|
| 94 | public static string RESPONSE_JOB_ABORT_REQUEST_ALLREADY_SET = "Job.AbortRequestAllreadySet";
|
---|
| 95 | public static string RESPONSE_JOB_REQUEST_SET = "Job.RequestSet";
|
---|
| 96 | public static string RESPONSE_JOB_ABORT_REQUEST_SET = "Job.AbortRequestSet";
|
---|
[1770] | 97 | public static string RESPONSE_JOB_RESULT_NOT_YET_HERE = "Requested job result is not yet finished";
|
---|
[902] | 98 | }
|
---|
| 99 | }
|
---|