Authored by qinchao

可用区hostinfo

@@ -23,6 +23,8 @@ public class HostInfoReq extends PageRequest { @@ -23,6 +23,8 @@ public class HostInfoReq extends PageRequest {
23 23
24 private int cloudType; 24 private int cloudType;
25 25
  26 + private int cloudDetailType;
  27 +
26 private String tags; 28 private String tags;
27 private List<String> tagsList; 29 private List<String> tagsList;
28 30
@@ -669,6 +669,14 @@ public class AutoScalingCtrl { @@ -669,6 +669,14 @@ public class AutoScalingCtrl {
669 h.setAlias(String.format("%s-%s-%s",(cloudType == 1 ? "AWS":"Qcloud"), "java-"+ scalingGroupName,ip)); 669 h.setAlias(String.format("%s-%s-%s",(cloudType == 1 ? "AWS":"Qcloud"), "java-"+ scalingGroupName,ip));
670 } 670 }
671 h.setCloudType(cloudType); 671 h.setCloudType(cloudType);
  672 +
  673 + //暂时无法确定腾讯云的可用区
  674 + if(1==h.getCloudType()){
  675 + h.setCloudDetailType(1);
  676 + }else if(2==h.getCloudType()){
  677 + h.setCloudDetailType(2);
  678 + }
  679 +
672 hostInfos.add(h); 680 hostInfos.add(h);
673 } 681 }
674 resp = httpClient.defaultPost(HttpUriContants.SAVE_HOST_LIST_INFOS ,hostInfos,BaseResponse.class); 682 resp = httpClient.defaultPost(HttpUriContants.SAVE_HOST_LIST_INFOS ,hostInfos,BaseResponse.class);