Authored by mlge

在线IP配置对比 修改

... ... @@ -320,14 +320,14 @@ public class ServiceCompare {
String servicePath = ZKPaths.makePath("/yh/services/", serviceName);
if("product".equals(serviceName)){
/* if(PRODUCT_SERVICE.equals(serviceName)){
servicePath = ZKPaths.makePath("/yh/services/", "product.insertApply");
}
}*/
List<String> serviceInstances = client.getChildren().forPath(servicePath);
DEBUG.error(" zkregistercloud{} service{}, serviceInstances {} ", net, service, serviceInstances);
DEBUG.info(" zkregistercloud: {} serviceName: {}, serviceInstances: {} ", net, serviceName, serviceInstances.toString());
for (String serviceInstance : serviceInstances) {
... ... @@ -341,6 +341,7 @@ public class ServiceCompare {
}
}
DEBUG.info("zkregister serviceIp:{}",serviceIps.toString());
client.close();
//排序
Collections.sort(serviceIps, new IpComparator());
... ...
... ... @@ -84,8 +84,8 @@ public interface StaticVar {
String ORDER_SERVICE = "order.getOrderCount";
String PRODUCT_SERVICE = "product.addFavorite";
// String PRODUCT_SERVICE = "product.addFavorite";
String PRODUCT_SERVICE = "product.insertApply";
String PROMOTION_SERVICE = "promotion.getActivityShare";
String PLATFORM_SERVICE = "platform.addSort";
... ...