Browse Source

remove getAllInstances

pull/6/head
Spencer Gibb 10 years ago
parent
commit
572f97e135
  1. 15
      spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/eureka/EurekaDiscoveryClient.java

15
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/eureka/EurekaDiscoveryClient.java

@ -140,19 +140,4 @@ public class EurekaDiscoveryClient implements DiscoveryClient { @@ -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;
}
}

Loading…
Cancel
Save