Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/06/11 17:14:03 (12 years ago)
Author:
ascheibe
Message:

#1215 renamed ServiceLocator to HiveServiceLocator

Location:
branches/HeuristicLab.MetaOptimization
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.MetaOptimization/HeuristicLab.HiveEngine/3.3/HiveEngine.cs

    r6984 r7137  
    9999      this.Priority = 0;
    100100      this.log = new ThreadSafeLog();
    101       this.IsAllowedPrivileged = ServiceLocator.Instance.CallHiveService((s) => s.IsAllowedPrivileged());
     101      this.IsAllowedPrivileged = HiveServiceLocator.Instance.CallHiveService((s) => s.IsAllowedPrivileged());
    102102    }
    103103
     
    144144      if (firstRun) {
    145145        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();
    147147        this.AlreadyUploadedPlugins = new List<Plugin>();
    148148        firstRun = false;
     
    288288        log.LogException(e);
    289289        throw e;
    290       }
    291       finally {
     290      } finally {
    292291        DisposeJob(refreshableJob);
    293292      }
     
    323322    private void DeleteHiveExperiment(Guid jobId) {
    324323      HiveClient.TryAndRepeat(() => {
    325         ServiceLocator.Instance.CallHiveService(s => s.DeleteJob(jobId));
     324        HiveServiceLocator.Instance.CallHiveService(s => s.DeleteJob(jobId));
    326325      }, 5, string.Format("Could not delete jobs"));
    327326    }
    328327
    329328    private List<Guid> GetResourceIds() {
    330       return ServiceLocator.Instance.CallHiveService(service => {
     329      return HiveServiceLocator.Instance.CallHiveService(service => {
    331330        var resourceNames = ResourceNames.Split(';');
    332331        var resourceIds = new List<Guid>();
  • branches/HeuristicLab.MetaOptimization/HeuristicLab.MetaOptimization.Test/Program.cs

    r6489 r7137  
    128128      vc.Parameterize(value);
    129129      Console.WriteLine("P1=33;; " + value.ToString());
    130            
     130
    131131      Console.ReadLine();
    132132    }
     
    766766    //  GeneticAlgorithm metaLevelAlgorithm = GetParallelMetaGA(metaOptimizationProblem);
    767767    //  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";
    772772    //  return metaLevelAlgorithm;
    773773    //}
Note: See TracChangeset for help on using the changeset viewer.