public class KubernetesServiceInstance extends Object implements org.springframework.cloud.client.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 |
---|---|
boolean |
equals(Object o) |
String |
getHost() |
String |
getInstanceId() |
Map<String,String> |
getMetadata() |
String |
getNamespace() |
int |
getPort() |
String |
getScheme() |
String |
getServiceId() |
URI |
getUri() |
int |
hashCode() |
boolean |
isSecure() |
String |
toString() |
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.ServiceInstance
public String getServiceId()
getServiceId
in interface org.springframework.cloud.client.ServiceInstance
public String getHost()
getHost
in interface org.springframework.cloud.client.ServiceInstance
public int getPort()
getPort
in interface org.springframework.cloud.client.ServiceInstance
public boolean isSecure()
isSecure
in interface org.springframework.cloud.client.ServiceInstance
public URI getUri()
getUri
in interface org.springframework.cloud.client.ServiceInstance
public Map<String,String> getMetadata()
getMetadata
in interface org.springframework.cloud.client.ServiceInstance
public String getScheme()
getScheme
in interface org.springframework.cloud.client.ServiceInstance
public String getNamespace()
Copyright © 2017–2021 Pivotal Software, Inc.. All rights reserved.