- Timestamp:
- 09/24/12 15:24:24 (12 years ago)
- Location:
- branches/HiveTaskScheduler
- Files:
-
- 1 added
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveTaskScheduler/HeuristicLab.Services.Hive/3.3/HiveService.cs
r8071 r8687 499 499 #endregion 500 500 501 #region Resource Methods 502 public IEnumerable<Resource> GetChildResources(Guid resourceId) { 503 return dao.GetChildResources(resourceId); 504 } 505 #endregion 506 501 507 #region Slave Methods 502 508 public int GetNewHeartbeatInterval(Guid slaveId) { … … 671 677 #endregion 672 678 679 #region UserPriority Methods 680 public IEnumerable<UserPriority> GetUserPriorities() { 681 return trans.UseTransaction(() => dao.GetUserPriorities(x => true)); 682 } 683 #endregion 684 673 685 #region Helper Methods 674 686 private IEnumerable<Task> GetChildTasks(Guid? parentTaskId, bool recursive, bool includeParent) { … … 687 699 } 688 700 #endregion 701 702 #region Statistics Methods 703 public IEnumerable<Statistics> GetStatistics() { 704 return dao.GetStatistics(x => true); 705 } 706 public IEnumerable<Statistics> GetStatisticsForTimePeriod(DateTime from, DateTime to) { 707 return dao.GetStatistics(x => x.Timestamp >= from && x.Timestamp <= to); 708 } 709 #endregion 689 710 } 690 711 }
Note: See TracChangeset
for help on using the changeset viewer.