public class NacosAutoServiceRegistration extends org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<NacosRegistration>
| Constructor and Description |
|---|
NacosAutoServiceRegistration(org.springframework.cloud.client.serviceregistry.ServiceRegistry<NacosRegistration> serviceRegistry,
org.springframework.cloud.client.serviceregistry.AutoServiceRegistrationProperties autoServiceRegistrationProperties,
NacosRegistration registration) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getAppName() |
protected Object |
getConfiguration() |
protected int |
getConfiguredPort() |
protected NacosRegistration |
getManagementRegistration() |
protected NacosRegistration |
getRegistration() |
protected boolean |
isEnabled() |
protected void |
register() |
protected void |
registerManagement() |
protected void |
setConfiguredPort(int port) |
void |
setPort(int port)
Deprecated.
|
deregister, deregisterManagement, getServiceRegistry, shouldRegisterManagement, stopdestroy, getContext, getEnvironment, getManagementPort, getManagementServiceId, getManagementServiceName, getOrder, getPhase, getPort, getRunning, isAutoStartup, isRunning, onApplicationEvent, setApplicationContext, start, stoppublic NacosAutoServiceRegistration(org.springframework.cloud.client.serviceregistry.ServiceRegistry<NacosRegistration> serviceRegistry, org.springframework.cloud.client.serviceregistry.AutoServiceRegistrationProperties autoServiceRegistrationProperties, NacosRegistration registration)
@Deprecated public void setPort(int port)
protected NacosRegistration getRegistration()
getRegistration in class org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<NacosRegistration>protected NacosRegistration getManagementRegistration()
getManagementRegistration in class org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<NacosRegistration>protected void register()
register in class org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<NacosRegistration>protected void registerManagement()
registerManagement in class org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<NacosRegistration>protected int getConfiguredPort()
getConfiguredPort in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycleprotected void setConfiguredPort(int port)
setConfiguredPort in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycleprotected Object getConfiguration()
getConfiguration in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycleprotected boolean isEnabled()
isEnabled in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycleprotected String getAppName()
getAppName in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycleCopyright © 2018 Pivotal Software, Inc.. All rights reserved.