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
|
Rev | Line | |
---|
[800] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Text;
|
---|
| 5 | using HeuristicLab.Hive.Contracts.Interfaces;
|
---|
| 6 | using HeuristicLab.Hive.Contracts.BusinessObjects;
|
---|
| 7 |
|
---|
| 8 | namespace 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.