首页  

dubbo注册过程简介     所属分类 dubbo 浏览量 812
dubbo 2.8.4

断点
com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry.doRegister(URL)

dubbo://10.57.240.63:20880/dyyx.HelloService?anyhost=true&application=hello-provider&dubbo=2.8.4&generic=false&group=group1&interface=dyyx.HelloService&methods=getInfo,echo&organization=dyyx-org&owner=dyyx&pid=89008&revision=1.0.0&side=provider&threads=10&timeout=3000×tamp=1609204731842&version=1.0.0



Thread [main] (Suspended)	
	owns: ServiceBean<T>  (id=68)	
	owns: Object  (id=69)	
	owns: Object  (id=70)	
	owns: Object  (id=71)	
	ZookeeperRegistry.doRegister(URL) line: 101	
	ZookeeperRegistry(FailbackRegistry).register(URL) line: 130	
	RegistryProtocol.export(Invoker<T>) line: 111	
	ProtocolListenerWrapper.export(Invoker<T>) line: 54	
	ProtocolFilterWrapper.export(Invoker<T>) line: 53	
	Protocol$Adpative.export(Invoker) line: not available	
	ServiceBean<T>(ServiceConfig<T>).doExportUrlsFor1Protocol(ProtocolConfig, List<URL>) line: 489	
	ServiceBean<T>(ServiceConfig<T>).doExportUrls() line: 285	
	ServiceBean<T>(ServiceConfig<T>).doExport() line: 246	
	ServiceBean<T>(ServiceConfig<T>).export() line: 145	
	ServiceBean<T>.onApplicationEvent(ApplicationEvent) line: 110	
	SimpleApplicationEventMulticaster.multicastEvent(ApplicationEvent) line: 96	
	XmlWebApplicationContext(AbstractApplicationContext).publishEvent(ApplicationEvent) line: 334	
	XmlWebApplicationContext(AbstractApplicationContext).finishRefresh() line: 948	
	XmlWebApplicationContext(AbstractApplicationContext).refresh() line: 482	
	ContextLoaderListener(ContextLoader).configureAndRefreshWebApplicationContext(ConfigurableWebApplicationContext, ServletContext) line: 410	
	ContextLoaderListener(ContextLoader).initWebApplicationContext(ServletContext) line: 306	
	ContextLoaderListener.contextInitialized(ServletContextEvent) line: 112	
	WebAppContext(ContextHandler).startContext() line: 549	
	WebAppContext(Context).startContext() line: 136	
	WebAppContext.startContext() line: 1282	
	WebAppContext(ContextHandler).doStart() line: 518	
	WebAppContext.doStart() line: 499	
	WebAppContext(AbstractLifeCycle).start() line: 50	
	Server(HandlerWrapper).doStart() line: 130	
	Server.doStart() line: 224	
	Server(AbstractLifeCycle).start() line: 50	
	Bootstrap.main(String[]) line: 97	


com.alibaba.dubbo.config.spring.ServiceBean.onApplicationEvent(ApplicationEvent)
public void onApplicationEvent(ApplicationEvent event) {
    if (ContextRefreshedEvent.class.getName().equals(event.getClass().getName())) {
        if (isDelay() && ! isExported() && ! isUnexported()) {
            if (logger.isInfoEnabled()) {
                logger.info("The service ready on spring started. service: " + getInterface());
            }
            export();
        }
     }
}


ProtocolFilterWrapper.export
RegistryProtocol.export
ZookeeperRegistry.doRegister


com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry
com.alibaba.dubbo.registry.integration.RegistryProtocol
com.alibaba.dubbo.rpc.Protocol
com.alibaba.dubbo.config.spring.ServiceBean


org.springframework.context.support.AbstractApplicationContext.refresh()

ServiceBean<T>.onApplicationEvent(ApplicationEvent) line: 110	
SimpleApplicationEventMulticaster.multicastEvent(ApplicationEvent) line: 96	
XmlWebApplicationContext(AbstractApplicationContext).publishEvent(ApplicationEvent) line: 334	
XmlWebApplicationContext(AbstractApplicationContext).finishRefresh() line: 948	
XmlWebApplicationContext(AbstractApplicationContext).refresh() line: 482
	
在 refresh 完成后 暴露 dubbo 服务

refresh > finishRefresh > publishEvent > multicastEvent > onApplicationEvent


     

dubbo实例

上一篇     下一篇
时间管理法则20条

做好项目管理的七个技巧

BlockingQueue add offer put 区别

dubbo获取线程池等信息

dubbo SPI 机制简介

dubbo各个模块简介