Class KubernetesServiceInstance
java.lang.Object
org.springframework.cloud.kubernetes.discovery.KubernetesServiceInstance
- All Implemented Interfaces:
org.springframework.cloud.client.ServiceInstance
public class KubernetesServiceInstance
extends Object
implements org.springframework.cloud.client.ServiceInstance
- Author:
- Ryan Baxter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetHost()intgetPort()getUri()inthashCode()booleanisSecure()voidvoidsetInstanceId(String instanceId) voidsetMetadata(Map<String, String> metadata) voidsetNamespace(String namespace) voidsetPort(int port) voidvoidsetSecure(boolean secure) voidsetServiceId(String serviceId) void
-
Constructor Details
-
KubernetesServiceInstance
public KubernetesServiceInstance() -
KubernetesServiceInstance
-
-
Method Details
-
getInstanceId
- Specified by:
getInstanceIdin interfaceorg.springframework.cloud.client.ServiceInstance
-
getServiceId
- Specified by:
getServiceIdin interfaceorg.springframework.cloud.client.ServiceInstance
-
getHost
- Specified by:
getHostin interfaceorg.springframework.cloud.client.ServiceInstance
-
getPort
public int getPort()- Specified by:
getPortin interfaceorg.springframework.cloud.client.ServiceInstance
-
isSecure
public boolean isSecure()- Specified by:
isSecurein interfaceorg.springframework.cloud.client.ServiceInstance
-
getUri
- Specified by:
getUriin interfaceorg.springframework.cloud.client.ServiceInstance
-
getMetadata
- Specified by:
getMetadatain interfaceorg.springframework.cloud.client.ServiceInstance
-
setInstanceId
-
setServiceId
-
setHost
-
setPort
public void setPort(int port) -
setSecure
public void setSecure(boolean secure) -
setUri
-
setMetadata
-
setScheme
-
getNamespace
-
setNamespace
-
getScheme
- Specified by:
getSchemein interfaceorg.springframework.cloud.client.ServiceInstance
-
equals
-
hashCode
public int hashCode()
-