- Timestamp:
- 04/23/13 10:37:45 (11 years ago)
- Location:
- branches/HivePerformance/sources/HeuristicLab.Services.Hive/3.3
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/HivePerformance/sources/HeuristicLab.Services.Hive/3.3
- Property svn:ignore
-
old new 2 2 bin 3 3 obj 4 *.user
-
- Property svn:ignore
-
branches/HivePerformance/sources/HeuristicLab.Services.Hive/3.3/Interfaces/IHiveDtoDao.cs
r9385 r9391 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Linq;25 24 using System.Linq.Expressions; 26 25 using HeuristicLab.Services.Hive.DataAccess; … … 28 27 29 28 namespace HeuristicLab.Services.Hive { 30 public interface IHiveD ao {29 public interface IHiveDtoDao { 31 30 #region Task Methods 32 31 DT.Task GetTask(Guid id); 33 Task GetTaskDA(Guid id);34 32 IEnumerable<DT.Task> GetTasks(Expression<Func<Task, bool>> predicate); 35 33 IEnumerable<DT.LightweightTask> GetLightweightTasks(Expression<Func<Task, bool>> predicate); … … 39 37 void UpdateTaskAndStateLogs(DT.Task dto); 40 38 void UpdateTask(DT.Task dto); 41 void UpdateTaskDA(Task dto);42 39 void DeleteTask(Guid id); 43 40 IEnumerable<TaskInfoForScheduler> GetWaitingTasks(DT.Slave slave); 44 IQueryable<TaskInfoForScheduler> GetWaitingTasksDA(Slave slave);45 41 IEnumerable<DT.Task> GetParentTasks(IEnumerable<Guid> resourceIds, int count, bool finished); 46 42 DT.Task UpdateTaskState(Guid taskId, TaskState taskState, Guid? slaveId, Guid? userId, string exception); 47 Task UpdateTaskStateDA(Guid taskId, TaskState taskState, Guid? slaveId, Guid? userId, string exception);48 43 #endregion 49 44 … … 100 95 #region Slave Methods 101 96 DT.Slave GetSlave(Guid id); 102 Slave GetSlaveDA(Guid id);103 97 IEnumerable<DT.Slave> GetSlaves(Expression<Func<Slave, bool>> predicate); 104 98 Guid AddSlave(DT.Slave dto); 105 99 void UpdateSlave(DT.Slave dto); 106 void UpdateSlaveDA(Slave dto);107 100 void DeleteSlave(Guid id); 108 101 #endregion … … 124 117 void AssignJobToResource(Guid taskId, IEnumerable<Guid> resourceIds); 125 118 IEnumerable<DT.Resource> GetAssignedResources(Guid jobId); 126 IQueryable<Guid> GetAssignedResourcesIdsDA(Guid taskId);127 119 IEnumerable<DT.Resource> GetParentResources(Guid resourceId); 128 IEnumerable<Resource> GetParentResourcesDA(Guid resourceId);129 IEnumerable<Guid> GetParentResourcesIDsDA(Guid resourceId);130 IQueryable<int> GetNumberOfDowntimesFromParentResourcesAtCurrentTimeDA(Guid resourceId, DowntimeType type);131 120 IEnumerable<DT.Resource> GetChildResources(Guid resourceId); 132 121 IEnumerable<DT.Task> GetJobsByResourceId(Guid resourceId); -
branches/HivePerformance/sources/HeuristicLab.Services.Hive/3.3/Interfaces/IServiceLocator.cs
r9123 r9391 26 26 Access.IRoleVerifier RoleVerifier { get; } 27 27 IAuthorizationManager AuthorizationManager { get; } 28 IHiveDtoDao HiveDtoDao { get; } 28 29 IHiveDao HiveDao { get; } 29 30 IEventManager EventManager { get; }
Note: See TracChangeset
for help on using the changeset viewer.