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 |
|
---|
23 | using System;
|
---|
24 | using System.Collections.Generic;
|
---|
25 | using System.Linq;
|
---|
26 | using HeuristicLab.Services.Hive.DataAccess;
|
---|
27 | using DT = HeuristicLab.Services.Hive.DataTransfer;
|
---|
28 | namespace HeuristicLab.Services.Hive {
|
---|
29 | public interface IHiveDao {
|
---|
30 | #region Task Methods
|
---|
31 | Task GetTaskById(Guid id);
|
---|
32 |
|
---|
33 | IQueryable<TaskInfoForScheduler> GetWaitingTasks(Slave slave);
|
---|
34 |
|
---|
35 | void UpdateTask(Task task);
|
---|
36 | void UpdateTaskAndPlugins(Task task);
|
---|
37 | Task UpdateTaskState(Guid taskId, TaskState taskState, Guid? slaveId, Guid? userId, string exception);
|
---|
38 |
|
---|
39 | #endregion
|
---|
40 |
|
---|
41 | #region TaskData Methods
|
---|
42 | TaskData GetTaskDataByDto(DT.TaskData dto);
|
---|
43 | void UpdateTaskData(TaskData taskData);
|
---|
44 | #endregion
|
---|
45 |
|
---|
46 | #region StateLog Methods
|
---|
47 |
|
---|
48 | #endregion
|
---|
49 |
|
---|
50 | #region Job Methods
|
---|
51 |
|
---|
52 | #endregion
|
---|
53 |
|
---|
54 | #region JobPermission Methods
|
---|
55 |
|
---|
56 | #endregion
|
---|
57 |
|
---|
58 | #region Plugin Methods
|
---|
59 |
|
---|
60 | #endregion
|
---|
61 |
|
---|
62 | #region PluginData Methods
|
---|
63 |
|
---|
64 | #endregion
|
---|
65 |
|
---|
66 | #region Slave Methods
|
---|
67 | Slave GetSlaveById(Guid id);
|
---|
68 |
|
---|
69 | void UpdateSlave(Slave slave);
|
---|
70 | #endregion
|
---|
71 |
|
---|
72 | #region SlaveGroup Methods
|
---|
73 |
|
---|
74 | #endregion
|
---|
75 |
|
---|
76 | #region Resource Methods
|
---|
77 | IQueryable<Guid> GetAssignedResourcesIds(Guid taskId);
|
---|
78 | IEnumerable<Resource> GetParentResources(Guid resourceId);
|
---|
79 | IEnumerable<Guid> GetParentResourcesIDs(Guid resourceId);
|
---|
80 | #endregion
|
---|
81 |
|
---|
82 | #region ResourcePermission Methods
|
---|
83 |
|
---|
84 | #endregion
|
---|
85 |
|
---|
86 | #region Authorization Methods
|
---|
87 |
|
---|
88 | #endregion
|
---|
89 |
|
---|
90 | #region Lifecycle Methods
|
---|
91 |
|
---|
92 | #endregion
|
---|
93 |
|
---|
94 | #region Downtime Methods
|
---|
95 | IQueryable<int> GetNumberOfDowntimesFromParentResourcesAtCurrentTime(Guid resourceId, DowntimeType type);
|
---|
96 | #endregion
|
---|
97 |
|
---|
98 | #region Statistics Methods
|
---|
99 |
|
---|
100 | #endregion
|
---|
101 |
|
---|
102 | #region UserPriority Methods
|
---|
103 |
|
---|
104 | #endregion
|
---|
105 | }
|
---|
106 | }
|
---|