- Timestamp:
- 12/06/11 17:14:03 (13 years ago)
- Location:
- branches/HeuristicLab.MetaOptimization
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.HiveEngine/3.3/HiveEngine.cs
r6984 r7137 99 99 this.Priority = 0; 100 100 this.log = new ThreadSafeLog(); 101 this.IsAllowedPrivileged = ServiceLocator.Instance.CallHiveService((s) => s.IsAllowedPrivileged());101 this.IsAllowedPrivileged = HiveServiceLocator.Instance.CallHiveService((s) => s.IsAllowedPrivileged()); 102 102 } 103 103 … … 144 144 if (firstRun) { 145 145 TaskScheduler.UnobservedTaskException += new EventHandler<UnobservedTaskExceptionEventArgs>(TaskScheduler_UnobservedTaskException); 146 this.OnlinePlugins = ServiceLocator.Instance.CallHiveService(s => s.GetPlugins()).Where(x => x.Hash != null).ToList();146 this.OnlinePlugins = HiveServiceLocator.Instance.CallHiveService(s => s.GetPlugins()).Where(x => x.Hash != null).ToList(); 147 147 this.AlreadyUploadedPlugins = new List<Plugin>(); 148 148 firstRun = false; … … 288 288 log.LogException(e); 289 289 throw e; 290 } 291 finally { 290 } finally { 292 291 DisposeJob(refreshableJob); 293 292 } … … 323 322 private void DeleteHiveExperiment(Guid jobId) { 324 323 HiveClient.TryAndRepeat(() => { 325 ServiceLocator.Instance.CallHiveService(s => s.DeleteJob(jobId));324 HiveServiceLocator.Instance.CallHiveService(s => s.DeleteJob(jobId)); 326 325 }, 5, string.Format("Could not delete jobs")); 327 326 } 328 327 329 328 private List<Guid> GetResourceIds() { 330 return ServiceLocator.Instance.CallHiveService(service => {329 return HiveServiceLocator.Instance.CallHiveService(service => { 331 330 var resourceNames = ResourceNames.Split(';'); 332 331 var resourceIds = new List<Guid>(); -
branches/HeuristicLab.MetaOptimization/HeuristicLab.MetaOptimization.Test/Program.cs
r6489 r7137 128 128 vc.Parameterize(value); 129 129 Console.WriteLine("P1=33;; " + value.ToString()); 130 130 131 131 Console.ReadLine(); 132 132 } … … 766 766 // GeneticAlgorithm metaLevelAlgorithm = GetParallelMetaGA(metaOptimizationProblem); 767 767 // metaLevelAlgorithm.Engine = new HiveEngine.HiveEngine(); 768 // ServiceLocator.Instance.ClientFacadePool.UserName = "cneumuel";769 // ServiceLocator.Instance.ClientFacadePool.Password = "cneumuel";770 // ServiceLocator.Instance.StreamedClientFacadePool.UserName = "cneumuel";771 // ServiceLocator.Instance.StreamedClientFacadePool.Password = "cneumuel";768 // HiveServiceLocator.Instance.ClientFacadePool.UserName = "cneumuel"; 769 // HiveServiceLocator.Instance.ClientFacadePool.Password = "cneumuel"; 770 // HiveServiceLocator.Instance.StreamedClientFacadePool.UserName = "cneumuel"; 771 // HiveServiceLocator.Instance.StreamedClientFacadePool.Password = "cneumuel"; 772 772 // return metaLevelAlgorithm; 773 773 //}
Note: See TracChangeset
for help on using the changeset viewer.