Changeset 3220 for trunk/sources/HeuristicLab.Hive.Client.Core/3.2
- Timestamp:
- 03/25/10 19:57:44 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Hive.Client.Core/3.2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Core/3.2/ConfigurationManager/UptimeManager.cs
r3203 r3220 33 33 return instance; 34 34 } 35 } 36 37 public UptimeManager() { 38 RestoreFromHDD(); 35 39 } 36 40 -
trunk/sources/HeuristicLab.Hive.Client.Core/3.2/Core.cs
r3203 r3220 311 311 /// <param name="e"></param> 312 312 void wcfService_SendJobCompleted(object sender, SendJobCompletedEventArgs e) { 313 Logging.Instance.Info(this.ToString(), "Received new job with id " + e.Result.Job.Id);314 if (e.Result.StatusMessage != ApplicationConstants.RESPONSE_COMMUNICATOR_NO_JOBS_LEFT) {313 if (e.Result.StatusMessage != ApplicationConstants.RESPONSE_COMMUNICATOR_NO_JOBS_LEFT) { 314 Logging.Instance.Info(this.ToString(), "Received new job with id " + e.Result.Job.Id); 315 315 bool sandboxed = false; 316 316 List<byte[]> files = new List<byte[]>(); -
trunk/sources/HeuristicLab.Hive.Client.Core/3.2/JobStorage/JobStorageManager.cs
r2846 r3220 63 63 Logging.Instance.Error("JobStorageManager", "Job not on hdd but on list - deleting job from list", e); 64 64 storedJobsList.Remove(storedJobsList[index - 1]); 65 StoreJobList(); 65 66 } 66 67 … … 82 83 83 84 XmlSerializer serializer = new XmlSerializer(typeof(List<JobStorageInfo>)); 85 FileStream stream = null; 84 86 if(File.Exists(Path.Combine(path ,"list.xml"))) { 85 87 try { 86 FileStreamstream = new FileStream(Path.Combine(path, "list.xml"), FileMode.Open);88 stream = new FileStream(Path.Combine(path, "list.xml"), FileMode.Open); 87 89 XmlTextReader reader = new XmlTextReader(stream); 88 90 storedJobsList = (List<JobStorageInfo>)serializer.Deserialize(reader); … … 91 93 catch (Exception e) { 92 94 Logging.Instance.Error("JobStorageManager", "Exception while loading the Stored Job List", e); 95 } finally { 96 if(stream != null) 97 stream.Dispose(); 93 98 } 94 99 } else {
Note: See TracChangeset
for help on using the changeset viewer.