Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/06/11 18:33:03 (13 years ago)
Author:
ascheibe
Message:

#1233

  • code cleanups for slave review
  • added switch between privileged and unprivileged sandbox
  • removed childjob management because it's not used
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/WcfService.cs

    r6357 r6371  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2929
    3030  /// <summary>
    31   /// WcfService class is implemented as a Singleton and works as a communication Layer with the Server
     31  /// WcfService class is implemented as a singleton and works as a communication layer with the Hive server
    3232  /// </summary>
    3333  public class WcfService : MarshalByRefObject, IPluginProvider {
    3434    private static WcfService instance;
     35    public DateTime ConnectedSince { get; private set; }
     36    public NetworkEnum.WcfConnState ConnState { get; private set; }
     37
    3538    /// <summary>
    3639    /// Getter for the Instance of the WcfService
     
    4851    }
    4952
    50     public DateTime ConnectedSince { get; private set; }
    51     public NetworkEnum.WcfConnState ConnState { get; private set; }
    52 
    5353    private WcfService() {
    5454      ConnState = NetworkEnum.WcfConnState.Disconnected;
     
    9999
    100100    /// <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)
    102102    /// </summary>
    103103    public void UpdateJobData(Job job, JobData jobData, Guid slaveId, JobState state) {
     
    122122
    123123    #region Plugin Methods
    124 
    125124    public Plugin GetPlugin(Guid id) {
    126125      return CallHiveService(s => s.GetPlugin(id));
     
    152151    #region Helpers
    153152    /// <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.
    155154    /// </summary>
    156155    public void Connect(Slave slaveInfo) {
     
    164163
    165164    /// <summary>
    166     /// Disconnects the Slave from the Server
     165    /// Disconnects the slave from the server
    167166    /// </summary>
    168167    public void Disconnect() {
     
    174173
    175174    /// <summary>
    176     /// Network communication Error Handler - Every network error gets logged and the connection switches to faulted state
    177     /// </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>
    179178    private void HandleNetworkError(Exception e) {
    180179      ConnState = NetworkEnum.WcfConnState.Failed;
Note: See TracChangeset for help on using the changeset viewer.