Changeset 1936 for trunk/sources/HeuristicLab.Hive.Client.Core
- Timestamp:
- 05/28/09 17:26:51 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Hive.Client.Core/3.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Core/3.2/Core.cs
r1830 r1936 239 239 //Todo: make a set & override the equals method 240 240 List<byte[]> files = new List<byte[]>(); 241 //foreach (CachedHivePluginInfo plugininfo in PluginCache.Instance.GetPlugins(e.Result.Job.PluginsNeeded))242 //files.AddRange(plugininfo.PluginFiles);241 foreach (CachedHivePluginInfo plugininfo in PluginCache.Instance.GetPlugins(e.Result.Job.PluginsNeeded)) 242 files.AddRange(plugininfo.PluginFiles); 243 243 244 AppDomain appDomain = PluginManager.Manager.CreateAndInitAppDomainWithSandbox(e.Result.Job.Id.ToString(), sandboxed, null, files); 244 AppDomain appDomain = PluginManager.Manager.CreateAndInitAppDomainWithSandbox(e.Result.Job.Id.ToString(), sandboxed, null, files); 245 245 appDomain.UnhandledException += new UnhandledExceptionEventHandler(appDomain_UnhandledException); 246 246 lock (engines) { … … 251 251 Executor engine = (Executor)appDomain.CreateInstanceAndUnwrap(typeof(Executor).Assembly.GetName().Name, typeof(Executor).FullName); 252 252 engine.JobId = e.Result.Job.Id; 253 engine.Queue = MessageQueue.GetInstance(); 253 engine.Queue = MessageQueue.GetInstance(); 254 254 engine.Start(e.Result.Job.SerializedJob); 255 255 engines.Add(e.Result.Job.Id, engine); … … 333 333 334 334 void appDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { 335 Logging.Instance.Error(this.ToString(), "Exception in AppDomain: " + e.ExceptionObject.ToString()); 336 337 } 338 339 internal Dictionary<Guid, Job> GetJobs() { 335 Logging.Instance.Error(this.ToString(), "Exception in AppDomain: " + e.ExceptionObject.ToString()); 336 } 337 338 internal Dictionary<Guid, Job> GetJobs() { 340 339 return jobs; 341 340 } -
trunk/sources/HeuristicLab.Hive.Client.Core/3.2/Heartbeat.cs
r1755 r1936 95 95 void wcfService_ProcessHeartBeatCompleted(object sender, ProcessHeartBeatCompletedEventArgs e) { 96 96 System.Diagnostics.Debug.WriteLine("Heartbeat received! "); 97 e.Result.ActionRequest.ForEach(mc => MessageQueue.GetInstance().AddMessage(mc)); 97 e.Result.ActionRequest.ForEach(mc => MessageQueue.GetInstance().AddMessage(mc)); 98 98 } 99 99
Note: See TracChangeset
for help on using the changeset viewer.