Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/06/09 14:21:11 (15 years ago)
Author:
msteinbi
Message:

Main structure of Sheduler (including Interface and first minimalistic implementation) (#507)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.Core/ServiceLocator.cs

    r1099 r1272  
    2525using HeuristicLab.Hive.Contracts.Interfaces;
    2626using HeuristicLab.Hive.Server.Core;
     27using HeuristicLab.Hive.Server.Core.InternalInterfaces;
    2728
    2829/// <summary>
     
    6162  private static IJobResultsAdapter jobResultsAdapter = null;
    6263
     64  private static IScheduler scheduler = null;
     65
    6366
    6467  /// <summary>
     
    239242    return jobResultsAdapter;
    240243  }
     244
     245  /// <summary>
     246  /// Gets the scheduler
     247  /// </summary>
     248  /// <returns></returns>
     249  [MethodImpl(MethodImplOptions.Synchronized)]
     250  public static IScheduler GetScheduler() {
     251    if (scheduler == null) {
     252      scheduler = discoveryService.GetInstances<IScheduler>()[0];
     253    }
     254
     255    return scheduler;
     256  }
    241257}
Note: See TracChangeset for help on using the changeset viewer.