@Singleton @Requires(env="k8s") @Deprecated public class KubernetesDiscoveryClient extends Object implements DiscoveryClient
DiscoveryClient implementation for Kubernetes. Kubernetes uses environment variables so no API calls is
required.| Constructor and Description |
|---|
KubernetesDiscoveryClient()
Deprecated.
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
|
String |
getDescription()
Deprecated.
A description that describes this object.
|
io.reactivex.Flowable<List<ServiceInstance>> |
getInstances(String serviceId)
Deprecated.
Obtain a list of
ServiceInstance for the given service id. |
io.reactivex.Flowable<List<String>> |
getServiceIds()
Deprecated.
|
protected Map<String,String> |
resolveEnvironment()
Deprecated.
Resolves the environment variables.
|
public KubernetesDiscoveryClient()
public io.reactivex.Flowable<List<ServiceInstance>> getInstances(String serviceId)
DiscoveryClientServiceInstance for the given service id.getInstances in interface DiscoveryClientserviceId - The service idPublisher that emits a list of ServiceInstancepublic io.reactivex.Flowable<List<String>> getServiceIds()
getServiceIds in interface DiscoveryClientpublic String getDescription()
DescribedgetDescription in interface Describedpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOException