public class NacosRegistration extends Object implements org.springframework.cloud.client.serviceregistry.Registration, org.springframework.cloud.client.ServiceInstance
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
MANAGEMENT_ADDRESS
The metadata key of management address.
|
static String |
MANAGEMENT_CONTEXT_PATH
The metadata key of management context-path.
|
static String |
MANAGEMENT_ENDPOINT_BASE_PATH
The metadata key of management endpoints web base path.
|
static String |
MANAGEMENT_PORT
The metadata key of management port.
|
| 构造器和说明 |
|---|
NacosRegistration(List<NacosRegistrationCustomizer> registrationCustomizers,
NacosDiscoveryProperties nacosDiscoveryProperties,
org.springframework.context.ApplicationContext context) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCluster() |
String |
getHost() |
Map<String,String> |
getMetadata() |
NacosDiscoveryProperties |
getNacosDiscoveryProperties() |
int |
getPort() |
float |
getRegisterWeight() |
String |
getServiceId() |
URI |
getUri() |
void |
init() |
boolean |
isRegisterEnabled() |
boolean |
isSecure() |
void |
setPort(int port) |
String |
toString() |
public static final String MANAGEMENT_PORT
public static final String MANAGEMENT_CONTEXT_PATH
public static final String MANAGEMENT_ADDRESS
public NacosRegistration(List<NacosRegistrationCustomizer> registrationCustomizers, NacosDiscoveryProperties nacosDiscoveryProperties, org.springframework.context.ApplicationContext context)
@PostConstruct public void init()
public String getServiceId()
getServiceId 在接口中 org.springframework.cloud.client.ServiceInstancepublic String getHost()
getHost 在接口中 org.springframework.cloud.client.ServiceInstancepublic int getPort()
getPort 在接口中 org.springframework.cloud.client.ServiceInstancepublic void setPort(int port)
public boolean isSecure()
isSecure 在接口中 org.springframework.cloud.client.ServiceInstancepublic URI getUri()
getUri 在接口中 org.springframework.cloud.client.ServiceInstancepublic Map<String,String> getMetadata()
getMetadata 在接口中 org.springframework.cloud.client.ServiceInstancepublic boolean isRegisterEnabled()
public String getCluster()
public float getRegisterWeight()
public NacosDiscoveryProperties getNacosDiscoveryProperties()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.