Commit 572f97e1 by Spencer Gibb

remove getAllInstances

parent f49d99ef
......@@ -140,19 +140,4 @@ public class EurekaDiscoveryClient implements DiscoveryClient {
return names;
}
@Override
public List<ServiceInstance> getAllInstances() {
Applications applications = this.discovery.getApplications();
if (applications == null) {
return Collections.emptyList();
}
List<ServiceInstance> instances = new ArrayList<ServiceInstance>();
for (Application app : applications.getRegisteredApplications()) {
for (InstanceInfo info : app.getInstances()) {
instances.add(new EurekaServiceInstance(info));
}
}
return instances;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment