public class KubernetesRegistration extends Object implements org.springframework.cloud.client.serviceregistry.Registration, Closeable
Registration.| Constructor and Description |
|---|
KubernetesRegistration(io.fabric8.kubernetes.client.KubernetesClient client,
org.springframework.cloud.kubernetes.commons.discovery.KubernetesDiscoveryProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getHost() |
Map<String,String> |
getMetadata() |
int |
getPort() |
org.springframework.cloud.kubernetes.commons.discovery.KubernetesDiscoveryProperties |
getProperties() |
String |
getServiceId() |
URI |
getUri() |
boolean |
isSecure() |
String |
toString() |
public KubernetesRegistration(io.fabric8.kubernetes.client.KubernetesClient client,
org.springframework.cloud.kubernetes.commons.discovery.KubernetesDiscoveryProperties properties)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic String getServiceId()
getServiceId in interface org.springframework.cloud.client.ServiceInstancepublic String getHost()
getHost in interface org.springframework.cloud.client.ServiceInstancepublic int getPort()
getPort in interface org.springframework.cloud.client.ServiceInstancepublic boolean isSecure()
isSecure in interface org.springframework.cloud.client.ServiceInstancepublic URI getUri()
getUri in interface org.springframework.cloud.client.ServiceInstancepublic org.springframework.cloud.kubernetes.commons.discovery.KubernetesDiscoveryProperties getProperties()
public Map<String,String> getMetadata()
getMetadata in interface org.springframework.cloud.client.ServiceInstanceCopyright © 2017–2021 Pivotal Software, Inc.. All rights reserved.