Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HivePerformance/sources/HeuristicLab.Services.Hive/3.3/Interfaces/IOptimizedHiveDao.cs @ 9434

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

#2030
Added SelfHost-Project
Renamed HiveDtoDao back to HiveDao and renamed the optimized HiveDao into OptimizedDao instead.
Optimized AddTask by using compiled queries.

File size: 2.8 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 IOptimizedHiveDao {
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    Guid AddTask(Task task);
42    void AssignJobToResource(Guid taskId, IEnumerable<Guid> resourceIds);
43
44    bool TaskIsAllowedToBeCalculatedBySlave(Guid taskId, Guid slaveId);
45    #endregion
46
47    #region TaskData Methods
48    TaskData GetTaskDataByDto(DT.TaskData taskDataDto);
49    void UpdateTaskData(TaskData taskData);
50    #endregion
51
52    #region StateLog Methods
53
54    #endregion
55
56    #region Job Methods
57
58    #endregion
59
60    #region JobPermission Methods
61
62    #endregion
63
64    #region Plugin Methods
65    Plugin GetPluginById(Guid pluginId);
66    #endregion
67
68    #region PluginData Methods
69
70    #endregion
71
72    #region Slave Methods
73    Slave GetSlaveById(Guid id);
74
75    void UpdateSlave(Slave slave);
76
77    bool SlaveHasToShutdownComputer(Guid slaveId);
78    bool SlaveIsAllowedToCalculate(Guid slaveId);
79    #endregion
80
81    #region SlaveGroup Methods
82
83    #endregion
84
85    #region Resource Methods
86    IEnumerable<Guid> GetAssignedResourceIds(Guid jobId);
87    #endregion
88
89    #region ResourcePermission Methods
90
91    #endregion
92
93    #region Authorization Methods
94
95    #endregion
96
97    #region Lifecycle Methods
98
99    #endregion
100
101    #region Downtime Methods
102    #endregion
103
104    #region Statistics Methods
105
106    #endregion
107
108    #region UserPriority Methods
109
110    #endregion
111  }
112}
Note: See TracBrowser for help on using the repository browser.