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() |
KubernetesServiceInstance(String instanceId,
String serviceId,
String host,
int port,
Map<String,String> metadata,
Boolean secure) |
KubernetesServiceInstance(String instanceId,
String serviceId,
String host,
int port,
Map<String,String> metadata,
Boolean secure,
String namespace,
String cluster) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getCluster() |
String |
getHost() |
String |
getInstanceId() |
Map<String,String> |
getMetadata() |
String |
getNamespace() |
int |
getPort() |
String |
getScheme() |
Boolean |
getSecure() |
String |
getServiceId() |
URI |
getUri() |
int |
hashCode() |
boolean |
isSecure() |
void |
setCluster(String cluster) |
void |
setHost(String host) |
void |
setInstanceId(String instanceId) |
void |
setMetadata(Map<String,String> metadata) |
void |
setNamespace(String namespace) |
void |
setPort(int port) |
void |
setSecure(Boolean secure) |
void |
setServiceId(String serviceId) |
void |
setUri(URI uri) |
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 KubernetesServiceInstance(String instanceId, String serviceId, String host, int port, Map<String,String> metadata, Boolean secure, String namespace, String cluster)
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.namespace - the namespace of the service.cluster - the clust the service resides in.public KubernetesServiceInstance()
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()
public String getCluster()
public void setInstanceId(String instanceId)
public void setServiceId(String serviceId)
public void setHost(String host)
public void setPort(int port)
public void setUri(URI uri)
public void setSecure(Boolean secure)
public void setNamespace(String namespace)
public void setCluster(String cluster)
public Boolean getSecure()
Copyright © 2017–2022 Pivotal Software, Inc.. All rights reserved.