using System; using System.Collections.Generic; using System.Text; using HeuristicLab.Hive.Contracts.BusinessObjects; using System.IO; namespace HeuristicLab.Hive.Server.DataAccess { public interface IJobDao: IGenericDao { IEnumerable FindActiveJobsOfClient(ClientDto client); IEnumerable GetJobsByState(State state); void AssignClientToJob(Guid clientId, Guid jobId); void SetJobOffline(JobDto job); SerializedJob InsertWithAttachedJob(SerializedJob job); byte[] GetBinaryJobFile(Guid jobId); IEnumerable FindFittingJobsForClient(State state, int freeCores, int freeMemory, Guid clientGuid); Stream GetSerializedJobStream(Guid jobId); IEnumerable FindWithLimitations(State jobState, int offset, int count); } }