@yulongsun
2018-04-27T14:15:17.000000Z
字数 2284
阅读 870
Dubbo源码走读
Service->Invoker->Exporter
1、Dubbo入口,ServiceBean#onApplicationEvent()
2、ServiceBean#export()
3、ServiceBean#doExport()
4、ServiceBean#doExportUrlsFor1Protocol()
5、ServiceBean#exportLocal()
[27/04/18 09:41:37:037 CST] main INFO config.AbstractConfig: [DUBBO] Export dubbo service com.alibaba.dubbo.demo.DemoService to local registry, dubbo version: 2.0.0, current host: 192.168.126.102
[27/04/18 09:41:42:042 CST] main INFO config.AbstractConfig: [DUBBO] Export dubbo service com.alibaba.dubbo.demo.DemoService to url dubbo://192.168.126.102:20880/com.alibaba.dubbo.demo.DemoService?anyhost=true&application=demo-provider&bind.ip=192.168.126.102&bind.port=20880&dubbo=2.0.0&generic=false&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=51129&qos.port=22222&side=provider×tamp=1524835813911, dubbo version: 2.0.0, current host: 192.168.126.102
6、ServiceBean#doExportUrlsFor1Protocol()
[27/04/18 09:41:42:042 CST] main INFO config.AbstractConfig: [DUBBO] Export dubbo service com.alibaba.dubbo.demo.DemoService to url dubbo://192.168.126.102:20880/com.alibaba.dubbo.demo.DemoService?anyhost=true&application=demo-provider&bind.ip=192.168.126.102&bind.port=20880&dubbo=2.0.0&generic=false&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=51129&qos.port=22222&side=provider×tamp=1524835813911, dubbo version: 2.0.0, current host: 192.168.126.102
[27/04/18 09:42:13:013 CST] main INFO config.AbstractConfig: [DUBBO] Register dubbo service com.alibaba.dubbo.demo.DemoService url dubbo://192.168.126.102:20880/com.alibaba.dubbo.demo.DemoService?anyhost=true&application=demo-provider&bind.ip=192.168.126.102&bind.port=20880&dubbo=2.0.0&generic=false&interface=com.alibaba.dubbo.demo.DemoService&methods=sayHello&pid=51129&qos.port=22222&side=provider×tamp=1524835813911 to registry registry://224.5.6.7:1234/com.alibaba.dubbo.registry.RegistryService?application=demo-provider&dubbo=2.0.0&pid=51129&qos.port=22222®istry=multicast×tamp=1524835801874, dubbo version: 2.0.0, current host: 192.168.126.102
7、Protocol#export()
8、AbstractServer#AbstractServer()
[27/04/18 10:12:35:035 CST] main INFO transport.AbstractServer: [DUBBO] Start NettyServer bind /0.0.0.0:20880, export /192.168.126.102:20880, dubbo version: 2.0.0, current host: 192.168.126.102
9、NettyServer#doOpen()