AlbumenJ commented on issue #13185:
URL: https://github.com/apache/dubbo/issues/13185#issuecomment-1763621855

   > > 1. We should only offline provider.
   > > 2. You can call `http://127.0.0.1:22222/offline` or 
`http://127.0.0.1:22222/gracefulShutdown` to offline all the service provided 
on Dubbo.
   > 
   > Thank you. How can I close all providers in the code?
   
   1. The most easily way is to request 
`http://127.0.0.1:22222/gracefulShutdown` via URLConnection or HttpUtils in 
your code.
   2. Using the following code (But this is not ensure in the future. The API 
may be changed in the future.)
   ```java
   @Autowired
   private ModuleModel moduleModel;
   
   ...
   
   new 
GracefulShutdown(ScopeModelUtil.getFrameworkModel(moduleModel)).execute(null, 
null);
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to