Last change
on this file since 4267 was
4267,
checked in by cneumuel, 14 years ago
|
renamed all database entities from "Client" to "Slave" (#1157)
made slave-heartbeats synchronous, also they send HBs when timetable disallows them to calculate. they will appear on the server as Idle bis IsAllowedToCalculate will be false (#1159)
|
File size:
954 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Text;
|
---|
4 | using HeuristicLab.Hive.Contracts.BusinessObjects;
|
---|
5 | using System.IO;
|
---|
6 |
|
---|
7 | namespace HeuristicLab.Hive.Server.DataAccess {
|
---|
8 | public interface IJobDao: IGenericDao<JobDto> {
|
---|
9 | IEnumerable<JobDto> FindActiveJobsOfSlave(SlaveDto slave);
|
---|
10 |
|
---|
11 | IEnumerable<JobDto> GetJobsByState(JobState state);
|
---|
12 |
|
---|
13 | void AssignSlaveToJob(Guid slaveId, Guid jobId);
|
---|
14 |
|
---|
15 | void SetJobOffline(JobDto job);
|
---|
16 |
|
---|
17 | SerializedJob InsertWithAttachedJob(SerializedJob job);
|
---|
18 |
|
---|
19 | byte[] GetBinaryJobFile(Guid jobId);
|
---|
20 |
|
---|
21 | IEnumerable<JobDto> FindFittingJobsForSlave(JobState state, int freeCores, int freeMemory, Guid slaveGuid);
|
---|
22 | Stream GetSerializedJobStream(Guid jobId);
|
---|
23 |
|
---|
24 | IEnumerable<JobDto> FindWithLimitations(JobState 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.