Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2607


Ignore:
Timestamp:
01/06/10 14:19:27 (15 years ago)
Author:
kgrading
Message:

added ToString methods (#829)

Location:
trunk/sources/HeuristicLab.Hive.Contracts/3.2
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Contracts/3.2/BusinessObjects/Client.cs

    r1998 r2607  
    4949    [DataMember]
    5050    public ClientConfig Config { get; set; }
     51
     52    public override string ToString() {
     53      return base.ToString() + ", NrOfCores: " + NrOfCores + ", NrOfFreeCores " + NrOfFreeCores + ", Login: " + Login + ", State: " + State;
     54    }
    5155  }
    5256}
  • trunk/sources/HeuristicLab.Hive.Contracts/3.2/BusinessObjects/HeartBeatData.cs

    r1449 r2607  
    3838    [DataMember]
    3939    public Dictionary<Guid, double> JobProgress { get; set; } // TODO: define Type
     40
     41    public override string ToString() {
     42      String val = "ClientId: " + ClientId + ", FreeCores: " + FreeCores;
     43      foreach (KeyValuePair<Guid, double> kvp in JobProgress) {
     44        val += "\nId" + kvp.Key + " Progress " + kvp.Value;
     45      }
     46      return val;
     47    }
    4048  }
    4149}
  • trunk/sources/HeuristicLab.Hive.Contracts/3.2/BusinessObjects/Job.cs

    r2082 r2607  
    6060    public Project Project { get; set; }
    6161
     62    public override string ToString() {
     63      return base.ToString() + "State: " + State + ", [Ressource : " + Client + " ] , DateCreated: " + DateCreated + ", DateCalculated: " + DateCalculated +
     64        "Priority: " + Priority + ", CoresNeeded: " + CoresNeeded + "AssignedResources: " + AssignedResourceIds;
     65    }
     66
    6267    public Job() {
    6368      PluginsNeeded = new List<HivePluginInfo>();
  • trunk/sources/HeuristicLab.Hive.Contracts/3.2/BusinessObjects/Resource.cs

    r1939 r2607  
    3434    [DataMember]
    3535    public string Name { get; set; }
     36
     37    public override string ToString() {
     38      return Id + " " + Name;
     39    }
    3640  }
    3741}
  • trunk/sources/HeuristicLab.Hive.Contracts/3.2/WcfSettings.cs

    r2085 r2607  
    4848      binding.ReceiveTimeout = new TimeSpan(0, 5, 0);
    4949      binding.SendTimeout = new TimeSpan(0, 5, 0);
     50      //Disabling security mode, for the moment
     51      binding.Security.Mode = SecurityMode.None;
     52     
    5053      return binding;
    5154    }
     
    9194  /// Sie sollten diesen Code nicht in einer Produktionsumgebung verwenden.
    9295  /// </remarks>
     96  /*
    9397  public class PermissiveCertificatePolicy {
    9498    string subjectName;
     
    110114      return false;
    111115    }
    112   }
     116  }             */
    113117}
Note: See TracChangeset for help on using the changeset viewer.