nameserv是服务发现中心,底层采用netty监听
NamesrvStartup
服务的启动类,通过命令行参数初始化NamesrvController,并且启动NamesrvController。
1 | public static NamesrvController createNamesrvController(String[] args) throws IOException, JoranException { |
start方法
1 | public static NamesrvController start(final NamesrvController controller) throws Exception { |
NamesrvController
构造函数
1 | public NamesrvController(NamesrvConfig namesrvConfig, NettyServerConfig nettyServerConfig) { |
initialize
1 | public boolean initialize() { |
start
1 | public void start() throws Exception { |
remotingServer–NettyRemotingServer
1 |
|