- Timestamp:
- 10/10/11 15:20:01 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive/3.3/HiveService.cs
r6893 r6897 496 496 authen.AuthenticateForAnyRole(HiveRoles.Administrator); 497 497 trans.UseTransaction(() => { 498 UpdateSlaveHBs(slaveGroup); 499 }); 500 } 501 502 private void UpdateSlaveHBs(Resource r) { 503 foreach (Resource resource in dao.GetChildResources(r.Id)) { 504 if (resource is SlaveGroup) { 505 resource.HbInterval = r.HbInterval; 506 dao.UpdateSlaveGroup(resource as SlaveGroup); 507 UpdateSlaveHBs(resource); 508 } else if (resource is Slave) { 509 resource.HbInterval = r.HbInterval; 510 dao.UpdateSlave(resource as Slave); 511 } 512 } 498 dao.UpdateSlaveGroup(slaveGroup); 499 }); 513 500 } 514 501
Note: See TracChangeset
for help on using the changeset viewer.