Changeset 4253 for branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.LINQDataAccess/3.3/JobDao.cs
- Timestamp:
- 08/18/10 15:29:57 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.LINQDataAccess/3.3/JobDao.cs
r4170 r4253 93 93 } 94 94 95 public IEnumerable<JobDto> FindActiveJobsOf Client(ClientDto client) {95 public IEnumerable<JobDto> FindActiveJobsOfSlave(ClientDto client) { 96 96 return (from j in Context.Jobs 97 97 where (j.JobState == Enum.GetName(typeof (State), State.Calculating) || … … 103 103 } 104 104 105 public IEnumerable<JobDto> FindFittingJobsFor Client(State state, int freeCores, int freeMemory, Guid clientId) {105 public IEnumerable<JobDto> FindFittingJobsForSlave(State state, int freeCores, int freeMemory, Guid clientId) { 106 106 ClientGroupDao cgd = new ClientGroupDao(); 107 107 … … 126 126 } 127 127 128 public void Assign ClientToJob(Guid clientId, Guid jobId) {128 public void AssignSlaveToJob(Guid clientId, Guid jobId) { 129 129 Client c = Context.Resources.OfType<Client>().SingleOrDefault(client => client.ResourceId.Equals(clientId)); 130 130 Job j = Context.Jobs.SingleOrDefault(job => job.JobId.Equals(jobId));
Note: See TracChangeset
for help on using the changeset viewer.