Last change
on this file since 1529 was
1379,
checked in by kgrading, 16 years ago
|
splitted the sendfinishedjob / snapshot method in two seperate methods, fixed the locking, added real memory management (#529)
|
File size:
1.3 KB
|
Rev | Line | |
---|
[919] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Text;
|
---|
| 5 | using HeuristicLab.Hive.Client.Core.ClientConsoleService.Interfaces;
|
---|
[932] | 6 | using HeuristicLab.Hive.Client.Core.ConfigurationManager;
|
---|
| 7 | using HeuristicLab.Hive.Client.Communication;
|
---|
[1085] | 8 | using HeuristicLab.Hive.Client.Common;
|
---|
| 9 | using HeuristicLab.Hive.Contracts;
|
---|
[919] | 10 |
|
---|
| 11 | namespace HeuristicLab.Hive.Client.Core.ClientConsoleService {
|
---|
| 12 | public class ClientConsoleCommunicator: IClientConsoleCommunicator {
|
---|
| 13 | #region IClientConsoleCommunicator Members
|
---|
| 14 |
|
---|
[1379] | 15 | public StatusCommons GetStatusInfos() {
|
---|
[1033] | 16 | return ConfigManager.Instance.GetStatusForClientConsole();
|
---|
[919] | 17 | }
|
---|
| 18 |
|
---|
| 19 | public void SetConnection(ConnectionContainer container) {
|
---|
[944] | 20 | ConfigManager.Instance.SetServerIPAndPort(container);
|
---|
[932] | 21 | WcfService.Instance.Connect(container.IPAdress, container.Port);
|
---|
[919] | 22 | }
|
---|
| 23 |
|
---|
[932] | 24 | public void Disconnect() {
|
---|
| 25 | WcfService.Instance.Disconnect();
|
---|
[959] | 26 | }
|
---|
| 27 |
|
---|
| 28 | public ConnectionContainer GetCurrentConnection() {
|
---|
| 29 | return new ConnectionContainer { IPAdress = WcfService.Instance.ServerIP, Port = WcfService.Instance.ServerPort };
|
---|
[932] | 30 | }
|
---|
| 31 |
|
---|
[1083] | 32 | public void ShutdownClient() {
|
---|
[1085] | 33 | MessageQueue.GetInstance().AddMessage(MessageContainer.MessageType.Shutdown);
|
---|
[1083] | 34 | }
|
---|
| 35 |
|
---|
[919] | 36 | #endregion
|
---|
| 37 | }
|
---|
| 38 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.