...
|
...
|
@@ -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());
|
...
|
...
|
|