Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 9397 was 9397, checked in by pfleck, 12 years ago

#2030
Changed recursive Linq2Sql queries to native SQL queries.

File size: 2.6 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    Tuple<Task, Guid?> GetTaskByIdAndLastStateLogSlaveId(Guid taskId);
33
34    IEnumerable<TaskInfoForScheduler> GetWaitingTasks(Slave slave);
35    IQueryable<DT.LightweightTask> GetLightweightTasks(Guid jobId);
36
37    void UpdateTask(Task task);
38    void UpdateTaskAndPlugins(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 dto);
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
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.