@Override
public List<ServiceDescriptor> selectAllServices()
{
try {
ListenableFuture<ServiceDescriptors> future = lookupClient.getServices(type, pool);
ServiceDescriptors serviceDescriptors = getFutureResult(future, DiscoveryException.class);
return serviceDescriptors.getServiceDescriptors();
}
catch (DiscoveryException e) {
log.error(e);
return ImmutableList.of();
}