- Timestamp:
- 06/13/11 00:27:59 (13 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/HiveClient.cs
r6381 r6407 25 25 using System.IO; 26 26 using System.Linq; 27 using System.Security.Cryptography; 27 28 using System.Threading; 28 29 using HeuristicLab.Common; … … 243 244 string configFileName = Path.GetFileName(ConfigurationManager.OpenExeConfiguration(exeFilePath).FilePath); 244 245 string configFilePath = ConfigurationManager.OpenExeConfiguration(exeFilePath).FilePath; 245 246 Plugin configPlugin = new Plugin() { Name = "Configuration", IsLocal = true, Version = new Version() }; 247 PluginData configFile = new PluginData() { FileName = configFileName, Data = File.ReadAllBytes(configFilePath) }; 246 byte[] hash; 247 248 byte[] data = File.ReadAllBytes(configFilePath); 249 using (SHA1 sha1 = SHA1.Create()) { 250 hash = sha1.ComputeHash(data); 251 } 252 253 Plugin configPlugin = new Plugin() { Name = "Configuration", IsLocal = true, Version = new Version(), Hash = hash }; 254 PluginData configFile = new PluginData() { FileName = configFileName, Data = data }; 248 255 configPlugin.Id = service.AddPlugin(configPlugin, new List<PluginData> { configFile }); 249 256 return configPlugin; -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/ServiceClients/HiveServiceClient.cs
r6269 r6407 13 13 14 14 [System.Diagnostics.DebuggerStepThroughAttribute()] 15 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 16 [System.Runtime.Serialization.DataContractAttribute(Name = "PluginData", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 17 "nsfer")] 18 [System.SerializableAttribute()] 19 public partial class PluginData : HeuristicLab.Clients.Hive.HiveItem { 20 21 [System.Runtime.Serialization.OptionalFieldAttribute()] 22 private byte[] DataField; 23 24 [System.Runtime.Serialization.OptionalFieldAttribute()] 25 private string FileNameField; 26 27 [System.Runtime.Serialization.OptionalFieldAttribute()] 28 private System.Guid PluginIdField; 29 30 [System.Runtime.Serialization.DataMemberAttribute()] 31 public byte[] Data { 32 get { 33 return this.DataField; 34 } 35 set { 36 if ((object.ReferenceEquals(this.DataField, value) != true)) { 37 this.DataField = value; 38 this.RaisePropertyChanged("Data"); 39 } 40 } 41 } 42 43 [System.Runtime.Serialization.DataMemberAttribute()] 44 public string FileName { 45 get { 46 return this.FileNameField; 47 } 48 set { 49 if ((object.ReferenceEquals(this.FileNameField, value) != true)) { 50 this.FileNameField = value; 51 this.RaisePropertyChanged("FileName"); 52 } 53 } 54 } 55 56 [System.Runtime.Serialization.DataMemberAttribute()] 57 public System.Guid PluginId { 58 get { 59 return this.PluginIdField; 60 } 61 set { 62 if ((this.PluginIdField.Equals(value) != true)) { 63 this.PluginIdField = value; 64 this.RaisePropertyChanged("PluginId"); 65 } 66 } 67 } 68 } 69 70 [System.Diagnostics.DebuggerStepThroughAttribute()] 71 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 72 [System.Runtime.Serialization.DataContractAttribute(Name = "HiveItem", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 73 "nsfer")] 74 [System.SerializableAttribute()] 75 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.NamedHiveItem))] 76 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Resource))] 77 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Slave))] 78 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.SlaveGroup))] 79 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.HiveExperiment))] 80 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Plugin))] 81 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.LightweightJob))] 82 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.StateLog))] 83 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Job))] 84 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Appointment))] 85 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.PluginData))] 86 public partial class HiveItem : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { 87 88 [System.NonSerializedAttribute()] 89 private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 90 91 [System.Runtime.Serialization.OptionalFieldAttribute()] 92 private System.Guid IdField; 93 94 public System.Runtime.Serialization.ExtensionDataObject ExtensionData { 95 get { 96 return this.extensionDataField; 97 } 98 set { 99 this.extensionDataField = value; 100 } 101 } 102 103 [System.Runtime.Serialization.DataMemberAttribute()] 104 public System.Guid Id { 105 get { 106 return this.IdField; 107 } 108 set { 109 if ((this.IdField.Equals(value) != true)) { 110 this.IdField = value; 111 this.RaisePropertyChanged("Id"); 112 } 113 } 114 } 115 116 public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 117 } 118 119 [System.Diagnostics.DebuggerStepThroughAttribute()] 120 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 121 [System.Runtime.Serialization.DataContractAttribute(Name = "NamedHiveItem", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 122 "nsfer")] 123 [System.SerializableAttribute()] 124 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Resource))] 125 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Slave))] 126 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.SlaveGroup))] 127 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.HiveExperiment))] 128 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Plugin))] 129 public partial class NamedHiveItem : HeuristicLab.Clients.Hive.HiveItem { 130 131 [System.Runtime.Serialization.OptionalFieldAttribute()] 132 private string DescriptionField; 133 134 [System.Runtime.Serialization.OptionalFieldAttribute()] 135 private string NameField; 136 137 [System.Runtime.Serialization.DataMemberAttribute()] 138 public string Description { 139 get { 140 return this.DescriptionField; 141 } 142 set { 143 if ((object.ReferenceEquals(this.DescriptionField, value) != true)) { 144 this.DescriptionField = value; 145 this.RaisePropertyChanged("Description"); 146 } 147 } 148 } 149 150 [System.Runtime.Serialization.DataMemberAttribute()] 151 public string Name { 152 get { 153 return this.NameField; 154 } 155 set { 156 if ((object.ReferenceEquals(this.NameField, value) != true)) { 157 this.NameField = value; 158 this.RaisePropertyChanged("Name"); 159 } 160 } 161 } 162 } 163 164 [System.Diagnostics.DebuggerStepThroughAttribute()] 165 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 166 [System.Runtime.Serialization.DataContractAttribute(Name = "Resource", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 167 "nsfer")] 168 [System.SerializableAttribute()] 169 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Slave))] 170 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.SlaveGroup))] 171 public partial class Resource : HeuristicLab.Clients.Hive.NamedHiveItem { 172 173 [System.Runtime.Serialization.OptionalFieldAttribute()] 174 private System.Nullable<System.Guid> ParentResourceIdField; 175 176 [System.Runtime.Serialization.DataMemberAttribute()] 177 public System.Nullable<System.Guid> ParentResourceId { 178 get { 179 return this.ParentResourceIdField; 180 } 181 set { 182 if ((this.ParentResourceIdField.Equals(value) != true)) { 183 this.ParentResourceIdField = value; 184 this.RaisePropertyChanged("ParentResourceId"); 185 } 186 } 187 } 188 } 189 190 [System.Diagnostics.DebuggerStepThroughAttribute()] 191 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 192 [System.Runtime.Serialization.DataContractAttribute(Name = "Slave", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 193 "nsfer")] 194 [System.SerializableAttribute()] 195 public partial class Slave : HeuristicLab.Clients.Hive.Resource { 196 197 [System.Runtime.Serialization.OptionalFieldAttribute()] 198 private System.Nullable<int> CoresField; 199 200 [System.Runtime.Serialization.OptionalFieldAttribute()] 201 private HeuristicLab.Clients.Hive.CpuArchitecture CpuArchitectureField; 202 203 [System.Runtime.Serialization.OptionalFieldAttribute()] 204 private System.Nullable<int> CpuSpeedField; 205 206 [System.Runtime.Serialization.OptionalFieldAttribute()] 207 private double CpuUtilizationField; 208 209 [System.Runtime.Serialization.OptionalFieldAttribute()] 210 private System.Nullable<int> FreeCoresField; 211 212 [System.Runtime.Serialization.OptionalFieldAttribute()] 213 private System.Nullable<int> FreeMemoryField; 214 215 [System.Runtime.Serialization.OptionalFieldAttribute()] 216 private bool IsAllowedToCalculateField; 217 218 [System.Runtime.Serialization.OptionalFieldAttribute()] 219 private System.Nullable<System.DateTime> LastHeartbeatField; 220 221 [System.Runtime.Serialization.OptionalFieldAttribute()] 222 private System.Nullable<int> MemoryField; 223 224 [System.Runtime.Serialization.OptionalFieldAttribute()] 225 private string OperatingSystemField; 226 227 [System.Runtime.Serialization.OptionalFieldAttribute()] 228 private HeuristicLab.Clients.Hive.SlaveState SlaveStateField; 229 230 [System.Runtime.Serialization.DataMemberAttribute()] 231 public System.Nullable<int> Cores { 232 get { 233 return this.CoresField; 234 } 235 set { 236 if ((this.CoresField.Equals(value) != true)) { 237 this.CoresField = value; 238 this.RaisePropertyChanged("Cores"); 239 } 240 } 241 } 242 243 [System.Runtime.Serialization.DataMemberAttribute()] 244 public HeuristicLab.Clients.Hive.CpuArchitecture CpuArchitecture { 245 get { 246 return this.CpuArchitectureField; 247 } 248 set { 249 if ((this.CpuArchitectureField.Equals(value) != true)) { 250 this.CpuArchitectureField = value; 251 this.RaisePropertyChanged("CpuArchitecture"); 252 } 253 } 254 } 255 256 [System.Runtime.Serialization.DataMemberAttribute()] 257 public System.Nullable<int> CpuSpeed { 258 get { 259 return this.CpuSpeedField; 260 } 261 set { 262 if ((this.CpuSpeedField.Equals(value) != true)) { 263 this.CpuSpeedField = value; 264 this.RaisePropertyChanged("CpuSpeed"); 265 } 266 } 267 } 268 269 [System.Runtime.Serialization.DataMemberAttribute()] 270 public double CpuUtilization { 271 get { 272 return this.CpuUtilizationField; 273 } 274 set { 275 if ((this.CpuUtilizationField.Equals(value) != true)) { 276 this.CpuUtilizationField = value; 277 this.RaisePropertyChanged("CpuUtilization"); 278 } 279 } 280 } 281 282 [System.Runtime.Serialization.DataMemberAttribute()] 283 public System.Nullable<int> FreeCores { 284 get { 285 return this.FreeCoresField; 286 } 287 set { 288 if ((this.FreeCoresField.Equals(value) != true)) { 289 this.FreeCoresField = value; 290 this.RaisePropertyChanged("FreeCores"); 291 } 292 } 293 } 294 295 [System.Runtime.Serialization.DataMemberAttribute()] 296 public System.Nullable<int> FreeMemory { 297 get { 298 return this.FreeMemoryField; 299 } 300 set { 301 if ((this.FreeMemoryField.Equals(value) != true)) { 302 this.FreeMemoryField = value; 303 this.RaisePropertyChanged("FreeMemory"); 304 } 305 } 306 } 307 308 [System.Runtime.Serialization.DataMemberAttribute()] 309 public bool IsAllowedToCalculate { 310 get { 311 return this.IsAllowedToCalculateField; 312 } 313 set { 314 if ((this.IsAllowedToCalculateField.Equals(value) != true)) { 315 this.IsAllowedToCalculateField = value; 316 this.RaisePropertyChanged("IsAllowedToCalculate"); 317 } 318 } 319 } 320 321 [System.Runtime.Serialization.DataMemberAttribute()] 322 public System.Nullable<System.DateTime> LastHeartbeat { 323 get { 324 return this.LastHeartbeatField; 325 } 326 set { 327 if ((this.LastHeartbeatField.Equals(value) != true)) { 328 this.LastHeartbeatField = value; 329 this.RaisePropertyChanged("LastHeartbeat"); 330 } 331 } 332 } 333 334 [System.Runtime.Serialization.DataMemberAttribute()] 335 public System.Nullable<int> Memory { 336 get { 337 return this.MemoryField; 338 } 339 set { 340 if ((this.MemoryField.Equals(value) != true)) { 341 this.MemoryField = value; 342 this.RaisePropertyChanged("Memory"); 343 } 344 } 345 } 346 347 [System.Runtime.Serialization.DataMemberAttribute()] 348 public string OperatingSystem { 349 get { 350 return this.OperatingSystemField; 351 } 352 set { 353 if ((object.ReferenceEquals(this.OperatingSystemField, value) != true)) { 354 this.OperatingSystemField = value; 355 this.RaisePropertyChanged("OperatingSystem"); 356 } 357 } 358 } 359 360 [System.Runtime.Serialization.DataMemberAttribute()] 361 public HeuristicLab.Clients.Hive.SlaveState SlaveState { 362 get { 363 return this.SlaveStateField; 364 } 365 set { 366 if ((this.SlaveStateField.Equals(value) != true)) { 367 this.SlaveStateField = value; 368 this.RaisePropertyChanged("SlaveState"); 369 } 370 } 371 } 372 } 373 374 [System.Diagnostics.DebuggerStepThroughAttribute()] 375 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 376 [System.Runtime.Serialization.DataContractAttribute(Name = "SlaveGroup", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 377 "nsfer")] 378 [System.SerializableAttribute()] 379 public partial class SlaveGroup : HeuristicLab.Clients.Hive.Resource { 380 } 381 382 [System.Diagnostics.DebuggerStepThroughAttribute()] 383 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 384 [System.Runtime.Serialization.DataContractAttribute(Name = "HiveExperiment", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 385 "nsfer")] 386 [System.SerializableAttribute()] 387 public partial class HiveExperiment : HeuristicLab.Clients.Hive.NamedHiveItem { 388 389 [System.Runtime.Serialization.OptionalFieldAttribute()] 390 private int CalculatingCountField; 391 392 [System.Runtime.Serialization.OptionalFieldAttribute()] 393 private System.DateTime DateCreatedField; 394 395 [System.Runtime.Serialization.OptionalFieldAttribute()] 396 private int FinishedCountField; 397 398 [System.Runtime.Serialization.OptionalFieldAttribute()] 399 private int JobCountField; 400 401 [System.Runtime.Serialization.OptionalFieldAttribute()] 402 private System.Nullable<System.DateTime> LastAccessedField; 403 404 [System.Runtime.Serialization.OptionalFieldAttribute()] 405 private System.Guid OwnerUserIdField; 406 407 [System.Runtime.Serialization.OptionalFieldAttribute()] 408 private string ResourceNamesField; 409 410 [System.Runtime.Serialization.DataMemberAttribute()] 411 public int CalculatingCount { 412 get { 413 return this.CalculatingCountField; 414 } 415 set { 416 if ((this.CalculatingCountField.Equals(value) != true)) { 417 this.CalculatingCountField = value; 418 this.RaisePropertyChanged("CalculatingCount"); 419 } 420 } 421 } 422 423 [System.Runtime.Serialization.DataMemberAttribute()] 424 public System.DateTime DateCreated { 425 get { 426 return this.DateCreatedField; 427 } 428 set { 429 if ((this.DateCreatedField.Equals(value) != true)) { 430 this.DateCreatedField = value; 431 this.RaisePropertyChanged("DateCreated"); 432 } 433 } 434 } 435 436 [System.Runtime.Serialization.DataMemberAttribute()] 437 public int FinishedCount { 438 get { 439 return this.FinishedCountField; 440 } 441 set { 442 if ((this.FinishedCountField.Equals(value) != true)) { 443 this.FinishedCountField = value; 444 this.RaisePropertyChanged("FinishedCount"); 445 } 446 } 447 } 448 449 [System.Runtime.Serialization.DataMemberAttribute()] 450 public int JobCount { 451 get { 452 return this.JobCountField; 453 } 454 set { 455 if ((this.JobCountField.Equals(value) != true)) { 456 this.JobCountField = value; 457 this.RaisePropertyChanged("JobCount"); 458 } 459 } 460 } 461 462 [System.Runtime.Serialization.DataMemberAttribute()] 463 public System.Nullable<System.DateTime> LastAccessed { 464 get { 465 return this.LastAccessedField; 466 } 467 set { 468 if ((this.LastAccessedField.Equals(value) != true)) { 469 this.LastAccessedField = value; 470 this.RaisePropertyChanged("LastAccessed"); 471 } 472 } 473 } 474 475 [System.Runtime.Serialization.DataMemberAttribute()] 476 public System.Guid OwnerUserId { 477 get { 478 return this.OwnerUserIdField; 479 } 480 set { 481 if ((this.OwnerUserIdField.Equals(value) != true)) { 482 this.OwnerUserIdField = value; 483 this.RaisePropertyChanged("OwnerUserId"); 484 } 485 } 486 } 487 488 [System.Runtime.Serialization.DataMemberAttribute()] 489 public string ResourceNames { 490 get { 491 return this.ResourceNamesField; 492 } 493 set { 494 if ((object.ReferenceEquals(this.ResourceNamesField, value) != true)) { 495 this.ResourceNamesField = value; 496 this.RaisePropertyChanged("ResourceNames"); 497 } 498 } 499 } 500 } 501 502 [System.Diagnostics.DebuggerStepThroughAttribute()] 503 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 504 [System.Runtime.Serialization.DataContractAttribute(Name = "Plugin", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 505 "nsfer")] 506 [System.SerializableAttribute()] 507 public partial class Plugin : HeuristicLab.Clients.Hive.NamedHiveItem { 508 509 [System.Runtime.Serialization.OptionalFieldAttribute()] 510 private System.DateTime DateCreatedField; 511 512 [System.Runtime.Serialization.OptionalFieldAttribute()] 513 private byte[] HashField; 514 515 [System.Runtime.Serialization.OptionalFieldAttribute()] 516 private bool IsLocalField; 517 518 [System.Runtime.Serialization.OptionalFieldAttribute()] 519 private System.Guid UserIdField; 520 521 [System.Runtime.Serialization.OptionalFieldAttribute()] 522 private System.Version VersionField; 523 524 [System.Runtime.Serialization.DataMemberAttribute()] 525 public System.DateTime DateCreated { 526 get { 527 return this.DateCreatedField; 528 } 529 set { 530 if ((this.DateCreatedField.Equals(value) != true)) { 531 this.DateCreatedField = value; 532 this.RaisePropertyChanged("DateCreated"); 533 } 534 } 535 } 536 537 [System.Runtime.Serialization.DataMemberAttribute()] 538 public byte[] Hash { 539 get { 540 return this.HashField; 541 } 542 set { 543 if ((object.ReferenceEquals(this.HashField, value) != true)) { 544 this.HashField = value; 545 this.RaisePropertyChanged("Hash"); 546 } 547 } 548 } 549 550 [System.Runtime.Serialization.DataMemberAttribute()] 551 public bool IsLocal { 552 get { 553 return this.IsLocalField; 554 } 555 set { 556 if ((this.IsLocalField.Equals(value) != true)) { 557 this.IsLocalField = value; 558 this.RaisePropertyChanged("IsLocal"); 559 } 560 } 561 } 562 563 [System.Runtime.Serialization.DataMemberAttribute()] 564 public System.Guid UserId { 565 get { 566 return this.UserIdField; 567 } 568 set { 569 if ((this.UserIdField.Equals(value) != true)) { 570 this.UserIdField = value; 571 this.RaisePropertyChanged("UserId"); 572 } 573 } 574 } 575 576 [System.Runtime.Serialization.DataMemberAttribute()] 577 public System.Version Version { 578 get { 579 return this.VersionField; 580 } 581 set { 582 if ((object.ReferenceEquals(this.VersionField, value) != true)) { 583 this.VersionField = value; 584 this.RaisePropertyChanged("Version"); 585 } 586 } 587 } 588 } 589 590 [System.Diagnostics.DebuggerStepThroughAttribute()] 591 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 592 [System.Runtime.Serialization.DataContractAttribute(Name = "LightweightJob", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 593 "nsfer")] 594 [System.SerializableAttribute()] 595 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Job))] 596 public partial class LightweightJob : HeuristicLab.Clients.Hive.HiveItem { 597 598 [System.Runtime.Serialization.OptionalFieldAttribute()] 599 private System.Nullable<HeuristicLab.Clients.Hive.Command> CommandField; 600 601 [System.Runtime.Serialization.OptionalFieldAttribute()] 602 private System.TimeSpan ExecutionTimeField; 603 604 [System.Runtime.Serialization.OptionalFieldAttribute()] 605 private System.DateTime LastJobDataUpdateField; 606 607 [System.Runtime.Serialization.OptionalFieldAttribute()] 608 private System.Nullable<System.Guid> ParentJobIdField; 609 610 [System.Runtime.Serialization.OptionalFieldAttribute()] 611 private HeuristicLab.Clients.Hive.JobState StateField; 612 613 [System.Runtime.Serialization.OptionalFieldAttribute()] 614 private System.Collections.Generic.List<HeuristicLab.Clients.Hive.StateLog> StateLogField; 615 616 [System.Runtime.Serialization.DataMemberAttribute()] 617 public System.Nullable<HeuristicLab.Clients.Hive.Command> Command { 618 get { 619 return this.CommandField; 620 } 621 set { 622 if ((this.CommandField.Equals(value) != true)) { 623 this.CommandField = value; 624 this.RaisePropertyChanged("Command"); 625 } 626 } 627 } 628 629 [System.Runtime.Serialization.DataMemberAttribute()] 630 public System.TimeSpan ExecutionTime { 631 get { 632 return this.ExecutionTimeField; 633 } 634 set { 635 if ((this.ExecutionTimeField.Equals(value) != true)) { 636 this.ExecutionTimeField = value; 637 this.RaisePropertyChanged("ExecutionTime"); 638 } 639 } 640 } 641 642 [System.Runtime.Serialization.DataMemberAttribute()] 643 public System.DateTime LastJobDataUpdate { 644 get { 645 return this.LastJobDataUpdateField; 646 } 647 set { 648 if ((this.LastJobDataUpdateField.Equals(value) != true)) { 649 this.LastJobDataUpdateField = value; 650 this.RaisePropertyChanged("LastJobDataUpdate"); 651 } 652 } 653 } 654 655 [System.Runtime.Serialization.DataMemberAttribute()] 656 public System.Nullable<System.Guid> ParentJobId { 657 get { 658 return this.ParentJobIdField; 659 } 660 set { 661 if ((this.ParentJobIdField.Equals(value) != true)) { 662 this.ParentJobIdField = value; 663 this.RaisePropertyChanged("ParentJobId"); 664 } 665 } 666 } 667 668 [System.Runtime.Serialization.DataMemberAttribute()] 669 public HeuristicLab.Clients.Hive.JobState State { 670 get { 671 return this.StateField; 672 } 673 set { 674 if ((this.StateField.Equals(value) != true)) { 675 this.StateField = value; 676 this.RaisePropertyChanged("State"); 677 } 678 } 679 } 680 681 [System.Runtime.Serialization.DataMemberAttribute()] 682 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.StateLog> StateLog { 683 get { 684 return this.StateLogField; 685 } 686 set { 687 if ((object.ReferenceEquals(this.StateLogField, value) != true)) { 688 this.StateLogField = value; 689 this.RaisePropertyChanged("StateLog"); 690 } 691 } 692 } 693 } 694 695 [System.Diagnostics.DebuggerStepThroughAttribute()] 696 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 697 [System.Runtime.Serialization.DataContractAttribute(Name = "StateLog", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 698 "nsfer")] 699 [System.SerializableAttribute()] 700 public partial class StateLog : HeuristicLab.Clients.Hive.HiveItem { 701 702 [System.Runtime.Serialization.OptionalFieldAttribute()] 703 private System.DateTime DateTimeField; 704 705 [System.Runtime.Serialization.OptionalFieldAttribute()] 706 private string ExceptionField; 707 708 [System.Runtime.Serialization.OptionalFieldAttribute()] 709 private System.Guid JobIdField; 710 711 [System.Runtime.Serialization.OptionalFieldAttribute()] 712 private System.Nullable<System.Guid> SlaveIdField; 713 714 [System.Runtime.Serialization.OptionalFieldAttribute()] 715 private HeuristicLab.Clients.Hive.JobState StateField; 716 717 [System.Runtime.Serialization.OptionalFieldAttribute()] 718 private System.Nullable<System.Guid> UserIdField; 719 720 [System.Runtime.Serialization.DataMemberAttribute()] 721 public System.DateTime DateTime { 722 get { 723 return this.DateTimeField; 724 } 725 set { 726 if ((this.DateTimeField.Equals(value) != true)) { 727 this.DateTimeField = value; 728 this.RaisePropertyChanged("DateTime"); 729 } 730 } 731 } 732 733 [System.Runtime.Serialization.DataMemberAttribute()] 734 public string Exception { 735 get { 736 return this.ExceptionField; 737 } 738 set { 739 if ((object.ReferenceEquals(this.ExceptionField, value) != true)) { 740 this.ExceptionField = value; 741 this.RaisePropertyChanged("Exception"); 742 } 743 } 744 } 745 746 [System.Runtime.Serialization.DataMemberAttribute()] 747 public System.Guid JobId { 748 get { 749 return this.JobIdField; 750 } 751 set { 752 if ((this.JobIdField.Equals(value) != true)) { 753 this.JobIdField = value; 754 this.RaisePropertyChanged("JobId"); 755 } 756 } 757 } 758 759 [System.Runtime.Serialization.DataMemberAttribute()] 760 public System.Nullable<System.Guid> SlaveId { 761 get { 762 return this.SlaveIdField; 763 } 764 set { 765 if ((this.SlaveIdField.Equals(value) != true)) { 766 this.SlaveIdField = value; 767 this.RaisePropertyChanged("SlaveId"); 768 } 769 } 770 } 771 772 [System.Runtime.Serialization.DataMemberAttribute()] 773 public HeuristicLab.Clients.Hive.JobState State { 774 get { 775 return this.StateField; 776 } 777 set { 778 if ((this.StateField.Equals(value) != true)) { 779 this.StateField = value; 780 this.RaisePropertyChanged("State"); 781 } 782 } 783 } 784 785 [System.Runtime.Serialization.DataMemberAttribute()] 786 public System.Nullable<System.Guid> UserId { 787 get { 788 return this.UserIdField; 789 } 790 set { 791 if ((this.UserIdField.Equals(value) != true)) { 792 this.UserIdField = value; 793 this.RaisePropertyChanged("UserId"); 794 } 795 } 796 } 797 } 798 799 [System.Diagnostics.DebuggerStepThroughAttribute()] 800 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 801 [System.Runtime.Serialization.DataContractAttribute(Name = "Job", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 802 "nsfer")] 803 [System.SerializableAttribute()] 804 public partial class Job : HeuristicLab.Clients.Hive.LightweightJob { 805 806 [System.Runtime.Serialization.OptionalFieldAttribute()] 807 private int CoresNeededField; 808 809 [System.Runtime.Serialization.OptionalFieldAttribute()] 810 private bool FinishWhenChildJobsFinishedField; 811 812 [System.Runtime.Serialization.OptionalFieldAttribute()] 813 private System.Guid HiveExperimentIdField; 814 815 [System.Runtime.Serialization.OptionalFieldAttribute()] 816 private bool IsParentJobField; 817 818 [System.Runtime.Serialization.OptionalFieldAttribute()] 819 private bool IsPrivilegedField; 820 821 [System.Runtime.Serialization.OptionalFieldAttribute()] 822 private System.Nullable<System.DateTime> LastHeartbeatField; 823 824 [System.Runtime.Serialization.OptionalFieldAttribute()] 825 private int MemoryNeededField; 826 827 [System.Runtime.Serialization.OptionalFieldAttribute()] 828 private System.Collections.Generic.List<System.Guid> PluginsNeededIdsField; 829 830 [System.Runtime.Serialization.OptionalFieldAttribute()] 831 private int PriorityField; 832 833 [System.Runtime.Serialization.DataMemberAttribute()] 834 public int CoresNeeded { 835 get { 836 return this.CoresNeededField; 837 } 838 set { 839 if ((this.CoresNeededField.Equals(value) != true)) { 840 this.CoresNeededField = value; 841 this.RaisePropertyChanged("CoresNeeded"); 842 } 843 } 844 } 845 846 [System.Runtime.Serialization.DataMemberAttribute()] 847 public bool FinishWhenChildJobsFinished { 848 get { 849 return this.FinishWhenChildJobsFinishedField; 850 } 851 set { 852 if ((this.FinishWhenChildJobsFinishedField.Equals(value) != true)) { 853 this.FinishWhenChildJobsFinishedField = value; 854 this.RaisePropertyChanged("FinishWhenChildJobsFinished"); 855 } 856 } 857 } 858 859 [System.Runtime.Serialization.DataMemberAttribute()] 860 public System.Guid HiveExperimentId { 861 get { 862 return this.HiveExperimentIdField; 863 } 864 set { 865 if ((this.HiveExperimentIdField.Equals(value) != true)) { 866 this.HiveExperimentIdField = value; 867 this.RaisePropertyChanged("HiveExperimentId"); 868 } 869 } 870 } 871 872 [System.Runtime.Serialization.DataMemberAttribute()] 873 public bool IsParentJob { 874 get { 875 return this.IsParentJobField; 876 } 877 set { 878 if ((this.IsParentJobField.Equals(value) != true)) { 879 this.IsParentJobField = value; 880 this.RaisePropertyChanged("IsParentJob"); 881 } 882 } 883 } 884 885 [System.Runtime.Serialization.DataMemberAttribute()] 886 public bool IsPrivileged { 887 get { 888 return this.IsPrivilegedField; 889 } 890 set { 891 if ((this.IsPrivilegedField.Equals(value) != true)) { 892 this.IsPrivilegedField = value; 893 this.RaisePropertyChanged("IsPrivileged"); 894 } 895 } 896 } 897 898 [System.Runtime.Serialization.DataMemberAttribute()] 899 public System.Nullable<System.DateTime> LastHeartbeat { 900 get { 901 return this.LastHeartbeatField; 902 } 903 set { 904 if ((this.LastHeartbeatField.Equals(value) != true)) { 905 this.LastHeartbeatField = value; 906 this.RaisePropertyChanged("LastHeartbeat"); 907 } 908 } 909 } 910 911 [System.Runtime.Serialization.DataMemberAttribute()] 912 public int MemoryNeeded { 913 get { 914 return this.MemoryNeededField; 915 } 916 set { 917 if ((this.MemoryNeededField.Equals(value) != true)) { 918 this.MemoryNeededField = value; 919 this.RaisePropertyChanged("MemoryNeeded"); 920 } 921 } 922 } 923 924 [System.Runtime.Serialization.DataMemberAttribute()] 925 public System.Collections.Generic.List<System.Guid> PluginsNeededIds { 926 get { 927 return this.PluginsNeededIdsField; 928 } 929 set { 930 if ((object.ReferenceEquals(this.PluginsNeededIdsField, value) != true)) { 931 this.PluginsNeededIdsField = value; 932 this.RaisePropertyChanged("PluginsNeededIds"); 933 } 934 } 935 } 936 937 [System.Runtime.Serialization.DataMemberAttribute()] 938 public int Priority { 939 get { 940 return this.PriorityField; 941 } 942 set { 943 if ((this.PriorityField.Equals(value) != true)) { 944 this.PriorityField = value; 945 this.RaisePropertyChanged("Priority"); 946 } 947 } 948 } 949 } 950 951 [System.Diagnostics.DebuggerStepThroughAttribute()] 952 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 953 [System.Runtime.Serialization.DataContractAttribute(Name = "Appointment", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 954 "nsfer")] 955 [System.SerializableAttribute()] 956 public partial class Appointment : HeuristicLab.Clients.Hive.HiveItem { 957 958 [System.Runtime.Serialization.OptionalFieldAttribute()] 959 private bool AllDayEventField; 960 961 [System.Runtime.Serialization.OptionalFieldAttribute()] 962 private System.DateTime EndDateField; 963 964 [System.Runtime.Serialization.OptionalFieldAttribute()] 965 private bool RecurringField; 966 967 [System.Runtime.Serialization.OptionalFieldAttribute()] 968 private System.Guid RecurringIdField; 969 970 [System.Runtime.Serialization.OptionalFieldAttribute()] 971 private System.Guid ResourceIdField; 972 973 [System.Runtime.Serialization.OptionalFieldAttribute()] 974 private System.DateTime StartDateField; 975 976 [System.Runtime.Serialization.DataMemberAttribute()] 977 public bool AllDayEvent { 978 get { 979 return this.AllDayEventField; 980 } 981 set { 982 if ((this.AllDayEventField.Equals(value) != true)) { 983 this.AllDayEventField = value; 984 this.RaisePropertyChanged("AllDayEvent"); 985 } 986 } 987 } 988 989 [System.Runtime.Serialization.DataMemberAttribute()] 990 public System.DateTime EndDate { 991 get { 992 return this.EndDateField; 993 } 994 set { 995 if ((this.EndDateField.Equals(value) != true)) { 996 this.EndDateField = value; 997 this.RaisePropertyChanged("EndDate"); 998 } 999 } 1000 } 1001 1002 [System.Runtime.Serialization.DataMemberAttribute()] 1003 public bool Recurring { 1004 get { 1005 return this.RecurringField; 1006 } 1007 set { 1008 if ((this.RecurringField.Equals(value) != true)) { 1009 this.RecurringField = value; 1010 this.RaisePropertyChanged("Recurring"); 1011 } 1012 } 1013 } 1014 1015 [System.Runtime.Serialization.DataMemberAttribute()] 1016 public System.Guid RecurringId { 1017 get { 1018 return this.RecurringIdField; 1019 } 1020 set { 1021 if ((this.RecurringIdField.Equals(value) != true)) { 1022 this.RecurringIdField = value; 1023 this.RaisePropertyChanged("RecurringId"); 1024 } 1025 } 1026 } 1027 1028 [System.Runtime.Serialization.DataMemberAttribute()] 1029 public System.Guid ResourceId { 1030 get { 1031 return this.ResourceIdField; 1032 } 1033 set { 1034 if ((this.ResourceIdField.Equals(value) != true)) { 1035 this.ResourceIdField = value; 1036 this.RaisePropertyChanged("ResourceId"); 1037 } 1038 } 1039 } 1040 1041 [System.Runtime.Serialization.DataMemberAttribute()] 1042 public System.DateTime StartDate { 1043 get { 1044 return this.StartDateField; 1045 } 1046 set { 1047 if ((this.StartDateField.Equals(value) != true)) { 1048 this.StartDateField = value; 1049 this.RaisePropertyChanged("StartDate"); 1050 } 1051 } 1052 } 1053 } 1054 1055 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1056 [System.Runtime.Serialization.DataContractAttribute(Name = "CpuArchitecture", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 1057 "nsfer")] 1058 public enum CpuArchitecture : int { 1059 1060 [System.Runtime.Serialization.EnumMemberAttribute()] 1061 x86 = 0, 1062 1063 [System.Runtime.Serialization.EnumMemberAttribute()] 1064 x64 = 1, 1065 } 1066 1067 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1068 [System.Runtime.Serialization.DataContractAttribute(Name = "SlaveState", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 1069 "nsfer")] 1070 public enum SlaveState : int { 1071 1072 [System.Runtime.Serialization.EnumMemberAttribute()] 1073 Idle = 0, 1074 1075 [System.Runtime.Serialization.EnumMemberAttribute()] 1076 Calculating = 1, 1077 1078 [System.Runtime.Serialization.EnumMemberAttribute()] 1079 Offline = 2, 1080 } 1081 1082 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1083 [System.Runtime.Serialization.DataContractAttribute(Name = "Command", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 1084 "nsfer")] 1085 public enum Command : int { 1086 1087 [System.Runtime.Serialization.EnumMemberAttribute()] 1088 Stop = 0, 1089 1090 [System.Runtime.Serialization.EnumMemberAttribute()] 1091 Abort = 1, 1092 1093 [System.Runtime.Serialization.EnumMemberAttribute()] 1094 Pause = 2, 1095 } 1096 1097 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1098 [System.Runtime.Serialization.DataContractAttribute(Name = "JobState", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 1099 "nsfer")] 1100 public enum JobState : int { 1101 1102 [System.Runtime.Serialization.EnumMemberAttribute()] 1103 Offline = 0, 1104 1105 [System.Runtime.Serialization.EnumMemberAttribute()] 1106 Waiting = 1, 1107 1108 [System.Runtime.Serialization.EnumMemberAttribute()] 1109 Transferring = 2, 1110 1111 [System.Runtime.Serialization.EnumMemberAttribute()] 1112 Calculating = 3, 1113 1114 [System.Runtime.Serialization.EnumMemberAttribute()] 1115 Paused = 4, 1116 1117 [System.Runtime.Serialization.EnumMemberAttribute()] 1118 Finished = 5, 1119 1120 [System.Runtime.Serialization.EnumMemberAttribute()] 1121 Aborted = 6, 1122 1123 [System.Runtime.Serialization.EnumMemberAttribute()] 1124 Failed = 7, 1125 } 1126 1127 [System.Diagnostics.DebuggerStepThroughAttribute()] 1128 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1129 [System.Runtime.Serialization.DataContractAttribute(Name = "JobData", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 1130 "nsfer")] 1131 [System.SerializableAttribute()] 1132 public partial class JobData : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { 1133 1134 [System.NonSerializedAttribute()] 1135 private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 1136 1137 [System.Runtime.Serialization.OptionalFieldAttribute()] 1138 private byte[] DataField; 1139 1140 [System.Runtime.Serialization.OptionalFieldAttribute()] 1141 private System.Guid JobIdField; 1142 1143 [System.Runtime.Serialization.OptionalFieldAttribute()] 1144 private System.DateTime LastUpdateField; 1145 1146 public System.Runtime.Serialization.ExtensionDataObject ExtensionData { 1147 get { 1148 return this.extensionDataField; 1149 } 1150 set { 1151 this.extensionDataField = value; 1152 } 1153 } 1154 1155 [System.Runtime.Serialization.DataMemberAttribute()] 1156 public byte[] Data { 1157 get { 1158 return this.DataField; 1159 } 1160 set { 1161 if ((object.ReferenceEquals(this.DataField, value) != true)) { 1162 this.DataField = value; 1163 this.RaisePropertyChanged("Data"); 1164 } 1165 } 1166 } 1167 1168 [System.Runtime.Serialization.DataMemberAttribute()] 1169 public System.Guid JobId { 1170 get { 1171 return this.JobIdField; 1172 } 1173 set { 1174 if ((this.JobIdField.Equals(value) != true)) { 1175 this.JobIdField = value; 1176 this.RaisePropertyChanged("JobId"); 1177 } 1178 } 1179 } 1180 1181 [System.Runtime.Serialization.DataMemberAttribute()] 1182 public System.DateTime LastUpdate { 1183 get { 1184 return this.LastUpdateField; 1185 } 1186 set { 1187 if ((this.LastUpdateField.Equals(value) != true)) { 1188 this.LastUpdateField = value; 1189 this.RaisePropertyChanged("LastUpdate"); 1190 } 1191 } 1192 } 1193 1194 public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 1195 1196 protected void RaisePropertyChanged(string propertyName) { 1197 System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; 1198 if ((propertyChanged != null)) { 1199 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); 1200 } 1201 } 1202 } 1203 1204 [System.Diagnostics.DebuggerStepThroughAttribute()] 1205 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1206 [System.Runtime.Serialization.DataContractAttribute(Name = "Heartbeat", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 1207 "nsfer")] 1208 [System.SerializableAttribute()] 1209 public partial class Heartbeat : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { 1210 1211 [System.NonSerializedAttribute()] 1212 private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 1213 1214 [System.Runtime.Serialization.OptionalFieldAttribute()] 1215 private bool AssignJobField; 1216 1217 [System.Runtime.Serialization.OptionalFieldAttribute()] 1218 private float CpuUtilizationField; 1219 1220 [System.Runtime.Serialization.OptionalFieldAttribute()] 1221 private int FreeCoresField; 1222 1223 [System.Runtime.Serialization.OptionalFieldAttribute()] 1224 private int FreeMemoryField; 1225 1226 [System.Runtime.Serialization.OptionalFieldAttribute()] 1227 private System.Collections.Generic.Dictionary<System.Guid, System.TimeSpan> JobProgressField; 1228 1229 [System.Runtime.Serialization.OptionalFieldAttribute()] 1230 private System.Guid SlaveIdField; 1231 1232 public System.Runtime.Serialization.ExtensionDataObject ExtensionData { 1233 get { 1234 return this.extensionDataField; 1235 } 1236 set { 1237 this.extensionDataField = value; 1238 } 1239 } 1240 1241 [System.Runtime.Serialization.DataMemberAttribute()] 1242 public bool AssignJob { 1243 get { 1244 return this.AssignJobField; 1245 } 1246 set { 1247 if ((this.AssignJobField.Equals(value) != true)) { 1248 this.AssignJobField = value; 1249 this.RaisePropertyChanged("AssignJob"); 1250 } 1251 } 1252 } 1253 1254 [System.Runtime.Serialization.DataMemberAttribute()] 1255 public float CpuUtilization { 1256 get { 1257 return this.CpuUtilizationField; 1258 } 1259 set { 1260 if ((this.CpuUtilizationField.Equals(value) != true)) { 1261 this.CpuUtilizationField = value; 1262 this.RaisePropertyChanged("CpuUtilization"); 1263 } 1264 } 1265 } 1266 1267 [System.Runtime.Serialization.DataMemberAttribute()] 1268 public int FreeCores { 1269 get { 1270 return this.FreeCoresField; 1271 } 1272 set { 1273 if ((this.FreeCoresField.Equals(value) != true)) { 1274 this.FreeCoresField = value; 1275 this.RaisePropertyChanged("FreeCores"); 1276 } 1277 } 1278 } 1279 1280 [System.Runtime.Serialization.DataMemberAttribute()] 1281 public int FreeMemory { 1282 get { 1283 return this.FreeMemoryField; 1284 } 1285 set { 1286 if ((this.FreeMemoryField.Equals(value) != true)) { 1287 this.FreeMemoryField = value; 1288 this.RaisePropertyChanged("FreeMemory"); 1289 } 1290 } 1291 } 1292 1293 [System.Runtime.Serialization.DataMemberAttribute()] 1294 public System.Collections.Generic.Dictionary<System.Guid, System.TimeSpan> JobProgress { 1295 get { 1296 return this.JobProgressField; 1297 } 1298 set { 1299 if ((object.ReferenceEquals(this.JobProgressField, value) != true)) { 1300 this.JobProgressField = value; 1301 this.RaisePropertyChanged("JobProgress"); 1302 } 1303 } 1304 } 1305 1306 [System.Runtime.Serialization.DataMemberAttribute()] 1307 public System.Guid SlaveId { 1308 get { 1309 return this.SlaveIdField; 1310 } 1311 set { 1312 if ((this.SlaveIdField.Equals(value) != true)) { 1313 this.SlaveIdField = value; 1314 this.RaisePropertyChanged("SlaveId"); 1315 } 1316 } 1317 } 1318 1319 public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 1320 1321 protected void RaisePropertyChanged(string propertyName) { 1322 System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; 1323 if ((propertyChanged != null)) { 1324 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); 1325 } 1326 } 1327 } 1328 1329 [System.Diagnostics.DebuggerStepThroughAttribute()] 1330 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1331 [System.Runtime.Serialization.DataContractAttribute(Name = "MessageContainer", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common")] 1332 [System.SerializableAttribute()] 1333 public partial class MessageContainer : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { 1334 1335 [System.NonSerializedAttribute()] 1336 private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 1337 1338 [System.Runtime.Serialization.OptionalFieldAttribute()] 1339 private System.Guid JobIdField; 1340 1341 [System.Runtime.Serialization.OptionalFieldAttribute()] 1342 private HeuristicLab.Clients.Hive.MessageContainer.MessageType MessageField; 1343 1344 public System.Runtime.Serialization.ExtensionDataObject ExtensionData { 1345 get { 1346 return this.extensionDataField; 1347 } 1348 set { 1349 this.extensionDataField = value; 1350 } 1351 } 1352 1353 [System.Runtime.Serialization.DataMemberAttribute()] 1354 public System.Guid JobId { 1355 get { 1356 return this.JobIdField; 1357 } 1358 set { 1359 if ((this.JobIdField.Equals(value) != true)) { 1360 this.JobIdField = value; 1361 this.RaisePropertyChanged("JobId"); 1362 } 1363 } 1364 } 1365 1366 [System.Runtime.Serialization.DataMemberAttribute()] 1367 public HeuristicLab.Clients.Hive.MessageContainer.MessageType Message { 1368 get { 1369 return this.MessageField; 1370 } 1371 set { 1372 if ((this.MessageField.Equals(value) != true)) { 1373 this.MessageField = value; 1374 this.RaisePropertyChanged("Message"); 1375 } 1376 } 1377 } 1378 1379 public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 1380 1381 protected void RaisePropertyChanged(string propertyName) { 1382 System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; 1383 if ((propertyChanged != null)) { 1384 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); 1385 } 1386 } 1387 15 1388 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 16 [System.Runtime.Serialization.DataContractAttribute(Name="Job", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 17 "nsfer")] 18 [System.SerializableAttribute()] 19 public partial class Job : HeuristicLab.Clients.Hive.LightweightJob 20 { 21 22 [System.Runtime.Serialization.OptionalFieldAttribute()] 23 private int CoresNeededField; 24 25 [System.Runtime.Serialization.OptionalFieldAttribute()] 26 private bool FinishWhenChildJobsFinishedField; 27 28 [System.Runtime.Serialization.OptionalFieldAttribute()] 29 private System.Guid HiveExperimentIdField; 30 31 [System.Runtime.Serialization.OptionalFieldAttribute()] 32 private bool IsParentJobField; 33 34 [System.Runtime.Serialization.OptionalFieldAttribute()] 35 private bool IsPrivilegedField; 36 37 [System.Runtime.Serialization.OptionalFieldAttribute()] 38 private System.Nullable<System.DateTime> LastHeartbeatField; 39 40 [System.Runtime.Serialization.OptionalFieldAttribute()] 41 private int MemoryNeededField; 42 43 [System.Runtime.Serialization.OptionalFieldAttribute()] 44 private System.Collections.Generic.List<System.Guid> PluginsNeededIdsField; 45 46 [System.Runtime.Serialization.OptionalFieldAttribute()] 47 private int PriorityField; 48 49 [System.Runtime.Serialization.DataMemberAttribute()] 50 public int CoresNeeded 51 { 52 get 53 { 54 return this.CoresNeededField; 55 } 56 set 57 { 58 if ((this.CoresNeededField.Equals(value) != true)) 59 { 60 this.CoresNeededField = value; 61 this.RaisePropertyChanged("CoresNeeded"); 62 } 63 } 64 } 65 66 [System.Runtime.Serialization.DataMemberAttribute()] 67 public bool FinishWhenChildJobsFinished 68 { 69 get 70 { 71 return this.FinishWhenChildJobsFinishedField; 72 } 73 set 74 { 75 if ((this.FinishWhenChildJobsFinishedField.Equals(value) != true)) 76 { 77 this.FinishWhenChildJobsFinishedField = value; 78 this.RaisePropertyChanged("FinishWhenChildJobsFinished"); 79 } 80 } 81 } 82 83 [System.Runtime.Serialization.DataMemberAttribute()] 84 public System.Guid HiveExperimentId 85 { 86 get 87 { 88 return this.HiveExperimentIdField; 89 } 90 set 91 { 92 if ((this.HiveExperimentIdField.Equals(value) != true)) 93 { 94 this.HiveExperimentIdField = value; 95 this.RaisePropertyChanged("HiveExperimentId"); 96 } 97 } 98 } 99 100 [System.Runtime.Serialization.DataMemberAttribute()] 101 public bool IsParentJob 102 { 103 get 104 { 105 return this.IsParentJobField; 106 } 107 set 108 { 109 if ((this.IsParentJobField.Equals(value) != true)) 110 { 111 this.IsParentJobField = value; 112 this.RaisePropertyChanged("IsParentJob"); 113 } 114 } 115 } 116 117 [System.Runtime.Serialization.DataMemberAttribute()] 118 public bool IsPrivileged 119 { 120 get 121 { 122 return this.IsPrivilegedField; 123 } 124 set 125 { 126 if ((this.IsPrivilegedField.Equals(value) != true)) 127 { 128 this.IsPrivilegedField = value; 129 this.RaisePropertyChanged("IsPrivileged"); 130 } 131 } 132 } 133 134 [System.Runtime.Serialization.DataMemberAttribute()] 135 public System.Nullable<System.DateTime> LastHeartbeat 136 { 137 get 138 { 139 return this.LastHeartbeatField; 140 } 141 set 142 { 143 if ((this.LastHeartbeatField.Equals(value) != true)) 144 { 145 this.LastHeartbeatField = value; 146 this.RaisePropertyChanged("LastHeartbeat"); 147 } 148 } 149 } 150 151 [System.Runtime.Serialization.DataMemberAttribute()] 152 public int MemoryNeeded 153 { 154 get 155 { 156 return this.MemoryNeededField; 157 } 158 set 159 { 160 if ((this.MemoryNeededField.Equals(value) != true)) 161 { 162 this.MemoryNeededField = value; 163 this.RaisePropertyChanged("MemoryNeeded"); 164 } 165 } 166 } 167 168 [System.Runtime.Serialization.DataMemberAttribute()] 169 public System.Collections.Generic.List<System.Guid> PluginsNeededIds 170 { 171 get 172 { 173 return this.PluginsNeededIdsField; 174 } 175 set 176 { 177 if ((object.ReferenceEquals(this.PluginsNeededIdsField, value) != true)) 178 { 179 this.PluginsNeededIdsField = value; 180 this.RaisePropertyChanged("PluginsNeededIds"); 181 } 182 } 183 } 184 185 [System.Runtime.Serialization.DataMemberAttribute()] 186 public int Priority 187 { 188 get 189 { 190 return this.PriorityField; 191 } 192 set 193 { 194 if ((this.PriorityField.Equals(value) != true)) 195 { 196 this.PriorityField = value; 197 this.RaisePropertyChanged("Priority"); 198 } 199 } 200 } 201 } 202 203 [System.Diagnostics.DebuggerStepThroughAttribute()] 204 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 205 [System.Runtime.Serialization.DataContractAttribute(Name="HiveItem", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 206 "nsfer")] 207 [System.SerializableAttribute()] 208 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.StateLog))] 209 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Appointment))] 210 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.NamedHiveItem))] 211 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.HiveExperiment))] 212 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Resource))] 213 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Slave))] 214 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.SlaveGroup))] 215 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Plugin))] 216 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.PluginData))] 217 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.LightweightJob))] 218 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Job))] 219 public partial class HiveItem : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged 220 { 221 222 [System.NonSerializedAttribute()] 223 private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 224 225 [System.Runtime.Serialization.OptionalFieldAttribute()] 226 private System.Guid IdField; 227 228 public System.Runtime.Serialization.ExtensionDataObject ExtensionData 229 { 230 get 231 { 232 return this.extensionDataField; 233 } 234 set 235 { 236 this.extensionDataField = value; 237 } 238 } 239 240 [System.Runtime.Serialization.DataMemberAttribute()] 241 public System.Guid Id 242 { 243 get 244 { 245 return this.IdField; 246 } 247 set 248 { 249 if ((this.IdField.Equals(value) != true)) 250 { 251 this.IdField = value; 252 this.RaisePropertyChanged("Id"); 253 } 254 } 255 } 256 257 public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 258 259 //protected void RaisePropertyChanged(string propertyName) 260 //{ 261 // System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; 262 // if ((propertyChanged != null)) 263 // { 264 // propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); 265 // } 266 //} 267 } 268 269 [System.Diagnostics.DebuggerStepThroughAttribute()] 270 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 271 [System.Runtime.Serialization.DataContractAttribute(Name="StateLog", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 272 "nsfer")] 273 [System.SerializableAttribute()] 274 public partial class StateLog : HeuristicLab.Clients.Hive.HiveItem 275 { 276 277 [System.Runtime.Serialization.OptionalFieldAttribute()] 278 private System.DateTime DateTimeField; 279 280 [System.Runtime.Serialization.OptionalFieldAttribute()] 281 private string ExceptionField; 282 283 [System.Runtime.Serialization.OptionalFieldAttribute()] 284 private System.Guid JobIdField; 285 286 [System.Runtime.Serialization.OptionalFieldAttribute()] 287 private System.Nullable<System.Guid> SlaveIdField; 288 289 [System.Runtime.Serialization.OptionalFieldAttribute()] 290 private HeuristicLab.Clients.Hive.JobState StateField; 291 292 [System.Runtime.Serialization.OptionalFieldAttribute()] 293 private System.Nullable<System.Guid> UserIdField; 294 295 [System.Runtime.Serialization.DataMemberAttribute()] 296 public System.DateTime DateTime 297 { 298 get 299 { 300 return this.DateTimeField; 301 } 302 set 303 { 304 if ((this.DateTimeField.Equals(value) != true)) 305 { 306 this.DateTimeField = value; 307 this.RaisePropertyChanged("DateTime"); 308 } 309 } 310 } 311 312 [System.Runtime.Serialization.DataMemberAttribute()] 313 public string Exception 314 { 315 get 316 { 317 return this.ExceptionField; 318 } 319 set 320 { 321 if ((object.ReferenceEquals(this.ExceptionField, value) != true)) 322 { 323 this.ExceptionField = value; 324 this.RaisePropertyChanged("Exception"); 325 } 326 } 327 } 328 329 [System.Runtime.Serialization.DataMemberAttribute()] 330 public System.Guid JobId 331 { 332 get 333 { 334 return this.JobIdField; 335 } 336 set 337 { 338 if ((this.JobIdField.Equals(value) != true)) 339 { 340 this.JobIdField = value; 341 this.RaisePropertyChanged("JobId"); 342 } 343 } 344 } 345 346 [System.Runtime.Serialization.DataMemberAttribute()] 347 public System.Nullable<System.Guid> SlaveId 348 { 349 get 350 { 351 return this.SlaveIdField; 352 } 353 set 354 { 355 if ((this.SlaveIdField.Equals(value) != true)) 356 { 357 this.SlaveIdField = value; 358 this.RaisePropertyChanged("SlaveId"); 359 } 360 } 361 } 362 363 [System.Runtime.Serialization.DataMemberAttribute()] 364 public HeuristicLab.Clients.Hive.JobState State 365 { 366 get 367 { 368 return this.StateField; 369 } 370 set 371 { 372 if ((this.StateField.Equals(value) != true)) 373 { 374 this.StateField = value; 375 this.RaisePropertyChanged("State"); 376 } 377 } 378 } 379 380 [System.Runtime.Serialization.DataMemberAttribute()] 381 public System.Nullable<System.Guid> UserId 382 { 383 get 384 { 385 return this.UserIdField; 386 } 387 set 388 { 389 if ((this.UserIdField.Equals(value) != true)) 390 { 391 this.UserIdField = value; 392 this.RaisePropertyChanged("UserId"); 393 } 394 } 395 } 396 } 397 398 [System.Diagnostics.DebuggerStepThroughAttribute()] 399 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 400 [System.Runtime.Serialization.DataContractAttribute(Name="Appointment", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 401 "nsfer")] 402 [System.SerializableAttribute()] 403 public partial class Appointment : HeuristicLab.Clients.Hive.HiveItem 404 { 405 406 [System.Runtime.Serialization.OptionalFieldAttribute()] 407 private bool AllDayEventField; 408 409 [System.Runtime.Serialization.OptionalFieldAttribute()] 410 private System.DateTime EndDateField; 411 412 [System.Runtime.Serialization.OptionalFieldAttribute()] 413 private bool RecurringField; 414 415 [System.Runtime.Serialization.OptionalFieldAttribute()] 416 private System.Guid RecurringIdField; 417 418 [System.Runtime.Serialization.OptionalFieldAttribute()] 419 private System.Guid ResourceIdField; 420 421 [System.Runtime.Serialization.OptionalFieldAttribute()] 422 private System.DateTime StartDateField; 423 424 [System.Runtime.Serialization.DataMemberAttribute()] 425 public bool AllDayEvent 426 { 427 get 428 { 429 return this.AllDayEventField; 430 } 431 set 432 { 433 if ((this.AllDayEventField.Equals(value) != true)) 434 { 435 this.AllDayEventField = value; 436 this.RaisePropertyChanged("AllDayEvent"); 437 } 438 } 439 } 440 441 [System.Runtime.Serialization.DataMemberAttribute()] 442 public System.DateTime EndDate 443 { 444 get 445 { 446 return this.EndDateField; 447 } 448 set 449 { 450 if ((this.EndDateField.Equals(value) != true)) 451 { 452 this.EndDateField = value; 453 this.RaisePropertyChanged("EndDate"); 454 } 455 } 456 } 457 458 [System.Runtime.Serialization.DataMemberAttribute()] 459 public bool Recurring 460 { 461 get 462 { 463 return this.RecurringField; 464 } 465 set 466 { 467 if ((this.RecurringField.Equals(value) != true)) 468 { 469 this.RecurringField = value; 470 this.RaisePropertyChanged("Recurring"); 471 } 472 } 473 } 474 475 [System.Runtime.Serialization.DataMemberAttribute()] 476 public System.Guid RecurringId 477 { 478 get 479 { 480 return this.RecurringIdField; 481 } 482 set 483 { 484 if ((this.RecurringIdField.Equals(value) != true)) 485 { 486 this.RecurringIdField = value; 487 this.RaisePropertyChanged("RecurringId"); 488 } 489 } 490 } 491 492 [System.Runtime.Serialization.DataMemberAttribute()] 493 public System.Guid ResourceId 494 { 495 get 496 { 497 return this.ResourceIdField; 498 } 499 set 500 { 501 if ((this.ResourceIdField.Equals(value) != true)) 502 { 503 this.ResourceIdField = value; 504 this.RaisePropertyChanged("ResourceId"); 505 } 506 } 507 } 508 509 [System.Runtime.Serialization.DataMemberAttribute()] 510 public System.DateTime StartDate 511 { 512 get 513 { 514 return this.StartDateField; 515 } 516 set 517 { 518 if ((this.StartDateField.Equals(value) != true)) 519 { 520 this.StartDateField = value; 521 this.RaisePropertyChanged("StartDate"); 522 } 523 } 524 } 525 } 526 527 [System.Diagnostics.DebuggerStepThroughAttribute()] 528 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 529 [System.Runtime.Serialization.DataContractAttribute(Name="NamedHiveItem", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 530 "nsfer")] 531 [System.SerializableAttribute()] 532 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.HiveExperiment))] 533 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Resource))] 534 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Slave))] 535 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.SlaveGroup))] 536 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Plugin))] 537 public partial class NamedHiveItem : HeuristicLab.Clients.Hive.HiveItem 538 { 539 540 [System.Runtime.Serialization.OptionalFieldAttribute()] 541 private string DescriptionField; 542 543 [System.Runtime.Serialization.OptionalFieldAttribute()] 544 private string NameField; 545 546 [System.Runtime.Serialization.DataMemberAttribute()] 547 public string Description 548 { 549 get 550 { 551 return this.DescriptionField; 552 } 553 set 554 { 555 if ((object.ReferenceEquals(this.DescriptionField, value) != true)) 556 { 557 this.DescriptionField = value; 558 this.RaisePropertyChanged("Description"); 559 } 560 } 561 } 562 563 [System.Runtime.Serialization.DataMemberAttribute()] 564 public string Name 565 { 566 get 567 { 568 return this.NameField; 569 } 570 set 571 { 572 if ((object.ReferenceEquals(this.NameField, value) != true)) 573 { 574 this.NameField = value; 575 this.RaisePropertyChanged("Name"); 576 } 577 } 578 } 579 } 580 581 [System.Diagnostics.DebuggerStepThroughAttribute()] 582 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 583 [System.Runtime.Serialization.DataContractAttribute(Name="HiveExperiment", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 584 "nsfer")] 585 [System.SerializableAttribute()] 586 public partial class HiveExperiment : HeuristicLab.Clients.Hive.NamedHiveItem 587 { 588 589 [System.Runtime.Serialization.OptionalFieldAttribute()] 590 private int CalculatingCountField; 591 592 [System.Runtime.Serialization.OptionalFieldAttribute()] 593 private System.DateTime DateCreatedField; 594 595 [System.Runtime.Serialization.OptionalFieldAttribute()] 596 private int FinishedCountField; 597 598 [System.Runtime.Serialization.OptionalFieldAttribute()] 599 private int JobCountField; 600 601 [System.Runtime.Serialization.OptionalFieldAttribute()] 602 private System.Nullable<System.DateTime> LastAccessedField; 603 604 [System.Runtime.Serialization.OptionalFieldAttribute()] 605 private System.Guid OwnerUserIdField; 606 607 [System.Runtime.Serialization.OptionalFieldAttribute()] 608 private string ResourceNamesField; 609 610 [System.Runtime.Serialization.DataMemberAttribute()] 611 public int CalculatingCount 612 { 613 get 614 { 615 return this.CalculatingCountField; 616 } 617 set 618 { 619 if ((this.CalculatingCountField.Equals(value) != true)) 620 { 621 this.CalculatingCountField = value; 622 this.RaisePropertyChanged("CalculatingCount"); 623 } 624 } 625 } 626 627 [System.Runtime.Serialization.DataMemberAttribute()] 628 public System.DateTime DateCreated 629 { 630 get 631 { 632 return this.DateCreatedField; 633 } 634 set 635 { 636 if ((this.DateCreatedField.Equals(value) != true)) 637 { 638 this.DateCreatedField = value; 639 this.RaisePropertyChanged("DateCreated"); 640 } 641 } 642 } 643 644 [System.Runtime.Serialization.DataMemberAttribute()] 645 public int FinishedCount 646 { 647 get 648 { 649 return this.FinishedCountField; 650 } 651 set 652 { 653 if ((this.FinishedCountField.Equals(value) != true)) 654 { 655 this.FinishedCountField = value; 656 this.RaisePropertyChanged("FinishedCount"); 657 } 658 } 659 } 660 661 [System.Runtime.Serialization.DataMemberAttribute()] 662 public int JobCount 663 { 664 get 665 { 666 return this.JobCountField; 667 } 668 set 669 { 670 if ((this.JobCountField.Equals(value) != true)) 671 { 672 this.JobCountField = value; 673 this.RaisePropertyChanged("JobCount"); 674 } 675 } 676 } 677 678 [System.Runtime.Serialization.DataMemberAttribute()] 679 public System.Nullable<System.DateTime> LastAccessed 680 { 681 get 682 { 683 return this.LastAccessedField; 684 } 685 set 686 { 687 if ((this.LastAccessedField.Equals(value) != true)) 688 { 689 this.LastAccessedField = value; 690 this.RaisePropertyChanged("LastAccessed"); 691 } 692 } 693 } 694 695 [System.Runtime.Serialization.DataMemberAttribute()] 696 public System.Guid OwnerUserId 697 { 698 get 699 { 700 return this.OwnerUserIdField; 701 } 702 set 703 { 704 if ((this.OwnerUserIdField.Equals(value) != true)) 705 { 706 this.OwnerUserIdField = value; 707 this.RaisePropertyChanged("OwnerUserId"); 708 } 709 } 710 } 711 712 [System.Runtime.Serialization.DataMemberAttribute()] 713 public string ResourceNames 714 { 715 get 716 { 717 return this.ResourceNamesField; 718 } 719 set 720 { 721 if ((object.ReferenceEquals(this.ResourceNamesField, value) != true)) 722 { 723 this.ResourceNamesField = value; 724 this.RaisePropertyChanged("ResourceNames"); 725 } 726 } 727 } 728 } 729 730 [System.Diagnostics.DebuggerStepThroughAttribute()] 731 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 732 [System.Runtime.Serialization.DataContractAttribute(Name="Resource", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 733 "nsfer")] 734 [System.SerializableAttribute()] 735 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Slave))] 736 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.SlaveGroup))] 737 public partial class Resource : HeuristicLab.Clients.Hive.NamedHiveItem 738 { 739 740 [System.Runtime.Serialization.OptionalFieldAttribute()] 741 private System.Nullable<System.Guid> ParentResourceIdField; 742 743 [System.Runtime.Serialization.DataMemberAttribute()] 744 public System.Nullable<System.Guid> ParentResourceId 745 { 746 get 747 { 748 return this.ParentResourceIdField; 749 } 750 set 751 { 752 if ((this.ParentResourceIdField.Equals(value) != true)) 753 { 754 this.ParentResourceIdField = value; 755 this.RaisePropertyChanged("ParentResourceId"); 756 } 757 } 758 } 759 } 760 761 [System.Diagnostics.DebuggerStepThroughAttribute()] 762 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 763 [System.Runtime.Serialization.DataContractAttribute(Name="Slave", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 764 "nsfer")] 765 [System.SerializableAttribute()] 766 public partial class Slave : HeuristicLab.Clients.Hive.Resource 767 { 768 769 [System.Runtime.Serialization.OptionalFieldAttribute()] 770 private System.Nullable<int> CoresField; 771 772 [System.Runtime.Serialization.OptionalFieldAttribute()] 773 private HeuristicLab.Clients.Hive.CpuArchitecture CpuArchitectureField; 774 775 [System.Runtime.Serialization.OptionalFieldAttribute()] 776 private System.Nullable<int> CpuSpeedField; 777 778 [System.Runtime.Serialization.OptionalFieldAttribute()] 779 private double CpuUtilizationField; 780 781 [System.Runtime.Serialization.OptionalFieldAttribute()] 782 private System.Nullable<int> FreeCoresField; 783 784 [System.Runtime.Serialization.OptionalFieldAttribute()] 785 private System.Nullable<int> FreeMemoryField; 786 787 [System.Runtime.Serialization.OptionalFieldAttribute()] 788 private bool IsAllowedToCalculateField; 789 790 [System.Runtime.Serialization.OptionalFieldAttribute()] 791 private System.Nullable<System.DateTime> LastHeartbeatField; 792 793 [System.Runtime.Serialization.OptionalFieldAttribute()] 794 private System.Nullable<int> MemoryField; 795 796 [System.Runtime.Serialization.OptionalFieldAttribute()] 797 private string OperatingSystemField; 798 799 [System.Runtime.Serialization.OptionalFieldAttribute()] 800 private HeuristicLab.Clients.Hive.SlaveState SlaveStateField; 801 802 [System.Runtime.Serialization.DataMemberAttribute()] 803 public System.Nullable<int> Cores 804 { 805 get 806 { 807 return this.CoresField; 808 } 809 set 810 { 811 if ((this.CoresField.Equals(value) != true)) 812 { 813 this.CoresField = value; 814 this.RaisePropertyChanged("Cores"); 815 } 816 } 817 } 818 819 [System.Runtime.Serialization.DataMemberAttribute()] 820 public HeuristicLab.Clients.Hive.CpuArchitecture CpuArchitecture 821 { 822 get 823 { 824 return this.CpuArchitectureField; 825 } 826 set 827 { 828 if ((this.CpuArchitectureField.Equals(value) != true)) 829 { 830 this.CpuArchitectureField = value; 831 this.RaisePropertyChanged("CpuArchitecture"); 832 } 833 } 834 } 835 836 [System.Runtime.Serialization.DataMemberAttribute()] 837 public System.Nullable<int> CpuSpeed 838 { 839 get 840 { 841 return this.CpuSpeedField; 842 } 843 set 844 { 845 if ((this.CpuSpeedField.Equals(value) != true)) 846 { 847 this.CpuSpeedField = value; 848 this.RaisePropertyChanged("CpuSpeed"); 849 } 850 } 851 } 852 853 [System.Runtime.Serialization.DataMemberAttribute()] 854 public double CpuUtilization 855 { 856 get 857 { 858 return this.CpuUtilizationField; 859 } 860 set 861 { 862 if ((this.CpuUtilizationField.Equals(value) != true)) 863 { 864 this.CpuUtilizationField = value; 865 this.RaisePropertyChanged("CpuUtilization"); 866 } 867 } 868 } 869 870 [System.Runtime.Serialization.DataMemberAttribute()] 871 public System.Nullable<int> FreeCores 872 { 873 get 874 { 875 return this.FreeCoresField; 876 } 877 set 878 { 879 if ((this.FreeCoresField.Equals(value) != true)) 880 { 881 this.FreeCoresField = value; 882 this.RaisePropertyChanged("FreeCores"); 883 } 884 } 885 } 886 887 [System.Runtime.Serialization.DataMemberAttribute()] 888 public System.Nullable<int> FreeMemory 889 { 890 get 891 { 892 return this.FreeMemoryField; 893 } 894 set 895 { 896 if ((this.FreeMemoryField.Equals(value) != true)) 897 { 898 this.FreeMemoryField = value; 899 this.RaisePropertyChanged("FreeMemory"); 900 } 901 } 902 } 903 904 [System.Runtime.Serialization.DataMemberAttribute()] 905 public bool IsAllowedToCalculate 906 { 907 get 908 { 909 return this.IsAllowedToCalculateField; 910 } 911 set 912 { 913 if ((this.IsAllowedToCalculateField.Equals(value) != true)) 914 { 915 this.IsAllowedToCalculateField = value; 916 this.RaisePropertyChanged("IsAllowedToCalculate"); 917 } 918 } 919 } 920 921 [System.Runtime.Serialization.DataMemberAttribute()] 922 public System.Nullable<System.DateTime> LastHeartbeat 923 { 924 get 925 { 926 return this.LastHeartbeatField; 927 } 928 set 929 { 930 if ((this.LastHeartbeatField.Equals(value) != true)) 931 { 932 this.LastHeartbeatField = value; 933 this.RaisePropertyChanged("LastHeartbeat"); 934 } 935 } 936 } 937 938 [System.Runtime.Serialization.DataMemberAttribute()] 939 public System.Nullable<int> Memory 940 { 941 get 942 { 943 return this.MemoryField; 944 } 945 set 946 { 947 if ((this.MemoryField.Equals(value) != true)) 948 { 949 this.MemoryField = value; 950 this.RaisePropertyChanged("Memory"); 951 } 952 } 953 } 954 955 [System.Runtime.Serialization.DataMemberAttribute()] 956 public string OperatingSystem 957 { 958 get 959 { 960 return this.OperatingSystemField; 961 } 962 set 963 { 964 if ((object.ReferenceEquals(this.OperatingSystemField, value) != true)) 965 { 966 this.OperatingSystemField = value; 967 this.RaisePropertyChanged("OperatingSystem"); 968 } 969 } 970 } 971 972 [System.Runtime.Serialization.DataMemberAttribute()] 973 public HeuristicLab.Clients.Hive.SlaveState SlaveState 974 { 975 get 976 { 977 return this.SlaveStateField; 978 } 979 set 980 { 981 if ((this.SlaveStateField.Equals(value) != true)) 982 { 983 this.SlaveStateField = value; 984 this.RaisePropertyChanged("SlaveState"); 985 } 986 } 987 } 988 } 989 990 [System.Diagnostics.DebuggerStepThroughAttribute()] 991 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 992 [System.Runtime.Serialization.DataContractAttribute(Name="SlaveGroup", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 993 "nsfer")] 994 [System.SerializableAttribute()] 995 public partial class SlaveGroup : HeuristicLab.Clients.Hive.Resource 996 { 997 } 998 999 [System.Diagnostics.DebuggerStepThroughAttribute()] 1000 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1001 [System.Runtime.Serialization.DataContractAttribute(Name="Plugin", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 1002 "nsfer")] 1003 [System.SerializableAttribute()] 1004 public partial class Plugin : HeuristicLab.Clients.Hive.NamedHiveItem 1005 { 1006 1007 [System.Runtime.Serialization.OptionalFieldAttribute()] 1008 private System.DateTime DateCreatedField; 1009 1010 [System.Runtime.Serialization.OptionalFieldAttribute()] 1011 private bool IsLocalField; 1012 1013 [System.Runtime.Serialization.OptionalFieldAttribute()] 1014 private System.Guid UserIdField; 1015 1016 [System.Runtime.Serialization.OptionalFieldAttribute()] 1017 private System.Version VersionField; 1018 1019 [System.Runtime.Serialization.DataMemberAttribute()] 1020 public System.DateTime DateCreated 1021 { 1022 get 1023 { 1024 return this.DateCreatedField; 1025 } 1026 set 1027 { 1028 if ((this.DateCreatedField.Equals(value) != true)) 1029 { 1030 this.DateCreatedField = value; 1031 this.RaisePropertyChanged("DateCreated"); 1032 } 1033 } 1034 } 1035 1036 [System.Runtime.Serialization.DataMemberAttribute()] 1037 public bool IsLocal 1038 { 1039 get 1040 { 1041 return this.IsLocalField; 1042 } 1043 set 1044 { 1045 if ((this.IsLocalField.Equals(value) != true)) 1046 { 1047 this.IsLocalField = value; 1048 this.RaisePropertyChanged("IsLocal"); 1049 } 1050 } 1051 } 1052 1053 [System.Runtime.Serialization.DataMemberAttribute()] 1054 public System.Guid UserId 1055 { 1056 get 1057 { 1058 return this.UserIdField; 1059 } 1060 set 1061 { 1062 if ((this.UserIdField.Equals(value) != true)) 1063 { 1064 this.UserIdField = value; 1065 this.RaisePropertyChanged("UserId"); 1066 } 1067 } 1068 } 1069 1070 [System.Runtime.Serialization.DataMemberAttribute()] 1071 public System.Version Version 1072 { 1073 get 1074 { 1075 return this.VersionField; 1076 } 1077 set 1078 { 1079 if ((object.ReferenceEquals(this.VersionField, value) != true)) 1080 { 1081 this.VersionField = value; 1082 this.RaisePropertyChanged("Version"); 1083 } 1084 } 1085 } 1086 } 1087 1088 [System.Diagnostics.DebuggerStepThroughAttribute()] 1089 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1090 [System.Runtime.Serialization.DataContractAttribute(Name="PluginData", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 1091 "nsfer")] 1092 [System.SerializableAttribute()] 1093 public partial class PluginData : HeuristicLab.Clients.Hive.HiveItem 1094 { 1095 1096 [System.Runtime.Serialization.OptionalFieldAttribute()] 1097 private byte[] DataField; 1098 1099 [System.Runtime.Serialization.OptionalFieldAttribute()] 1100 private string FileNameField; 1101 1102 [System.Runtime.Serialization.OptionalFieldAttribute()] 1103 private System.Guid PluginIdField; 1104 1105 [System.Runtime.Serialization.DataMemberAttribute()] 1106 public byte[] Data 1107 { 1108 get 1109 { 1110 return this.DataField; 1111 } 1112 set 1113 { 1114 if ((object.ReferenceEquals(this.DataField, value) != true)) 1115 { 1116 this.DataField = value; 1117 this.RaisePropertyChanged("Data"); 1118 } 1119 } 1120 } 1121 1122 [System.Runtime.Serialization.DataMemberAttribute()] 1123 public string FileName 1124 { 1125 get 1126 { 1127 return this.FileNameField; 1128 } 1129 set 1130 { 1131 if ((object.ReferenceEquals(this.FileNameField, value) != true)) 1132 { 1133 this.FileNameField = value; 1134 this.RaisePropertyChanged("FileName"); 1135 } 1136 } 1137 } 1138 1139 [System.Runtime.Serialization.DataMemberAttribute()] 1140 public System.Guid PluginId 1141 { 1142 get 1143 { 1144 return this.PluginIdField; 1145 } 1146 set 1147 { 1148 if ((this.PluginIdField.Equals(value) != true)) 1149 { 1150 this.PluginIdField = value; 1151 this.RaisePropertyChanged("PluginId"); 1152 } 1153 } 1154 } 1155 } 1156 1157 [System.Diagnostics.DebuggerStepThroughAttribute()] 1158 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1159 [System.Runtime.Serialization.DataContractAttribute(Name="LightweightJob", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 1160 "nsfer")] 1161 [System.SerializableAttribute()] 1162 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Job))] 1163 public partial class LightweightJob : HeuristicLab.Clients.Hive.HiveItem 1164 { 1165 1166 [System.Runtime.Serialization.OptionalFieldAttribute()] 1167 private System.Nullable<HeuristicLab.Clients.Hive.Command> CommandField; 1168 1169 [System.Runtime.Serialization.OptionalFieldAttribute()] 1170 private System.TimeSpan ExecutionTimeField; 1171 1172 [System.Runtime.Serialization.OptionalFieldAttribute()] 1173 private System.DateTime LastJobDataUpdateField; 1174 1175 [System.Runtime.Serialization.OptionalFieldAttribute()] 1176 private System.Nullable<System.Guid> ParentJobIdField; 1177 1178 [System.Runtime.Serialization.OptionalFieldAttribute()] 1179 private HeuristicLab.Clients.Hive.JobState StateField; 1180 1181 [System.Runtime.Serialization.OptionalFieldAttribute()] 1182 private System.Collections.Generic.List<HeuristicLab.Clients.Hive.StateLog> StateLogField; 1183 1184 [System.Runtime.Serialization.DataMemberAttribute()] 1185 public System.Nullable<HeuristicLab.Clients.Hive.Command> Command 1186 { 1187 get 1188 { 1189 return this.CommandField; 1190 } 1191 set 1192 { 1193 if ((this.CommandField.Equals(value) != true)) 1194 { 1195 this.CommandField = value; 1196 this.RaisePropertyChanged("Command"); 1197 } 1198 } 1199 } 1200 1201 [System.Runtime.Serialization.DataMemberAttribute()] 1202 public System.TimeSpan ExecutionTime 1203 { 1204 get 1205 { 1206 return this.ExecutionTimeField; 1207 } 1208 set 1209 { 1210 if ((this.ExecutionTimeField.Equals(value) != true)) 1211 { 1212 this.ExecutionTimeField = value; 1213 this.RaisePropertyChanged("ExecutionTime"); 1214 } 1215 } 1216 } 1217 1218 [System.Runtime.Serialization.DataMemberAttribute()] 1219 public System.DateTime LastJobDataUpdate 1220 { 1221 get 1222 { 1223 return this.LastJobDataUpdateField; 1224 } 1225 set 1226 { 1227 if ((this.LastJobDataUpdateField.Equals(value) != true)) 1228 { 1229 this.LastJobDataUpdateField = value; 1230 this.RaisePropertyChanged("LastJobDataUpdate"); 1231 } 1232 } 1233 } 1234 1235 [System.Runtime.Serialization.DataMemberAttribute()] 1236 public System.Nullable<System.Guid> ParentJobId 1237 { 1238 get 1239 { 1240 return this.ParentJobIdField; 1241 } 1242 set 1243 { 1244 if ((this.ParentJobIdField.Equals(value) != true)) 1245 { 1246 this.ParentJobIdField = value; 1247 this.RaisePropertyChanged("ParentJobId"); 1248 } 1249 } 1250 } 1251 1252 [System.Runtime.Serialization.DataMemberAttribute()] 1253 public HeuristicLab.Clients.Hive.JobState State 1254 { 1255 get 1256 { 1257 return this.StateField; 1258 } 1259 set 1260 { 1261 if ((this.StateField.Equals(value) != true)) 1262 { 1263 this.StateField = value; 1264 this.RaisePropertyChanged("State"); 1265 } 1266 } 1267 } 1268 1269 [System.Runtime.Serialization.DataMemberAttribute()] 1270 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.StateLog> StateLog 1271 { 1272 get 1273 { 1274 return this.StateLogField; 1275 } 1276 set 1277 { 1278 if ((object.ReferenceEquals(this.StateLogField, value) != true)) 1279 { 1280 this.StateLogField = value; 1281 this.RaisePropertyChanged("StateLog"); 1282 } 1283 } 1284 } 1285 } 1286 1287 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1288 [System.Runtime.Serialization.DataContractAttribute(Name="Command", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 1289 "nsfer")] 1290 public enum Command : int 1291 { 1292 1293 [System.Runtime.Serialization.EnumMemberAttribute()] 1294 Stop = 0, 1295 1296 [System.Runtime.Serialization.EnumMemberAttribute()] 1297 Abort = 1, 1298 1299 [System.Runtime.Serialization.EnumMemberAttribute()] 1300 Pause = 2, 1301 } 1302 1303 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1304 [System.Runtime.Serialization.DataContractAttribute(Name="JobState", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 1305 "nsfer")] 1306 public enum JobState : int 1307 { 1308 1309 [System.Runtime.Serialization.EnumMemberAttribute()] 1310 Offline = 0, 1311 1312 [System.Runtime.Serialization.EnumMemberAttribute()] 1313 Waiting = 1, 1314 1315 [System.Runtime.Serialization.EnumMemberAttribute()] 1316 Transferring = 2, 1317 1318 [System.Runtime.Serialization.EnumMemberAttribute()] 1319 Calculating = 3, 1320 1321 [System.Runtime.Serialization.EnumMemberAttribute()] 1322 Paused = 4, 1323 1324 [System.Runtime.Serialization.EnumMemberAttribute()] 1325 Finished = 5, 1326 1327 [System.Runtime.Serialization.EnumMemberAttribute()] 1328 Aborted = 6, 1329 1330 [System.Runtime.Serialization.EnumMemberAttribute()] 1331 Failed = 7, 1332 } 1333 1334 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1335 [System.Runtime.Serialization.DataContractAttribute(Name="CpuArchitecture", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 1336 "nsfer")] 1337 public enum CpuArchitecture : int 1338 { 1339 1340 [System.Runtime.Serialization.EnumMemberAttribute()] 1341 x86 = 0, 1342 1343 [System.Runtime.Serialization.EnumMemberAttribute()] 1344 x64 = 1, 1345 } 1346 1347 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1348 [System.Runtime.Serialization.DataContractAttribute(Name="SlaveState", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 1349 "nsfer")] 1350 public enum SlaveState : int 1351 { 1352 1353 [System.Runtime.Serialization.EnumMemberAttribute()] 1354 Idle = 0, 1355 1356 [System.Runtime.Serialization.EnumMemberAttribute()] 1357 Calculating = 1, 1358 1359 [System.Runtime.Serialization.EnumMemberAttribute()] 1360 Offline = 2, 1361 } 1362 1363 [System.Diagnostics.DebuggerStepThroughAttribute()] 1364 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1365 [System.Runtime.Serialization.DataContractAttribute(Name="JobData", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 1366 "nsfer")] 1367 [System.SerializableAttribute()] 1368 public partial class JobData : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged 1369 { 1370 1371 [System.NonSerializedAttribute()] 1372 private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 1373 1374 [System.Runtime.Serialization.OptionalFieldAttribute()] 1375 private byte[] DataField; 1376 1377 [System.Runtime.Serialization.OptionalFieldAttribute()] 1378 private System.Guid JobIdField; 1379 1380 [System.Runtime.Serialization.OptionalFieldAttribute()] 1381 private System.DateTime LastUpdateField; 1382 1383 public System.Runtime.Serialization.ExtensionDataObject ExtensionData 1384 { 1385 get 1386 { 1387 return this.extensionDataField; 1388 } 1389 set 1390 { 1391 this.extensionDataField = value; 1392 } 1393 } 1394 1395 [System.Runtime.Serialization.DataMemberAttribute()] 1396 public byte[] Data 1397 { 1398 get 1399 { 1400 return this.DataField; 1401 } 1402 set 1403 { 1404 if ((object.ReferenceEquals(this.DataField, value) != true)) 1405 { 1406 this.DataField = value; 1407 this.RaisePropertyChanged("Data"); 1408 } 1409 } 1410 } 1411 1412 [System.Runtime.Serialization.DataMemberAttribute()] 1413 public System.Guid JobId 1414 { 1415 get 1416 { 1417 return this.JobIdField; 1418 } 1419 set 1420 { 1421 if ((this.JobIdField.Equals(value) != true)) 1422 { 1423 this.JobIdField = value; 1424 this.RaisePropertyChanged("JobId"); 1425 } 1426 } 1427 } 1428 1429 [System.Runtime.Serialization.DataMemberAttribute()] 1430 public System.DateTime LastUpdate 1431 { 1432 get 1433 { 1434 return this.LastUpdateField; 1435 } 1436 set 1437 { 1438 if ((this.LastUpdateField.Equals(value) != true)) 1439 { 1440 this.LastUpdateField = value; 1441 this.RaisePropertyChanged("LastUpdate"); 1442 } 1443 } 1444 } 1445 1446 public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 1447 1448 protected void RaisePropertyChanged(string propertyName) 1449 { 1450 System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; 1451 if ((propertyChanged != null)) 1452 { 1453 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); 1454 } 1455 } 1456 } 1457 1458 [System.Diagnostics.DebuggerStepThroughAttribute()] 1459 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1460 [System.Runtime.Serialization.DataContractAttribute(Name="Heartbeat", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common.DataTra" + 1461 "nsfer")] 1462 [System.SerializableAttribute()] 1463 public partial class Heartbeat : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged 1464 { 1465 1466 [System.NonSerializedAttribute()] 1467 private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 1468 1469 [System.Runtime.Serialization.OptionalFieldAttribute()] 1470 private bool AssignJobField; 1471 1472 [System.Runtime.Serialization.OptionalFieldAttribute()] 1473 private float CpuUtilizationField; 1474 1475 [System.Runtime.Serialization.OptionalFieldAttribute()] 1476 private int FreeCoresField; 1477 1478 [System.Runtime.Serialization.OptionalFieldAttribute()] 1479 private int FreeMemoryField; 1480 1481 [System.Runtime.Serialization.OptionalFieldAttribute()] 1482 private System.Collections.Generic.Dictionary<System.Guid, System.TimeSpan> JobProgressField; 1483 1484 [System.Runtime.Serialization.OptionalFieldAttribute()] 1485 private System.Guid SlaveIdField; 1486 1487 public System.Runtime.Serialization.ExtensionDataObject ExtensionData 1488 { 1489 get 1490 { 1491 return this.extensionDataField; 1492 } 1493 set 1494 { 1495 this.extensionDataField = value; 1496 } 1497 } 1498 1499 [System.Runtime.Serialization.DataMemberAttribute()] 1500 public bool AssignJob 1501 { 1502 get 1503 { 1504 return this.AssignJobField; 1505 } 1506 set 1507 { 1508 if ((this.AssignJobField.Equals(value) != true)) 1509 { 1510 this.AssignJobField = value; 1511 this.RaisePropertyChanged("AssignJob"); 1512 } 1513 } 1514 } 1515 1516 [System.Runtime.Serialization.DataMemberAttribute()] 1517 public float CpuUtilization 1518 { 1519 get 1520 { 1521 return this.CpuUtilizationField; 1522 } 1523 set 1524 { 1525 if ((this.CpuUtilizationField.Equals(value) != true)) 1526 { 1527 this.CpuUtilizationField = value; 1528 this.RaisePropertyChanged("CpuUtilization"); 1529 } 1530 } 1531 } 1532 1533 [System.Runtime.Serialization.DataMemberAttribute()] 1534 public int FreeCores 1535 { 1536 get 1537 { 1538 return this.FreeCoresField; 1539 } 1540 set 1541 { 1542 if ((this.FreeCoresField.Equals(value) != true)) 1543 { 1544 this.FreeCoresField = value; 1545 this.RaisePropertyChanged("FreeCores"); 1546 } 1547 } 1548 } 1549 1550 [System.Runtime.Serialization.DataMemberAttribute()] 1551 public int FreeMemory 1552 { 1553 get 1554 { 1555 return this.FreeMemoryField; 1556 } 1557 set 1558 { 1559 if ((this.FreeMemoryField.Equals(value) != true)) 1560 { 1561 this.FreeMemoryField = value; 1562 this.RaisePropertyChanged("FreeMemory"); 1563 } 1564 } 1565 } 1566 1567 [System.Runtime.Serialization.DataMemberAttribute()] 1568 public System.Collections.Generic.Dictionary<System.Guid, System.TimeSpan> JobProgress 1569 { 1570 get 1571 { 1572 return this.JobProgressField; 1573 } 1574 set 1575 { 1576 if ((object.ReferenceEquals(this.JobProgressField, value) != true)) 1577 { 1578 this.JobProgressField = value; 1579 this.RaisePropertyChanged("JobProgress"); 1580 } 1581 } 1582 } 1583 1584 [System.Runtime.Serialization.DataMemberAttribute()] 1585 public System.Guid SlaveId 1586 { 1587 get 1588 { 1589 return this.SlaveIdField; 1590 } 1591 set 1592 { 1593 if ((this.SlaveIdField.Equals(value) != true)) 1594 { 1595 this.SlaveIdField = value; 1596 this.RaisePropertyChanged("SlaveId"); 1597 } 1598 } 1599 } 1600 1601 public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 1602 1603 protected void RaisePropertyChanged(string propertyName) 1604 { 1605 System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; 1606 if ((propertyChanged != null)) 1607 { 1608 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); 1609 } 1610 } 1611 } 1612 1613 [System.Diagnostics.DebuggerStepThroughAttribute()] 1614 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1615 [System.Runtime.Serialization.DataContractAttribute(Name="MessageContainer", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common")] 1616 [System.SerializableAttribute()] 1617 public partial class MessageContainer : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged 1618 { 1619 1620 [System.NonSerializedAttribute()] 1621 private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 1622 1623 [System.Runtime.Serialization.OptionalFieldAttribute()] 1624 private System.Guid JobIdField; 1625 1626 [System.Runtime.Serialization.OptionalFieldAttribute()] 1627 private HeuristicLab.Clients.Hive.MessageContainer.MessageType MessageField; 1628 1629 public System.Runtime.Serialization.ExtensionDataObject ExtensionData 1630 { 1631 get 1632 { 1633 return this.extensionDataField; 1634 } 1635 set 1636 { 1637 this.extensionDataField = value; 1638 } 1639 } 1640 1641 [System.Runtime.Serialization.DataMemberAttribute()] 1642 public System.Guid JobId 1643 { 1644 get 1645 { 1646 return this.JobIdField; 1647 } 1648 set 1649 { 1650 if ((this.JobIdField.Equals(value) != true)) 1651 { 1652 this.JobIdField = value; 1653 this.RaisePropertyChanged("JobId"); 1654 } 1655 } 1656 } 1657 1658 [System.Runtime.Serialization.DataMemberAttribute()] 1659 public HeuristicLab.Clients.Hive.MessageContainer.MessageType Message 1660 { 1661 get 1662 { 1663 return this.MessageField; 1664 } 1665 set 1666 { 1667 if ((this.MessageField.Equals(value) != true)) 1668 { 1669 this.MessageField = value; 1670 this.RaisePropertyChanged("Message"); 1671 } 1672 } 1673 } 1674 1675 public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 1676 1677 protected void RaisePropertyChanged(string propertyName) 1678 { 1679 System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; 1680 if ((propertyChanged != null)) 1681 { 1682 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); 1683 } 1684 } 1685 1686 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1687 [System.Runtime.Serialization.DataContractAttribute(Name="MessageContainer.MessageType", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common")] 1688 public enum MessageType : int 1689 { 1690 1691 [System.Runtime.Serialization.EnumMemberAttribute()] 1692 CalculateJob = 0, 1693 1694 [System.Runtime.Serialization.EnumMemberAttribute()] 1695 StopJob = 1, 1696 1697 [System.Runtime.Serialization.EnumMemberAttribute()] 1698 StopAll = 2, 1699 1700 [System.Runtime.Serialization.EnumMemberAttribute()] 1701 AbortJob = 3, 1702 1703 [System.Runtime.Serialization.EnumMemberAttribute()] 1704 AbortAll = 4, 1705 1706 [System.Runtime.Serialization.EnumMemberAttribute()] 1707 PauseJob = 5, 1708 1709 [System.Runtime.Serialization.EnumMemberAttribute()] 1710 PauseAll = 6, 1711 1712 [System.Runtime.Serialization.EnumMemberAttribute()] 1713 Restart = 7, 1714 1715 [System.Runtime.Serialization.EnumMemberAttribute()] 1716 Sleep = 8, 1717 1718 [System.Runtime.Serialization.EnumMemberAttribute()] 1719 ShutdownSlave = 9, 1720 1721 [System.Runtime.Serialization.EnumMemberAttribute()] 1722 SayHello = 10, 1723 1724 [System.Runtime.Serialization.EnumMemberAttribute()] 1725 AddChildJob = 11, 1726 1727 [System.Runtime.Serialization.EnumMemberAttribute()] 1728 GetChildJobs = 12, 1729 1730 [System.Runtime.Serialization.EnumMemberAttribute()] 1731 DeleteChildJobs = 13, 1732 } 1733 } 1734 1735 [System.Diagnostics.DebuggerStepThroughAttribute()] 1736 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1737 [System.Runtime.Serialization.DataContractAttribute(Name="PluginAlreadyExistsFault", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common")] 1738 [System.SerializableAttribute()] 1739 public partial class PluginAlreadyExistsFault : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged 1740 { 1741 1742 [System.NonSerializedAttribute()] 1743 private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 1744 1745 [System.Runtime.Serialization.OptionalFieldAttribute()] 1746 private System.Guid IdField; 1747 1748 public System.Runtime.Serialization.ExtensionDataObject ExtensionData 1749 { 1750 get 1751 { 1752 return this.extensionDataField; 1753 } 1754 set 1755 { 1756 this.extensionDataField = value; 1757 } 1758 } 1759 1760 [System.Runtime.Serialization.DataMemberAttribute()] 1761 public System.Guid Id 1762 { 1763 get 1764 { 1765 return this.IdField; 1766 } 1767 set 1768 { 1769 if ((this.IdField.Equals(value) != true)) 1770 { 1771 this.IdField = value; 1772 this.RaisePropertyChanged("Id"); 1773 } 1774 } 1775 } 1776 1777 public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 1778 1779 protected void RaisePropertyChanged(string propertyName) 1780 { 1781 System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; 1782 if ((propertyChanged != null)) 1783 { 1784 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); 1785 } 1786 } 1787 } 1788 1789 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 1790 [System.ServiceModel.ServiceContractAttribute(ConfigurationName="HeuristicLab.Clients.Hive.IHiveService")] 1791 public interface IHiveService 1792 { 1793 1794 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GetJobsByResourceId", ReplyAction="http://tempuri.org/IHiveService/GetJobsByResourceIdResponse")] 1795 System.Collections.Generic.List<HeuristicLab.Clients.Hive.Job> GetJobsByResourceId(System.Guid resourceId); 1796 1797 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/TriggerLifecycle", ReplyAction="http://tempuri.org/IHiveService/TriggerLifecycleResponse")] 1798 void TriggerLifecycle(bool force); 1799 1800 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/AddAppointment", ReplyAction="http://tempuri.org/IHiveService/AddAppointmentResponse")] 1801 System.Guid AddAppointment(HeuristicLab.Clients.Hive.Appointment appointment); 1802 1803 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/DeleteAppointment", ReplyAction="http://tempuri.org/IHiveService/DeleteAppointmentResponse")] 1804 void DeleteAppointment(System.Guid appointmentId); 1805 1806 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/UpdateAppointment", ReplyAction="http://tempuri.org/IHiveService/UpdateAppointmentResponse")] 1807 void UpdateAppointment(HeuristicLab.Clients.Hive.Appointment appointment); 1808 1809 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GetScheduleForResource", ReplyAction="http://tempuri.org/IHiveService/GetScheduleForResourceResponse")] 1810 System.Collections.Generic.List<HeuristicLab.Clients.Hive.Appointment> GetScheduleForResource(System.Guid resourceId); 1811 1812 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/AddJob", ReplyAction="http://tempuri.org/IHiveService/AddJobResponse")] 1813 System.Guid AddJob(HeuristicLab.Clients.Hive.Job job, HeuristicLab.Clients.Hive.JobData jobData, System.Collections.Generic.List<System.Guid> resourceIds); 1814 1815 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/AddChildJob", ReplyAction="http://tempuri.org/IHiveService/AddChildJobResponse")] 1816 System.Guid AddChildJob(System.Guid parentJobId, HeuristicLab.Clients.Hive.Job job, HeuristicLab.Clients.Hive.JobData jobData); 1817 1818 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GetJob", ReplyAction="http://tempuri.org/IHiveService/GetJobResponse")] 1819 HeuristicLab.Clients.Hive.Job GetJob(System.Guid jobId); 1820 1821 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GetJobs", ReplyAction="http://tempuri.org/IHiveService/GetJobsResponse")] 1822 System.Collections.Generic.List<HeuristicLab.Clients.Hive.Job> GetJobs(); 1823 1824 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GetLightweightJobs", ReplyAction="http://tempuri.org/IHiveService/GetLightweightJobsResponse")] 1825 System.Collections.Generic.List<HeuristicLab.Clients.Hive.LightweightJob> GetLightweightJobs(System.Collections.Generic.List<System.Guid> jobIds); 1826 1827 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GetLightweightChildJobs", ReplyAction="http://tempuri.org/IHiveService/GetLightweightChildJobsResponse")] 1828 System.Collections.Generic.List<HeuristicLab.Clients.Hive.LightweightJob> GetLightweightChildJobs(System.Nullable<System.Guid> parentJobId, bool recursive, bool includeParent); 1829 1830 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GetLightweightExperimentJobs", ReplyAction="http://tempuri.org/IHiveService/GetLightweightExperimentJobsResponse")] 1831 System.Collections.Generic.List<HeuristicLab.Clients.Hive.LightweightJob> GetLightweightExperimentJobs(System.Guid experimentId); 1832 1833 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GetJobData", ReplyAction="http://tempuri.org/IHiveService/GetJobDataResponse")] 1834 HeuristicLab.Clients.Hive.JobData GetJobData(System.Guid jobId); 1835 1836 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/UpdateJob", ReplyAction="http://tempuri.org/IHiveService/UpdateJobResponse")] 1837 void UpdateJob(HeuristicLab.Clients.Hive.Job jobDto); 1838 1839 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/UpdateJobData", ReplyAction="http://tempuri.org/IHiveService/UpdateJobDataResponse")] 1840 void UpdateJobData(HeuristicLab.Clients.Hive.Job jobDto, HeuristicLab.Clients.Hive.JobData jobDataDto); 1841 1842 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/DeleteJob", ReplyAction="http://tempuri.org/IHiveService/DeleteJobResponse")] 1843 void DeleteJob(System.Guid jobId); 1844 1845 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/DeleteChildJobs", ReplyAction="http://tempuri.org/IHiveService/DeleteChildJobsResponse")] 1846 void DeleteChildJobs(System.Guid parentJobId); 1847 1848 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/UpdateJobState", ReplyAction="http://tempuri.org/IHiveService/UpdateJobStateResponse")] 1849 HeuristicLab.Clients.Hive.Job UpdateJobState(System.Guid jobId, HeuristicLab.Clients.Hive.JobState jobState, System.Nullable<System.Guid> slaveId, System.Nullable<System.Guid> userId, string exception); 1850 1851 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/StopJob", ReplyAction="http://tempuri.org/IHiveService/StopJobResponse")] 1852 void StopJob(System.Guid jobId); 1853 1854 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/PauseJob", ReplyAction="http://tempuri.org/IHiveService/PauseJobResponse")] 1855 void PauseJob(System.Guid jobId); 1856 1857 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/RestartJob", ReplyAction="http://tempuri.org/IHiveService/RestartJobResponse")] 1858 void RestartJob(System.Guid jobId); 1859 1860 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GetHiveExperiment", ReplyAction="http://tempuri.org/IHiveService/GetHiveExperimentResponse")] 1861 HeuristicLab.Clients.Hive.HiveExperiment GetHiveExperiment(System.Guid id); 1862 1863 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GetHiveExperiments", ReplyAction="http://tempuri.org/IHiveService/GetHiveExperimentsResponse")] 1864 System.Collections.Generic.List<HeuristicLab.Clients.Hive.HiveExperiment> GetHiveExperiments(); 1865 1866 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GetAllHiveExperiments", ReplyAction="http://tempuri.org/IHiveService/GetAllHiveExperimentsResponse")] 1867 System.Collections.Generic.List<HeuristicLab.Clients.Hive.HiveExperiment> GetAllHiveExperiments(); 1868 1869 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/AddHiveExperiment", ReplyAction="http://tempuri.org/IHiveService/AddHiveExperimentResponse")] 1870 System.Guid AddHiveExperiment(HeuristicLab.Clients.Hive.HiveExperiment hiveExperimentDto); 1871 1872 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/UpdateHiveExperiment", ReplyAction="http://tempuri.org/IHiveService/UpdateHiveExperimentResponse")] 1873 void UpdateHiveExperiment(HeuristicLab.Clients.Hive.HiveExperiment hiveExperimentDto); 1874 1875 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/DeleteHiveExperiment", ReplyAction="http://tempuri.org/IHiveService/DeleteHiveExperimentResponse")] 1876 void DeleteHiveExperiment(System.Guid hiveExperimentId); 1877 1878 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/Hello", ReplyAction="http://tempuri.org/IHiveService/HelloResponse")] 1879 void Hello(HeuristicLab.Clients.Hive.Slave slave); 1880 1881 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GoodBye", ReplyAction="http://tempuri.org/IHiveService/GoodByeResponse")] 1882 void GoodBye(System.Guid slaveId); 1883 1884 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/Heartbeat", ReplyAction="http://tempuri.org/IHiveService/HeartbeatResponse")] 1885 System.Collections.Generic.List<HeuristicLab.Clients.Hive.MessageContainer> Heartbeat([System.ServiceModel.MessageParameterAttribute(Name="heartbeat")] HeuristicLab.Clients.Hive.Heartbeat heartbeat1); 1886 1887 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GetPlugin", ReplyAction="http://tempuri.org/IHiveService/GetPluginResponse")] 1888 HeuristicLab.Clients.Hive.Plugin GetPlugin(System.Guid pluginId); 1889 1890 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/AddPlugin", ReplyAction="http://tempuri.org/IHiveService/AddPluginResponse")] 1891 [System.ServiceModel.FaultContractAttribute(typeof(HeuristicLab.Clients.Hive.PluginAlreadyExistsFault), Action="http://tempuri.org/IHiveService/AddPluginPluginAlreadyExistsFaultFault", Name="PluginAlreadyExistsFault", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common")] 1892 System.Guid AddPlugin(HeuristicLab.Clients.Hive.Plugin plugin, System.Collections.Generic.List<HeuristicLab.Clients.Hive.PluginData> pluginData); 1893 1894 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GetPlugins", ReplyAction="http://tempuri.org/IHiveService/GetPluginsResponse")] 1895 System.Collections.Generic.List<HeuristicLab.Clients.Hive.Plugin> GetPlugins(); 1896 1897 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GetPluginDatas", ReplyAction="http://tempuri.org/IHiveService/GetPluginDatasResponse")] 1898 System.Collections.Generic.List<HeuristicLab.Clients.Hive.PluginData> GetPluginDatas(System.Collections.Generic.List<System.Guid> pluginIds); 1899 1900 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/AddSlave", ReplyAction="http://tempuri.org/IHiveService/AddSlaveResponse")] 1901 System.Guid AddSlave(HeuristicLab.Clients.Hive.Slave slave); 1902 1903 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/AddSlaveGroup", ReplyAction="http://tempuri.org/IHiveService/AddSlaveGroupResponse")] 1904 System.Guid AddSlaveGroup(HeuristicLab.Clients.Hive.SlaveGroup slaveGroup); 1905 1906 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GetSlave", ReplyAction="http://tempuri.org/IHiveService/GetSlaveResponse")] 1907 HeuristicLab.Clients.Hive.Slave GetSlave(System.Guid slaveId); 1908 1909 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GetSlaveGroup", ReplyAction="http://tempuri.org/IHiveService/GetSlaveGroupResponse")] 1910 HeuristicLab.Clients.Hive.SlaveGroup GetSlaveGroup(System.Guid slaveGroupId); 1911 1912 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GetSlaves", ReplyAction="http://tempuri.org/IHiveService/GetSlavesResponse")] 1913 System.Collections.Generic.List<HeuristicLab.Clients.Hive.Slave> GetSlaves(); 1914 1915 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GetSlaveGroups", ReplyAction="http://tempuri.org/IHiveService/GetSlaveGroupsResponse")] 1916 System.Collections.Generic.List<HeuristicLab.Clients.Hive.SlaveGroup> GetSlaveGroups(); 1917 1918 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/UpdateSlave", ReplyAction="http://tempuri.org/IHiveService/UpdateSlaveResponse")] 1919 void UpdateSlave(HeuristicLab.Clients.Hive.Slave slave); 1920 1921 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/UpdateSlaveGroup", ReplyAction="http://tempuri.org/IHiveService/UpdateSlaveGroupResponse")] 1922 void UpdateSlaveGroup(HeuristicLab.Clients.Hive.SlaveGroup slaveGroup); 1923 1924 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/DeleteSlave", ReplyAction="http://tempuri.org/IHiveService/DeleteSlaveResponse")] 1925 void DeleteSlave(System.Guid slaveId); 1926 1927 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/DeleteSlaveGroup", ReplyAction="http://tempuri.org/IHiveService/DeleteSlaveGroupResponse")] 1928 void DeleteSlaveGroup(System.Guid slaveGroupId); 1929 1930 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/AddResourceToGroup", ReplyAction="http://tempuri.org/IHiveService/AddResourceToGroupResponse")] 1931 void AddResourceToGroup(System.Guid slaveGroupId, System.Guid resourceId); 1932 1933 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/RemoveResourceFromGroup", ReplyAction="http://tempuri.org/IHiveService/RemoveResourceFromGroupResponse")] 1934 void RemoveResourceFromGroup(System.Guid slaveGroupId, System.Guid resourceId); 1935 1936 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GetResourceId", ReplyAction="http://tempuri.org/IHiveService/GetResourceIdResponse")] 1937 System.Guid GetResourceId(string resourceName); 1938 } 1939 1940 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 1941 public interface IHiveServiceChannel : HeuristicLab.Clients.Hive.IHiveService, System.ServiceModel.IClientChannel 1942 { 1943 } 1944 1945 [System.Diagnostics.DebuggerStepThroughAttribute()] 1946 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 1947 public partial class HiveServiceClient : System.ServiceModel.ClientBase<HeuristicLab.Clients.Hive.IHiveService>, HeuristicLab.Clients.Hive.IHiveService 1948 { 1949 1950 public HiveServiceClient() 1951 { 1952 } 1953 1954 public HiveServiceClient(string endpointConfigurationName) : 1955 base(endpointConfigurationName) 1956 { 1957 } 1958 1959 public HiveServiceClient(string endpointConfigurationName, string remoteAddress) : 1960 base(endpointConfigurationName, remoteAddress) 1961 { 1962 } 1963 1964 public HiveServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 1965 base(endpointConfigurationName, remoteAddress) 1966 { 1967 } 1968 1969 public HiveServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 1970 base(binding, remoteAddress) 1971 { 1972 } 1973 1974 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.Job> GetJobsByResourceId(System.Guid resourceId) 1975 { 1976 return base.Channel.GetJobsByResourceId(resourceId); 1977 } 1978 1979 public void TriggerLifecycle(bool force) 1980 { 1981 base.Channel.TriggerLifecycle(force); 1982 } 1983 1984 public System.Guid AddAppointment(HeuristicLab.Clients.Hive.Appointment appointment) 1985 { 1986 return base.Channel.AddAppointment(appointment); 1987 } 1988 1989 public void DeleteAppointment(System.Guid appointmentId) 1990 { 1991 base.Channel.DeleteAppointment(appointmentId); 1992 } 1993 1994 public void UpdateAppointment(HeuristicLab.Clients.Hive.Appointment appointment) 1995 { 1996 base.Channel.UpdateAppointment(appointment); 1997 } 1998 1999 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.Appointment> GetScheduleForResource(System.Guid resourceId) 2000 { 2001 return base.Channel.GetScheduleForResource(resourceId); 2002 } 2003 2004 public System.Guid AddJob(HeuristicLab.Clients.Hive.Job job, HeuristicLab.Clients.Hive.JobData jobData, System.Collections.Generic.List<System.Guid> resourceIds) 2005 { 2006 return base.Channel.AddJob(job, jobData, resourceIds); 2007 } 2008 2009 public System.Guid AddChildJob(System.Guid parentJobId, HeuristicLab.Clients.Hive.Job job, HeuristicLab.Clients.Hive.JobData jobData) 2010 { 2011 return base.Channel.AddChildJob(parentJobId, job, jobData); 2012 } 2013 2014 public HeuristicLab.Clients.Hive.Job GetJob(System.Guid jobId) 2015 { 2016 return base.Channel.GetJob(jobId); 2017 } 2018 2019 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.Job> GetJobs() 2020 { 2021 return base.Channel.GetJobs(); 2022 } 2023 2024 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.LightweightJob> GetLightweightJobs(System.Collections.Generic.List<System.Guid> jobIds) 2025 { 2026 return base.Channel.GetLightweightJobs(jobIds); 2027 } 2028 2029 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.LightweightJob> GetLightweightChildJobs(System.Nullable<System.Guid> parentJobId, bool recursive, bool includeParent) 2030 { 2031 return base.Channel.GetLightweightChildJobs(parentJobId, recursive, includeParent); 2032 } 2033 2034 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.LightweightJob> GetLightweightExperimentJobs(System.Guid experimentId) 2035 { 2036 return base.Channel.GetLightweightExperimentJobs(experimentId); 2037 } 2038 2039 public HeuristicLab.Clients.Hive.JobData GetJobData(System.Guid jobId) 2040 { 2041 return base.Channel.GetJobData(jobId); 2042 } 2043 2044 public void UpdateJob(HeuristicLab.Clients.Hive.Job jobDto) 2045 { 2046 base.Channel.UpdateJob(jobDto); 2047 } 2048 2049 public void UpdateJobData(HeuristicLab.Clients.Hive.Job jobDto, HeuristicLab.Clients.Hive.JobData jobDataDto) 2050 { 2051 base.Channel.UpdateJobData(jobDto, jobDataDto); 2052 } 2053 2054 public void DeleteJob(System.Guid jobId) 2055 { 2056 base.Channel.DeleteJob(jobId); 2057 } 2058 2059 public void DeleteChildJobs(System.Guid parentJobId) 2060 { 2061 base.Channel.DeleteChildJobs(parentJobId); 2062 } 2063 2064 public HeuristicLab.Clients.Hive.Job UpdateJobState(System.Guid jobId, HeuristicLab.Clients.Hive.JobState jobState, System.Nullable<System.Guid> slaveId, System.Nullable<System.Guid> userId, string exception) 2065 { 2066 return base.Channel.UpdateJobState(jobId, jobState, slaveId, userId, exception); 2067 } 2068 2069 public void StopJob(System.Guid jobId) 2070 { 2071 base.Channel.StopJob(jobId); 2072 } 2073 2074 public void PauseJob(System.Guid jobId) 2075 { 2076 base.Channel.PauseJob(jobId); 2077 } 2078 2079 public void RestartJob(System.Guid jobId) 2080 { 2081 base.Channel.RestartJob(jobId); 2082 } 2083 2084 public HeuristicLab.Clients.Hive.HiveExperiment GetHiveExperiment(System.Guid id) 2085 { 2086 return base.Channel.GetHiveExperiment(id); 2087 } 2088 2089 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.HiveExperiment> GetHiveExperiments() 2090 { 2091 return base.Channel.GetHiveExperiments(); 2092 } 2093 2094 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.HiveExperiment> GetAllHiveExperiments() 2095 { 2096 return base.Channel.GetAllHiveExperiments(); 2097 } 2098 2099 public System.Guid AddHiveExperiment(HeuristicLab.Clients.Hive.HiveExperiment hiveExperimentDto) 2100 { 2101 return base.Channel.AddHiveExperiment(hiveExperimentDto); 2102 } 2103 2104 public void UpdateHiveExperiment(HeuristicLab.Clients.Hive.HiveExperiment hiveExperimentDto) 2105 { 2106 base.Channel.UpdateHiveExperiment(hiveExperimentDto); 2107 } 2108 2109 public void DeleteHiveExperiment(System.Guid hiveExperimentId) 2110 { 2111 base.Channel.DeleteHiveExperiment(hiveExperimentId); 2112 } 2113 2114 public void Hello(HeuristicLab.Clients.Hive.Slave slave) 2115 { 2116 base.Channel.Hello(slave); 2117 } 2118 2119 public void GoodBye(System.Guid slaveId) 2120 { 2121 base.Channel.GoodBye(slaveId); 2122 } 2123 2124 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.MessageContainer> Heartbeat(HeuristicLab.Clients.Hive.Heartbeat heartbeat1) 2125 { 2126 return base.Channel.Heartbeat(heartbeat1); 2127 } 2128 2129 public HeuristicLab.Clients.Hive.Plugin GetPlugin(System.Guid pluginId) 2130 { 2131 return base.Channel.GetPlugin(pluginId); 2132 } 2133 2134 public System.Guid AddPlugin(HeuristicLab.Clients.Hive.Plugin plugin, System.Collections.Generic.List<HeuristicLab.Clients.Hive.PluginData> pluginData) 2135 { 2136 return base.Channel.AddPlugin(plugin, pluginData); 2137 } 2138 2139 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.Plugin> GetPlugins() 2140 { 2141 return base.Channel.GetPlugins(); 2142 } 2143 2144 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.PluginData> GetPluginDatas(System.Collections.Generic.List<System.Guid> pluginIds) 2145 { 2146 return base.Channel.GetPluginDatas(pluginIds); 2147 } 2148 2149 public System.Guid AddSlave(HeuristicLab.Clients.Hive.Slave slave) 2150 { 2151 return base.Channel.AddSlave(slave); 2152 } 2153 2154 public System.Guid AddSlaveGroup(HeuristicLab.Clients.Hive.SlaveGroup slaveGroup) 2155 { 2156 return base.Channel.AddSlaveGroup(slaveGroup); 2157 } 2158 2159 public HeuristicLab.Clients.Hive.Slave GetSlave(System.Guid slaveId) 2160 { 2161 return base.Channel.GetSlave(slaveId); 2162 } 2163 2164 public HeuristicLab.Clients.Hive.SlaveGroup GetSlaveGroup(System.Guid slaveGroupId) 2165 { 2166 return base.Channel.GetSlaveGroup(slaveGroupId); 2167 } 2168 2169 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.Slave> GetSlaves() 2170 { 2171 return base.Channel.GetSlaves(); 2172 } 2173 2174 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.SlaveGroup> GetSlaveGroups() 2175 { 2176 return base.Channel.GetSlaveGroups(); 2177 } 2178 2179 public void UpdateSlave(HeuristicLab.Clients.Hive.Slave slave) 2180 { 2181 base.Channel.UpdateSlave(slave); 2182 } 2183 2184 public void UpdateSlaveGroup(HeuristicLab.Clients.Hive.SlaveGroup slaveGroup) 2185 { 2186 base.Channel.UpdateSlaveGroup(slaveGroup); 2187 } 2188 2189 public void DeleteSlave(System.Guid slaveId) 2190 { 2191 base.Channel.DeleteSlave(slaveId); 2192 } 2193 2194 public void DeleteSlaveGroup(System.Guid slaveGroupId) 2195 { 2196 base.Channel.DeleteSlaveGroup(slaveGroupId); 2197 } 2198 2199 public void AddResourceToGroup(System.Guid slaveGroupId, System.Guid resourceId) 2200 { 2201 base.Channel.AddResourceToGroup(slaveGroupId, resourceId); 2202 } 2203 2204 public void RemoveResourceFromGroup(System.Guid slaveGroupId, System.Guid resourceId) 2205 { 2206 base.Channel.RemoveResourceFromGroup(slaveGroupId, resourceId); 2207 } 2208 2209 public System.Guid GetResourceId(string resourceName) 2210 { 2211 return base.Channel.GetResourceId(resourceName); 2212 } 2213 } 1389 [System.Runtime.Serialization.DataContractAttribute(Name = "MessageContainer.MessageType", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common")] 1390 public enum MessageType : int { 1391 1392 [System.Runtime.Serialization.EnumMemberAttribute()] 1393 CalculateJob = 0, 1394 1395 [System.Runtime.Serialization.EnumMemberAttribute()] 1396 StopJob = 1, 1397 1398 [System.Runtime.Serialization.EnumMemberAttribute()] 1399 StopAll = 2, 1400 1401 [System.Runtime.Serialization.EnumMemberAttribute()] 1402 AbortJob = 3, 1403 1404 [System.Runtime.Serialization.EnumMemberAttribute()] 1405 AbortAll = 4, 1406 1407 [System.Runtime.Serialization.EnumMemberAttribute()] 1408 PauseJob = 5, 1409 1410 [System.Runtime.Serialization.EnumMemberAttribute()] 1411 PauseAll = 6, 1412 1413 [System.Runtime.Serialization.EnumMemberAttribute()] 1414 Restart = 7, 1415 1416 [System.Runtime.Serialization.EnumMemberAttribute()] 1417 Sleep = 8, 1418 1419 [System.Runtime.Serialization.EnumMemberAttribute()] 1420 ShutdownSlave = 9, 1421 1422 [System.Runtime.Serialization.EnumMemberAttribute()] 1423 SayHello = 10, 1424 } 1425 } 1426 1427 [System.Diagnostics.DebuggerStepThroughAttribute()] 1428 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 1429 [System.Runtime.Serialization.DataContractAttribute(Name = "PluginAlreadyExistsFault", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common")] 1430 [System.SerializableAttribute()] 1431 public partial class PluginAlreadyExistsFault : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { 1432 1433 [System.NonSerializedAttribute()] 1434 private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 1435 1436 [System.Runtime.Serialization.OptionalFieldAttribute()] 1437 private System.Guid IdField; 1438 1439 public System.Runtime.Serialization.ExtensionDataObject ExtensionData { 1440 get { 1441 return this.extensionDataField; 1442 } 1443 set { 1444 this.extensionDataField = value; 1445 } 1446 } 1447 1448 [System.Runtime.Serialization.DataMemberAttribute()] 1449 public System.Guid Id { 1450 get { 1451 return this.IdField; 1452 } 1453 set { 1454 if ((this.IdField.Equals(value) != true)) { 1455 this.IdField = value; 1456 this.RaisePropertyChanged("Id"); 1457 } 1458 } 1459 } 1460 1461 public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 1462 1463 protected void RaisePropertyChanged(string propertyName) { 1464 System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; 1465 if ((propertyChanged != null)) { 1466 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); 1467 } 1468 } 1469 } 1470 1471 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 1472 [System.ServiceModel.ServiceContractAttribute(ConfigurationName = "HeuristicLab.Clients.Hive.IHiveService")] 1473 public interface IHiveService { 1474 1475 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/GetPluginDatas", ReplyAction = "http://tempuri.org/IHiveService/GetPluginDatasResponse")] 1476 System.Collections.Generic.List<HeuristicLab.Clients.Hive.PluginData> GetPluginDatas(System.Collections.Generic.List<System.Guid> pluginIds); 1477 1478 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/AddSlave", ReplyAction = "http://tempuri.org/IHiveService/AddSlaveResponse")] 1479 System.Guid AddSlave(HeuristicLab.Clients.Hive.Slave slave); 1480 1481 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/AddSlaveGroup", ReplyAction = "http://tempuri.org/IHiveService/AddSlaveGroupResponse")] 1482 System.Guid AddSlaveGroup(HeuristicLab.Clients.Hive.SlaveGroup slaveGroup); 1483 1484 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/GetSlave", ReplyAction = "http://tempuri.org/IHiveService/GetSlaveResponse")] 1485 HeuristicLab.Clients.Hive.Slave GetSlave(System.Guid slaveId); 1486 1487 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/GetSlaveGroup", ReplyAction = "http://tempuri.org/IHiveService/GetSlaveGroupResponse")] 1488 HeuristicLab.Clients.Hive.SlaveGroup GetSlaveGroup(System.Guid slaveGroupId); 1489 1490 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/GetSlaves", ReplyAction = "http://tempuri.org/IHiveService/GetSlavesResponse")] 1491 System.Collections.Generic.List<HeuristicLab.Clients.Hive.Slave> GetSlaves(); 1492 1493 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/GetSlaveGroups", ReplyAction = "http://tempuri.org/IHiveService/GetSlaveGroupsResponse")] 1494 System.Collections.Generic.List<HeuristicLab.Clients.Hive.SlaveGroup> GetSlaveGroups(); 1495 1496 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/UpdateSlave", ReplyAction = "http://tempuri.org/IHiveService/UpdateSlaveResponse")] 1497 void UpdateSlave(HeuristicLab.Clients.Hive.Slave slave); 1498 1499 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/UpdateSlaveGroup", ReplyAction = "http://tempuri.org/IHiveService/UpdateSlaveGroupResponse")] 1500 void UpdateSlaveGroup(HeuristicLab.Clients.Hive.SlaveGroup slaveGroup); 1501 1502 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/DeleteSlave", ReplyAction = "http://tempuri.org/IHiveService/DeleteSlaveResponse")] 1503 void DeleteSlave(System.Guid slaveId); 1504 1505 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/DeleteSlaveGroup", ReplyAction = "http://tempuri.org/IHiveService/DeleteSlaveGroupResponse")] 1506 void DeleteSlaveGroup(System.Guid slaveGroupId); 1507 1508 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/AddResourceToGroup", ReplyAction = "http://tempuri.org/IHiveService/AddResourceToGroupResponse")] 1509 void AddResourceToGroup(System.Guid slaveGroupId, System.Guid resourceId); 1510 1511 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/RemoveResourceFromGroup", ReplyAction = "http://tempuri.org/IHiveService/RemoveResourceFromGroupResponse")] 1512 void RemoveResourceFromGroup(System.Guid slaveGroupId, System.Guid resourceId); 1513 1514 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/GetResourceId", ReplyAction = "http://tempuri.org/IHiveService/GetResourceIdResponse")] 1515 System.Guid GetResourceId(string resourceName); 1516 1517 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/GetJobsByResourceId", ReplyAction = "http://tempuri.org/IHiveService/GetJobsByResourceIdResponse")] 1518 System.Collections.Generic.List<HeuristicLab.Clients.Hive.Job> GetJobsByResourceId(System.Guid resourceId); 1519 1520 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/TriggerLifecycle", ReplyAction = "http://tempuri.org/IHiveService/TriggerLifecycleResponse")] 1521 void TriggerLifecycle(bool force); 1522 1523 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/AddAppointment", ReplyAction = "http://tempuri.org/IHiveService/AddAppointmentResponse")] 1524 System.Guid AddAppointment(HeuristicLab.Clients.Hive.Appointment appointment); 1525 1526 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/DeleteAppointment", ReplyAction = "http://tempuri.org/IHiveService/DeleteAppointmentResponse")] 1527 void DeleteAppointment(System.Guid appointmentId); 1528 1529 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/UpdateAppointment", ReplyAction = "http://tempuri.org/IHiveService/UpdateAppointmentResponse")] 1530 void UpdateAppointment(HeuristicLab.Clients.Hive.Appointment appointment); 1531 1532 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/GetScheduleForResource", ReplyAction = "http://tempuri.org/IHiveService/GetScheduleForResourceResponse")] 1533 System.Collections.Generic.List<HeuristicLab.Clients.Hive.Appointment> GetScheduleForResource(System.Guid resourceId); 1534 1535 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/AddJob", ReplyAction = "http://tempuri.org/IHiveService/AddJobResponse")] 1536 System.Guid AddJob(HeuristicLab.Clients.Hive.Job job, HeuristicLab.Clients.Hive.JobData jobData, System.Collections.Generic.List<System.Guid> resourceIds); 1537 1538 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/AddChildJob", ReplyAction = "http://tempuri.org/IHiveService/AddChildJobResponse")] 1539 System.Guid AddChildJob(System.Guid parentJobId, HeuristicLab.Clients.Hive.Job job, HeuristicLab.Clients.Hive.JobData jobData); 1540 1541 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/GetJob", ReplyAction = "http://tempuri.org/IHiveService/GetJobResponse")] 1542 HeuristicLab.Clients.Hive.Job GetJob(System.Guid jobId); 1543 1544 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/GetJobs", ReplyAction = "http://tempuri.org/IHiveService/GetJobsResponse")] 1545 System.Collections.Generic.List<HeuristicLab.Clients.Hive.Job> GetJobs(); 1546 1547 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/GetLightweightJobs", ReplyAction = "http://tempuri.org/IHiveService/GetLightweightJobsResponse")] 1548 System.Collections.Generic.List<HeuristicLab.Clients.Hive.LightweightJob> GetLightweightJobs(System.Collections.Generic.List<System.Guid> jobIds); 1549 1550 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/GetLightweightChildJobs", ReplyAction = "http://tempuri.org/IHiveService/GetLightweightChildJobsResponse")] 1551 System.Collections.Generic.List<HeuristicLab.Clients.Hive.LightweightJob> GetLightweightChildJobs(System.Nullable<System.Guid> parentJobId, bool recursive, bool includeParent); 1552 1553 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/GetLightweightExperimentJobs", ReplyAction = "http://tempuri.org/IHiveService/GetLightweightExperimentJobsResponse")] 1554 System.Collections.Generic.List<HeuristicLab.Clients.Hive.LightweightJob> GetLightweightExperimentJobs(System.Guid experimentId); 1555 1556 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/GetJobData", ReplyAction = "http://tempuri.org/IHiveService/GetJobDataResponse")] 1557 HeuristicLab.Clients.Hive.JobData GetJobData(System.Guid jobId); 1558 1559 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/UpdateJob", ReplyAction = "http://tempuri.org/IHiveService/UpdateJobResponse")] 1560 void UpdateJob(HeuristicLab.Clients.Hive.Job jobDto); 1561 1562 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/UpdateJobData", ReplyAction = "http://tempuri.org/IHiveService/UpdateJobDataResponse")] 1563 void UpdateJobData(HeuristicLab.Clients.Hive.Job jobDto, HeuristicLab.Clients.Hive.JobData jobDataDto); 1564 1565 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/DeleteJob", ReplyAction = "http://tempuri.org/IHiveService/DeleteJobResponse")] 1566 void DeleteJob(System.Guid jobId); 1567 1568 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/DeleteChildJobs", ReplyAction = "http://tempuri.org/IHiveService/DeleteChildJobsResponse")] 1569 void DeleteChildJobs(System.Guid parentJobId); 1570 1571 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/UpdateJobState", ReplyAction = "http://tempuri.org/IHiveService/UpdateJobStateResponse")] 1572 HeuristicLab.Clients.Hive.Job UpdateJobState(System.Guid jobId, HeuristicLab.Clients.Hive.JobState jobState, System.Nullable<System.Guid> slaveId, System.Nullable<System.Guid> userId, string exception); 1573 1574 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/StopJob", ReplyAction = "http://tempuri.org/IHiveService/StopJobResponse")] 1575 void StopJob(System.Guid jobId); 1576 1577 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/PauseJob", ReplyAction = "http://tempuri.org/IHiveService/PauseJobResponse")] 1578 void PauseJob(System.Guid jobId); 1579 1580 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/RestartJob", ReplyAction = "http://tempuri.org/IHiveService/RestartJobResponse")] 1581 void RestartJob(System.Guid jobId); 1582 1583 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/GetHiveExperiment", ReplyAction = "http://tempuri.org/IHiveService/GetHiveExperimentResponse")] 1584 HeuristicLab.Clients.Hive.HiveExperiment GetHiveExperiment(System.Guid id); 1585 1586 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/GetHiveExperiments", ReplyAction = "http://tempuri.org/IHiveService/GetHiveExperimentsResponse")] 1587 System.Collections.Generic.List<HeuristicLab.Clients.Hive.HiveExperiment> GetHiveExperiments(); 1588 1589 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/GetAllHiveExperiments", ReplyAction = "http://tempuri.org/IHiveService/GetAllHiveExperimentsResponse")] 1590 System.Collections.Generic.List<HeuristicLab.Clients.Hive.HiveExperiment> GetAllHiveExperiments(); 1591 1592 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/AddHiveExperiment", ReplyAction = "http://tempuri.org/IHiveService/AddHiveExperimentResponse")] 1593 System.Guid AddHiveExperiment(HeuristicLab.Clients.Hive.HiveExperiment hiveExperimentDto); 1594 1595 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/UpdateHiveExperiment", ReplyAction = "http://tempuri.org/IHiveService/UpdateHiveExperimentResponse")] 1596 void UpdateHiveExperiment(HeuristicLab.Clients.Hive.HiveExperiment hiveExperimentDto); 1597 1598 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/DeleteHiveExperiment", ReplyAction = "http://tempuri.org/IHiveService/DeleteHiveExperimentResponse")] 1599 void DeleteHiveExperiment(System.Guid hiveExperimentId); 1600 1601 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/Hello", ReplyAction = "http://tempuri.org/IHiveService/HelloResponse")] 1602 void Hello(HeuristicLab.Clients.Hive.Slave slave); 1603 1604 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/GoodBye", ReplyAction = "http://tempuri.org/IHiveService/GoodByeResponse")] 1605 void GoodBye(System.Guid slaveId); 1606 1607 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/Heartbeat", ReplyAction = "http://tempuri.org/IHiveService/HeartbeatResponse")] 1608 System.Collections.Generic.List<HeuristicLab.Clients.Hive.MessageContainer> Heartbeat([System.ServiceModel.MessageParameterAttribute(Name = "heartbeat")] HeuristicLab.Clients.Hive.Heartbeat heartbeat1); 1609 1610 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/GetPlugin", ReplyAction = "http://tempuri.org/IHiveService/GetPluginResponse")] 1611 HeuristicLab.Clients.Hive.Plugin GetPlugin(System.Guid pluginId); 1612 1613 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/AddPlugin", ReplyAction = "http://tempuri.org/IHiveService/AddPluginResponse")] 1614 [System.ServiceModel.FaultContractAttribute(typeof(HeuristicLab.Clients.Hive.PluginAlreadyExistsFault), Action = "http://tempuri.org/IHiveService/AddPluginPluginAlreadyExistsFaultFault", Name = "PluginAlreadyExistsFault", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.Common")] 1615 System.Guid AddPlugin(HeuristicLab.Clients.Hive.Plugin plugin, System.Collections.Generic.List<HeuristicLab.Clients.Hive.PluginData> pluginData); 1616 1617 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/GetPlugins", ReplyAction = "http://tempuri.org/IHiveService/GetPluginsResponse")] 1618 System.Collections.Generic.List<HeuristicLab.Clients.Hive.Plugin> GetPlugins(); 1619 } 1620 1621 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 1622 public interface IHiveServiceChannel : HeuristicLab.Clients.Hive.IHiveService, System.ServiceModel.IClientChannel { 1623 } 1624 1625 [System.Diagnostics.DebuggerStepThroughAttribute()] 1626 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 1627 public partial class HiveServiceClient : System.ServiceModel.ClientBase<HeuristicLab.Clients.Hive.IHiveService>, HeuristicLab.Clients.Hive.IHiveService { 1628 1629 public HiveServiceClient() { 1630 } 1631 1632 public HiveServiceClient(string endpointConfigurationName) : 1633 base(endpointConfigurationName) { 1634 } 1635 1636 public HiveServiceClient(string endpointConfigurationName, string remoteAddress) : 1637 base(endpointConfigurationName, remoteAddress) { 1638 } 1639 1640 public HiveServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 1641 base(endpointConfigurationName, remoteAddress) { 1642 } 1643 1644 public HiveServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 1645 base(binding, remoteAddress) { 1646 } 1647 1648 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.PluginData> GetPluginDatas(System.Collections.Generic.List<System.Guid> pluginIds) { 1649 return base.Channel.GetPluginDatas(pluginIds); 1650 } 1651 1652 public System.Guid AddSlave(HeuristicLab.Clients.Hive.Slave slave) { 1653 return base.Channel.AddSlave(slave); 1654 } 1655 1656 public System.Guid AddSlaveGroup(HeuristicLab.Clients.Hive.SlaveGroup slaveGroup) { 1657 return base.Channel.AddSlaveGroup(slaveGroup); 1658 } 1659 1660 public HeuristicLab.Clients.Hive.Slave GetSlave(System.Guid slaveId) { 1661 return base.Channel.GetSlave(slaveId); 1662 } 1663 1664 public HeuristicLab.Clients.Hive.SlaveGroup GetSlaveGroup(System.Guid slaveGroupId) { 1665 return base.Channel.GetSlaveGroup(slaveGroupId); 1666 } 1667 1668 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.Slave> GetSlaves() { 1669 return base.Channel.GetSlaves(); 1670 } 1671 1672 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.SlaveGroup> GetSlaveGroups() { 1673 return base.Channel.GetSlaveGroups(); 1674 } 1675 1676 public void UpdateSlave(HeuristicLab.Clients.Hive.Slave slave) { 1677 base.Channel.UpdateSlave(slave); 1678 } 1679 1680 public void UpdateSlaveGroup(HeuristicLab.Clients.Hive.SlaveGroup slaveGroup) { 1681 base.Channel.UpdateSlaveGroup(slaveGroup); 1682 } 1683 1684 public void DeleteSlave(System.Guid slaveId) { 1685 base.Channel.DeleteSlave(slaveId); 1686 } 1687 1688 public void DeleteSlaveGroup(System.Guid slaveGroupId) { 1689 base.Channel.DeleteSlaveGroup(slaveGroupId); 1690 } 1691 1692 public void AddResourceToGroup(System.Guid slaveGroupId, System.Guid resourceId) { 1693 base.Channel.AddResourceToGroup(slaveGroupId, resourceId); 1694 } 1695 1696 public void RemoveResourceFromGroup(System.Guid slaveGroupId, System.Guid resourceId) { 1697 base.Channel.RemoveResourceFromGroup(slaveGroupId, resourceId); 1698 } 1699 1700 public System.Guid GetResourceId(string resourceName) { 1701 return base.Channel.GetResourceId(resourceName); 1702 } 1703 1704 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.Job> GetJobsByResourceId(System.Guid resourceId) { 1705 return base.Channel.GetJobsByResourceId(resourceId); 1706 } 1707 1708 public void TriggerLifecycle(bool force) { 1709 base.Channel.TriggerLifecycle(force); 1710 } 1711 1712 public System.Guid AddAppointment(HeuristicLab.Clients.Hive.Appointment appointment) { 1713 return base.Channel.AddAppointment(appointment); 1714 } 1715 1716 public void DeleteAppointment(System.Guid appointmentId) { 1717 base.Channel.DeleteAppointment(appointmentId); 1718 } 1719 1720 public void UpdateAppointment(HeuristicLab.Clients.Hive.Appointment appointment) { 1721 base.Channel.UpdateAppointment(appointment); 1722 } 1723 1724 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.Appointment> GetScheduleForResource(System.Guid resourceId) { 1725 return base.Channel.GetScheduleForResource(resourceId); 1726 } 1727 1728 public System.Guid AddJob(HeuristicLab.Clients.Hive.Job job, HeuristicLab.Clients.Hive.JobData jobData, System.Collections.Generic.List<System.Guid> resourceIds) { 1729 return base.Channel.AddJob(job, jobData, resourceIds); 1730 } 1731 1732 public System.Guid AddChildJob(System.Guid parentJobId, HeuristicLab.Clients.Hive.Job job, HeuristicLab.Clients.Hive.JobData jobData) { 1733 return base.Channel.AddChildJob(parentJobId, job, jobData); 1734 } 1735 1736 public HeuristicLab.Clients.Hive.Job GetJob(System.Guid jobId) { 1737 return base.Channel.GetJob(jobId); 1738 } 1739 1740 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.Job> GetJobs() { 1741 return base.Channel.GetJobs(); 1742 } 1743 1744 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.LightweightJob> GetLightweightJobs(System.Collections.Generic.List<System.Guid> jobIds) { 1745 return base.Channel.GetLightweightJobs(jobIds); 1746 } 1747 1748 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.LightweightJob> GetLightweightChildJobs(System.Nullable<System.Guid> parentJobId, bool recursive, bool includeParent) { 1749 return base.Channel.GetLightweightChildJobs(parentJobId, recursive, includeParent); 1750 } 1751 1752 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.LightweightJob> GetLightweightExperimentJobs(System.Guid experimentId) { 1753 return base.Channel.GetLightweightExperimentJobs(experimentId); 1754 } 1755 1756 public HeuristicLab.Clients.Hive.JobData GetJobData(System.Guid jobId) { 1757 return base.Channel.GetJobData(jobId); 1758 } 1759 1760 public void UpdateJob(HeuristicLab.Clients.Hive.Job jobDto) { 1761 base.Channel.UpdateJob(jobDto); 1762 } 1763 1764 public void UpdateJobData(HeuristicLab.Clients.Hive.Job jobDto, HeuristicLab.Clients.Hive.JobData jobDataDto) { 1765 base.Channel.UpdateJobData(jobDto, jobDataDto); 1766 } 1767 1768 public void DeleteJob(System.Guid jobId) { 1769 base.Channel.DeleteJob(jobId); 1770 } 1771 1772 public void DeleteChildJobs(System.Guid parentJobId) { 1773 base.Channel.DeleteChildJobs(parentJobId); 1774 } 1775 1776 public HeuristicLab.Clients.Hive.Job UpdateJobState(System.Guid jobId, HeuristicLab.Clients.Hive.JobState jobState, System.Nullable<System.Guid> slaveId, System.Nullable<System.Guid> userId, string exception) { 1777 return base.Channel.UpdateJobState(jobId, jobState, slaveId, userId, exception); 1778 } 1779 1780 public void StopJob(System.Guid jobId) { 1781 base.Channel.StopJob(jobId); 1782 } 1783 1784 public void PauseJob(System.Guid jobId) { 1785 base.Channel.PauseJob(jobId); 1786 } 1787 1788 public void RestartJob(System.Guid jobId) { 1789 base.Channel.RestartJob(jobId); 1790 } 1791 1792 public HeuristicLab.Clients.Hive.HiveExperiment GetHiveExperiment(System.Guid id) { 1793 return base.Channel.GetHiveExperiment(id); 1794 } 1795 1796 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.HiveExperiment> GetHiveExperiments() { 1797 return base.Channel.GetHiveExperiments(); 1798 } 1799 1800 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.HiveExperiment> GetAllHiveExperiments() { 1801 return base.Channel.GetAllHiveExperiments(); 1802 } 1803 1804 public System.Guid AddHiveExperiment(HeuristicLab.Clients.Hive.HiveExperiment hiveExperimentDto) { 1805 return base.Channel.AddHiveExperiment(hiveExperimentDto); 1806 } 1807 1808 public void UpdateHiveExperiment(HeuristicLab.Clients.Hive.HiveExperiment hiveExperimentDto) { 1809 base.Channel.UpdateHiveExperiment(hiveExperimentDto); 1810 } 1811 1812 public void DeleteHiveExperiment(System.Guid hiveExperimentId) { 1813 base.Channel.DeleteHiveExperiment(hiveExperimentId); 1814 } 1815 1816 public void Hello(HeuristicLab.Clients.Hive.Slave slave) { 1817 base.Channel.Hello(slave); 1818 } 1819 1820 public void GoodBye(System.Guid slaveId) { 1821 base.Channel.GoodBye(slaveId); 1822 } 1823 1824 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.MessageContainer> Heartbeat(HeuristicLab.Clients.Hive.Heartbeat heartbeat1) { 1825 return base.Channel.Heartbeat(heartbeat1); 1826 } 1827 1828 public HeuristicLab.Clients.Hive.Plugin GetPlugin(System.Guid pluginId) { 1829 return base.Channel.GetPlugin(pluginId); 1830 } 1831 1832 public System.Guid AddPlugin(HeuristicLab.Clients.Hive.Plugin plugin, System.Collections.Generic.List<HeuristicLab.Clients.Hive.PluginData> pluginData) { 1833 return base.Channel.AddPlugin(plugin, pluginData); 1834 } 1835 1836 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.Plugin> GetPlugins() { 1837 return base.Channel.GetPlugins(); 1838 } 1839 } 2214 1840 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/Util/PluginUtil.cs
r6373 r6407 24 24 using System.IO; 25 25 using System.Linq; 26 using System.Security.Cryptography; 26 27 using System.ServiceModel; 27 28 using HeuristicLab.PluginInfrastructure; … … 41 42 public static List<Guid> GetPluginDependencies(IHiveService service, List<Plugin> onlinePlugins, List<Plugin> alreadyUploadedPlugins, IEnumerable<IPluginDescription> neededPlugins, bool useLocalPlugins) { 42 43 var pluginIds = new List<Guid>(); 43 foreach (var neededPlugin in neededPlugins) { 44 Plugin foundPlugin = alreadyUploadedPlugins.FirstOrDefault(p => p.Name == neededPlugin.Name && p.Version == neededPlugin.Version); 44 Dictionary<IPluginDescription, byte[]> checksumsNeededPlugins = CalcChecksumsForPlugins(neededPlugins); 45 46 foreach (var neededPlugin in checksumsNeededPlugins) { 47 Plugin foundPlugin = alreadyUploadedPlugins.FirstOrDefault(p => p.Hash.SequenceEqual(neededPlugin.Value)); 45 48 if (foundPlugin == null) { 46 foundPlugin = onlinePlugins.FirstOrDefault(p => p.Name == neededPlugin.Name && p.Version == neededPlugin.Version); 49 //foundPlugin = onlinePlugins.FirstOrDefault(p => p.Hash.SequenceEqual(neededPlugin.Value)); 50 foundPlugin = onlinePlugins.FirstOrDefault(p => { 51 if (p.Hash != null) { 52 return p.Hash.SequenceEqual(neededPlugin.Value); 53 } else { 54 return false; 55 } 56 }); 57 47 58 if (useLocalPlugins || foundPlugin == null) { 48 Plugin p = CreatePlugin(neededPlugin , useLocalPlugins);49 List<PluginData> pd = CreatePluginDatas(neededPlugin );59 Plugin p = CreatePlugin(neededPlugin.Key, useLocalPlugins, neededPlugin.Value); 60 List<PluginData> pd = CreatePluginDatas(neededPlugin.Key); 50 61 try { 51 62 p.Id = service.AddPlugin(p, pd); … … 64 75 } 65 76 return pluginIds; 77 } 78 79 private static Plugin CreatePlugin(IPluginDescription plugin, bool useLocalPlugins, byte[] hash) { 80 return new Plugin() { Name = plugin.Name, Version = plugin.Version, IsLocal = useLocalPlugins, Hash = hash }; 66 81 } 67 82 … … 102 117 } 103 118 } 119 120 private static Dictionary<IPluginDescription, byte[]> CalcChecksumsForPlugins(IEnumerable<IPluginDescription> neededPlugins) { 121 Dictionary<IPluginDescription, byte[]> pluginChecksums = new Dictionary<IPluginDescription, byte[]>(); 122 123 foreach (IPluginDescription desc in neededPlugins) { 124 byte[] hash; 125 byte[] buffer = new byte[0]; 126 127 //calculate checksum over all files belonging to a plugin 128 foreach (IPluginFile pf in desc.Files) { 129 byte[] tmpBuffer = File.ReadAllBytes(pf.Name); 130 byte[] newBuffer = new byte[buffer.Length + tmpBuffer.Length]; 131 Array.Copy(buffer, newBuffer, buffer.Length); 132 Array.Copy(tmpBuffer, 0, newBuffer, buffer.Length, tmpBuffer.Length); 133 buffer = newBuffer; 134 } 135 136 using (SHA1 sha1 = SHA1.Create()) { 137 hash = sha1.ComputeHash(buffer); 138 } 139 pluginChecksums.Add(desc, hash); 140 } 141 return pluginChecksums; 142 } 104 143 } 105 144 }
Note: See TracChangeset
for help on using the changeset viewer.