Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HivePerformance/sources/HeuristicLab.Services.Hive/3.3/Interfaces/IHiveDao.cs @ 9399

Last change on this file since 9399 was 9399, checked in by pfleck, 11 years ago

#2030
Removed unnecessary UpdatePlugins in UpdateTask.
Optimized GetTask and GetPlugin with compiled queries.

File size: 2.7 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2012 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
23using System;
24using System.Collections.Generic;
25using System.Linq;
26using HeuristicLab.Services.Hive.DataAccess;
27using DT = HeuristicLab.Services.Hive.DataTransfer;
28namespace HeuristicLab.Services.Hive {
29  public interface IHiveDao {
30    #region Task Methods
31    Task GetTaskById(Guid task);
32    Task GetTaskByDto(DT.Task taskDto);
33    Tuple<Task, Guid?> GetTaskByIdAndLastStateLogSlaveId(Guid taskId);
34
35    IEnumerable<TaskInfoForScheduler> GetWaitingTasks(Slave slave);
36    IQueryable<DT.LightweightTask> GetLightweightTasks(Guid jobId);
37
38    void UpdateTask(Task task);
39    Task UpdateTaskState(Guid taskId, TaskState taskState, Guid? slaveId, Guid? userId, string exception);
40
41    bool TaskIsAllowedToBeCalculatedBySlave(Guid taskId, Guid slaveId);
42    #endregion
43
44    #region TaskData Methods
45    TaskData GetTaskDataByDto(DT.TaskData taskDataDto);
46    void UpdateTaskData(TaskData taskData);
47    #endregion
48
49    #region StateLog Methods
50
51    #endregion
52
53    #region Job Methods
54
55    #endregion
56
57    #region JobPermission Methods
58
59    #endregion
60
61    #region Plugin Methods
62    Plugin GetPluginById(Guid pluginId);
63    #endregion
64
65    #region PluginData Methods
66
67    #endregion
68
69    #region Slave Methods
70    Slave GetSlaveById(Guid id);
71
72    void UpdateSlave(Slave slave);
73
74    bool SlaveHasToShutdownComputer(Guid slaveId);
75    bool SlaveIsAllowedToCalculate(Guid slaveId);
76    #endregion
77
78    #region SlaveGroup Methods
79
80    #endregion
81
82    #region Resource Methods
83
84    #endregion
85
86    #region ResourcePermission Methods
87
88    #endregion
89
90    #region Authorization Methods
91
92    #endregion
93
94    #region Lifecycle Methods
95
96    #endregion
97
98    #region Downtime Methods
99    #endregion
100
101    #region Statistics Methods
102
103    #endregion
104
105    #region UserPriority Methods
106
107    #endregion
108  }
109}
Note: See TracBrowser for help on using the repository browser.