Changeset 1936
- Timestamp:
- 05/28/09 17:26:51 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Communication/3.2/WcfService.cs
r1812 r1936 229 229 230 230 private void proxy_ProcessHeartBeatCompleted(object sender, ProcessHeartBeatCompletedEventArgs e) { 231 if (e.Error == null )231 if (e.Error == null && e.Result.Success == true) 232 232 SendHeartBeatCompleted(sender, e); 233 233 else -
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 -
trunk/sources/HeuristicLab.Hive.Client.ExecutionEngine/3.2/Executor.cs
r1812 r1936 53 53 public void Start(byte[] serializedJob) { 54 54 CreationTime = DateTime.Now; 55 55 56 Job = (IJob)PersistenceManager.RestoreFromGZip(serializedJob); 56 57 //debug -
trunk/sources/HeuristicLab.PluginInfrastructure/PluginManager.cs
r1755 r1936 225 225 setup.ApplicationBase = AppDomain.CurrentDomain.SetupInformation.ApplicationBase; 226 226 AppDomain applicationDomain = AppDomain.CreateDomain(friendlyName, AppDomain.CurrentDomain.Evidence, setup, pset, CreateStrongName(Assembly.GetExecutingAssembly())); 227 228 227 Runner remoteRunner = (Runner)applicationDomain.CreateInstanceAndUnwrap(typeof(Runner).Assembly.GetName().Name, typeof(Runner).FullName); 229 228 NotifyListeners(PluginManagerAction.Initializing, "All plugins"); 230 229 231 //if (assemblyFiles != null && assemblyFiles.Count > 0)232 //remoteRunner.LoadPlugins(assemblyFiles);230 if (assemblyFiles != null && assemblyFiles.Count > 0) 231 remoteRunner.LoadPlugins(assemblyFiles); 233 232 234 233 //if (depPlugins != null && depPlugins.Count > 0) { 235 remoteRunner.LoadPlugins(ActivePlugins);234 //remoteRunner.LoadPlugins(ActivePlugins); 236 235 //} 237 NotifyListeners(PluginManagerAction.Initialized, "All plugins"); 236 NotifyListeners(PluginManagerAction.Initialized, "All plugins"); 238 237 return applicationDomain; 239 238 } -
trunk/sources/HeuristicLab.PluginInfrastructure/Runner.cs
r1666 r1936 47 47 /// <param name="plugins">bytearray of all plugins that should be loaded</param> 48 48 public void LoadPlugins(ICollection<byte[]> plugins) { 49 foreach (byte[] plugin in plugins) 50 Assembly.Load(plugin); 49 foreach (byte[] plugin in plugins) { 50 Assembly.Load(plugin); 51 } 51 52 } 52 53
Note: See TracChangeset
for help on using the changeset viewer.