|
@@ -320,14 +320,14 @@ public class ServiceCompare { |
|
@@ -320,14 +320,14 @@ public class ServiceCompare { |
320
|
String servicePath = ZKPaths.makePath("/yh/services/", serviceName);
|
320
|
String servicePath = ZKPaths.makePath("/yh/services/", serviceName);
|
321
|
|
321
|
|
322
|
|
322
|
|
323
|
- if("product".equals(serviceName)){
|
323
|
+ /* if(PRODUCT_SERVICE.equals(serviceName)){
|
324
|
servicePath = ZKPaths.makePath("/yh/services/", "product.insertApply");
|
324
|
servicePath = ZKPaths.makePath("/yh/services/", "product.insertApply");
|
325
|
- }
|
325
|
+ }*/
|
326
|
|
326
|
|
327
|
|
327
|
|
328
|
List<String> serviceInstances = client.getChildren().forPath(servicePath);
|
328
|
List<String> serviceInstances = client.getChildren().forPath(servicePath);
|
329
|
|
329
|
|
330
|
- DEBUG.error(" zkregistercloud{} service{}, serviceInstances {} ", net, service, serviceInstances);
|
330
|
+ DEBUG.info(" zkregistercloud: {} serviceName: {}, serviceInstances: {} ", net, serviceName, serviceInstances.toString());
|
331
|
|
331
|
|
332
|
for (String serviceInstance : serviceInstances) {
|
332
|
for (String serviceInstance : serviceInstances) {
|
333
|
|
333
|
|
|
@@ -341,6 +341,7 @@ public class ServiceCompare { |
|
@@ -341,6 +341,7 @@ public class ServiceCompare { |
341
|
}
|
341
|
}
|
342
|
}
|
342
|
}
|
343
|
|
343
|
|
|
|
344
|
+ DEBUG.info("zkregister serviceIp:{}",serviceIps.toString());
|
344
|
client.close();
|
345
|
client.close();
|
345
|
//排序
|
346
|
//排序
|
346
|
Collections.sort(serviceIps, new IpComparator());
|
347
|
Collections.sort(serviceIps, new IpComparator());
|