Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.DataAccess/3.3/IJobDao.cs @ 4170

Last change on this file since 4170 was 4170, checked in by cneumuel, 14 years ago

refactoring of Result-Polling of HiveExperiment, polling is now much faster and code is cleaner (1092#)

File size: 952 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Text;
4using HeuristicLab.Hive.Contracts.BusinessObjects;
5using System.IO;
6
7namespace HeuristicLab.Hive.Server.DataAccess {
8  public interface IJobDao: IGenericDao<JobDto> {
9    IEnumerable<JobDto> FindActiveJobsOfClient(ClientDto client);
10
11    IEnumerable<JobDto> GetJobsByState(State state);
12
13    void AssignClientToJob(Guid clientId, Guid jobId);
14
15    void SetJobOffline(JobDto job);
16
17    SerializedJob InsertWithAttachedJob(SerializedJob job);
18
19    byte[] GetBinaryJobFile(Guid jobId);
20
21    IEnumerable<JobDto> FindFittingJobsForClient(State state, int freeCores, int freeMemory, Guid clientGuid);
22    Stream GetSerializedJobStream(Guid jobId);
23
24    IEnumerable<JobDto> FindWithLimitations(State jobState, int offset, int count);
25
26    void SetBinaryJobFile(Guid jobId, byte[] data);
27
28    IEnumerable<JobDto> FindJobsById(IEnumerable<Guid> jobIds);
29  }
30}
Note: See TracBrowser for help on using the repository browser.