Changeset 6743 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive/3.3/ServiceContracts/IHiveService.cs
- Timestamp:
- 09/12/11 18:04:25 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive/3.3/ServiceContracts/IHiveService.cs
r6725 r6743 33 33 #region Task Methods 34 34 [OperationContract] 35 Guid Add Job(Task job, TaskData jobData, IEnumerable<Guid> resourceIds);36 37 [OperationContract] 38 Guid AddChild Job(Guid parentJobId, Task job, TaskData jobData);39 40 [OperationContract] 41 Task Get Job(Guid jobId);42 43 [OperationContract] 44 IEnumerable<Task> Get Jobs();45 46 [OperationContract] 47 IEnumerable<LightweightTask> GetLightweight Jobs(IEnumerable<Guid> jobIds);48 49 [OperationContract] 50 IEnumerable<LightweightTask> GetLightweightChild Jobs(Guid? parentJobId, bool recursive, bool includeParent);51 52 [OperationContract] 53 IEnumerable<LightweightTask> GetLightweight ExperimentJobs(Guid experimentId);54 55 [OperationContract] 56 TaskData Get JobData(Guid jobId);57 58 [OperationContract] 59 void Update Job(Task jobDto);60 61 [OperationContract] 62 void Update JobData(Task jobDto, TaskData jobDataDto);63 64 [OperationContract] 65 void Delete Job(Guid jobId);66 67 [OperationContract] 68 void DeleteChild Jobs(Guid parentJobId);69 70 [OperationContract] 71 Task Update JobState(Guid jobId, TaskState jobState, Guid? slaveId, Guid? userId, string exception);72 #endregion 73 74 #region JobControl Methods75 [OperationContract] 76 void Stop Job(Guid jobId);77 78 [OperationContract] 79 void Pause Job(Guid jobId);80 81 [OperationContract] 82 void Restart Job(Guid jobId);35 Guid AddTask(Task task, TaskData taskData, IEnumerable<Guid> resourceIds); 36 37 [OperationContract] 38 Guid AddChildTask(Guid parentTaskId, Task task, TaskData taskData); 39 40 [OperationContract] 41 Task GetTask(Guid taskId); 42 43 [OperationContract] 44 IEnumerable<Task> GetTasks(); 45 46 [OperationContract] 47 IEnumerable<LightweightTask> GetLightweightTasks(IEnumerable<Guid> taskIds); 48 49 [OperationContract] 50 IEnumerable<LightweightTask> GetLightweightChildTasks(Guid? parentTaskId, bool recursive, bool includeParent); 51 52 [OperationContract] 53 IEnumerable<LightweightTask> GetLightweightJobTasks(Guid jobId); 54 55 [OperationContract] 56 TaskData GetTaskData(Guid taskId); 57 58 [OperationContract] 59 void UpdateTask(Task taskDto); 60 61 [OperationContract] 62 void UpdateTaskData(Task taskDto, TaskData taskDataDto); 63 64 [OperationContract] 65 void DeleteTask(Guid taskId); 66 67 [OperationContract] 68 void DeleteChildTasks(Guid parentTaskId); 69 70 [OperationContract] 71 Task UpdateTaskState(Guid taskId, TaskState taskState, Guid? slaveId, Guid? userId, string exception); 72 #endregion 73 74 #region Task Control Methods 75 [OperationContract] 76 void StopTask(Guid taskId); 77 78 [OperationContract] 79 void PauseTask(Guid taskId); 80 81 [OperationContract] 82 void RestartTask(Guid taskId); 83 83 #endregion 84 84 85 85 #region Job Methods 86 86 [OperationContract] 87 Job Get HiveExperiment(Guid id);87 Job GetJob(Guid id); 88 88 89 89 /// <summary> 90 /// Returns all experimentsfor the current user90 /// Returns all task for the current user 91 91 /// </summary> 92 92 [OperationContract] 93 IEnumerable<Job> Get HiveExperiments();93 IEnumerable<Job> GetJobs(); 94 94 95 95 /// <summary> 96 /// Returns all experimentsin the hive (only for admins)96 /// Returns all task in the hive (only for admins) 97 97 /// </summary> 98 98 /// <returns></returns> 99 99 [OperationContract] 100 IEnumerable<Job> GetAll HiveExperiments();101 102 [OperationContract] 103 Guid Add HiveExperiment(Job hiveExperimentDto);104 105 [OperationContract] 106 void Update HiveExperiment(Job hiveExperimentDto);107 108 [OperationContract] 109 void Delete HiveExperiment(Guid hiveExperimentId);110 #endregion 111 112 #region HiveExperimentPermission Methods113 [OperationContract] 114 void GrantPermission(Guid hiveExperimentId, Guid grantedUserId, Permission permission);100 IEnumerable<Job> GetAllJobs(); 101 102 [OperationContract] 103 Guid AddJob(Job jobDto); 104 105 [OperationContract] 106 void UpdateJob(Job jobDto); 107 108 [OperationContract] 109 void DeleteJob(Guid JobId); 110 #endregion 111 112 #region JobPermission Methods 113 [OperationContract] 114 void GrantPermission(Guid jobId, Guid grantedUserId, Permission permission); 115 115 116 116 [OperationContract] … … 118 118 119 119 [OperationContract] 120 IEnumerable<JobPermission> Get HiveExperimentPermissions(Guid hiveExperimentId);121 122 [OperationContract] 123 bool IsAllowedPrivileged(); // current user may execute privileged jobs120 IEnumerable<JobPermission> GetJobPermissions(Guid jobId); 121 122 [OperationContract] 123 bool IsAllowedPrivileged(); // current user may execute privileged task 124 124 #endregion 125 125 … … 140 140 [OperationContract] 141 141 Plugin GetPlugin(Guid pluginId); 142 142 143 [OperationContract] 143 144 Plugin GetPluginByHash(byte[] hash); 145 144 146 [OperationContract] 145 147 [FaultContract(typeof(PluginAlreadyExistsFault))] 146 148 Guid AddPlugin(Plugin plugin, List<PluginData> pluginData); 149 147 150 [OperationContract] 148 151 IEnumerable<Plugin> GetPlugins(); 152 149 153 [OperationContract] 150 154 IEnumerable<PluginData> GetPluginDatas(List<Guid> pluginIds); 155 151 156 [OperationContract] 152 157 void DeletePlugin(Guid pluginId); … … 194 199 195 200 [OperationContract] 196 IEnumerable<Task> Get JobsByResourceId(Guid resourceId);201 IEnumerable<Task> GetTasksByResourceId(Guid resourceId); 197 202 198 203 [OperationContract]
Note: See TracChangeset
for help on using the changeset viewer.