()
| 132 | } |
| 133 | |
| 134 | public void Stop() throws Exception { |
| 135 | if (!started) |
| 136 | return; |
| 137 | started = false; |
| 138 | ShutdownHook.remove(this); |
| 139 | stopService(); // 关闭网络 |
| 140 | HttpServer.close(); |
| 141 | stopModules(); // 关闭模块,卸载配置什么的。 |
| 142 | providerApp.providerImplement.stop(); |
| 143 | if (Zeze != null) { |
| 144 | Zeze.stop(); // 关闭数据库 |
| 145 | if (null != BoolListModule) { |
| 146 | BoolListModule.UnRegister(); |
| 147 | BoolListModule = null; |
| 148 | } |
| 149 | if (LinkedMapModule != null) { |
| 150 | LinkedMapModule.UnRegisterZezeTables(Zeze); |
| 151 | LinkedMapModule = null; |
| 152 | } |
| 153 | if (BagModule != null) { |
| 154 | BagModule.UnRegisterZezeTables(Zeze); |
| 155 | BagModule = null; |
| 156 | } |
| 157 | if (null != RocketMQProducer) { |
| 158 | RocketMQProducer.stop(); |
| 159 | RocketMQProducer = null; |
| 160 | } |
| 161 | } |
| 162 | destroyModules(); |
| 163 | destroyServices(); |
| 164 | destroyZeze(); |
| 165 | } |
| 166 | |
| 167 | // ZEZE_FILE_CHUNK {{{ GEN APP @formatter:off |
| 168 | public Zeze.Application Zeze; |
no test coverage detected