public class KubernetesServiceInstance extends Object implements org.springframework.cloud.client.ServiceInstance
ServiceInstance.| Modifier and Type | Field and Description |
|---|---|
static String |
NAMESPACE_METADATA_KEY
Key of the namespace metadata.
|
| Constructor and Description |
|---|
KubernetesServiceInstance(String instanceId,
String serviceId,
String host,
int port,
Map<String,String> metadata,
Boolean secure) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHost() |
String |
getInstanceId() |
Map<String,String> |
getMetadata() |
String |
getNamespace() |
int |
getPort() |
String |
getScheme() |
String |
getServiceId() |
URI |
getUri() |
boolean |
isSecure() |
public static final String NAMESPACE_METADATA_KEY
public KubernetesServiceInstance(String instanceId, String serviceId, String host, int port, Map<String,String> metadata, Boolean secure)
instanceId - the id of the instance.serviceId - the id of the service.host - the address where the service instance can be found.port - 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.ServiceInstancepublic String getNamespace()
Copyright © 2017–2021 Pivotal Software, Inc.. All rights reserved.