From 0d06f61253fb67b9466e80b6c2b397e6ddbe5a02 Mon Sep 17 00:00:00 2001 From: lizhen Date: Mon, 21 Jan 2019 16:30:08 +0800 Subject: [PATCH 1/3] add select, shutdown command document --- docs/en-us/user/references/telnet.md | 14 ++++++++++++-- docs/zh-cn/user/references/telnet.md | 11 ++++++++++- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/docs/en-us/user/references/telnet.md b/docs/en-us/user/references/telnet.md index 2104309eaa31..d0271fce3eaf 100644 --- a/docs/en-us/user/references/telnet.md +++ b/docs/en-us/user/references/telnet.md @@ -63,6 +63,10 @@ The built-in telnet commands are listed below. Furthermore, it is possible to ex 0. `invoke XxxService.xxxMethod({"prop": "value"})`: invoke particular method for the given service 0. `invoke xxxMethod({"prop": "value"})`: invoke particular method for the default service +### `select` [^2] + +0. `select 1`: Used when the invoke command matches multiple methods, select the method to be called according to the prompt list + ### `status` 0. `status`: show summarized status. This status summarizes statuses from all resources, and it shows OK when all resources are OK, shows ERROR when any resource has ERROR, and WARN when any has WARN. @@ -76,7 +80,6 @@ The built-in telnet commands are listed below. Furthermore, it is possible to ex ### `help` 0. `help`: show help for telnet commands -0. `help xxx`: 显示xxx命令的详细帮助信息 0. `help xxx`: show help for particular telnet command ### `clear` @@ -88,4 +91,11 @@ The built-in telnet commands are listed below. Furthermore, it is possible to ex `exit`: exit current telnet session -[^1]: support since `2.0.6` \ No newline at end of file +### `shutdown` [^2] + +0. `shutdown`: shutdown dubbo application +0. `shutdown -t 1000`: delay the 1000 ms to shutdown dubbo application + +[^1]: support since `2.0.6` +[^2]: support since `2.7.1` + diff --git a/docs/zh-cn/user/references/telnet.md b/docs/zh-cn/user/references/telnet.md index 1cc5e8af2ec6..a9b56d067684 100644 --- a/docs/zh-cn/user/references/telnet.md +++ b/docs/zh-cn/user/references/telnet.md @@ -65,6 +65,10 @@ status命令所检查的资源也可以扩展,参见:[扩展参考手册](.. 0. `invoke XxxService.xxxMethod({"prop": "value"})`: 调用服务的方法 0. `invoke xxxMethod({"prop": "value"})`: 调用服务的方法(自动查找包含此方法的服务) +### `select` [^2] + +0. `select 1`: 当 invoke 命令匹配到多个方法时使用,根据提示列表选择需要调用的方法 + ### `status` 0. `status`: 显示汇总状态,该状态将汇总所有资源的状态,当全部 OK 时则显示 OK,只要有一个 ERROR 则显示 ERROR,只要有一个 WARN 则显示 WARN @@ -89,5 +93,10 @@ status命令所检查的资源也可以扩展,参见:[扩展参考手册](.. `exit`: 退出当前 telnet 命令行 -[^1]: `2.0.6` 以上版本支持 +### `shutdown` [^2] +0. `shutdown`: 关闭 dubbo 应用 +0. `shutdown -t 1000`: 延迟 1000 毫秒关闭 dubbo 应用 + +[^1]: `2.0.6` 以上版本支持 +[^2]: `2.7.1` 以上版本支持 From 0d37b81a0344dad898502619f4992d7b4823d16e Mon Sep 17 00:00:00 2001 From: XiaoJie Li Date: Tue, 22 Jan 2019 09:35:44 +0800 Subject: [PATCH 2/3] Update docs/en-us/user/references/telnet.md Co-Authored-By: LiZhenNet --- docs/en-us/user/references/telnet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en-us/user/references/telnet.md b/docs/en-us/user/references/telnet.md index d0271fce3eaf..8cea9a320196 100644 --- a/docs/en-us/user/references/telnet.md +++ b/docs/en-us/user/references/telnet.md @@ -65,7 +65,7 @@ The built-in telnet commands are listed below. Furthermore, it is possible to ex ### `select` [^2] -0. `select 1`: Used when the invoke command matches multiple methods, select the method to be called according to the prompt list +0. `select 1`: used when the invoke command matches multiple methods, select the method to be called according to the prompt list ### `status` From efbf7e0b84c2a0195cec7cd99b89886f3582e3a0 Mon Sep 17 00:00:00 2001 From: XiaoJie Li Date: Tue, 22 Jan 2019 09:35:56 +0800 Subject: [PATCH 3/3] Update docs/en-us/user/references/telnet.md Co-Authored-By: LiZhenNet --- docs/en-us/user/references/telnet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en-us/user/references/telnet.md b/docs/en-us/user/references/telnet.md index 8cea9a320196..dff112084d33 100644 --- a/docs/en-us/user/references/telnet.md +++ b/docs/en-us/user/references/telnet.md @@ -94,7 +94,7 @@ The built-in telnet commands are listed below. Furthermore, it is possible to ex ### `shutdown` [^2] 0. `shutdown`: shutdown dubbo application -0. `shutdown -t 1000`: delay the 1000 ms to shutdown dubbo application +0. `shutdown -t 1000`: delay 1000 ms to shutdown dubbo application [^1]: support since `2.0.6` [^2]: support since `2.7.1`