Last change
on this file since 4333 was
4333,
checked in by cneumuel, 14 years ago
|
added authorizationManager which checks for permission to specific jobs (#1168)
|
File size:
1.0 KB
|
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 |
|
---|
23 | Stream GetSerializedJobStream(Guid jobId);
|
---|
24 |
|
---|
25 | IEnumerable<JobDto> FindWithLimitations(JobState jobState, int offset, int count);
|
---|
26 |
|
---|
27 | void SetBinaryJobFile(Guid jobId, byte[] data);
|
---|
28 |
|
---|
29 | IEnumerable<JobDto> FindJobsById(IEnumerable<Guid> jobIds);
|
---|
30 |
|
---|
31 | bool IsUserAuthorizedForJobs(string userId, params Guid[] jobIds);
|
---|
32 | }
|
---|
33 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.