Changeset 1509 for trunk/sources
- Timestamp:
- 04/03/09 14:22:14 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/Client.cs
r1500 r1509 28 28 namespace HeuristicLab.Hive.Contracts.BusinessObjects { 29 29 30 public enum State { nullState, idle, calculating, offline, finished };30 public enum State { nullState, idle, calculating, offline, finished, abort, requestSnapshot }; 31 31 32 32 [DataContract] -
trunk/sources/HeuristicLab.Hive.Contracts/Interfaces/IExecutionEngineFacade.cs
r1485 r1509 32 32 [OperationContract] 33 33 ResponseObject<Job> AddJob(Job job); 34 [OperationContract] 35 Response RequestSnapshot(Guid jobId); 36 [OperationContract] 37 ResponseObject<JobResult> GetLastResult(Guid jobId, bool requested); 38 [OperationContract] 39 Response AbortJob(Guid jobId); 34 40 } 35 41 } -
trunk/sources/HeuristicLab.Hive.Contracts/Interfaces/IJobManager.cs
r1449 r1509 40 40 Response RemoveJob(Guid jobId); 41 41 [OperationContract] 42 ResponseObject<JobResult> GetLastJobResultOf(Guid jobId); 42 ResponseObject<JobResult> GetLastJobResultOf(Guid jobId, bool requested); 43 [OperationContract] 44 Response RequestSnapshot(Guid jobId); 45 [OperationContract] 46 Response AbortJob(Guid jobId); 43 47 } 44 48 } -
trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerManagementConsole.cs
r1495 r1509 253 253 IJobManager jobManager = 254 254 ServiceLocator.GetJobManager(); 255 ResponseObject<JobResult> jobRes = jobManager.GetLastJobResultOf(currentJob.Id );255 ResponseObject<JobResult> jobRes = jobManager.GetLastJobResultOf(currentJob.Id, false); 256 256 lblJobCalculationEnd.Text = "Calculation ended at " + jobRes.Obj.DateFinished; 257 257 } -
trunk/sources/HeuristicLab.Hive.Server.Core/ExecutionEngineFacade.cs
r1485 r1509 40 40 } 41 41 42 public Response RequestSnapshot(Guid jobId) { 43 return jobManager.RequestSnapshot(jobId); 44 } 45 46 public ResponseObject<JobResult> GetLastResult(Guid jobId, bool requested) { 47 return jobManager.GetLastJobResultOf(jobId, requested); 48 } 49 50 public Response AbortJob(Guid jobId) { 51 return jobManager.AbortJob(jobId); 52 } 53 42 54 #endregion 43 55 } -
trunk/sources/HeuristicLab.Hive.Server.Core/JobManager.cs
r1468 r1509 229 229 } 230 230 231 public ResponseObject<JobResult> GetLastJobResultOf(Guid jobId ) {231 public ResponseObject<JobResult> GetLastJobResultOf(Guid jobId, bool requested) { 232 232 ISession session = factory.GetSessionForCurrentThread(); 233 233 … … 249 249 } 250 250 251 public Response RequestSnapshot(Guid jobId) { 252 ISession session = factory.GetSessionForCurrentThread(); 253 Response response = new Response(); 254 255 try { 256 257 258 return response; 259 } 260 finally { 261 if (session != null) 262 session.EndSession(); 263 } 264 } 265 266 public Response AbortJob(Guid jobId) { 267 throw new NotImplementedException(); 268 } 269 251 270 #endregion 252 271 } -
trunk/sources/HeuristicLab.Hive.Server.Core/ServerConsoleFacade.cs
r1449 r1509 91 91 } 92 92 93 public ResponseObject<JobResult> GetLastJobResultOf(Guid jobId ) {94 return jobManager.GetLastJobResultOf(jobId );93 public ResponseObject<JobResult> GetLastJobResultOf(Guid jobId, bool requested) { 94 return jobManager.GetLastJobResultOf(jobId, requested); 95 95 } 96 96 … … 99 99 } 100 100 101 public Response RequestSnapshot(Guid jobId) { 102 return jobManager.RequestSnapshot(jobId); 103 } 104 105 public Response AbortJob(Guid jobId) { 106 return jobManager.AbortJob(jobId); 107 } 108 101 109 #endregion 102 110 }
Note: See TracChangeset
for help on using the changeset viewer.