提交 09517157 编写于 作者: C chao.liuc

DUBBO-71 Graceful shutdown-半关闭状态 dubbo协议默认开启

git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@651 1a56cb94-b969-4eaa-88fa-be21384802f2
上级 e5e43ac2
......@@ -246,7 +246,9 @@ public class DubboProtocol extends AbstractProtocol {
return exporter;
}
private ExchangeServer getServer(URL url) {
private ExchangeServer getServer(URL url) {
//默认开启server关闭时发送readonly事件
url = url.addParameterIfAbsent(Constants.CHANNEL_READONLYEVENT_SENT_KEY, Boolean.TRUE.toString());
String str = url.getParameter(Constants.SERVER_KEY, Constants.DEFAULT_REMOTING_SERVER);
if (str != null && str.length() > 0 && ! ExtensionLoader.getExtensionLoader(Transporter.class).hasExtension(str))
......@@ -323,7 +325,8 @@ public class DubboProtocol extends AbstractProtocol {
/**
* 创建新连接.
*/
private ExchangeClient initClient(URL url) {
private ExchangeClient initClient(URL url) {
// client type setting.
String str = url.getParameter(Constants.CLIENT_KEY, url.getParameter(Constants.SERVER_KEY, Constants.DEFAULT_REMOTING_CLIENT));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册