Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/SlaveConsoleService/SlaveConsoleCommunicator.cs @ 4423

Last change on this file since 4423 was 4423, checked in by cneumuel, 14 years ago
  • Refactored HL.Hive.Experiment. JobItems are not called HiveJobs and OptimizerJobs do not contain a hierarchy anymore.
  • Dynamic generation of jobs on a slave are not reflected on the client user interface.
  • Optimizer-Trees are now strictly synchronized with the HiveJob-Trees (also the ComputeInParallel property is taken into account when the Child HiveJobs are created)
  • Improved the way a class can report progress and lock the UI (IProgressReporter, IProgress, Progress, ProgressView)
  • Changes were made to the config-files, so that server and clients work with blade12.hpc.fh-hagenberg.at
  • Lots of small changes and bugfixes
File size: 1.4 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using HeuristicLab.Hive.Slave.Core.SlaveConsoleService.Interfaces;
6using HeuristicLab.Hive.Slave.Core.ConfigurationManager;
7using HeuristicLab.Hive.Slave.Communication;
8using HeuristicLab.Hive.Slave.Common;
9using HeuristicLab.Hive.Contracts;
10using HeuristicLab.Calendar;
11
12namespace HeuristicLab.Hive.Slave.Core.SlaveConsoleService {
13  public class SlaveConsoleCommunicator: ISlaveConsoleCommunicator {
14    #region IClientConsoleCommunicator Members
15
16    public StatusCommons GetStatusInfos() {     
17        return ConfigManager.Instance.GetStatusForClientConsole();
18    }
19
20    public void SetConnection(ConnectionContainer container) {
21      ConfigManager.Instance.SetServerIP(container);
22      WcfService.Instance.ServerIp = container.IPAdress;
23    }
24
25    public ConnectionContainer GetCurrentConnection() {
26      return new ConnectionContainer { IPAdress = WcfService.Instance.ServerIp };
27    }
28
29    public void ShutdownClient() {
30      MessageQueue.GetInstance().AddMessage(MessageContainer.MessageType.Shutdown);
31    }   
32
33    public void SetUptimeCalendar(List<Appointment> appointments) {
34      UptimeManager.Instance.SetAppointments(true, false, appointments);
35    }
36
37    public List<Appointment> GetUptimeCalendar() {
38      return UptimeManager.Instance.AppContainer.Appointments;
39    }
40
41    #endregion
42  }
43}
Note: See TracBrowser for help on using the repository browser.