Package com.alibaba.cloud.nacos
Class NacosServiceInstance
java.lang.Object
com.alibaba.cloud.nacos.NacosServiceInstance
- All Implemented Interfaces:
org.springframework.cloud.client.ServiceInstance
public class NacosServiceInstance
extends Object
implements org.springframework.cloud.client.ServiceInstance
- Author:
- xiaojing, changjin wei(魏昌进)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetHost()intgetPort()getUri()inthashCode()booleanisSecure()voidvoidsetInstanceId(String instanceId) voidsetMetadata(Map<String, String> metadata) voidsetPort(int port) voidsetSecure(boolean secure) voidsetServiceId(String serviceId)
-
Constructor Details
-
NacosServiceInstance
public NacosServiceInstance()
-
-
Method Details
-
getServiceId
- Specified by:
getServiceIdin interfaceorg.springframework.cloud.client.ServiceInstance
-
getInstanceId
- Specified by:
getInstanceIdin 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
-
getScheme
- Specified by:
getSchemein interfaceorg.springframework.cloud.client.ServiceInstance
-
setServiceId
-
setInstanceId
-
setHost
-
setPort
public void setPort(int port) -
setSecure
public void setSecure(boolean secure) -
setMetadata
-
equals
-
hashCode
public int hashCode()
-