类 NacosRegistration
java.lang.Object
com.alibaba.cloud.nacos.registry.NacosRegistration
- 所有已实现的接口:
org.springframework.cloud.client.ServiceInstance,org.springframework.cloud.client.serviceregistry.Registration
public class NacosRegistration
extends Object
implements org.springframework.cloud.client.serviceregistry.Registration
- 作者:
- xiaojing, changjin wei(魏昌进)
-
字段概要
字段 -
构造器概要
构造器构造器说明NacosRegistration(List<NacosRegistrationCustomizer> registrationCustomizers, NacosDiscoveryProperties nacosDiscoveryProperties, org.springframework.context.ApplicationContext context) -
方法概要
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 org.springframework.cloud.client.ServiceInstance
getInstanceId, getScheme
-
字段详细资料
-
MANAGEMENT_PORT
The metadata key of management port.- 另请参阅:
-
MANAGEMENT_CONTEXT_PATH
The metadata key of management context-path.- 另请参阅:
-
MANAGEMENT_ADDRESS
The metadata key of management address.- 另请参阅:
-
MANAGEMENT_ENDPOINT_BASE_PATH
The metadata key of management endpoints web base path.- 另请参阅:
-
-
构造器详细资料
-
NacosRegistration
public NacosRegistration(List<NacosRegistrationCustomizer> registrationCustomizers, NacosDiscoveryProperties nacosDiscoveryProperties, org.springframework.context.ApplicationContext context)
-
-
方法详细资料
-
init
@PostConstruct public void init() -
customize
-
getServiceId
- 指定者:
getServiceId在接口中org.springframework.cloud.client.ServiceInstance
-
getHost
- 指定者:
getHost在接口中org.springframework.cloud.client.ServiceInstance
-
getPort
public int getPort()- 指定者:
getPort在接口中org.springframework.cloud.client.ServiceInstance
-
setPort
public void setPort(int port) -
isSecure
public boolean isSecure()- 指定者:
isSecure在接口中org.springframework.cloud.client.ServiceInstance
-
getUri
- 指定者:
getUri在接口中org.springframework.cloud.client.ServiceInstance
-
getMetadata
- 指定者:
getMetadata在接口中org.springframework.cloud.client.ServiceInstance
-
isRegisterEnabled
public boolean isRegisterEnabled() -
getCluster
-
getRegisterWeight
public float getRegisterWeight() -
getNacosDiscoveryProperties
-
toString
-