Changeset 6371 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/WcfService.cs
- Timestamp:
- 06/06/11 18:33:03 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/WcfService.cs
r6357 r6371 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 0Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 29 29 30 30 /// <summary> 31 /// WcfService class is implemented as a Singleton and works as a communication Layer with the Server31 /// WcfService class is implemented as a singleton and works as a communication layer with the Hive server 32 32 /// </summary> 33 33 public class WcfService : MarshalByRefObject, IPluginProvider { 34 34 private static WcfService instance; 35 public DateTime ConnectedSince { get; private set; } 36 public NetworkEnum.WcfConnState ConnState { get; private set; } 37 35 38 /// <summary> 36 39 /// Getter for the Instance of the WcfService … … 48 51 } 49 52 50 public DateTime ConnectedSince { get; private set; }51 public NetworkEnum.WcfConnState ConnState { get; private set; }52 53 53 private WcfService() { 54 54 ConnState = NetworkEnum.WcfConnState.Disconnected; … … 99 99 100 100 /// <summary> 101 /// Uploads the JobData and sets a new jobState (while correctly setting Transferring state)101 /// Uploads the jobData and sets a new jobState (while correctly setting Transferring state) 102 102 /// </summary> 103 103 public void UpdateJobData(Job job, JobData jobData, Guid slaveId, JobState state) { … … 122 122 123 123 #region Plugin Methods 124 125 124 public Plugin GetPlugin(Guid id) { 126 125 return CallHiveService(s => s.GetPlugin(id)); … … 152 151 #region Helpers 153 152 /// <summary> 154 /// Connects with the Server, registers the events and fires the Connected (and quiet possibly the ConnectionRestored) Event.153 /// Connects with the server, registers the events and fires the Connected event. 155 154 /// </summary> 156 155 public void Connect(Slave slaveInfo) { … … 164 163 165 164 /// <summary> 166 /// Disconnects the Slave from the Server165 /// Disconnects the slave from the server 167 166 /// </summary> 168 167 public void Disconnect() { … … 174 173 175 174 /// <summary> 176 /// Network communication Error Handler - Every network error gets logged and the connection switches to faulted state177 /// </summary>178 /// < param name="e">The Exception</param>175 /// Network communication error handler. 176 /// Every network error gets logged and the connection switches to faulted state 177 /// </summary> 179 178 private void HandleNetworkError(Exception e) { 180 179 ConnState = NetworkEnum.WcfConnState.Failed;
Note: See TracChangeset
for help on using the changeset viewer.