Changeset 7402
- Timestamp:
- 01/24/12 13:48:19 (13 years ago)
- Location:
- branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Azure/AzureProvider.cs
r7386 r7402 45 45 throw new ArgumentException("Servicename is not valid.", "serviceName"); 46 46 } 47 return ServiceManagementOperation.GetHostedServiceDetailed(subscription.SubscriptionID, subscription.CertificateThumbprint, serviceName); 47 HostedService service = ServiceManagementOperation.GetHostedServiceDetailed(subscription.SubscriptionID, subscription.CertificateThumbprint, serviceName); 48 service.Subscription = subscription; 49 foreach (Deployment dep in service.Deployments) { 50 dep.Subscription = subscription; 51 } 52 return service; 48 53 } 49 54 … … 59 64 throw new ArgumentNullException("Subscription must not be null.", "subscription"); 60 65 } 61 return ServiceManagementOperation.ListHostedServices(subscription.SubscriptionID, subscription.CertificateThumbprint); 66 List<HostedService> services = ServiceManagementOperation.ListHostedServices(subscription.SubscriptionID, subscription.CertificateThumbprint); 67 foreach (HostedService serv in services) { 68 serv.Subscription = subscription; 69 foreach (Deployment dep in serv.Deployments) { 70 dep.Subscription = subscription; 71 } 72 } 73 return services; 62 74 } 63 75 … … 145 157 throw new ArgumentNullException("Subscription must not be null.", "subscription"); 146 158 } 147 return ServiceManagementOperation.DiscoverSlaveService(subscription.SubscriptionID, subscription.CertificateThumbprint); 159 List<HostedService> services = ServiceManagementOperation.DiscoverSlaveService(subscription.SubscriptionID, subscription.CertificateThumbprint); 160 foreach (HostedService serv in services) { 161 serv.Subscription = subscription; 162 foreach (Deployment dep in serv.Deployments) { 163 dep.Subscription = subscription; 164 } 165 } 166 return services; 148 167 } 149 168 } -
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Azure/Constants.cs
r7374 r7402 86 86 87 87 #endregion 88 89 #region Enums 90 91 public enum InstanceSize { 92 ExtraSmall = 0, 93 Small = 1, 94 Medium = 2, 95 Large = 4, 96 ExtraLarge = 8 97 } 98 99 #endregion 88 100 } 89 101 } -
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Azure/ServiceManagementOperation.cs
r7386 r7402 117 117 service.ServiceName = response.Descendants(wa + "ServiceName").Single().Value; 118 118 service.Url = response.Descendants(wa + "Url").Single().Value; 119 service.SubscriptionId = subscriptionId;120 119 return service; 121 120 } … … 128 127 service.ServiceName = response.Descendants(wa + "ServiceName").Single().Value; 129 128 service.Url = response.Descendants(wa + "Url").First().Value; 130 service.SubscriptionId = subscriptionId;131 129 if (response.Root.Elements(wa + "HostedServiceProperties").Any()) { 132 130 XElement xHostedServiceProperties = response.Descendants(wa + "HostedServiceProperties").Single(); … … 402 400 RoleName = s.Descendants(wa + "RoleName").Single().Value, 403 401 InstanceName = s.Descendants(wa + "InstanceName").Single().Value, 404 InstanceStatus = s.Descendants(wa + "InstanceStatus").Single().Value 402 InstanceStatus = s.Descendants(wa + "InstanceStatus").Single().Value, 403 InstanceSize = s.Descendants(wa + "InstanceSize").Single().Value, 404 InstanceStateDetails = s.Descendants(wa + "InstanceStateDetails").Single().Value 405 405 }).ToList(); 406 406 deployment.RoleInstanceList = new List<RoleInstance>(instances); -
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Model/Deployment.cs
r7326 r7402 37 37 public int UpgradeDomainCount; 38 38 public List<Role> RoleList { get; set; } 39 public Subscription Subscription { get; set; } 39 40 40 41 public Deployment() { … … 54 55 this.UpgradeDomainCount = original.UpgradeDomainCount; 55 56 this.RoleList = new List<Role>(original.RoleList); 57 this.Subscription = cloner.Clone(original.Subscription); 56 58 57 59 } … … 90 92 this.UpgradeDomainCount = deployment.UpgradeDomainCount; 91 93 this.RoleList = deployment.RoleList; 94 this.Subscription = deployment.Subscription; 92 95 } 93 96 } -
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Model/HostedService.cs
r7386 r7402 28 28 public string ServiceName { get; set; } 29 29 public string Url { get; set; } 30 public string SubscriptionId{ get; set; }30 public Subscription Subscription { get; set; } 31 31 public HostedServiceProperties HostedServiceProperties { get; set; } 32 32 public List<Deployment> Deployments { get; set; } … … 39 39 this.ServiceName = original.ServiceName; 40 40 this.Url = original.Url; 41 this.HostedServiceProperties = cloner.Clone(HostedServiceProperties); 41 this.Subscription = cloner.Clone(original.Subscription); 42 this.HostedServiceProperties = cloner.Clone(original.HostedServiceProperties); 42 43 this.Deployments = new List<Deployment>(original.Deployments); 43 44 } -
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Model/RoleInstance.cs
r7326 r7402 28 28 public string InstanceName { get; set; } 29 29 public string InstanceStatus { get; set; } 30 public string InstanceSize { get; set; } 31 public string InstanceStateDetails { get; set; } 32 public string InstanceErrorCode { get; set; } 30 33 31 34 public RoleInstance() { … … 37 40 this.InstanceName = original.InstanceName; 38 41 this.InstanceStatus = original.InstanceStatus; 42 this.InstanceSize = original.InstanceSize; 43 this.InstanceStateDetails = original.InstanceStateDetails; 44 this.InstanceErrorCode = original.InstanceErrorCode; 39 45 } 40 46
Note: See TracChangeset
for help on using the changeset viewer.