Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Hive.Server.Core/JobManager.cs @ 885

Last change on this file since 885 was 820, checked in by msteinbi, 16 years ago

First dummy implementation of the external interfaces for the Console Manager (#395)

File size: 671 bytes
RevLine 
[800]1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using HeuristicLab.Hive.Contracts.Interfaces;
6using HeuristicLab.Hive.Contracts.BusinessObjects;
7
8namespace HeuristicLab.Hive.Server.Core {
9  class JobManager: IJobManager {
[820]10
11    List<Job> jobs;
12
[800]13    #region IJobManager Members
14
[820]15    public JobManager() {
16      jobs = new List<Job>();
17
18      jobs.Add(new Job { JobId = 1, State = State.idle });
19      jobs.Add(new Job { JobId = 2, State = State.idle });
20      jobs.Add(new Job { JobId = 3, State = State.idle });
21    }
22
[800]23    public List<Job> GetAllJobs() {
[820]24      return jobs;
[800]25    }
26
27    #endregion
28  }
29}
Note: See TracBrowser for help on using the repository browser.