- Timestamp:
- 01/22/09 00:30:46 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/JobAdapter.cs
r1161 r1166 37 37 IJobAdapter { 38 38 #region Fields 39 dsHiveServer.JobDataTable data =40 new dsHiveServer.JobDataTable();41 42 39 private IClientAdapter clientAdapter = null; 43 40 … … 165 162 166 163 protected override dsHiveServer.JobRow 167 InsertNewRow(Job job) { 164 InsertNewRow(Job job) { 165 dsHiveServer.JobDataTable data = 166 new dsHiveServer.JobDataTable(); 167 168 168 dsHiveServer.JobRow row = data.NewJobRow(); 169 169 data.AddJobRow(row); … … 267 267 } 268 268 269 public ICollection<Job> GetActiveJobsOf(ClientInfo client) { 270 271 if (client != null) { 272 return 273 base.FindMultiple( 274 delegate() { 275 return Adapter.GetDataByCalculatingClient(client.Id); 276 }, 277 delegate() { 278 return from job in 279 cache.AsEnumerable<dsHiveServer.JobRow>() 280 where !job.IsResourceIdNull() && 281 job.ResourceId == client.Id && 282 !job.IsJobStateNull() && 283 job.JobState == "calculating" 284 select job; 285 }); 286 } 287 288 return null; 289 } 290 269 291 public ICollection<Job> GetJobsOf(User user) { 270 292 if (user != null) {
Note: See TracChangeset
for help on using the changeset viewer.