public class HttpDiscoveryLookupClient extends Object implements DiscoveryLookupClient
| Constructor and Description |
|---|
HttpDiscoveryLookupClient(Supplier<URI> discoveryServiceURI,
NodeInfo nodeInfo,
JsonCodec<ServiceDescriptorsRepresentation> serviceDescriptorsCodec,
HttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<ServiceDescriptors> |
getServices(String type) |
com.google.common.util.concurrent.ListenableFuture<ServiceDescriptors> |
getServices(String type,
String pool) |
RequestStats |
getStats() |
com.google.common.util.concurrent.ListenableFuture<ServiceDescriptors> |
refreshServices(ServiceDescriptors serviceDescriptors) |
@Inject public HttpDiscoveryLookupClient(Supplier<URI> discoveryServiceURI, NodeInfo nodeInfo, JsonCodec<ServiceDescriptorsRepresentation> serviceDescriptorsCodec, HttpClient httpClient)
public RequestStats getStats()
public com.google.common.util.concurrent.ListenableFuture<ServiceDescriptors> getServices(String type)
getServices in interface DiscoveryLookupClientpublic com.google.common.util.concurrent.ListenableFuture<ServiceDescriptors> getServices(String type, String pool)
getServices in interface DiscoveryLookupClientpublic com.google.common.util.concurrent.ListenableFuture<ServiceDescriptors> refreshServices(ServiceDescriptors serviceDescriptors)
refreshServices in interface DiscoveryLookupClientCopyright © 2010–2021 Airlift. All rights reserved.