Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add select, shutdown command document #255

Merged
merged 3 commits into from
Jan 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions docs/en-us/user/references/telnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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`
Expand All @@ -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`
### `shutdown` [^2]

0. `shutdown`: 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`

11 changes: 10 additions & 1 deletion docs/zh-cn/user/references/telnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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` 以上版本支持