This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new d8107d8 Automated deployment: Thu Jan 16 05:58:26 UTC 2020
050e4d3932ceaaa23b0d655f066fea0e3dc6b157
d8107d8 is described below
commit d8107d8336df8b31a698c7e04883cc9d5828c44d
Author: beiwei30 <[email protected]>
AuthorDate: Thu Jan 16 05:58:26 2020 +0000
Automated deployment: Thu Jan 16 05:58:26 UTC 2020
050e4d3932ceaaa23b0d655f066fea0e3dc6b157
---
en-us/docs/user/demos/graceful-shutdown.html | 2 +-
en-us/docs/user/demos/graceful-shutdown.json | 2 +-
zh-cn/docs/user/demos/graceful-shutdown.html | 2 +-
zh-cn/docs/user/demos/graceful-shutdown.json | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/en-us/docs/user/demos/graceful-shutdown.html
b/en-us/docs/user/demos/graceful-shutdown.html
index c55cac3..f4c1da9 100644
--- a/en-us/docs/user/demos/graceful-shutdown.html
+++ b/en-us/docs/user/demos/graceful-shutdown.html
@@ -31,7 +31,7 @@
<span class="hljs-meta">dubbo.service.shutdown.wait</span>=<span
class="hljs-string">15000</span>
</code></pre>
<p>If ShutdownHook does not take effect, you can call it yourself, <strong>in
tomcat, it is recommended by extending the ContextListener and call the
following code for graceful shutdown</strong>:</p>
-<pre><code class="language-java">ProtocolConfig.destroyAll();
+<pre><code class="language-java">DubboShutdownHook.destroyAll();
</code></pre>
</div></section><footer class="footer-container"><div class="footer-body"><img
src="/img/dubbo_gray.png"/><img class="apache" src="/img/apache_logo.png"/><div
class="cols-container"><div class="col col-12"><h3></h3><p></p></div><div
class="col col-4"><dl><dt>ASF</dt><dd><a href="http://www.apache.org"
target="_self">Foundation</a></dd><dd><a href="http://www.apache.org/licenses/"
target="_self">License</a></dd><dd><a
href="http://www.apache.org/events/current-event" target="_self">Events [...]
<script
src="https://f.alicdn.com/react/15.4.1/react-with-addons.min.js"></script>
diff --git a/en-us/docs/user/demos/graceful-shutdown.json
b/en-us/docs/user/demos/graceful-shutdown.json
index e2554fe..f093ec5 100644
--- a/en-us/docs/user/demos/graceful-shutdown.json
+++ b/en-us/docs/user/demos/graceful-shutdown.json
@@ -1,6 +1,6 @@
{
"filename": "graceful-shutdown.md",
- "__html": "<h1>Graceful Shutdown</h1>\n<p>Dubbo is graceful shutdown through
the <code>ShutdownHook</code> of the JDK, so graceful shutdowns are not
performed if you force shutdown the command, such as <code>kill -9 PID</code>,
and will only be executed if <code>kill PID</code> is
passed.</p>\n<h2>Howto</h2>\n<h3>Service provider</h3>\n<ul>\n<li>When stop,
first marked as not receiving new requests, the new request directly return the
error, so that the client retries other machines.</ [...]
+ "__html": "<h1>Graceful Shutdown</h1>\n<p>Dubbo is graceful shutdown through
the <code>ShutdownHook</code> of the JDK, so graceful shutdowns are not
performed if you force shutdown the command, such as <code>kill -9 PID</code>,
and will only be executed if <code>kill PID</code> is
passed.</p>\n<h2>Howto</h2>\n<h3>Service provider</h3>\n<ul>\n<li>When stop,
first marked as not receiving new requests, the new request directly return the
error, so that the client retries other machines.</ [...]
"link": "/en-us/docs/user/demos/graceful-shutdown.html",
"meta": {}
}
\ No newline at end of file
diff --git a/zh-cn/docs/user/demos/graceful-shutdown.html
b/zh-cn/docs/user/demos/graceful-shutdown.html
index 598d40c..303fc28 100644
--- a/zh-cn/docs/user/demos/graceful-shutdown.html
+++ b/zh-cn/docs/user/demos/graceful-shutdown.html
@@ -31,7 +31,7 @@
<span class="hljs-meta">dubbo.service.shutdown.wait</span>=<span
class="hljs-string">15000</span>
</code></pre>
<p>如果 ShutdownHook
不能生效,可以自行调用,<strong>使用tomcat等容器部署的場景,建议通过扩展ContextListener等自行调用以下代码实现优雅停机</strong>:</p>
-<pre><code class="language-java">ProtocolConfig.destroyAll();
+<pre><code class="language-java">DubboShutdownHook.destroyAll();
</code></pre>
</div></section><footer class="footer-container"><div class="footer-body"><img
src="/img/dubbo_gray.png"/><img class="apache" src="/img/apache_logo.png"/><div
class="cols-container"><div class="col col-12"><h3></h3><p></p></div><div
class="col col-4"><dl><dt>ASF</dt><dd><a href="http://www.apache.org"
target="_self">基金会</a></dd><dd><a href="http://www.apache.org/licenses/"
target="_self">证书</a></dd><dd><a
href="http://www.apache.org/events/current-event"
target="_self">事件</a></dd><dd><a [...]
<script
src="https://f.alicdn.com/react/15.4.1/react-with-addons.min.js"></script>
diff --git a/zh-cn/docs/user/demos/graceful-shutdown.json
b/zh-cn/docs/user/demos/graceful-shutdown.json
index 3bc81d2..0903fac 100644
--- a/zh-cn/docs/user/demos/graceful-shutdown.json
+++ b/zh-cn/docs/user/demos/graceful-shutdown.json
@@ -1,6 +1,6 @@
{
"filename": "graceful-shutdown.md",
- "__html": "<h1>优雅停机</h1>\n<p>Dubbo 是通过 JDK 的 ShutdownHook 来完成优雅停机的,所以如果用户使用
<code>kill -9 PID</code> 等强制关闭指令,是不会执行优雅停机的,只有通过 <code>kill PID</code>
时,才会执行。</p>\n<h2>原理</h2>\n<h3>服务提供方</h3>\n<ul>\n<li>停止时,先标记为不接收新请求,新请求过来时直接报错,让客户端重试其它机器。</li>\n<li>然后,检测线程池中的线程是否正在运行,如果有,等待所有线程执行完成,除非超时,则强制关闭。</li>\n</ul>\n<h3>服务消费方</h3>\n<ul>\n<li>停止时,不再发起新的调用请求,所有新的调用在客户端即报错。</li>\n<li>然后,检测有没有请求的响应还没有返回,等待响应返回,除非超时,则强制关闭。</li>\n</ul>\n<h2>设置方式</h2>\n<p>设置优雅停机超时时间,缺省超时时间是
10 秒,如果超时则强制关闭。</p>\n<pre><cod [...]
+ "__html": "<h1>优雅停机</h1>\n<p>Dubbo 是通过 JDK 的 ShutdownHook 来完成优雅停机的,所以如果用户使用
<code>kill -9 PID</code> 等强制关闭指令,是不会执行优雅停机的,只有通过 <code>kill PID</code>
时,才会执行。</p>\n<h2>原理</h2>\n<h3>服务提供方</h3>\n<ul>\n<li>停止时,先标记为不接收新请求,新请求过来时直接报错,让客户端重试其它机器。</li>\n<li>然后,检测线程池中的线程是否正在运行,如果有,等待所有线程执行完成,除非超时,则强制关闭。</li>\n</ul>\n<h3>服务消费方</h3>\n<ul>\n<li>停止时,不再发起新的调用请求,所有新的调用在客户端即报错。</li>\n<li>然后,检测有没有请求的响应还没有返回,等待响应返回,除非超时,则强制关闭。</li>\n</ul>\n<h2>设置方式</h2>\n<p>设置优雅停机超时时间,缺省超时时间是
10 秒,如果超时则强制关闭。</p>\n<pre><cod [...]
"link": "/zh-cn/docs/user/demos/graceful-shutdown.html",
"meta": {}
}
\ No newline at end of file