类 NacosAutoServiceRegistration
java.lang.Object
org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<org.springframework.cloud.client.serviceregistry.Registration>
com.alibaba.cloud.nacos.registry.NacosAutoServiceRegistration
- 所有已实现的接口:
EventListener,org.springframework.beans.factory.Aware,org.springframework.cloud.client.serviceregistry.AutoServiceRegistration,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>
public class NacosAutoServiceRegistration
extends org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<org.springframework.cloud.client.serviceregistry.Registration>
- 作者:
- xiaojing, Mercy
-
构造器概要
构造器构造器说明NacosAutoServiceRegistration(org.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.client.serviceregistry.Registration> serviceRegistry, org.springframework.cloud.client.serviceregistry.AutoServiceRegistrationProperties autoServiceRegistrationProperties, NacosRegistration registration) -
方法概要
修饰符和类型方法说明protected Stringprotected Objectprotected NacosRegistrationprotected NacosRegistrationprotected booleanvoidprotected voidregister()protected voidvoidsetPort(int port) 已过时。从类继承的方法 org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration
addRegistrationLifecycle, addRegistrationManagementLifecycle, deregister, deregisterManagement, destroy, getContext, getEnvironment, getManagementPort, getManagementServiceId, getManagementServiceName, getOrder, getPhase, getPort, getRunning, getServiceRegistry, isAutoStartup, isRunning, onApplicationEvent, setApplicationContext, shouldRegisterManagement, start, stop从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.springframework.context.ApplicationListener
supportsAsyncExecution
-
构造器详细资料
-
NacosAutoServiceRegistration
public NacosAutoServiceRegistration(org.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.client.serviceregistry.Registration> serviceRegistry, org.springframework.cloud.client.serviceregistry.AutoServiceRegistrationProperties autoServiceRegistrationProperties, NacosRegistration registration)
-
-
方法详细资料
-
setPort
已过时。 -
getRegistration
- 指定者:
getRegistration在类中org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<org.springframework.cloud.client.serviceregistry.Registration>
-
getManagementRegistration
- 指定者:
getManagementRegistration在类中org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<org.springframework.cloud.client.serviceregistry.Registration>
-
register
protected void register()- 覆盖:
register在类中org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<org.springframework.cloud.client.serviceregistry.Registration>
-
registerManagement
protected void registerManagement()- 覆盖:
registerManagement在类中org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<org.springframework.cloud.client.serviceregistry.Registration>
-
getConfiguration
- 指定者:
getConfiguration在类中org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<org.springframework.cloud.client.serviceregistry.Registration>
-
isEnabled
protected boolean isEnabled()- 指定者:
isEnabled在类中org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<org.springframework.cloud.client.serviceregistry.Registration>
-
getAppName
- 覆盖:
getAppName在类中org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<org.springframework.cloud.client.serviceregistry.Registration>
-
onNacosDiscoveryInfoChangedEvent
-