Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/16/11 13:31:37 (13 years ago)
Author:
cneumuel
Message:

#1260

  • some changes due to the removal of Disposable (r5706)
  • copy PluginInfrastructure files into PluginCache folder in slaves (needed due to r5703)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.HiveEngine/3.3/HiveEngine.cs

    r5399 r5707  
    22using System.Collections.Generic;
    33using System.Linq;
    4 using System.Text;
     4using System.Threading;
     5using System.Threading.Tasks;
     6using HeuristicLab.Common;
     7using HeuristicLab.Core;
     8using HeuristicLab.Hive.Contracts;
     9using HeuristicLab.Hive.Contracts.BusinessObjects;
     10using HeuristicLab.Hive.Contracts.Interfaces;
     11using HeuristicLab.Hive.Contracts.ResponseObjects;
     12using HeuristicLab.Hive.ExperimentManager;
    513using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    6 using HeuristicLab.Core;
    7 using HeuristicLab.Common;
    8 using HeuristicLab.Hive.Contracts.Interfaces;
    9 using HeuristicLab.Clients.Common;
    10 using HeuristicLab.Hive.ExperimentManager;
    11 using HeuristicLab.Hive.Contracts.BusinessObjects;
    1214using HeuristicLab.PluginInfrastructure;
    13 using HeuristicLab.Hive.Contracts.ResponseObjects;
    14 using System.Threading;
    15 using HeuristicLab.Random;
    16 using System.Threading.Tasks;
    1715
    1816namespace HeuristicLab.HiveEngine {
     
    245243          Thread.Sleep(10000);
    246244          try {
    247             using (Disposable<IClientFacade> service = ServiceLocator.Instance.ClientFacadePool.GetService()) {
     245            using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.ClientFacadePool.GetService()) {
    248246              results = service.Obj.GetJobResults(remainingJobIds).Obj;
    249247            }
     
    312310        TryAndRepeat(() => {
    313311          LogMessage(string.Format("Deleting {0} jobs on hive.", jobIndices.Count));
    314           using (Disposable<IClientFacade> service = ServiceLocator.Instance.ClientFacadePool.GetService()) {
     312          using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.ClientFacadePool.GetService()) {
    315313            foreach (Guid jobId in jobIndices.Keys) {
    316314              service.Obj.DeleteJob(jobId);
     
    359357            cancellationToken.ThrowIfCancellationRequested();
    360358            try {
    361               using (Disposable<IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) {
     359              using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) {
    362360                response = service.Obj.AddJobWithGroupStrings(serializedJob, groups);
    363361                serializedJob = null;
     
    390388          cancellationToken.ThrowIfCancellationRequested();
    391389          try {
    392             using (Disposable<IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) {
     390            using (DisposableWrapper<IClientFacade> service = ServiceLocator.Instance.StreamedClientFacadePool.GetService()) {
    393391              serializedJob = service.Obj.GetLastSerializedResult(jobId).Obj;
    394392            }
Note: See TracChangeset for help on using the changeset viewer.