Free cookie consent management tool by TermsFeed Policy Generator

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

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

#2030
Changed Linq.Binary to byte array to avoid hash computation.
DataContext in HiveOperationContext is now lazy initialized.
Added missing HiveDao from last commit failure.

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 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}
Note: See TracBrowser for help on using the repository browser.