public class KubernetesServiceInstance extends Object implements org.springframework.cloud.client.ServiceInstance
ServiceInstance.| Constructor and Description |
|---|
KubernetesServiceInstance(String serviceId,
io.fabric8.kubernetes.api.model.EndpointAddress endpointAddress,
io.fabric8.kubernetes.api.model.EndpointPort endpointPort,
Map<String,String> metadata,
Boolean secure)
Deprecated.
- use other constructor
|
KubernetesServiceInstance(String instanceId,
String serviceId,
io.fabric8.kubernetes.api.model.EndpointAddress endpointAddress,
io.fabric8.kubernetes.api.model.EndpointPort endpointPort,
Map<String,String> metadata,
Boolean secure) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHost() |
String |
getInstanceId() |
Map<String,String> |
getMetadata() |
int |
getPort() |
String |
getScheme() |
String |
getServiceId() |
URI |
getUri() |
boolean |
isSecure() |
@Deprecated public KubernetesServiceInstance(String serviceId, io.fabric8.kubernetes.api.model.EndpointAddress endpointAddress, io.fabric8.kubernetes.api.model.EndpointPort endpointPort, Map<String,String> metadata, Boolean secure)
serviceId - the id of the service.endpointAddress - the address where the service instance can be found.endpointPort - the port on which the service is running.metadata - a map containing metadata.secure - indicates whether or not the connection needs to be secure.public String getInstanceId()
getInstanceId in interface org.springframework.cloud.client.ServiceInstancepublic 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 Map<String,String> getMetadata()
getMetadata in interface org.springframework.cloud.client.ServiceInstancepublic String getScheme()
getScheme in interface org.springframework.cloud.client.ServiceInstanceCopyright © 2017–2019 Pivotal Software, Inc.. All rights reserved.