MCPcopy Create free account
hub / github.com/e2wugui/zeze / Stop

Method Stop

ZezeJava/ZezeJavaTest/src/demo/App.java:134–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 13

mainMethod · 0.95
start2Method · 0.95
benchMethod · 0.45
stopAllMethod · 0.45
stopAllMethod · 0.45
setUpMethod · 0.45
tearDownMethod · 0.45
stopMethod · 0.45
afterMethod · 0.45
stopModulesMethod · 0.45
testInitMethod · 0.45
testInitMethod · 0.45

Calls 10

removeMethod · 0.95
stopServiceMethod · 0.95
closeMethod · 0.95
stopModulesMethod · 0.95
destroyModulesMethod · 0.95
destroyServicesMethod · 0.95
destroyZezeMethod · 0.95
stopMethod · 0.65
UnRegisterMethod · 0.65
UnRegisterZezeTablesMethod · 0.45

Tested by

no test coverage detected